vue-data-ui 3.17.2 → 3.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +228 -228
- package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
- package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
- package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
- package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
- package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
- package/dist/BaseScanner-BON3d_Sx.js +38 -0
- package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
- package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
- package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
- package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
- package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
- package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
- package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
- package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
- package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
- package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
- package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
- package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
- package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
- package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +5 -0
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
- package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
- package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
- package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
- package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
- package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
- package/dist/patternUtils-BINhU4Ky.js +615 -0
- package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
- package/dist/style.css +1 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +500 -451
- package/dist/types/vue-data-ui.d.ts +2124 -1786
- package/dist/types/vue-ui-3d-bar.d.ts +10 -7
- package/dist/types/vue-ui-accordion.d.ts +2 -4
- package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
- package/dist/types/vue-ui-annotator.d.ts +3 -3
- package/dist/types/vue-ui-bullet.d.ts +10 -7
- package/dist/types/vue-ui-bump.d.ts +9 -6
- package/dist/types/vue-ui-candlestick.d.ts +10 -7
- package/dist/types/vue-ui-carousel-table.d.ts +2 -2
- package/dist/types/vue-ui-chestnut.d.ts +9 -6
- package/dist/types/vue-ui-chord.d.ts +10 -7
- package/dist/types/vue-ui-circle-pack.d.ts +10 -7
- package/dist/types/vue-ui-cursor.d.ts +2 -2
- package/dist/types/vue-ui-dag.d.ts +10 -7
- package/dist/types/vue-ui-dashboard.d.ts +3 -3
- package/dist/types/vue-ui-digits.d.ts +2 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
- package/dist/types/vue-ui-donut.d.ts +11 -8
- package/dist/types/vue-ui-dumbbell.d.ts +11 -8
- package/dist/types/vue-ui-flow.d.ts +11 -8
- package/dist/types/vue-ui-funnel.d.ts +11 -8
- package/dist/types/vue-ui-galaxy.d.ts +11 -8
- package/dist/types/vue-ui-gauge.d.ts +11 -8
- package/dist/types/vue-ui-geo.d.ts +13 -6
- package/dist/types/vue-ui-gizmo.d.ts +2 -5
- package/dist/types/vue-ui-heatmap.d.ts +11 -8
- package/dist/types/vue-ui-history-plot.d.ts +11 -8
- package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
- package/dist/types/vue-ui-icon.d.ts +2 -4
- package/dist/types/vue-ui-kpi.d.ts +2 -4
- package/dist/types/vue-ui-mini-loader.d.ts +4 -4
- package/dist/types/vue-ui-molecule.d.ts +11 -8
- package/dist/types/vue-ui-mood-radar.d.ts +11 -8
- package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
- package/dist/types/vue-ui-onion.d.ts +11 -8
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +2 -4
- package/dist/types/vue-ui-quadrant.d.ts +11 -8
- package/dist/types/vue-ui-quick-chart.d.ts +11 -8
- package/dist/types/vue-ui-radar.d.ts +11 -8
- package/dist/types/vue-ui-rating.d.ts +4 -4
- package/dist/types/vue-ui-relation-circle.d.ts +11 -8
- package/dist/types/vue-ui-ridgeline.d.ts +11 -8
- package/dist/types/vue-ui-rings.d.ts +11 -8
- package/dist/types/vue-ui-scatter.d.ts +11 -8
- package/dist/types/vue-ui-skeleton.d.ts +2 -4
- package/dist/types/vue-ui-smiley.d.ts +2 -5
- package/dist/types/vue-ui-spark-trend.d.ts +2 -4
- package/dist/types/vue-ui-sparkbar.d.ts +4 -4
- package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
- package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
- package/dist/types/vue-ui-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
- package/dist/types/vue-ui-stackbar.d.ts +11 -8
- package/dist/types/vue-ui-stackline.d.ts +11 -8
- package/dist/types/vue-ui-strip-plot.d.ts +11 -8
- package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
- package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-table.d.ts +4 -4
- package/dist/types/vue-ui-thermometer.d.ts +11 -8
- package/dist/types/vue-ui-timer.d.ts +2 -4
- package/dist/types/vue-ui-tiremarks.d.ts +11 -8
- package/dist/types/vue-ui-treemap.d.ts +11 -8
- package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
- package/dist/types/vue-ui-waffle.d.ts +11 -8
- package/dist/types/vue-ui-wheel.d.ts +11 -8
- package/dist/types/vue-ui-word-cloud.d.ts +11 -8
- package/dist/types/vue-ui-world.d.ts +11 -8
- package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
- package/dist/types/vue-ui-xy.d.ts +9 -6
- package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
- package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
- package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
- package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
- package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
- package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
- package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
- package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
- package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
- package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
- package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
- package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
- package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
- package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
- package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +103 -99
- package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
- package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
- package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
- package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
- package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
- package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
- package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
- package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
- package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
- package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
- package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
- package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
- package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
- package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
- package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
- package/package.json +120 -119
- package/dist/BaseScanner-BhhkKVoj.js +0 -30
- package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
- package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
|
@@ -0,0 +1,1748 @@
|
|
|
1
|
+
import { defineAsyncComponent as be, useSlots as rl, onMounted as ao, computed as w, ref as g, shallowRef as se, toRefs as ul, watch as Ce, onBeforeUnmount as il, openBlock as c, createElementBlock as A, unref as y, normalizeStyle as he, normalizeClass as bt, createElementVNode as R, toDisplayString as Ne, createBlock as Q, createCommentVNode as F, withCtx as T, renderSlot as m, normalizeProps as B, guardReactiveProps as H, createSlots as no, Fragment as xe, renderList as Re, withKeys as so, withModifiers as Ct, mergeProps as wt, createVNode as Ye, createTextVNode as Ze, Teleport as cl, resolveDynamicComponent as dl, nextTick as ro } from "vue";
|
|
2
|
+
import { j as je, t as uo, m as vl, p as z, n as hl, ag as io, o as co, q as fl, s as fe, k as kt, l as Ke, X as pl, x as vo, W as ho, T as fo, a0 as gl, a1 as yl, U as ml, az as bl } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { t as Cl, u as wl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as kl } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as $l, B as Tl } from "./BaseScanner-BON3d_Sx.js";
|
|
6
|
+
import { u as xl } from "./usePrinter-C4t8DdQ-.js";
|
|
7
|
+
import { u as Al } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as $t } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as Sl } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as Il } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
+
import { u as Ml } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
+
import Ol from "./img-CjTQXS0U.js";
|
|
13
|
+
import Pl from "./Title-BbKoiBk2.js";
|
|
14
|
+
import _l from "./vue_ui_treemap-D9-AIkT-.js";
|
|
15
|
+
import Ll from "./Legend-DGN5lY60.js";
|
|
16
|
+
import po from "./BaseIcon-DX0hTWa-.js";
|
|
17
|
+
import { A as Fl } from "./A11yDataTable-BpmuNomI.js";
|
|
18
|
+
import { B as Nl } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
19
|
+
import { _ as Rl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
20
|
+
function go(u, h) {
|
|
21
|
+
const d = u.length;
|
|
22
|
+
if (d === 0)
|
|
23
|
+
throw new Error(
|
|
24
|
+
`Max aspect ratio cannot be computed: ${u} is an empty array`
|
|
25
|
+
);
|
|
26
|
+
{
|
|
27
|
+
let f = 1 / 0, v = -1 / 0, b = 0;
|
|
28
|
+
for (let M = 0; M < d; M += 1) {
|
|
29
|
+
const x = u[M].normalizedValue;
|
|
30
|
+
x < f && (f = x), x > v && (v = x), b += x;
|
|
31
|
+
}
|
|
32
|
+
return Math.max(
|
|
33
|
+
h ** 2 * v / b ** 2,
|
|
34
|
+
b ** 2 / (h ** 2 * f)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function yo(u) {
|
|
39
|
+
const { xOffset: h, yOffset: d, width: f, height: v } = u;
|
|
40
|
+
return {
|
|
41
|
+
x0: h,
|
|
42
|
+
y0: d,
|
|
43
|
+
x1: h + f,
|
|
44
|
+
y1: d + v
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function zl(u, h, d) {
|
|
48
|
+
if (u.length === 0)
|
|
49
|
+
return !0;
|
|
50
|
+
{
|
|
51
|
+
const f = u.concat(h), v = go(u, d), b = go(f, d);
|
|
52
|
+
return v >= b;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function Dl(u) {
|
|
56
|
+
const h = [], d = u.length;
|
|
57
|
+
for (let f = 0; f < d; f += 1) {
|
|
58
|
+
const v = u[f], b = v.length;
|
|
59
|
+
for (let p = 0; p < b; p += 1)
|
|
60
|
+
h.push(v[p]);
|
|
61
|
+
}
|
|
62
|
+
return h;
|
|
63
|
+
}
|
|
64
|
+
function Bl(u, h) {
|
|
65
|
+
const d = {
|
|
66
|
+
...h,
|
|
67
|
+
children: u
|
|
68
|
+
};
|
|
69
|
+
return bo(d);
|
|
70
|
+
}
|
|
71
|
+
function Hl(u) {
|
|
72
|
+
return (u.x1 - u.x0) * (u.y1 - u.y0);
|
|
73
|
+
}
|
|
74
|
+
function mo(u, h) {
|
|
75
|
+
const { width: d, height: f, xOffset: v, yOffset: b } = Tt(h), p = u.length, M = u.map((C) => C.normalizedValue || 0).reduce((C, D) => C + D, 0), x = M / f, re = M / d;
|
|
76
|
+
let j = v, ee = b;
|
|
77
|
+
const U = [];
|
|
78
|
+
if (d >= f) {
|
|
79
|
+
for (let C = 0; C < p; C += 1) {
|
|
80
|
+
const D = u[C], te = ee + D.normalizedValue / x, ue = {
|
|
81
|
+
x0: j,
|
|
82
|
+
y0: ee,
|
|
83
|
+
x1: j + x,
|
|
84
|
+
y1: te
|
|
85
|
+
}, oe = Object.assign({}, D, ue);
|
|
86
|
+
ee = te, U.push(oe);
|
|
87
|
+
}
|
|
88
|
+
return U;
|
|
89
|
+
} else {
|
|
90
|
+
for (let C = 0; C < p; C += 1) {
|
|
91
|
+
const D = u[C], te = j + D.normalizedValue / re, ue = {
|
|
92
|
+
x0: j,
|
|
93
|
+
y0: ee,
|
|
94
|
+
x1: te,
|
|
95
|
+
y1: ee + re
|
|
96
|
+
}, oe = Object.assign({}, D, ue);
|
|
97
|
+
j = te, U.push(oe);
|
|
98
|
+
}
|
|
99
|
+
return U;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function Vl(u) {
|
|
103
|
+
const h = Tt(u), d = h.width, f = h.height;
|
|
104
|
+
return Math.min(d, f);
|
|
105
|
+
}
|
|
106
|
+
function El(u, h) {
|
|
107
|
+
const d = u.length, f = u.map((x) => x.value ?? 0).reduce((x, re) => x + re, 0), v = h / f, b = [];
|
|
108
|
+
let p, M;
|
|
109
|
+
for (let x = 0; x < d; x += 1)
|
|
110
|
+
M = u[x], p = Object.assign({}, M, {
|
|
111
|
+
normalizedValue: M.value * (v || 0)
|
|
112
|
+
}), b.push(p);
|
|
113
|
+
return b;
|
|
114
|
+
}
|
|
115
|
+
function Tt(u) {
|
|
116
|
+
const { x0: h, y0: d, x1: f, y1: v } = u;
|
|
117
|
+
return {
|
|
118
|
+
xOffset: h,
|
|
119
|
+
yOffset: d,
|
|
120
|
+
width: f - h,
|
|
121
|
+
height: v - d
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function Ul(u, h, d, f) {
|
|
125
|
+
let v = u, b = h, p = d, M = f;
|
|
126
|
+
for (; ; ) {
|
|
127
|
+
const x = v.length;
|
|
128
|
+
if (x === 0) {
|
|
129
|
+
const U = mo(b, p);
|
|
130
|
+
return M.concat(U);
|
|
131
|
+
}
|
|
132
|
+
const re = Vl(p), j = v[0], ee = v.slice(1, x);
|
|
133
|
+
if (zl(b, j, re)) {
|
|
134
|
+
const U = b.concat(j);
|
|
135
|
+
v = ee, b = U, p = p, M = M;
|
|
136
|
+
} else {
|
|
137
|
+
const U = b.length;
|
|
138
|
+
let C = 0;
|
|
139
|
+
for (let oe = 0; oe < U; oe += 1)
|
|
140
|
+
C += b[oe].normalizedValue;
|
|
141
|
+
const D = Wl(p, C), te = mo(b, p), ue = M.concat(te);
|
|
142
|
+
v = v, b = [], p = D, M = ue;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function bo(u) {
|
|
147
|
+
if (typeof u.children > "u" || !u.children.length)
|
|
148
|
+
return [u];
|
|
149
|
+
{
|
|
150
|
+
const h = El(u.children, Hl(u)), d = Ul(h, [], u, []), f = d.length, v = [];
|
|
151
|
+
for (let p = 0; p < f; p += 1)
|
|
152
|
+
v.push(bo(d[p]));
|
|
153
|
+
return Dl(v);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function Wl(u, h) {
|
|
157
|
+
const { width: d, height: f, xOffset: v, yOffset: b } = Tt(u);
|
|
158
|
+
if (d >= f) {
|
|
159
|
+
const p = h / f, M = d - p, x = {
|
|
160
|
+
xOffset: v + p,
|
|
161
|
+
yOffset: b,
|
|
162
|
+
width: M,
|
|
163
|
+
height: f
|
|
164
|
+
};
|
|
165
|
+
return yo(x);
|
|
166
|
+
} else {
|
|
167
|
+
const p = h / d, M = f - p, x = {
|
|
168
|
+
xOffset: v,
|
|
169
|
+
yOffset: b + p,
|
|
170
|
+
width: d,
|
|
171
|
+
height: M
|
|
172
|
+
};
|
|
173
|
+
return yo(x);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const Xl = ["id"], Gl = ["id"], Yl = ["id"], Zl = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], jl = { class: "vue-ui-treemap-crumb-unit" }, Kl = { class: "vue-ui-treemap-crumb-unit-label" }, ql = {
|
|
177
|
+
key: 0,
|
|
178
|
+
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
179
|
+
}, Jl = {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
+
}, Ql = { style: { position: "relative" } }, ea = ["xmlns", "aria-describedby", "viewBox"], ta = { key: 0 }, oa = ["id"], la = ["stop-color"], aa = ["stop-color"], na = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter", "onMouseleave"], sa = ["innerHTML"], ra = ["x", "y", "height", "width"], ua = {
|
|
183
|
+
style: {
|
|
184
|
+
width: "100%",
|
|
185
|
+
height: "100%"
|
|
186
|
+
},
|
|
187
|
+
class: "vue-ui-treemap-cell"
|
|
188
|
+
}, ia = {
|
|
189
|
+
key: 0,
|
|
190
|
+
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
191
|
+
"data-dom-to-png-ignore": "",
|
|
192
|
+
"aria-hidden": "true"
|
|
193
|
+
}, ca = {
|
|
194
|
+
key: 6,
|
|
195
|
+
class: "vue-data-ui-watermark"
|
|
196
|
+
}, da = ["id"], va = ["onClick"], ha = ["innerHTML"], fa = {
|
|
197
|
+
__name: "vue-ui-treemap",
|
|
198
|
+
props: {
|
|
199
|
+
config: {
|
|
200
|
+
type: Object,
|
|
201
|
+
default() {
|
|
202
|
+
return {};
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
dataset: {
|
|
206
|
+
type: Array,
|
|
207
|
+
default() {
|
|
208
|
+
return [];
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
213
|
+
setup(u, { expose: h, emit: d }) {
|
|
214
|
+
const f = be(() => import("./DataTable-cMnb68Ik.js")), v = be(
|
|
215
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
216
|
+
), b = be(() => import("./vue-ui-accordion-BHmfmb_6.js")), p = be(() => import("./Tooltip-Cvt7Fi0Q.js")), M = be(
|
|
217
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
218
|
+
), x = be(
|
|
219
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
220
|
+
), re = be(
|
|
221
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
222
|
+
), { vue_ui_treemap: j } = kl(), { isThemeValid: ee, warnInvalidTheme: U } = Sl(), C = u, D = d, te = rl();
|
|
223
|
+
ao(() => {
|
|
224
|
+
te["chart-background"] && console.warn(
|
|
225
|
+
"VueUiTreemap does not support the #chart-background slot."
|
|
226
|
+
);
|
|
227
|
+
});
|
|
228
|
+
const ue = w(() => !!C.dataset && C.dataset.length), oe = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), W = g(je()), Ae = g(!1), qe = g(""), pe = g(!1), xt = g(0), P = g([]), K = se(null), At = se(null), St = se(null), It = se(null), Mt = se(null), Ot = g(0), ze = g(0), De = g(0), V = g([]), Je = g(null), Pt = g(!1), Se = g(null), Qe = g(null), _t = g(null), et = g(/* @__PURE__ */ new Map()), Be = g(!1), He = g(!1), le = g(null), Lt = g({ x: 0, y: 0 }), Ie = g("pointer"), tt = g(!1), t = g(at()), ie = w(
|
|
229
|
+
() => t.value.userOptions.useCursorPointer
|
|
230
|
+
), Co = w(() => uo({
|
|
231
|
+
defaultConfig: {
|
|
232
|
+
userOptions: { show: !1 },
|
|
233
|
+
style: {
|
|
234
|
+
chart: {
|
|
235
|
+
backgroundColor: "#999999",
|
|
236
|
+
layout: {
|
|
237
|
+
labels: {
|
|
238
|
+
showDefaultLabels: !1
|
|
239
|
+
},
|
|
240
|
+
rects: {
|
|
241
|
+
stroke: "#6A6A6A"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
legend: {
|
|
245
|
+
backgroundColor: "transparent"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
userConfig: t.value.skeletonConfig ?? {}
|
|
251
|
+
})), { loading: ge, FINAL_DATASET: ot, manualLoading: wo } = $l({
|
|
252
|
+
...ul(C),
|
|
253
|
+
FINAL_CONFIG: t,
|
|
254
|
+
prepareConfig: at,
|
|
255
|
+
skeletonDataset: C.config?.skeletonDataset ?? [
|
|
256
|
+
{
|
|
257
|
+
name: "_",
|
|
258
|
+
value: 53,
|
|
259
|
+
color: "#CACACA90",
|
|
260
|
+
children: [
|
|
261
|
+
{ name: "_", value: 21 },
|
|
262
|
+
{ name: "_", value: 13 },
|
|
263
|
+
{ name: "_", value: 8 },
|
|
264
|
+
{ name: "_", value: 5 },
|
|
265
|
+
{ name: "_", value: 3 },
|
|
266
|
+
{ name: "_", value: 2 },
|
|
267
|
+
{ name: "_", value: 1 }
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
skeletonConfig: uo({
|
|
272
|
+
defaultConfig: t.value,
|
|
273
|
+
userConfig: Co.value
|
|
274
|
+
})
|
|
275
|
+
}), { userOptionsVisible: lt, setUserOptionsVisibility: Ft, keepUserOptionState: Nt } = Il({ config: t.value }), { svgRef: ye } = Ml({
|
|
276
|
+
config: t.value.style.chart.title
|
|
277
|
+
});
|
|
278
|
+
function at() {
|
|
279
|
+
const e = $t({
|
|
280
|
+
userConfig: C.config,
|
|
281
|
+
defaultConfig: j
|
|
282
|
+
}), l = e.theme;
|
|
283
|
+
if (!l) return e;
|
|
284
|
+
if (!ee.value(e))
|
|
285
|
+
return U(e), e;
|
|
286
|
+
const o = $t({
|
|
287
|
+
userConfig: _l[l] || C.config,
|
|
288
|
+
defaultConfig: e
|
|
289
|
+
}), a = $t({
|
|
290
|
+
userConfig: C.config,
|
|
291
|
+
defaultConfig: o
|
|
292
|
+
});
|
|
293
|
+
return {
|
|
294
|
+
...a,
|
|
295
|
+
customPalette: a.customPalette.length ? a.customPalette : vl[l] || z
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
Ce(
|
|
299
|
+
() => C.config,
|
|
300
|
+
(e) => {
|
|
301
|
+
ge.value || (t.value = at()), lt.value = !t.value.userOptions.showOnChartHover, Ot.value += 1, ze.value += 1, De.value += 1, X.value.showTable = t.value.table.show, X.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
302
|
+
},
|
|
303
|
+
{ deep: !0 }
|
|
304
|
+
);
|
|
305
|
+
const { isPrinting: nt, isImaging: st, generatePdf: Rt, generateImage: zt } = xl({
|
|
306
|
+
elementId: `treemap_${W.value}`,
|
|
307
|
+
fileName: t.value.style.chart.title.text || "vue-ui-treemap",
|
|
308
|
+
options: t.value.userOptions.print
|
|
309
|
+
}), ko = w(() => t.value.userOptions.show && !t.value.style.chart.title.text), Me = w(() => hl(t.value.customPalette)), X = g({
|
|
310
|
+
showTable: t.value.table.show,
|
|
311
|
+
showTooltip: t.value.style.chart.tooltip.show
|
|
312
|
+
});
|
|
313
|
+
Ce(
|
|
314
|
+
t,
|
|
315
|
+
() => {
|
|
316
|
+
X.value = {
|
|
317
|
+
showTable: t.value.table.show,
|
|
318
|
+
showTooltip: t.value.style.chart.tooltip.show
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
{ immediate: !0 }
|
|
322
|
+
);
|
|
323
|
+
const me = g({
|
|
324
|
+
height: t.value.style.chart.height,
|
|
325
|
+
width: t.value.style.chart.width
|
|
326
|
+
});
|
|
327
|
+
function $o(e) {
|
|
328
|
+
const l = K.value, o = me.value.height;
|
|
329
|
+
if (!l || !o) return e;
|
|
330
|
+
const a = l.getBoundingClientRect();
|
|
331
|
+
return e * (o / a.height);
|
|
332
|
+
}
|
|
333
|
+
function To() {
|
|
334
|
+
if (!Je.value || ae.value.length <= 1) return 0;
|
|
335
|
+
const e = Je.value, l = getComputedStyle(e), o = e.offsetHeight + parseFloat(l.marginTop || "0") + parseFloat(l.marginBottom || "0") + parseFloat(l.paddingTop || "0") + parseFloat(l.paddingBottom || "0");
|
|
336
|
+
return $o(o);
|
|
337
|
+
}
|
|
338
|
+
const G = w(() => {
|
|
339
|
+
const e = t.value.style.chart.padding, l = me.value.width, o = me.value.height, a = To(), n = e.left, s = l - e.right, r = e.top, k = o - e.bottom - a;
|
|
340
|
+
return {
|
|
341
|
+
left: n,
|
|
342
|
+
top: r,
|
|
343
|
+
right: s,
|
|
344
|
+
bottom: k,
|
|
345
|
+
width: s - n,
|
|
346
|
+
height: Math.max(0, k - r),
|
|
347
|
+
vbWidth: l,
|
|
348
|
+
vbHeight: o - a,
|
|
349
|
+
offsetY: a
|
|
350
|
+
};
|
|
351
|
+
}), E = g(io(ot.value)), q = g(E.value), rt = se(/* @__PURE__ */ new Map());
|
|
352
|
+
Ce(
|
|
353
|
+
[E, () => t.value],
|
|
354
|
+
() => {
|
|
355
|
+
_t.value = null, et.value = /* @__PURE__ */ new Map();
|
|
356
|
+
},
|
|
357
|
+
{ deep: !0 }
|
|
358
|
+
), Ce(
|
|
359
|
+
() => P.value,
|
|
360
|
+
() => {
|
|
361
|
+
_t.value = null, et.value = /* @__PURE__ */ new Map(), Ht(), De.value += 1, ze.value += 1;
|
|
362
|
+
},
|
|
363
|
+
{ deep: !0 }
|
|
364
|
+
), Ce(
|
|
365
|
+
[() => me.value.width, () => me.value.height],
|
|
366
|
+
() => {
|
|
367
|
+
et.value = /* @__PURE__ */ new Map();
|
|
368
|
+
}
|
|
369
|
+
);
|
|
370
|
+
function Dt(e) {
|
|
371
|
+
Array.isArray(e) && e.forEach((l, o) => {
|
|
372
|
+
l.id || (l.id = je()), l.sourceColor === void 0 && (l.sourceColor = fe(l.color) || null);
|
|
373
|
+
let a = l.sourceColor || rt.value.get(l.id) || Me.value[o] || z[o] || z[o % z.length];
|
|
374
|
+
a = fe(a), rt.value.set(l.id, a), l.color = a, Bt(l, a);
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
function Bt(e, l) {
|
|
378
|
+
Array.isArray(e.children) && e.children.forEach((o) => {
|
|
379
|
+
o.id || (o.id = je()), o.parentId = e.id, o.sourceColor === void 0 && (o.sourceColor = fe(o.color) || null);
|
|
380
|
+
const a = o.sourceColor || l;
|
|
381
|
+
o.color = a, Bt(o, a);
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
function xo(e) {
|
|
385
|
+
let l = Y(e);
|
|
386
|
+
for (; l?.parentId; )
|
|
387
|
+
l = Y(l.parentId);
|
|
388
|
+
return l?.id ?? null;
|
|
389
|
+
}
|
|
390
|
+
function Ht() {
|
|
391
|
+
const e = E.value.filter(
|
|
392
|
+
(n) => !P.value.includes(n.id)
|
|
393
|
+
);
|
|
394
|
+
if (!V.value.length) {
|
|
395
|
+
q.value = e;
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
const l = V.value[V.value.length - 1], o = Y(l);
|
|
399
|
+
if (!o) {
|
|
400
|
+
V.value = [], q.value = e;
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
const a = xo(o.id);
|
|
404
|
+
if (a && P.value.includes(a)) {
|
|
405
|
+
V.value = [], q.value = e;
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
q.value = [o];
|
|
409
|
+
}
|
|
410
|
+
Ce(
|
|
411
|
+
() => ot.value,
|
|
412
|
+
() => {
|
|
413
|
+
E.value = io(ot.value), Dt(E.value), Ht(), De.value += 1, ze.value += 1;
|
|
414
|
+
},
|
|
415
|
+
{ deep: !0, immediate: !0, flush: "post" }
|
|
416
|
+
);
|
|
417
|
+
const ce = se(null), we = se(null);
|
|
418
|
+
ao(() => {
|
|
419
|
+
Pt.value = !0, So();
|
|
420
|
+
});
|
|
421
|
+
const Ao = w(() => t.value.debug);
|
|
422
|
+
function So() {
|
|
423
|
+
if (co(C.dataset) && fl({
|
|
424
|
+
componentName: "VueUiTreemap",
|
|
425
|
+
type: "dataset",
|
|
426
|
+
debug: Ao.value
|
|
427
|
+
}), Dt(E.value), co(C.dataset) || (wo.value = t.value.loading), t.value.responsive) {
|
|
428
|
+
const e = Cl(() => {
|
|
429
|
+
const { width: l, height: o } = wl({
|
|
430
|
+
chart: K.value,
|
|
431
|
+
title: t.value.style.chart.title.text ? At.value : null,
|
|
432
|
+
legend: t.value.style.chart.legend.show ? St.value : null,
|
|
433
|
+
source: It.value,
|
|
434
|
+
noTitle: Mt.value
|
|
435
|
+
});
|
|
436
|
+
requestAnimationFrame(() => {
|
|
437
|
+
me.value.width = l, me.value.height = o - 12;
|
|
438
|
+
});
|
|
439
|
+
});
|
|
440
|
+
ce.value && (we.value && ce.value.unobserve(we.value), ce.value.disconnect()), ce.value = new ResizeObserver(e), we.value = K.value.parentNode, ce.value.observe(we.value);
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
il(() => {
|
|
444
|
+
ce.value && (we.value && ce.value.unobserve(we.value), ce.value.disconnect());
|
|
445
|
+
});
|
|
446
|
+
const Oe = w(() => q.value.map((e, l) => ({
|
|
447
|
+
...e,
|
|
448
|
+
color: fe(e.color) || Me.value[l] || z[l] || z[l % z.length]
|
|
449
|
+
})).filter((e) => !P.value.includes(e.id))), ke = w(
|
|
450
|
+
() => E.value.filter((e) => !P.value.includes(e.id)).map((e) => e.value || 0).reduce((e, l) => e + l, 0)
|
|
451
|
+
), Vt = w({
|
|
452
|
+
get() {
|
|
453
|
+
let e = [...Oe.value];
|
|
454
|
+
return t.value.style.chart.layout.sorted && (e = [...Oe.value].sort((l, o) => o.value - l.value)), e.map((l) => ({
|
|
455
|
+
...l
|
|
456
|
+
}));
|
|
457
|
+
},
|
|
458
|
+
set(e) {
|
|
459
|
+
return e;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
function Et(e, l) {
|
|
463
|
+
return e.value / l;
|
|
464
|
+
}
|
|
465
|
+
function Ut(e, l, o) {
|
|
466
|
+
const a = t.value.style.chart.layout.rects.colorRatio - Et(l, o);
|
|
467
|
+
return vo(e, a < 0 ? 0 : a);
|
|
468
|
+
}
|
|
469
|
+
function Wt(e) {
|
|
470
|
+
return Array.isArray(e.children) && e.children.length > 0;
|
|
471
|
+
}
|
|
472
|
+
function Io(e) {
|
|
473
|
+
return [...e].sort((l, o) => {
|
|
474
|
+
const a = Wt(l), n = Wt(o);
|
|
475
|
+
if (a !== n)
|
|
476
|
+
return a - n;
|
|
477
|
+
const s = Number(l.value) || 0;
|
|
478
|
+
return (Number(o.value) || 0) - s;
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
function Xt(e, l, o, a, n) {
|
|
482
|
+
return Io(e).map((r, k) => {
|
|
483
|
+
const S = r.sourceColor || fe(r.color) || fe(l) || Me.value[k] || z[k] || z[k % z.length], i = r.sourceColor ? r.sourceColor : Ut(S, r, a), $ = Et(r, a), I = n ?? r.parentId ?? r.id, _ = Array.isArray(r.children) && r.children.length && r.children.reduce(
|
|
484
|
+
(Z, L) => Z + (Number(L.value) || 0),
|
|
485
|
+
0
|
|
486
|
+
) || 1;
|
|
487
|
+
return {
|
|
488
|
+
...r,
|
|
489
|
+
color: i,
|
|
490
|
+
proportion: $,
|
|
491
|
+
parentName: o,
|
|
492
|
+
rootId: I,
|
|
493
|
+
children: Array.isArray(r.children) && r.children.length ? Xt(
|
|
494
|
+
r.children,
|
|
495
|
+
S,
|
|
496
|
+
r.name,
|
|
497
|
+
_,
|
|
498
|
+
I
|
|
499
|
+
) : void 0
|
|
500
|
+
};
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
function Mo(e) {
|
|
504
|
+
const l = it(e), o = ut(e), a = l * 0.55, n = l * 0.55, s = l * 1.05, r = l * 1.05, k = l * 0.35, S = o ? s + r + k : l * 0.45, i = e.x0 + a, $ = e.x1 - a, I = e.y0 + S, _ = e.y1 - n;
|
|
505
|
+
return $ <= i || _ <= I ? null : { x0: i, y0: I, x1: $, y1: _ };
|
|
506
|
+
}
|
|
507
|
+
function ut(e) {
|
|
508
|
+
const { height: l, lineHeight: o, width: a } = Ge(e);
|
|
509
|
+
return l >= o && a > 6;
|
|
510
|
+
}
|
|
511
|
+
function Gt(e, l, o = 0, a = null) {
|
|
512
|
+
if (!Array.isArray(e) || !e.length) return [];
|
|
513
|
+
const n = e.map((i) => {
|
|
514
|
+
const { children: $, ...I } = i;
|
|
515
|
+
return {
|
|
516
|
+
...I
|
|
517
|
+
};
|
|
518
|
+
}), s = new Map(
|
|
519
|
+
e.map((i) => [
|
|
520
|
+
i.id,
|
|
521
|
+
Array.isArray(i.children) ? i.children : []
|
|
522
|
+
])
|
|
523
|
+
), r = new Map(e.map((i) => [i.id, i])), k = Bl(n, l), S = [];
|
|
524
|
+
for (const i of k) {
|
|
525
|
+
const $ = s.get(i.id) || [], I = r.get(i.id), _ = {
|
|
526
|
+
...i,
|
|
527
|
+
depth: o,
|
|
528
|
+
parentId: a ?? i.parentId ?? null,
|
|
529
|
+
color: I?.color ?? i.color ?? null,
|
|
530
|
+
children: $,
|
|
531
|
+
isVisibleNode: !0,
|
|
532
|
+
showLabel: ut(i)
|
|
533
|
+
};
|
|
534
|
+
if (S.push(_), $.length) {
|
|
535
|
+
const Z = Mo(_);
|
|
536
|
+
Z && S.push(
|
|
537
|
+
...Gt(
|
|
538
|
+
$,
|
|
539
|
+
Z,
|
|
540
|
+
o + 1,
|
|
541
|
+
i.id
|
|
542
|
+
)
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
return S;
|
|
547
|
+
}
|
|
548
|
+
const Oo = w(() => {
|
|
549
|
+
const e = q.value.length ? q.value : Vt.value, l = e.map((n) => Number(n.value) || 0).reduce((n, s) => n + s, 0) || 1, o = e.map((n, s) => {
|
|
550
|
+
const r = n.children ? n.children.reduce(
|
|
551
|
+
(I, _) => I + (Number(_.value) || 0),
|
|
552
|
+
0
|
|
553
|
+
) : n.value, { children: k, ...S } = n, i = n.sourceColor || fe(n.color) || rt.value.get(n.id) || Me.value[s] || z[s] || z[s % z.length], $ = n.sourceColor ? n.sourceColor : Ut(i, n, l);
|
|
554
|
+
return {
|
|
555
|
+
...S,
|
|
556
|
+
id: n.id || je(),
|
|
557
|
+
parentId: n.parentId ?? null,
|
|
558
|
+
name: n.name,
|
|
559
|
+
value: n.value,
|
|
560
|
+
color: $,
|
|
561
|
+
proportion: (Number(n.value) || 0) / l,
|
|
562
|
+
children: Array.isArray(n.children) && n.children.length ? Xt(
|
|
563
|
+
n.children,
|
|
564
|
+
i,
|
|
565
|
+
n.name,
|
|
566
|
+
r || 1
|
|
567
|
+
) : void 0
|
|
568
|
+
};
|
|
569
|
+
}), a = {
|
|
570
|
+
x0: G.value.left,
|
|
571
|
+
y0: G.value.top,
|
|
572
|
+
x1: G.value.left + G.value.width,
|
|
573
|
+
y1: G.value.top + G.value.height
|
|
574
|
+
};
|
|
575
|
+
return Gt(o, a);
|
|
576
|
+
}), O = w(() => Oo.value);
|
|
577
|
+
function de({ y0: e, y1: l }) {
|
|
578
|
+
return l - e <= 0 ? 1e-4 : l - e;
|
|
579
|
+
}
|
|
580
|
+
function ve({ x0: e, x1: l }) {
|
|
581
|
+
return l - e <= 0 ? 1e-4 : l - e;
|
|
582
|
+
}
|
|
583
|
+
function it(e) {
|
|
584
|
+
const l = t.value.style.chart.layout.labels, o = l.fontSize, a = l.minFontSize, n = l.fontSize * 2, s = 0.5, r = 0.6, k = 1, S = 0.9;
|
|
585
|
+
let i = e.proportion;
|
|
586
|
+
if (!(typeof i == "number" && isFinite(i))) {
|
|
587
|
+
const nl = Math.max(1e-6, ve(e) * de(e)), sl = Math.max(1e-6, G.value.width * G.value.height);
|
|
588
|
+
i = nl / sl;
|
|
589
|
+
}
|
|
590
|
+
const $ = Math.pow(
|
|
591
|
+
Math.min(1, Math.max(0, i)),
|
|
592
|
+
s
|
|
593
|
+
), I = r + (k - r) * $, _ = Math.max(0, Number(e.depth) || 0), Z = Math.pow(0.9, _);
|
|
594
|
+
let L = o * I * Z;
|
|
595
|
+
const mt = Math.max(1e-4, Math.min(ve(e), de(e)));
|
|
596
|
+
return L = Math.min(L, mt * S), L = Math.min(L, n), L = Math.max(a, L), L;
|
|
597
|
+
}
|
|
598
|
+
function Yt(e) {
|
|
599
|
+
pe.value = e, xt.value += 1;
|
|
600
|
+
}
|
|
601
|
+
const J = w(() => ({
|
|
602
|
+
startX: 0,
|
|
603
|
+
startY: 0,
|
|
604
|
+
width: G.value.vbWidth,
|
|
605
|
+
height: G.value.vbHeight
|
|
606
|
+
}));
|
|
607
|
+
function Y(e, l = E.value) {
|
|
608
|
+
for (const o of l) {
|
|
609
|
+
if (o.id === e)
|
|
610
|
+
return o;
|
|
611
|
+
if (o.children) {
|
|
612
|
+
const a = Y(e, o.children);
|
|
613
|
+
if (a)
|
|
614
|
+
return a;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return null;
|
|
618
|
+
}
|
|
619
|
+
function Zt(e) {
|
|
620
|
+
const l = [];
|
|
621
|
+
let o = Y(e);
|
|
622
|
+
for (; o && o.parentId; ) {
|
|
623
|
+
const a = Y(o.parentId);
|
|
624
|
+
if (!a) break;
|
|
625
|
+
l.unshift(a.id), o = a;
|
|
626
|
+
}
|
|
627
|
+
return l;
|
|
628
|
+
}
|
|
629
|
+
const Pe = w(() => V.value.length > 0);
|
|
630
|
+
function Ve() {
|
|
631
|
+
q.value = E.value.slice(), V.value = [], D("selectDatapoint", void 0);
|
|
632
|
+
}
|
|
633
|
+
function ct() {
|
|
634
|
+
return V.value[V.value.length - 1] ?? null;
|
|
635
|
+
}
|
|
636
|
+
function Po(e, l, o) {
|
|
637
|
+
V.value = [...Zt(e.id), e.id], q.value = [e], t.value.events.datapointClick && t.value.events.datapointClick({
|
|
638
|
+
datapoint: l ?? e,
|
|
639
|
+
seriesIndex: o
|
|
640
|
+
}), D("selectDatapoint", l ?? e);
|
|
641
|
+
}
|
|
642
|
+
function _o(e, l) {
|
|
643
|
+
const o = ct();
|
|
644
|
+
if (!o) {
|
|
645
|
+
Ve();
|
|
646
|
+
return;
|
|
647
|
+
}
|
|
648
|
+
const a = Y(o);
|
|
649
|
+
if (!a?.parentId) {
|
|
650
|
+
t.value.events.datapointClick && t.value.events.datapointClick({
|
|
651
|
+
datapoint: e,
|
|
652
|
+
seriesIndex: l
|
|
653
|
+
}), Ve();
|
|
654
|
+
return;
|
|
655
|
+
}
|
|
656
|
+
const n = Y(a.parentId);
|
|
657
|
+
if (!n) {
|
|
658
|
+
Ve();
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
V.value = [...Zt(n.id), n.id], q.value = [n], t.value.events.datapointClick && t.value.events.datapointClick({
|
|
662
|
+
datapoint: e,
|
|
663
|
+
seriesIndex: l
|
|
664
|
+
}), D("selectDatapoint", e);
|
|
665
|
+
}
|
|
666
|
+
function _e(e, l) {
|
|
667
|
+
if (!e) {
|
|
668
|
+
Ve();
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
const o = Y(e.id);
|
|
672
|
+
if (!o) return;
|
|
673
|
+
if (ct() === o.id) {
|
|
674
|
+
_o(e, l);
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
Po(o, e, l);
|
|
678
|
+
}
|
|
679
|
+
function Lo(e) {
|
|
680
|
+
return e ? ct() === e.id : !1;
|
|
681
|
+
}
|
|
682
|
+
const ae = w(() => {
|
|
683
|
+
const e = [{ id: null, label: "All" }];
|
|
684
|
+
if (V.value.length > 0) {
|
|
685
|
+
let l = Y(V.value[V.value.length - 1]);
|
|
686
|
+
const o = [];
|
|
687
|
+
for (; l; )
|
|
688
|
+
o.unshift(l), l = l.parentId ? Y(l.parentId) : null;
|
|
689
|
+
for (const a of o)
|
|
690
|
+
e.push({
|
|
691
|
+
id: a.id,
|
|
692
|
+
label: a.name,
|
|
693
|
+
node: a
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
return e;
|
|
697
|
+
}), N = se(null), $e = w(() => E.value.map((e, l) => ({
|
|
698
|
+
...e,
|
|
699
|
+
color: fe(e.color) || Me.value[l] || z[l] || z[l % z.length],
|
|
700
|
+
shape: "square"
|
|
701
|
+
})).sort((e, l) => l.value - e.value).map((e, l) => {
|
|
702
|
+
const o = e.value / E.value.map((a) => a.value).reduce((a, n) => a + n, 0);
|
|
703
|
+
return {
|
|
704
|
+
...e,
|
|
705
|
+
proportion: o,
|
|
706
|
+
opacity: P.value.includes(e.id) ? 0.5 : 1,
|
|
707
|
+
display: `${e.name}${t.value.style.chart.legend.showPercentage || t.value.style.chart.legend.showValue ? ": " : ""}${t.value.style.chart.legend.showValue ? kt(
|
|
708
|
+
t.value.style.chart.layout.labels.formatter,
|
|
709
|
+
e.value,
|
|
710
|
+
Ke({
|
|
711
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
712
|
+
v: e.value,
|
|
713
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
714
|
+
r: t.value.style.chart.legend.roundingValue
|
|
715
|
+
}),
|
|
716
|
+
{ datapoint: e }
|
|
717
|
+
) : ""}${t.value.style.chart.legend.showPercentage ? P.value.includes(e.id) ? `${t.value.style.chart.legend.showValue ? " (" : ""}- %${t.value.style.chart.legend.showValue ? ")" : ""}` : `${t.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ke.value) ? "-" : (e.value / ke.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)}%${t.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
718
|
+
};
|
|
719
|
+
})), Fo = w(() => ({
|
|
720
|
+
cy: "treemap-div-legend",
|
|
721
|
+
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
722
|
+
color: t.value.style.chart.legend.color,
|
|
723
|
+
fontSize: t.value.style.chart.legend.fontSize,
|
|
724
|
+
paddingBottom: 12,
|
|
725
|
+
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
726
|
+
})), Ee = w(
|
|
727
|
+
() => P.value.length === $e.value.length
|
|
728
|
+
);
|
|
729
|
+
function No() {
|
|
730
|
+
P.value.length ? P.value = [] : $e.value.forEach((e) => {
|
|
731
|
+
P.value.push(e.id);
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
function Ue(e) {
|
|
735
|
+
N.value = null, P.value.includes(e.id) ? P.value = P.value.filter((l) => l !== e.id) : P.value.length < C.dataset.length - 1 && P.value.push(e.id), D("selectLegend", Vt.value);
|
|
736
|
+
}
|
|
737
|
+
function jt(e) {
|
|
738
|
+
if (!E.value.length)
|
|
739
|
+
return t.value.debug && console.warn("VueUiTreemap - There are no series to show."), null;
|
|
740
|
+
const l = E.value.find((o) => o.name === e);
|
|
741
|
+
return l || (t.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null);
|
|
742
|
+
}
|
|
743
|
+
function Ro(e) {
|
|
744
|
+
const l = jt(e);
|
|
745
|
+
l !== null && P.value.includes(l.id) && Ue({ id: l.id });
|
|
746
|
+
}
|
|
747
|
+
function zo(e) {
|
|
748
|
+
const l = jt(e);
|
|
749
|
+
l !== null && (P.value.includes(l.id) || Ue({ id: l.id }));
|
|
750
|
+
}
|
|
751
|
+
function Do({ datapoint: e, seriesIndex: l }) {
|
|
752
|
+
N.value = null, Ae.value = !1, le.value = null, Ie.value = "pointer", t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: l });
|
|
753
|
+
}
|
|
754
|
+
const We = g(null);
|
|
755
|
+
function Kt({ datapoint: e, seriesIndex: l, triggerMode: o = "pointer" }) {
|
|
756
|
+
if (Ee.value) return;
|
|
757
|
+
t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: l }), le.value = l, Ie.value = o, N.value = e, We.value = {
|
|
758
|
+
datapoint: e,
|
|
759
|
+
seriesIndex: l,
|
|
760
|
+
config: t.value,
|
|
761
|
+
series: Oe.value
|
|
762
|
+
};
|
|
763
|
+
const a = t.value.style.chart.tooltip.customFormat;
|
|
764
|
+
if (fo(a) && ml(
|
|
765
|
+
() => a({
|
|
766
|
+
seriesIndex: l,
|
|
767
|
+
datapoint: e,
|
|
768
|
+
series: Oe.value,
|
|
769
|
+
config: t.value
|
|
770
|
+
})
|
|
771
|
+
))
|
|
772
|
+
qe.value = a({
|
|
773
|
+
seriesIndex: l,
|
|
774
|
+
datapoint: e,
|
|
775
|
+
series: Oe.value,
|
|
776
|
+
config: t.value
|
|
777
|
+
});
|
|
778
|
+
else {
|
|
779
|
+
let n = "";
|
|
780
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<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>`, n += `<b>${kt(
|
|
781
|
+
t.value.style.chart.layout.labels.formatter,
|
|
782
|
+
e.value,
|
|
783
|
+
Ke({
|
|
784
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
785
|
+
v: e.value,
|
|
786
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
787
|
+
r: t.value.style.chart.tooltip.roundingValue
|
|
788
|
+
}),
|
|
789
|
+
{ datapoint: e, seriesIndex: l }
|
|
790
|
+
)}</b>`, qe.value = `<div>${n}</div>`;
|
|
791
|
+
}
|
|
792
|
+
Ae.value = !0;
|
|
793
|
+
}
|
|
794
|
+
const ne = w(() => {
|
|
795
|
+
const e = O.value.map((o) => ({
|
|
796
|
+
name: o.name,
|
|
797
|
+
color: o.color
|
|
798
|
+
})), l = O.value.map((o) => o.value);
|
|
799
|
+
return { head: e, body: l };
|
|
800
|
+
});
|
|
801
|
+
function dt(e = null) {
|
|
802
|
+
ro(() => {
|
|
803
|
+
const l = ne.value.head.map((n, s) => [
|
|
804
|
+
[n.name],
|
|
805
|
+
[ne.value.body[s]],
|
|
806
|
+
[
|
|
807
|
+
isNaN(ne.value.body[s] / ke.value) ? "-" : ne.value.body[s] / ke.value * 100
|
|
808
|
+
]
|
|
809
|
+
]), o = [
|
|
810
|
+
[t.value.style.chart.title.text],
|
|
811
|
+
[t.value.style.chart.title.subtitle.text],
|
|
812
|
+
[[""], ["val"], ["%"]]
|
|
813
|
+
].concat(l), a = gl(o);
|
|
814
|
+
e ? e(a) : yl({
|
|
815
|
+
csvContent: a,
|
|
816
|
+
title: t.value.style.chart.title.text || "vue-ui-treemap"
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
const Te = w(() => {
|
|
821
|
+
const e = [
|
|
822
|
+
t.value.table.columnNames.series,
|
|
823
|
+
t.value.table.columnNames.value,
|
|
824
|
+
t.value.table.columnNames.percentage
|
|
825
|
+
], l = ne.value.head.map((n, s) => {
|
|
826
|
+
const r = kt(
|
|
827
|
+
t.value.style.chart.layout.labels.formatter,
|
|
828
|
+
ne.value.body[s],
|
|
829
|
+
Ke({
|
|
830
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
831
|
+
v: ne.value.body[s],
|
|
832
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
833
|
+
r: t.value.table.td.roundingValue
|
|
834
|
+
})
|
|
835
|
+
);
|
|
836
|
+
return [
|
|
837
|
+
{
|
|
838
|
+
color: n.color,
|
|
839
|
+
name: n.name,
|
|
840
|
+
shape: "square"
|
|
841
|
+
},
|
|
842
|
+
r,
|
|
843
|
+
isNaN(ne.value.body[s] / ke.value) ? "-" : Ke({
|
|
844
|
+
v: ne.value.body[s] / ke.value * 100,
|
|
845
|
+
s: "%",
|
|
846
|
+
r: t.value.table.td.roundingPercentage
|
|
847
|
+
})
|
|
848
|
+
];
|
|
849
|
+
}), o = {
|
|
850
|
+
th: {
|
|
851
|
+
backgroundColor: t.value.table.th.backgroundColor,
|
|
852
|
+
color: t.value.table.th.color,
|
|
853
|
+
outline: t.value.table.th.outline
|
|
854
|
+
},
|
|
855
|
+
td: {
|
|
856
|
+
backgroundColor: t.value.table.td.backgroundColor,
|
|
857
|
+
color: t.value.table.td.color,
|
|
858
|
+
outline: t.value.table.td.outline
|
|
859
|
+
},
|
|
860
|
+
breakpoint: t.value.table.responsiveBreakpoint
|
|
861
|
+
};
|
|
862
|
+
return {
|
|
863
|
+
colNames: [
|
|
864
|
+
t.value.table.columnNames.series,
|
|
865
|
+
t.value.table.columnNames.value
|
|
866
|
+
],
|
|
867
|
+
head: e,
|
|
868
|
+
body: l,
|
|
869
|
+
config: o
|
|
870
|
+
};
|
|
871
|
+
});
|
|
872
|
+
function Bo() {
|
|
873
|
+
return O.value;
|
|
874
|
+
}
|
|
875
|
+
function qt() {
|
|
876
|
+
X.value.showTable = !X.value.showTable;
|
|
877
|
+
}
|
|
878
|
+
function Jt() {
|
|
879
|
+
X.value.showTooltip = !X.value.showTooltip;
|
|
880
|
+
}
|
|
881
|
+
const Le = g(!1);
|
|
882
|
+
function vt() {
|
|
883
|
+
Le.value = !Le.value;
|
|
884
|
+
}
|
|
885
|
+
const Xe = g(null);
|
|
886
|
+
function Qt(e) {
|
|
887
|
+
Xe.value = e;
|
|
888
|
+
}
|
|
889
|
+
function eo() {
|
|
890
|
+
Xe.value = null;
|
|
891
|
+
}
|
|
892
|
+
async function Ho({ scale: e = 2 } = {}) {
|
|
893
|
+
if (!K.value) return;
|
|
894
|
+
const { width: l, height: o } = K.value.getBoundingClientRect(), a = l / o, { imageUri: n, base64: s } = await Ol({
|
|
895
|
+
domElement: K.value,
|
|
896
|
+
base64: !0,
|
|
897
|
+
img: !0,
|
|
898
|
+
scale: e
|
|
899
|
+
});
|
|
900
|
+
return {
|
|
901
|
+
imageUri: n,
|
|
902
|
+
base64: s,
|
|
903
|
+
title: t.value.style.chart.title.text,
|
|
904
|
+
width: l,
|
|
905
|
+
height: o,
|
|
906
|
+
aspectRatio: a
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
const Fe = w(() => {
|
|
910
|
+
const e = t.value.table.useDialog && !t.value.table.show, l = X.value.showTable;
|
|
911
|
+
return {
|
|
912
|
+
component: e ? re : b,
|
|
913
|
+
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? `: ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
914
|
+
props: e ? {
|
|
915
|
+
backgroundColor: t.value.table.th.backgroundColor,
|
|
916
|
+
color: t.value.table.th.color,
|
|
917
|
+
headerColor: t.value.table.th.color,
|
|
918
|
+
headerBg: t.value.table.th.backgroundColor,
|
|
919
|
+
isFullscreen: pe.value,
|
|
920
|
+
fullscreenParent: K.value,
|
|
921
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
922
|
+
isCursorPointer: ie.value
|
|
923
|
+
} : {
|
|
924
|
+
hideDetails: !0,
|
|
925
|
+
config: {
|
|
926
|
+
open: l,
|
|
927
|
+
maxHeight: 1e4,
|
|
928
|
+
body: {
|
|
929
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
930
|
+
color: t.value.style.chart.color
|
|
931
|
+
},
|
|
932
|
+
head: {
|
|
933
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
934
|
+
color: t.value.style.chart.color
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
});
|
|
940
|
+
Ce(
|
|
941
|
+
() => X.value.showTable,
|
|
942
|
+
(e) => {
|
|
943
|
+
t.value.table.show || (e && t.value.table.useDialog && Se.value ? Se.value.open() : "close" in Se.value && Se.value.close());
|
|
944
|
+
}
|
|
945
|
+
);
|
|
946
|
+
function to() {
|
|
947
|
+
X.value.showTable = !1, Qe.value && Qe.value.setTableIconState(!1);
|
|
948
|
+
}
|
|
949
|
+
const Vo = w(() => $e.value.map((e) => ({
|
|
950
|
+
...e,
|
|
951
|
+
name: e.display
|
|
952
|
+
}))), Eo = w(() => t.value.style.chart.backgroundColor), Uo = w(() => t.value.style.chart.legend), Wo = w(() => t.value.style.chart.title), { exportSvg: Xo, getSvg: Go } = Al({
|
|
953
|
+
svg: ye,
|
|
954
|
+
title: Wo,
|
|
955
|
+
legend: Uo,
|
|
956
|
+
legendItems: Vo,
|
|
957
|
+
backgroundColor: Eo
|
|
958
|
+
});
|
|
959
|
+
async function oo({ isCb: e }) {
|
|
960
|
+
He.value = !0, await ro();
|
|
961
|
+
try {
|
|
962
|
+
if (e) {
|
|
963
|
+
const { blob: l, url: o, text: a, dataUrl: n } = await Go();
|
|
964
|
+
await Promise.resolve(
|
|
965
|
+
t.value.userOptions.callbacks.svg({
|
|
966
|
+
blob: l,
|
|
967
|
+
url: o,
|
|
968
|
+
text: a,
|
|
969
|
+
dataUrl: n
|
|
970
|
+
})
|
|
971
|
+
);
|
|
972
|
+
} else
|
|
973
|
+
await Promise.resolve(Xo());
|
|
974
|
+
} finally {
|
|
975
|
+
He.value = !1;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function Yo(e) {
|
|
979
|
+
if (e?.stage === "start") {
|
|
980
|
+
Be.value = !0;
|
|
981
|
+
return;
|
|
982
|
+
}
|
|
983
|
+
if (e?.stage === "end") {
|
|
984
|
+
Be.value = !1;
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
zt();
|
|
988
|
+
}
|
|
989
|
+
function ht(e) {
|
|
990
|
+
const l = it(e), o = Math.max(l * 0.5, 4), a = Math.max(l * 0.5, 4), n = l * 1.1;
|
|
991
|
+
return {
|
|
992
|
+
fontSize: l,
|
|
993
|
+
paddingX: o,
|
|
994
|
+
paddingTop: a,
|
|
995
|
+
lineHeight: n
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
function Ge(e) {
|
|
999
|
+
const { paddingX: l, paddingTop: o, lineHeight: a } = ht(e), n = e.x0 + l, s = e.y0 + o, r = Math.max(ve(e) - l * 2, 0), k = Math.max(de(e) - o * 2, 0);
|
|
1000
|
+
return {
|
|
1001
|
+
x: n,
|
|
1002
|
+
y: s,
|
|
1003
|
+
width: r,
|
|
1004
|
+
height: k,
|
|
1005
|
+
lineHeight: a
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
function Zo(e) {
|
|
1009
|
+
return ho(
|
|
1010
|
+
e.color ?? t.value.style.chart.backgroundColor
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
function jo(e) {
|
|
1014
|
+
const { fontSize: l, lineHeight: o } = ht(e), a = qo(e), n = Jo(e);
|
|
1015
|
+
if (a <= 0 || n <= 0)
|
|
1016
|
+
return [];
|
|
1017
|
+
const s = Math.max(
|
|
1018
|
+
Math.floor(n / Math.max(o, 1)),
|
|
1019
|
+
1
|
|
1020
|
+
), r = t.value.style.chart.layout.labels.value.prefix ?? "", k = t.value.style.chart.layout.labels.value.suffix ?? "", S = `${r}${e.value}${k}`, i = Math.ceil(l * 0.2), $ = Math.ceil(l * 1.4), I = Math.max(
|
|
1021
|
+
a - $ - i,
|
|
1022
|
+
0
|
|
1023
|
+
);
|
|
1024
|
+
if (I <= 0)
|
|
1025
|
+
return [];
|
|
1026
|
+
if (Array.isArray(e.children) && e.children.length) {
|
|
1027
|
+
const L = gt(
|
|
1028
|
+
`${e.name} (${S})`,
|
|
1029
|
+
I,
|
|
1030
|
+
l,
|
|
1031
|
+
500
|
|
1032
|
+
);
|
|
1033
|
+
return L ? [L] : [];
|
|
1034
|
+
}
|
|
1035
|
+
const _ = [], Z = gt(
|
|
1036
|
+
`${e.name}`,
|
|
1037
|
+
I,
|
|
1038
|
+
l,
|
|
1039
|
+
500
|
|
1040
|
+
);
|
|
1041
|
+
if (Z && _.push(Z), s >= 2) {
|
|
1042
|
+
const L = gt(
|
|
1043
|
+
S,
|
|
1044
|
+
I,
|
|
1045
|
+
l,
|
|
1046
|
+
400
|
|
1047
|
+
);
|
|
1048
|
+
L && _.push(L);
|
|
1049
|
+
}
|
|
1050
|
+
return _.slice(0, s);
|
|
1051
|
+
}
|
|
1052
|
+
let ft;
|
|
1053
|
+
function Ko() {
|
|
1054
|
+
return ft || (ft = document.createElement("canvas")), ft.getContext("2d");
|
|
1055
|
+
}
|
|
1056
|
+
function pt(e, l, o = 400) {
|
|
1057
|
+
const a = Ko();
|
|
1058
|
+
return a ? (a.font = `${o} ${l}px ${t.value.style.fontFamily}`, a.measureText(String(e)).width) : e.length * l * 0.6;
|
|
1059
|
+
}
|
|
1060
|
+
function gt(e, l, o, a = 400) {
|
|
1061
|
+
const n = String(e ?? "");
|
|
1062
|
+
if (!n.length || l <= 0)
|
|
1063
|
+
return "";
|
|
1064
|
+
if (pt(n, o, a) <= l)
|
|
1065
|
+
return n;
|
|
1066
|
+
const s = "…";
|
|
1067
|
+
if (pt(
|
|
1068
|
+
s,
|
|
1069
|
+
o,
|
|
1070
|
+
a
|
|
1071
|
+
) > l)
|
|
1072
|
+
return "";
|
|
1073
|
+
let k = 0, S = n.length, i = "";
|
|
1074
|
+
for (; k <= S; ) {
|
|
1075
|
+
const $ = Math.floor((k + S) / 2), I = `${n.slice(0, $)}${s}`;
|
|
1076
|
+
pt(
|
|
1077
|
+
I,
|
|
1078
|
+
o,
|
|
1079
|
+
a
|
|
1080
|
+
) <= l ? (i = I, k = $ + 1) : S = $ - 1;
|
|
1081
|
+
}
|
|
1082
|
+
return i || s;
|
|
1083
|
+
}
|
|
1084
|
+
function qo(e) {
|
|
1085
|
+
return Ge(e).width;
|
|
1086
|
+
}
|
|
1087
|
+
function Jo(e) {
|
|
1088
|
+
return Ge(e).height;
|
|
1089
|
+
}
|
|
1090
|
+
function Qo({ rect: e, seriesIndex: l, isTitle: o }) {
|
|
1091
|
+
if (!e || !t.value.style.chart.layout.labels.showDefaultLabels || !ut(e))
|
|
1092
|
+
return "";
|
|
1093
|
+
const { fontSize: a } = ht(e), n = Zo(e), s = jo(e), r = Ge(e);
|
|
1094
|
+
if (!s.length || r.width <= 0 || r.height <= 0)
|
|
1095
|
+
return "";
|
|
1096
|
+
const k = `treemap_clip_${W.value}_${e.id}_${e.depth}_${l}`, S = r.x, i = r.y, $ = Math.max(r.width, 0), I = Math.max(r.height, 0), _ = s.map((Z, L) => {
|
|
1097
|
+
const mt = r.y + r.lineHeight * L;
|
|
1098
|
+
return `
|
|
1099
|
+
<text
|
|
1100
|
+
x="${r.x}"
|
|
1101
|
+
y="${mt}"
|
|
1102
|
+
fill="${n}"
|
|
1103
|
+
font-size="${a}"
|
|
1104
|
+
font-family="${t.value.style.fontFamily}"
|
|
1105
|
+
font-weight="${L === 0 ? 500 : 400}"
|
|
1106
|
+
text-anchor="start"
|
|
1107
|
+
dominant-baseline="text-before-edge"
|
|
1108
|
+
>
|
|
1109
|
+
${bl(Z)}
|
|
1110
|
+
</text>
|
|
1111
|
+
`;
|
|
1112
|
+
}).join("");
|
|
1113
|
+
return `
|
|
1114
|
+
<g>
|
|
1115
|
+
<defs>
|
|
1116
|
+
<clipPath id="${k}" clipPathUnits="userSpaceOnUse">
|
|
1117
|
+
<rect
|
|
1118
|
+
x="${S}"
|
|
1119
|
+
y="${i}"
|
|
1120
|
+
width="${$}"
|
|
1121
|
+
height="${I}"
|
|
1122
|
+
/>
|
|
1123
|
+
</clipPath>
|
|
1124
|
+
</defs>
|
|
1125
|
+
<g clip-path="url(#${k})">
|
|
1126
|
+
${_}
|
|
1127
|
+
</g>
|
|
1128
|
+
</g>
|
|
1129
|
+
`;
|
|
1130
|
+
}
|
|
1131
|
+
function el(e) {
|
|
1132
|
+
const l = t.value.style.chart.layout.rects.borderRadius, o = ve(e), a = de(e);
|
|
1133
|
+
return Math.min(l, Math.min(o, a) / 6);
|
|
1134
|
+
}
|
|
1135
|
+
async function lo() {
|
|
1136
|
+
if (D("copyAlt", {
|
|
1137
|
+
config: t.value,
|
|
1138
|
+
dataset: O.value
|
|
1139
|
+
}), !t.value.userOptions.callbacks.altCopy) {
|
|
1140
|
+
console.warn(
|
|
1141
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
1142
|
+
);
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
await Promise.resolve(
|
|
1146
|
+
t.value.userOptions.callbacks.altCopy({
|
|
1147
|
+
config: t.value,
|
|
1148
|
+
dataset: O.value
|
|
1149
|
+
})
|
|
1150
|
+
);
|
|
1151
|
+
}
|
|
1152
|
+
function tl() {
|
|
1153
|
+
le.value = null, tt.value = !0;
|
|
1154
|
+
}
|
|
1155
|
+
function ol() {
|
|
1156
|
+
le.value = null, Ie.value = "pointer", Ae.value = !1, N.value = null, tt.value = !1;
|
|
1157
|
+
}
|
|
1158
|
+
function ll(e) {
|
|
1159
|
+
if (!ye.value || Le.value || document.activeElement !== ye.value || !O.value.length || Ee.value) return;
|
|
1160
|
+
const l = ["ArrowLeft", "ArrowUp"].includes(e.key), o = ["ArrowRight", "ArrowDown"].includes(e.key), a = e.key === "Enter" || e.key === " ", n = e.key === "Escape";
|
|
1161
|
+
if (!l && !o && !a && !n)
|
|
1162
|
+
return;
|
|
1163
|
+
if (e.preventDefault(), e.stopPropagation(), n) {
|
|
1164
|
+
le.value = null, Ie.value = "pointer", Ae.value = !1, N.value = null;
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
if (a) {
|
|
1168
|
+
if (le.value === null) return;
|
|
1169
|
+
const $ = O.value[le.value];
|
|
1170
|
+
if (!$) return;
|
|
1171
|
+
_e($, le.value);
|
|
1172
|
+
return;
|
|
1173
|
+
}
|
|
1174
|
+
let s = le.value;
|
|
1175
|
+
const r = N.value ? O.value.findIndex(
|
|
1176
|
+
($) => $.id === N.value.id
|
|
1177
|
+
) : null, k = s !== null && s >= 0 && s < O.value.length, S = r !== null && r >= 0 && r < O.value.length;
|
|
1178
|
+
k ? o ? (s += 1, s >= O.value.length && (s = 0)) : l && (s -= 1, s < 0 && (s = O.value.length - 1)) : S ? (s = o ? r + 1 : r - 1, s >= O.value.length && (s = 0), s < 0 && (s = O.value.length - 1)) : o ? s = 0 : s = O.value.length - 1;
|
|
1179
|
+
const i = O.value[s];
|
|
1180
|
+
i && (al(s), Kt({
|
|
1181
|
+
datapoint: i,
|
|
1182
|
+
seriesIndex: s,
|
|
1183
|
+
triggerMode: "keyboard"
|
|
1184
|
+
}));
|
|
1185
|
+
}
|
|
1186
|
+
function al(e) {
|
|
1187
|
+
if (!Number.isFinite(e) || !ye.value) return;
|
|
1188
|
+
const l = O.value[e];
|
|
1189
|
+
if (!l) return;
|
|
1190
|
+
const o = l.x0 + ve(l) / 2, a = l.y0 + de(l) / 2, n = ye.value.getBoundingClientRect();
|
|
1191
|
+
Lt.value = {
|
|
1192
|
+
x: n.left + (o - J.value.startX) / J.value.width * n.width,
|
|
1193
|
+
y: n.top + (a - J.value.startY) / J.value.height * n.height
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
const yt = w(() => {
|
|
1197
|
+
const e = Te.value?.colNames ?? [], l = Te.value?.body ?? [];
|
|
1198
|
+
return { headers: e, rows: l };
|
|
1199
|
+
});
|
|
1200
|
+
return h({
|
|
1201
|
+
getData: Bo,
|
|
1202
|
+
getImage: Ho,
|
|
1203
|
+
generateCsv: dt,
|
|
1204
|
+
generateImage: zt,
|
|
1205
|
+
generateSvg: oo,
|
|
1206
|
+
generatePdf: Rt,
|
|
1207
|
+
hideSeries: zo,
|
|
1208
|
+
showSeries: Ro,
|
|
1209
|
+
toggleTable: qt,
|
|
1210
|
+
toggleTooltip: Jt,
|
|
1211
|
+
toggleAnnotator: vt,
|
|
1212
|
+
toggleFullscreen: Yt,
|
|
1213
|
+
copyAlt: lo
|
|
1214
|
+
}), (e, l) => (c(), A("div", {
|
|
1215
|
+
ref_key: "treemapChart",
|
|
1216
|
+
ref: K,
|
|
1217
|
+
class: bt(`vue-data-ui-component vue-ui-treemap ${pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1218
|
+
style: he(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
1219
|
+
id: `treemap_${W.value}`,
|
|
1220
|
+
onMouseenter: l[2] || (l[2] = () => y(Ft)(!0)),
|
|
1221
|
+
onMouseleave: l[3] || (l[3] = () => y(Ft)(!1))
|
|
1222
|
+
}, [
|
|
1223
|
+
R("div", {
|
|
1224
|
+
id: `chart-instructions-${W.value}`,
|
|
1225
|
+
class: "sr-only"
|
|
1226
|
+
}, [
|
|
1227
|
+
R("p", null, Ne(t.value.a11y.translations.keyboardNavigation), 1)
|
|
1228
|
+
], 8, Gl),
|
|
1229
|
+
yt.value?.rows?.length ? (c(), Q(Fl, {
|
|
1230
|
+
key: 0,
|
|
1231
|
+
uid: W.value,
|
|
1232
|
+
head: yt.value.headers,
|
|
1233
|
+
body: yt.value.rows,
|
|
1234
|
+
notice: t.value.a11y.translations.tableAvailable,
|
|
1235
|
+
caption: t.value.a11y.translations.tableCaption
|
|
1236
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : F("", !0),
|
|
1237
|
+
t.value.userOptions.buttons.annotator ? (c(), Q(y(v), {
|
|
1238
|
+
key: 1,
|
|
1239
|
+
svgRef: y(ye),
|
|
1240
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1241
|
+
color: t.value.style.chart.color,
|
|
1242
|
+
active: Le.value,
|
|
1243
|
+
isCursorPointer: ie.value,
|
|
1244
|
+
onClose: vt
|
|
1245
|
+
}, {
|
|
1246
|
+
"annotator-action-close": T(() => [
|
|
1247
|
+
m(e.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1248
|
+
]),
|
|
1249
|
+
"annotator-action-color": T(({ color: o }) => [
|
|
1250
|
+
m(e.$slots, "annotator-action-color", B(H({ color: o })), void 0, !0)
|
|
1251
|
+
]),
|
|
1252
|
+
"annotator-action-draw": T(({ mode: o }) => [
|
|
1253
|
+
m(e.$slots, "annotator-action-draw", B(H({ mode: o })), void 0, !0)
|
|
1254
|
+
]),
|
|
1255
|
+
"annotator-action-undo": T(({ disabled: o }) => [
|
|
1256
|
+
m(e.$slots, "annotator-action-undo", B(H({ disabled: o })), void 0, !0)
|
|
1257
|
+
]),
|
|
1258
|
+
"annotator-action-redo": T(({ disabled: o }) => [
|
|
1259
|
+
m(e.$slots, "annotator-action-redo", B(H({ disabled: o })), void 0, !0)
|
|
1260
|
+
]),
|
|
1261
|
+
"annotator-action-delete": T(({ disabled: o }) => [
|
|
1262
|
+
m(e.$slots, "annotator-action-delete", B(H({ disabled: o })), void 0, !0)
|
|
1263
|
+
]),
|
|
1264
|
+
_: 3
|
|
1265
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : F("", !0),
|
|
1266
|
+
ko.value ? (c(), A("div", {
|
|
1267
|
+
key: 2,
|
|
1268
|
+
ref_key: "noTitle",
|
|
1269
|
+
ref: Mt,
|
|
1270
|
+
class: "vue-data-ui-no-title-space",
|
|
1271
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1272
|
+
}, null, 512)) : F("", !0),
|
|
1273
|
+
t.value.style.chart.title.text ? (c(), A("div", {
|
|
1274
|
+
key: 3,
|
|
1275
|
+
ref_key: "chartTitle",
|
|
1276
|
+
ref: At,
|
|
1277
|
+
style: he(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1278
|
+
}, [
|
|
1279
|
+
(c(), Q(Pl, {
|
|
1280
|
+
key: `title_${Ot.value}`,
|
|
1281
|
+
config: {
|
|
1282
|
+
title: {
|
|
1283
|
+
cy: "treemap-div-title",
|
|
1284
|
+
...t.value.style.chart.title
|
|
1285
|
+
},
|
|
1286
|
+
subtitle: {
|
|
1287
|
+
cy: "treemap-div-subtitle",
|
|
1288
|
+
...t.value.style.chart.title.subtitle
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}, null, 8, ["config"]))
|
|
1292
|
+
], 4)) : F("", !0),
|
|
1293
|
+
R("div", {
|
|
1294
|
+
id: `legend-top-${W.value}`
|
|
1295
|
+
}, null, 8, Yl),
|
|
1296
|
+
t.value.userOptions.show && ue.value && (y(Nt) || y(lt)) ? (c(), Q(y(M), {
|
|
1297
|
+
ref_key: "userOptionsRef",
|
|
1298
|
+
ref: Qe,
|
|
1299
|
+
key: `user_option_${xt.value}`,
|
|
1300
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
1301
|
+
color: t.value.style.chart.color,
|
|
1302
|
+
isPrinting: y(nt),
|
|
1303
|
+
isImaging: y(st),
|
|
1304
|
+
uid: W.value,
|
|
1305
|
+
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
1306
|
+
hasPdf: t.value.userOptions.buttons.pdf,
|
|
1307
|
+
hasXls: t.value.userOptions.buttons.csv,
|
|
1308
|
+
hasImg: t.value.userOptions.buttons.img,
|
|
1309
|
+
hasSvg: t.value.userOptions.buttons.svg,
|
|
1310
|
+
hasTable: t.value.userOptions.buttons.table,
|
|
1311
|
+
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
1312
|
+
hasAltCopy: t.value.userOptions.buttons.altCopy,
|
|
1313
|
+
isFullscreen: pe.value,
|
|
1314
|
+
isTooltip: X.value.showTooltip,
|
|
1315
|
+
titles: { ...t.value.userOptions.buttonTitles },
|
|
1316
|
+
chartElement: K.value,
|
|
1317
|
+
position: t.value.userOptions.position,
|
|
1318
|
+
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
1319
|
+
isAnnotation: Le.value,
|
|
1320
|
+
callbacks: t.value.userOptions.callbacks,
|
|
1321
|
+
printScale: t.value.userOptions.print.scale,
|
|
1322
|
+
tableDialog: t.value.table.useDialog,
|
|
1323
|
+
isCursorPointer: ie.value,
|
|
1324
|
+
onToggleFullscreen: Yt,
|
|
1325
|
+
onGeneratePdf: y(Rt),
|
|
1326
|
+
onGenerateCsv: dt,
|
|
1327
|
+
onGenerateImage: Yo,
|
|
1328
|
+
onGenerateSvg: oo,
|
|
1329
|
+
onToggleTable: qt,
|
|
1330
|
+
onToggleTooltip: Jt,
|
|
1331
|
+
onToggleAnnotator: vt,
|
|
1332
|
+
onCopyAlt: lo,
|
|
1333
|
+
style: he({
|
|
1334
|
+
visibility: y(Nt) ? y(lt) ? "visible" : "hidden" : "visible"
|
|
1335
|
+
})
|
|
1336
|
+
}, no({ _: 2 }, [
|
|
1337
|
+
e.$slots.menuIcon ? {
|
|
1338
|
+
name: "menuIcon",
|
|
1339
|
+
fn: T(({ isOpen: o, color: a }) => [
|
|
1340
|
+
m(e.$slots, "menuIcon", B(H({ isOpen: o, color: a })), void 0, !0)
|
|
1341
|
+
]),
|
|
1342
|
+
key: "0"
|
|
1343
|
+
} : void 0,
|
|
1344
|
+
e.$slots.optionTooltip ? {
|
|
1345
|
+
name: "optionTooltip",
|
|
1346
|
+
fn: T(() => [
|
|
1347
|
+
m(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
1348
|
+
]),
|
|
1349
|
+
key: "1"
|
|
1350
|
+
} : void 0,
|
|
1351
|
+
e.$slots.optionPdf ? {
|
|
1352
|
+
name: "optionPdf",
|
|
1353
|
+
fn: T(() => [
|
|
1354
|
+
m(e.$slots, "optionPdf", {}, void 0, !0)
|
|
1355
|
+
]),
|
|
1356
|
+
key: "2"
|
|
1357
|
+
} : void 0,
|
|
1358
|
+
e.$slots.optionCsv ? {
|
|
1359
|
+
name: "optionCsv",
|
|
1360
|
+
fn: T(() => [
|
|
1361
|
+
m(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1362
|
+
]),
|
|
1363
|
+
key: "3"
|
|
1364
|
+
} : void 0,
|
|
1365
|
+
e.$slots.optionImg ? {
|
|
1366
|
+
name: "optionImg",
|
|
1367
|
+
fn: T(() => [
|
|
1368
|
+
m(e.$slots, "optionImg", {}, void 0, !0)
|
|
1369
|
+
]),
|
|
1370
|
+
key: "4"
|
|
1371
|
+
} : void 0,
|
|
1372
|
+
e.$slots.optionSvg ? {
|
|
1373
|
+
name: "optionSvg",
|
|
1374
|
+
fn: T(() => [
|
|
1375
|
+
m(e.$slots, "optionSvg", {}, void 0, !0)
|
|
1376
|
+
]),
|
|
1377
|
+
key: "5"
|
|
1378
|
+
} : void 0,
|
|
1379
|
+
e.$slots.optionTable ? {
|
|
1380
|
+
name: "optionTable",
|
|
1381
|
+
fn: T(() => [
|
|
1382
|
+
m(e.$slots, "optionTable", {}, void 0, !0)
|
|
1383
|
+
]),
|
|
1384
|
+
key: "6"
|
|
1385
|
+
} : void 0,
|
|
1386
|
+
e.$slots.optionFullscreen ? {
|
|
1387
|
+
name: "optionFullscreen",
|
|
1388
|
+
fn: T(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
1389
|
+
m(e.$slots, "optionFullscreen", B(H({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
1390
|
+
]),
|
|
1391
|
+
key: "7"
|
|
1392
|
+
} : void 0,
|
|
1393
|
+
e.$slots.optionAnnotator ? {
|
|
1394
|
+
name: "optionAnnotator",
|
|
1395
|
+
fn: T(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
1396
|
+
m(e.$slots, "optionAnnotator", B(H({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
1397
|
+
]),
|
|
1398
|
+
key: "8"
|
|
1399
|
+
} : void 0,
|
|
1400
|
+
e.$slots.optionAltCopy ? {
|
|
1401
|
+
name: "optionAltCopy",
|
|
1402
|
+
fn: T(({ altCopy: o }) => [
|
|
1403
|
+
m(e.$slots, "optionAltCopy", B(H({ altCopy: o })), void 0, !0)
|
|
1404
|
+
]),
|
|
1405
|
+
key: "9"
|
|
1406
|
+
} : void 0
|
|
1407
|
+
]), 1032, ["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"])) : F("", !0),
|
|
1408
|
+
ae.value.length > 1 ? (c(), A("nav", {
|
|
1409
|
+
key: 5,
|
|
1410
|
+
class: "vue-ui-treemap-breadcrumbs",
|
|
1411
|
+
"data-dom-to-png-ignore": "",
|
|
1412
|
+
ref_key: "breadcrumbsNav",
|
|
1413
|
+
ref: Je
|
|
1414
|
+
}, [
|
|
1415
|
+
(c(!0), A(xe, null, Re(ae.value, (o, a) => (c(), A("span", {
|
|
1416
|
+
role: "button",
|
|
1417
|
+
tabindex: a < ae.value.length - 1 ? 0 : void 0,
|
|
1418
|
+
key: o.id || "root",
|
|
1419
|
+
onClick: (n) => a === ae.value.length - 1 ? () => {
|
|
1420
|
+
} : _e(o.node),
|
|
1421
|
+
onKeydown: [
|
|
1422
|
+
so(Ct((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["enter"]),
|
|
1423
|
+
so(Ct((n) => a === ae.value.length - 1 ? void 0 : _e(o.node), ["prevent"]), ["space"])
|
|
1424
|
+
],
|
|
1425
|
+
class: "vue-ui-treemap-crumb",
|
|
1426
|
+
"data-last-crumb": a === ae.value.length - 1,
|
|
1427
|
+
style: he({
|
|
1428
|
+
color: t.value.style.chart.color,
|
|
1429
|
+
cursor: ie.value ? "pointer" : "default"
|
|
1430
|
+
}),
|
|
1431
|
+
onMouseenter: (n) => Qt(a),
|
|
1432
|
+
onMouseleave: eo,
|
|
1433
|
+
onFocus: (n) => Qt(a),
|
|
1434
|
+
onBlur: eo
|
|
1435
|
+
}, [
|
|
1436
|
+
R("span", jl, [
|
|
1437
|
+
R("span", Kl, [
|
|
1438
|
+
m(e.$slots, "breadcrumb-label", wt({ ref_for: !0 }, {
|
|
1439
|
+
crumb: o,
|
|
1440
|
+
isRoot: a === 0,
|
|
1441
|
+
isFocus: Xe.value === a
|
|
1442
|
+
}), () => [
|
|
1443
|
+
a === 0 ? (c(), A("div", ql, [
|
|
1444
|
+
Ye(po, {
|
|
1445
|
+
name: Xe.value === 0 ? "homeFilled" : "home",
|
|
1446
|
+
stroke: t.value.style.chart.color
|
|
1447
|
+
}, null, 8, ["name", "stroke"])
|
|
1448
|
+
])) : (c(), A(xe, { key: 1 }, [
|
|
1449
|
+
Ze(Ne(o.label), 1)
|
|
1450
|
+
], 64))
|
|
1451
|
+
], !0)
|
|
1452
|
+
]),
|
|
1453
|
+
a < ae.value.length - 1 ? (c(), A("span", Jl, [
|
|
1454
|
+
m(e.$slots, "breadcrumb-arrow", {}, () => [
|
|
1455
|
+
l[4] || (l[4] = Ze(" › ", -1))
|
|
1456
|
+
], !0)
|
|
1457
|
+
])) : F("", !0)
|
|
1458
|
+
])
|
|
1459
|
+
], 44, Zl))), 128))
|
|
1460
|
+
], 512)) : F("", !0),
|
|
1461
|
+
R("div", Ql, [
|
|
1462
|
+
(c(), A("svg", {
|
|
1463
|
+
ref_key: "svgRef",
|
|
1464
|
+
ref: ye,
|
|
1465
|
+
xmlns: y(pl),
|
|
1466
|
+
"aria-describedby": `chart-instructions-${W.value}`,
|
|
1467
|
+
class: bt({
|
|
1468
|
+
"vue-data-ui-fullscreen--on": pe.value,
|
|
1469
|
+
"vue-data-ui-fulscreen--off": !pe.value,
|
|
1470
|
+
"vue-data-ui-zoom-plus": !Pe.value,
|
|
1471
|
+
"vue-data-ui-zoom-minus": Pe.value,
|
|
1472
|
+
loading: y(ge)
|
|
1473
|
+
}),
|
|
1474
|
+
viewBox: `${J.value.startX} ${J.value.startY} ${J.value.width <= 0 ? 10 : J.value.width} ${J.value.height <= 0 ? 10 : J.value.height}`,
|
|
1475
|
+
style: he(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`),
|
|
1476
|
+
tabindex: "0",
|
|
1477
|
+
onFocus: tl,
|
|
1478
|
+
onBlur: ol,
|
|
1479
|
+
onKeydown: ll
|
|
1480
|
+
}, [
|
|
1481
|
+
Ye(y(x)),
|
|
1482
|
+
(c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
|
|
1483
|
+
key: `tgrad_${o.id}`
|
|
1484
|
+
}, [
|
|
1485
|
+
t.value.style.chart.layout.rects.gradient.show ? (c(), A("defs", ta, [
|
|
1486
|
+
R("radialGradient", {
|
|
1487
|
+
id: `tgrad_${o.id}`,
|
|
1488
|
+
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
1489
|
+
}, [
|
|
1490
|
+
R("stop", {
|
|
1491
|
+
offset: "18%",
|
|
1492
|
+
"stop-color": o.color
|
|
1493
|
+
}, null, 8, la),
|
|
1494
|
+
R("stop", {
|
|
1495
|
+
offset: "100%",
|
|
1496
|
+
"stop-color": y(vo)(
|
|
1497
|
+
o.color,
|
|
1498
|
+
t.value.style.chart.layout.rects.gradient.intensity / 100
|
|
1499
|
+
)
|
|
1500
|
+
}, null, 8, aa)
|
|
1501
|
+
], 8, oa)
|
|
1502
|
+
])) : F("", !0)
|
|
1503
|
+
]))), 128)),
|
|
1504
|
+
R("g", null, [
|
|
1505
|
+
(c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
|
|
1506
|
+
key: `rect_${o.id}_${o.depth}`
|
|
1507
|
+
}, [
|
|
1508
|
+
R("rect", {
|
|
1509
|
+
x: o.x0,
|
|
1510
|
+
y: o.y0,
|
|
1511
|
+
height: de(o),
|
|
1512
|
+
width: ve(o),
|
|
1513
|
+
fill: oe.value ? o.color ?? t.value.style.chart.backgroundColor : t.value.style.chart.layout.rects.gradient.show ? Ee.value ? t.value.style.chart.backgroundColor : `url(#tgrad_${o.id})` : o.color ?? t.value.style.chart.backgroundColor,
|
|
1514
|
+
rx: el(o),
|
|
1515
|
+
stroke: N.value && N.value.id === o.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
|
|
1516
|
+
"stroke-width": N.value && N.value.id === o.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
|
|
1517
|
+
onClick: Ct((n) => _e(o, a), ["stop"]),
|
|
1518
|
+
onMouseenter: () => Kt({
|
|
1519
|
+
datapoint: o,
|
|
1520
|
+
seriesIndex: a,
|
|
1521
|
+
triggerMode: "pointer"
|
|
1522
|
+
}),
|
|
1523
|
+
onMouseleave: (n) => Do({ datapoint: o, seriesIndex: a }),
|
|
1524
|
+
style: he(`opacity:${N.value ? N.value.id === o.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1525
|
+
class: bt([
|
|
1526
|
+
"vue-ui-treemap-rect",
|
|
1527
|
+
Lo(o) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"
|
|
1528
|
+
])
|
|
1529
|
+
}, null, 46, na)
|
|
1530
|
+
]))), 128)),
|
|
1531
|
+
(c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
|
|
1532
|
+
key: `label_${o.id}_${o.depth}`
|
|
1533
|
+
}, [
|
|
1534
|
+
!e.$slots.rect && !y(ge) && t.value.style.chart.layout.labels.showDefaultLabels && !Ee.value && o.showLabel ? (c(), A("g", {
|
|
1535
|
+
key: 0,
|
|
1536
|
+
style: { "pointer-events": "none" },
|
|
1537
|
+
innerHTML: Qo({
|
|
1538
|
+
rect: o,
|
|
1539
|
+
seriesIndex: a,
|
|
1540
|
+
isTitle: !!(o.children && o.children.length)
|
|
1541
|
+
})
|
|
1542
|
+
}, null, 8, sa)) : F("", !0)
|
|
1543
|
+
]))), 128)),
|
|
1544
|
+
(c(!0), A(xe, null, Re(O.value, (o, a) => (c(), A("g", {
|
|
1545
|
+
key: `slot_${o.id}_${o.depth}`
|
|
1546
|
+
}, [
|
|
1547
|
+
(c(), A("foreignObject", {
|
|
1548
|
+
x: o.x0,
|
|
1549
|
+
y: o.y0,
|
|
1550
|
+
height: de(o),
|
|
1551
|
+
width: ve(o),
|
|
1552
|
+
class: "vue-ui-treemap-cell-foreignObject",
|
|
1553
|
+
style: { "pointer-events": "none" }
|
|
1554
|
+
}, [
|
|
1555
|
+
R("div", ua, [
|
|
1556
|
+
y(ge) ? F("", !0) : m(e.$slots, "rect", wt({
|
|
1557
|
+
key: 0,
|
|
1558
|
+
ref_for: !0
|
|
1559
|
+
}, {
|
|
1560
|
+
rect: {
|
|
1561
|
+
...o,
|
|
1562
|
+
height: de(o),
|
|
1563
|
+
width: ve(o),
|
|
1564
|
+
isSelected: N.value ? N.value.id === o.id : !0
|
|
1565
|
+
},
|
|
1566
|
+
shouldShow: o.proportion > t.value.style.chart.layout.labels.hideUnderProportion || Pe.value,
|
|
1567
|
+
fontSize: it(o),
|
|
1568
|
+
isZoom: Pe.value,
|
|
1569
|
+
textColor: y(ho)(
|
|
1570
|
+
o.color
|
|
1571
|
+
)
|
|
1572
|
+
}), void 0, !0)
|
|
1573
|
+
])
|
|
1574
|
+
], 8, ra))
|
|
1575
|
+
]))), 128))
|
|
1576
|
+
]),
|
|
1577
|
+
m(e.$slots, "svg", B(H({
|
|
1578
|
+
svg: G.value,
|
|
1579
|
+
isZoom: Pe.value,
|
|
1580
|
+
rect: N.value,
|
|
1581
|
+
config: t.value,
|
|
1582
|
+
isPrintingImg: y(nt) | y(st) | Be.value,
|
|
1583
|
+
isPrintingSvg: He.value
|
|
1584
|
+
})), void 0, !0)
|
|
1585
|
+
], 46, ea)),
|
|
1586
|
+
e.$slots.hint ? (c(), A("div", ia, [
|
|
1587
|
+
m(e.$slots, "hint", B(H({
|
|
1588
|
+
hint: t.value.a11y.translations.keyboardNavigation,
|
|
1589
|
+
isVisible: tt.value
|
|
1590
|
+
})), void 0, !0)
|
|
1591
|
+
])) : F("", !0)
|
|
1592
|
+
]),
|
|
1593
|
+
e.$slots.watermark ? (c(), A("div", ca, [
|
|
1594
|
+
m(e.$slots, "watermark", B(H({
|
|
1595
|
+
isPrinting: y(nt) || y(st) || Be.value || He.value
|
|
1596
|
+
})), void 0, !0)
|
|
1597
|
+
])) : F("", !0),
|
|
1598
|
+
R("div", {
|
|
1599
|
+
id: `legend-bottom-${W.value}`
|
|
1600
|
+
}, null, 8, da),
|
|
1601
|
+
Pt.value ? (c(), Q(cl, {
|
|
1602
|
+
key: 7,
|
|
1603
|
+
to: t.value.style.chart.legend.position === "top" ? `#legend-top-${W.value}` : `#legend-bottom-${W.value}`
|
|
1604
|
+
}, [
|
|
1605
|
+
R("div", {
|
|
1606
|
+
ref_key: "chartLegend",
|
|
1607
|
+
ref: St
|
|
1608
|
+
}, [
|
|
1609
|
+
t.value.style.chart.legend.show ? (c(), Q(Ll, {
|
|
1610
|
+
key: `legend_${De.value}`,
|
|
1611
|
+
legendSet: $e.value,
|
|
1612
|
+
config: Fo.value,
|
|
1613
|
+
id: `treemap_legend_${W.value}`,
|
|
1614
|
+
isCursorPointer: ie.value,
|
|
1615
|
+
onClickMarker: l[0] || (l[0] = ({ legend: o }) => Ue(o))
|
|
1616
|
+
}, {
|
|
1617
|
+
item: T(({ legend: o, index: a }) => [
|
|
1618
|
+
y(ge) ? F("", !0) : (c(), A("div", {
|
|
1619
|
+
key: 0,
|
|
1620
|
+
onClick: (n) => Ue(o),
|
|
1621
|
+
style: he(`opacity:${P.value.includes(o.id) ? 0.5 : 1}`)
|
|
1622
|
+
}, Ne(o.display), 13, va))
|
|
1623
|
+
]),
|
|
1624
|
+
legendToggle: T(() => [
|
|
1625
|
+
$e.value.length > 2 && t.value.style.chart.legend.selectAllToggle.show && !y(ge) ? (c(), Q(Nl, {
|
|
1626
|
+
key: 0,
|
|
1627
|
+
backgroundColor: t.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1628
|
+
color: t.value.style.chart.legend.selectAllToggle.color,
|
|
1629
|
+
fontSize: t.value.style.chart.legend.fontSize,
|
|
1630
|
+
checked: P.value.length > 0,
|
|
1631
|
+
isCursorPointer: ie.value,
|
|
1632
|
+
onToggle: No
|
|
1633
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : F("", !0)
|
|
1634
|
+
]),
|
|
1635
|
+
_: 1
|
|
1636
|
+
}, 8, ["legendSet", "config", "id", "isCursorPointer"])) : m(e.$slots, "legend", {
|
|
1637
|
+
key: 1,
|
|
1638
|
+
legend: $e.value
|
|
1639
|
+
}, void 0, !0)
|
|
1640
|
+
], 512)
|
|
1641
|
+
], 8, ["to"])) : F("", !0),
|
|
1642
|
+
e.$slots.source ? (c(), A("div", {
|
|
1643
|
+
key: 8,
|
|
1644
|
+
ref_key: "source",
|
|
1645
|
+
ref: It,
|
|
1646
|
+
dir: "auto"
|
|
1647
|
+
}, [
|
|
1648
|
+
m(e.$slots, "source", {}, void 0, !0)
|
|
1649
|
+
], 512)) : F("", !0),
|
|
1650
|
+
Ye(y(p), {
|
|
1651
|
+
teleportTo: t.value.style.chart.tooltip.teleportTo,
|
|
1652
|
+
show: X.value.showTooltip && Ae.value,
|
|
1653
|
+
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
1654
|
+
color: t.value.style.chart.tooltip.color,
|
|
1655
|
+
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
1656
|
+
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
1657
|
+
borderColor: t.value.style.chart.tooltip.borderColor,
|
|
1658
|
+
borderWidth: t.value.style.chart.tooltip.borderWidth,
|
|
1659
|
+
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1660
|
+
position: t.value.style.chart.tooltip.position,
|
|
1661
|
+
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1662
|
+
parent: K.value,
|
|
1663
|
+
content: qe.value,
|
|
1664
|
+
isFullscreen: pe.value,
|
|
1665
|
+
isCustom: y(fo)(t.value.style.chart.tooltip.customFormat),
|
|
1666
|
+
smooth: t.value.style.chart.tooltip.smooth,
|
|
1667
|
+
backdropFilter: t.value.style.chart.tooltip.backdropFilter,
|
|
1668
|
+
smoothForce: t.value.style.chart.tooltip.smoothForce,
|
|
1669
|
+
smoothSnapThreshold: t.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1670
|
+
isA11yMode: Ie.value === "keyboard",
|
|
1671
|
+
a11yPosition: Lt.value
|
|
1672
|
+
}, {
|
|
1673
|
+
"tooltip-before": T(() => [
|
|
1674
|
+
m(e.$slots, "tooltip-before", B(H({ ...We.value })), void 0, !0)
|
|
1675
|
+
]),
|
|
1676
|
+
tooltip: T(() => [
|
|
1677
|
+
m(e.$slots, "tooltip", B(H({ ...We.value })), void 0, !0)
|
|
1678
|
+
]),
|
|
1679
|
+
"tooltip-after": T(() => [
|
|
1680
|
+
m(e.$slots, "tooltip-after", B(H({ ...We.value })), void 0, !0)
|
|
1681
|
+
]),
|
|
1682
|
+
_: 3
|
|
1683
|
+
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1684
|
+
ue.value && t.value.userOptions.buttons.table ? (c(), Q(dl(Fe.value.component), wt({ key: 9 }, Fe.value.props, {
|
|
1685
|
+
ref_key: "tableUnit",
|
|
1686
|
+
ref: Se,
|
|
1687
|
+
onClose: to
|
|
1688
|
+
}), no({
|
|
1689
|
+
content: T(() => [
|
|
1690
|
+
(c(), Q(y(f), {
|
|
1691
|
+
key: `table_${ze.value}`,
|
|
1692
|
+
colNames: Te.value.colNames,
|
|
1693
|
+
head: Te.value.head,
|
|
1694
|
+
body: Te.value.body,
|
|
1695
|
+
config: Te.value.config,
|
|
1696
|
+
title: t.value.table.useDialog ? "" : Fe.value.title,
|
|
1697
|
+
withCloseButton: !t.value.table.useDialog,
|
|
1698
|
+
isCursorPointer: ie.value,
|
|
1699
|
+
onClose: to
|
|
1700
|
+
}, {
|
|
1701
|
+
th: T(({ th: o }) => [
|
|
1702
|
+
R("div", {
|
|
1703
|
+
innerHTML: o,
|
|
1704
|
+
style: { display: "flex", "align-items": "center" }
|
|
1705
|
+
}, null, 8, ha)
|
|
1706
|
+
]),
|
|
1707
|
+
td: T(({ td: o }) => [
|
|
1708
|
+
Ze(Ne(o.name || o), 1)
|
|
1709
|
+
]),
|
|
1710
|
+
_: 1
|
|
1711
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
1712
|
+
]),
|
|
1713
|
+
_: 2
|
|
1714
|
+
}, [
|
|
1715
|
+
t.value.table.useDialog ? {
|
|
1716
|
+
name: "title",
|
|
1717
|
+
fn: T(() => [
|
|
1718
|
+
Ze(Ne(Fe.value.title), 1)
|
|
1719
|
+
]),
|
|
1720
|
+
key: "0"
|
|
1721
|
+
} : void 0,
|
|
1722
|
+
t.value.table.useDialog ? {
|
|
1723
|
+
name: "actions",
|
|
1724
|
+
fn: T(() => [
|
|
1725
|
+
R("button", {
|
|
1726
|
+
tabindex: "0",
|
|
1727
|
+
class: "vue-ui-user-options-button",
|
|
1728
|
+
onClick: l[1] || (l[1] = (o) => dt(t.value.userOptions.callbacks.csv)),
|
|
1729
|
+
style: he({ cursor: ie.value ? "pointer" : "default" })
|
|
1730
|
+
}, [
|
|
1731
|
+
Ye(po, {
|
|
1732
|
+
name: "fileCsv",
|
|
1733
|
+
stroke: Fe.value.props.color
|
|
1734
|
+
}, null, 8, ["stroke"])
|
|
1735
|
+
], 4)
|
|
1736
|
+
]),
|
|
1737
|
+
key: "1"
|
|
1738
|
+
} : void 0
|
|
1739
|
+
]), 1040)) : F("", !0),
|
|
1740
|
+
m(e.$slots, "skeleton", {}, () => [
|
|
1741
|
+
y(ge) ? (c(), Q(Tl, { key: 0 })) : F("", !0)
|
|
1742
|
+
], !0)
|
|
1743
|
+
], 46, Xl));
|
|
1744
|
+
}
|
|
1745
|
+
}, Fa = /* @__PURE__ */ Rl(fa, [["__scopeId", "data-v-e5505d72"]]);
|
|
1746
|
+
export {
|
|
1747
|
+
Fa as default
|
|
1748
|
+
};
|