vue-data-ui 2.6.51 → 2.6.52-beta.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 -3
- package/dist/{Arrow-zUP7YWwK.js → Arrow-I48MZsS9.js} +1 -1
- package/dist/{Arrow-BgUU76S-.cjs → Arrow-kIFF7ZYV.cjs} +1 -1
- package/dist/{BaseIcon-C86xshge.cjs → BaseIcon-BOQVvTGG.cjs} +1 -1
- package/dist/{BaseIcon-CTAy5_xi.js → BaseIcon-CFB6fPTZ.js} +1 -1
- package/dist/{ColorPicker-D0HD4Quw.cjs → ColorPicker-Dsyn6kHE.cjs} +1 -1
- package/dist/{ColorPicker-Bytmrdr3.js → ColorPicker-oHlXqJ1s.js} +3 -3
- package/dist/{DataTable-BciZ6nvV.js → DataTable-DGdwXWsw.js} +15 -15
- package/dist/DataTable-mQHJFe7I.cjs +1 -0
- package/dist/{Legend-Cz7Cx76P.js → Legend-1Ck4SMAf.js} +2 -2
- package/dist/{Legend-DgFKLfrI.cjs → Legend-DTO9ZsCn.cjs} +1 -1
- package/dist/PackageVersion-Bjsb4wZp.cjs +1 -0
- package/dist/{PackageVersion-o03zxIgy.js → PackageVersion-BvgxXhNs.js} +3 -3
- package/dist/{PenAndPaper-CkHrxfug.js → PenAndPaper-Ck-AwE4Q.js} +5 -5
- package/dist/PenAndPaper-D7jbmI-E.cjs +1 -0
- package/dist/{Shape-CGopvwTa.cjs → Shape-CJaW8bX9.cjs} +1 -1
- package/dist/{Shape-D-YK0lYU.js → Shape-CPCH8j2H.js} +1 -1
- package/dist/Slicer-CC32--YM.cjs +1 -0
- package/dist/{Slicer-AvtKQlUL.js → Slicer-DNZDQslR.js} +25 -25
- package/dist/{Title-D-dsYBke.js → Title-B_6aT-6J.js} +1 -1
- package/dist/{Title-BJ2lOafm.cjs → Title-cUV-IKQY.cjs} +1 -1
- package/dist/{Tooltip-DFPLXjvj.js → Tooltip-Ue-AAjZt.js} +1 -1
- package/dist/{Tooltip-7LYTKhzY.cjs → Tooltip-WSVLbzMX.cjs} +1 -1
- package/dist/documentation/installation.md +0 -1
- package/dist/dom-to-png-9admCVmW.cjs +1 -0
- package/dist/dom-to-png-Bt7F5Nv1.js +128 -0
- package/dist/img-11TFQm4X.cjs +1 -0
- package/dist/img-UIozzgIR.js +19 -0
- package/dist/{index-C3amwS0l.js → index-BkzHk-mH.js} +291 -349
- package/dist/index-CSxlyqJ7.cjs +9 -0
- package/dist/pdf-BRtlQnE2.js +46 -0
- package/dist/pdf-Cs21Kg1k.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +0 -64
- package/dist/types/vue-data-ui.d.ts +0 -64
- package/dist/{useNestedProp-Cf-JPzTa.cjs → useNestedProp-BMWO2CO2.cjs} +1 -1
- package/dist/{useNestedProp-D9I77VlT.js → useNestedProp-K8B9GMrW.js} +1 -1
- package/dist/usePrinter-BYER6sQ7.cjs +1 -0
- package/dist/{usePrinter-CUdxA1Bg.js → usePrinter-zF7SO-jf.js} +5 -5
- package/dist/{vue-data-ui-DH842rfS.js → vue-data-ui-BMg9P9Ko.js} +60 -62
- package/dist/vue-data-ui-YsV6liep.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +35 -36
- package/dist/{vue-ui-3d-bar-CJfSnDyo.cjs → vue-ui-3d-bar-BrwW8AgR.cjs} +2 -2
- package/dist/{vue-ui-3d-bar-Bd6XLFya.js → vue-ui-3d-bar-DSzHyy5V.js} +11 -11
- package/dist/{vue-ui-accordion-BBc1ZMpG.js → vue-ui-accordion-BISaJ4se.js} +3 -3
- package/dist/{vue-ui-accordion-B-rPe8KM.cjs → vue-ui-accordion-PlYDvxUG.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BNj-4LHe.cjs → vue-ui-age-pyramid-BqoBtF0a.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Bn_mzS13.js → vue-ui-age-pyramid-C3FyApR-.js} +10 -10
- package/dist/vue-ui-annotator-BtSw5RTy.cjs +371 -0
- package/dist/{vue-ui-annotator-vFbCgJEZ.js → vue-ui-annotator-DpgKrG5x.js} +84 -85
- package/dist/{vue-ui-bullet-B6KpjWl_.cjs → vue-ui-bullet-CGi-_8Ex.cjs} +1 -1
- package/dist/{vue-ui-bullet-DyGZmH-g.js → vue-ui-bullet-DbcQ3wBe.js} +8 -8
- package/dist/{vue-ui-candlestick-BoH-d4sf.cjs → vue-ui-candlestick-BH8jTbOQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DUfXOizp.js → vue-ui-candlestick-tRVF3zq2.js} +11 -11
- package/dist/{vue-ui-carousel-table-Cbl6UzEH.cjs → vue-ui-carousel-table-BWCwHbxI.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DZzht2CZ.js → vue-ui-carousel-table-D8sL6coX.js} +4 -4
- package/dist/{vue-ui-chestnut-DWPp1zKx.cjs → vue-ui-chestnut-CpTCDjC9.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DWQumnLS.js → vue-ui-chestnut-CroVLVsl.js} +8 -8
- package/dist/{vue-ui-circle-pack-SLB70Z_8.js → vue-ui-circle-pack-B2tf5UQ1.js} +9 -9
- package/dist/{vue-ui-circle-pack-1RcCvaYs.cjs → vue-ui-circle-pack-C3wA6hOc.cjs} +1 -1
- package/dist/{vue-ui-cursor-DqwobFdf.js → vue-ui-cursor-96gSvyiC.js} +4 -4
- package/dist/vue-ui-cursor-DL-bISlq.cjs +1 -0
- package/dist/vue-ui-dashboard-BUdFapPP.cjs +1 -0
- package/dist/{vue-ui-dashboard-BoVqjFT-.js → vue-ui-dashboard-Dp5jRRt4.js} +8 -8
- package/dist/{vue-ui-digits-CkqC9SEJ.js → vue-ui-digits-BezGWOAR.js} +2 -2
- package/dist/{vue-ui-digits-CicHxnLg.cjs → vue-ui-digits-XY3jIcLV.cjs} +1 -1
- package/dist/{vue-ui-donut-D03_Yedr.cjs → vue-ui-donut-BdsK9pBW.cjs} +1 -1
- package/dist/{vue-ui-donut-BIJLbkro.js → vue-ui-donut-CIe8gApD.js} +12 -12
- package/dist/{vue-ui-donut-evolution-LqcL3OxY.cjs → vue-ui-donut-evolution-Dv7fyWwE.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Bu7kKtpK.js → vue-ui-donut-evolution-Ii8EmOJK.js} +14 -14
- package/dist/{vue-ui-dumbbell-B3sbV0fk.js → vue-ui-dumbbell-CR60USAn.js} +10 -10
- package/dist/{vue-ui-dumbbell-Drrm__Nn.cjs → vue-ui-dumbbell-DJ3wkIdL.cjs} +1 -1
- package/dist/{vue-ui-flow-NPMbdbtS.cjs → vue-ui-flow-3clUbPLS.cjs} +1 -1
- package/dist/{vue-ui-flow-DMK3963a.js → vue-ui-flow-xiil6BiJ.js} +9 -9
- package/dist/{vue-ui-funnel-BiSRxqzO.cjs → vue-ui-funnel-BAkm-e1r.cjs} +1 -1
- package/dist/{vue-ui-funnel-C7EwDAdS.js → vue-ui-funnel-B_C8XDGt.js} +9 -9
- package/dist/{vue-ui-galaxy-CaDXpBs3.cjs → vue-ui-galaxy-CcW4rvCT.cjs} +1 -1
- package/dist/{vue-ui-galaxy-Cotibz3o.js → vue-ui-galaxy-CyaoeQSJ.js} +11 -11
- package/dist/{vue-ui-gauge-DK2g4x7s.cjs → vue-ui-gauge-BSB-sjTl.cjs} +1 -1
- package/dist/{vue-ui-gauge-DKNwFB05.js → vue-ui-gauge-DQKc53lU.js} +7 -7
- package/dist/{vue-ui-gizmo-DO5PUFbp.js → vue-ui-gizmo-CpfXe7sK.js} +3 -3
- package/dist/{vue-ui-gizmo-DhSfekXS.cjs → vue-ui-gizmo-DGbdinaX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DbWoJVGe.cjs → vue-ui-heatmap-CCmoyf1C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DulCLx2a.js → vue-ui-heatmap-DMHGF1P2.js} +10 -10
- package/dist/{vue-ui-history-plot-H6t6DvQ_.cjs → vue-ui-history-plot-DEyodaqF.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BcLWVk_q.js → vue-ui-history-plot-nEHSahCX.js} +11 -11
- package/dist/{vue-ui-kpi-CG43D1rb.js → vue-ui-kpi-mOUIJEXy.js} +3 -3
- package/dist/{vue-ui-kpi-CdnXw9hF.cjs → vue-ui-kpi-pREkpkrt.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CLjqXzvH.js → vue-ui-mini-loader-BC28g1xw.js} +2 -2
- package/dist/{vue-ui-mini-loader-DXU3rfwQ.cjs → vue-ui-mini-loader-DBEfeiv2.cjs} +1 -1
- package/dist/{vue-ui-molecule-BYetzB_N.js → vue-ui-molecule-DL4vsgin.js} +14 -14
- package/dist/vue-ui-molecule-P-E8liNf.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BnUc15e9.js → vue-ui-mood-radar-ucZjBaMd.js} +11 -11
- package/dist/{vue-ui-mood-radar-B4mRD0GQ.cjs → vue-ui-mood-radar-vFL9b0RB.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Dk7fcRR3.js → vue-ui-nested-donuts-BoNxqHBv.js} +11 -11
- package/dist/{vue-ui-nested-donuts-B_29kUHS.cjs → vue-ui-nested-donuts-WOIeKM41.cjs} +1 -1
- package/dist/{vue-ui-onion-BbucE7AX.js → vue-ui-onion-BK6_uToF.js} +11 -11
- package/dist/{vue-ui-onion-CtI9xbLn.cjs → vue-ui-onion-D-RVPykW.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CFWG0onH.cjs → vue-ui-parallel-coordinate-plot-BtYgR4eK.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CLIOyXQc.js → vue-ui-parallel-coordinate-plot-C-skJdiu.js} +12 -12
- package/dist/{vue-ui-quadrant-BFu1K90E.cjs → vue-ui-quadrant-DK3JBMd_.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DinfyJBM.js → vue-ui-quadrant-DwKSro9l.js} +12 -12
- package/dist/{vue-ui-quick-chart-Dp6hQbfz.cjs → vue-ui-quick-chart-CZcqcglo.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D5JhRHUd.js → vue-ui-quick-chart-RoCE-7bx.js} +9 -9
- package/dist/{vue-ui-radar-CUFZHgr3.js → vue-ui-radar-DsJu_WF9.js} +12 -12
- package/dist/{vue-ui-radar-Ds39hdq4.cjs → vue-ui-radar-k50yck9x.cjs} +1 -1
- package/dist/{vue-ui-rating-D1EUcFL0.js → vue-ui-rating-BiTJkogW.js} +2 -2
- package/dist/{vue-ui-rating-BfqOFA-n.cjs → vue-ui-rating-DqNYM80G.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CiULD7PK.cjs → vue-ui-relation-circle-B3g0MhAd.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D65EImKT.js → vue-ui-relation-circle-CXAwYlII.js} +7 -7
- package/dist/{vue-ui-rings-DtMD95_q.cjs → vue-ui-rings-BLb7r3Vs.cjs} +1 -1
- package/dist/{vue-ui-rings-9zTtxZif.js → vue-ui-rings-Oof8uK1q.js} +12 -12
- package/dist/{vue-ui-scatter-DsF27c6e.js → vue-ui-scatter-D2aNkZYy.js} +12 -12
- package/dist/{vue-ui-scatter-DXzppvmP.cjs → vue-ui-scatter-Dso8zcQ-.cjs} +1 -1
- package/dist/{vue-ui-skeleton-a_FvGOK6.cjs → vue-ui-skeleton-CG-VHaCK.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CrT5EE2W.js → vue-ui-skeleton-DxHXl65y.js} +3 -3
- package/dist/{vue-ui-smiley-CpC75CYj.cjs → vue-ui-smiley-B1s0Pz0I.cjs} +1 -1
- package/dist/{vue-ui-smiley-DK8TadZl.js → vue-ui-smiley-B8Oar29S.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCN37BvU.js → vue-ui-spark-trend-C28svcHz.js} +5 -5
- package/dist/{vue-ui-spark-trend-oZCQCarV.cjs → vue-ui-spark-trend-Ckz2Ct-0.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CoCEXvSI.cjs → vue-ui-sparkbar-s2eymivO.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CE8WVA2T.js → vue-ui-sparkbar-zR50kBP5.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DoZQ6ZYY.js → vue-ui-sparkgauge-BHykT4UY.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DRGJ2R72.cjs → vue-ui-sparkgauge-DVnrILJy.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-wzpO76Dd.cjs → vue-ui-sparkhistogram-CAjWW3AJ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bol-aQuY.js → vue-ui-sparkhistogram-DbO2SI38.js} +5 -5
- package/dist/{vue-ui-sparkline-BdBLfCAO.cjs → vue-ui-sparkline-C-RM0mDc.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C9FJaLay.js → vue-ui-sparkline-DZMLTb2s.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CQSP1urd.js → vue-ui-sparkstackbar-HA1vQs01.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DcGfGfpf.cjs → vue-ui-sparkstackbar-X7aKVG4D.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DZEOEvnN.cjs → vue-ui-stackbar-CGL_gUOb.cjs} +2 -2
- package/dist/{vue-ui-stackbar-CDFfxSCS.js → vue-ui-stackbar-CxnUlGuM.js} +15 -15
- package/dist/{vue-ui-strip-plot-cwg3sgfW.cjs → vue-ui-strip-plot-BdV8E2mU.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Mroaxrtl.js → vue-ui-strip-plot-D8rkli8L.js} +11 -11
- package/dist/{vue-ui-table-JunVPtv-.cjs → vue-ui-table-C91BPx4E.cjs} +1 -1
- package/dist/{vue-ui-table-DMGZN-3h.js → vue-ui-table-DElTWwyP.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B-K-sXUr.cjs → vue-ui-table-heatmap-B9BrmNF4.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Cvd3LF-p.js → vue-ui-table-heatmap-CE0NipCw.js} +4 -4
- package/dist/{vue-ui-table-sparkline-D6LrWje8.js → vue-ui-table-sparkline-BXTmILTU.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DZcJ1rQX.cjs → vue-ui-table-sparkline-CjRvXelB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BSMW00bJ.js → vue-ui-thermometer-C6i-p0hg.js} +7 -7
- package/dist/{vue-ui-thermometer-61KP0jn1.cjs → vue-ui-thermometer-CP1LDoqq.cjs} +1 -1
- package/dist/{vue-ui-timer-jeD5NmuN.cjs → vue-ui-timer-Cgfs3wKV.cjs} +1 -1
- package/dist/{vue-ui-timer-B2iP7RSf.js → vue-ui-timer-l3Wc-x8d.js} +5 -5
- package/dist/{vue-ui-tiremarks-D2kbp6KR.cjs → vue-ui-tiremarks-BmIfZyJk.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-C1WyRyfc.js → vue-ui-tiremarks-D_5DNlgH.js} +7 -7
- package/dist/vue-ui-treemap-BjIi-bzk.cjs +1 -0
- package/dist/{vue-ui-treemap-DyJ_Ath1.js → vue-ui-treemap-vRqafziK.js} +185 -185
- package/dist/{vue-ui-vertical-bar-C0cbPo6B.cjs → vue-ui-vertical-bar-0lou3eUl.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-yzivBWJt.js → vue-ui-vertical-bar-ZkFfYNVT.js} +12 -12
- package/dist/{vue-ui-waffle-BByWdS7G.js → vue-ui-waffle-B4sJZZwD.js} +12 -12
- package/dist/{vue-ui-waffle-CF3e6ft5.cjs → vue-ui-waffle-BPVMcyHO.cjs} +1 -1
- package/dist/{vue-ui-wheel-iDX0u5LU.js → vue-ui-wheel-BVVPh7ke.js} +7 -7
- package/dist/{vue-ui-wheel-D7R1yr52.cjs → vue-ui-wheel-DWfsxrSb.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CynGL0Rl.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BPQFUEFg.js → vue-ui-word-cloud-D4297p4B.js} +13 -13
- package/dist/vue-ui-xy-CJ_nzjCC.cjs +3 -0
- package/dist/{vue-ui-xy-DmwPJ7Bc.js → vue-ui-xy-KwmX3h7W.js} +18 -18
- package/dist/{vue-ui-xy-canvas-aZQ9FHGI.cjs → vue-ui-xy-canvas-BYoUyBzb.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CmXVo7kC.js → vue-ui-xy-canvas-B_ZxmLAx.js} +16 -16
- package/package.json +2 -3
- package/dist/DataTable-Bm_s0nuy.cjs +0 -1
- package/dist/PackageVersion-t17AmNwO.cjs +0 -1
- package/dist/PenAndPaper-aD8jM7bo.cjs +0 -1
- package/dist/Slicer-B8Egk1-K.cjs +0 -1
- package/dist/img-BIeSHu0f.js +0 -15
- package/dist/img-D6uvziU0.cjs +0 -1
- package/dist/index-BprEQiKM.cjs +0 -9
- package/dist/pdf-BpXLKlRx.cjs +0 -1
- package/dist/pdf-H8Iw_Wax.js +0 -44
- package/dist/usePrinter-CAGQW2cC.cjs +0 -1
- package/dist/vue-data-ui-Banpw0iL.cjs +0 -9
- package/dist/vue-ui-annotator-Ye4UmfpY.cjs +0 -371
- package/dist/vue-ui-cursor-DMCSD6tW.cjs +0 -1
- package/dist/vue-ui-dashboard-Cewv6xvc.cjs +0 -1
- package/dist/vue-ui-molecule-fuZ8vxv7.cjs +0 -1
- package/dist/vue-ui-screenshot-C8TpXNBS.cjs +0 -3
- package/dist/vue-ui-screenshot-CQHpwksn.js +0 -161
- package/dist/vue-ui-treemap-BxbeEbWT.cjs +0 -1
- package/dist/vue-ui-word-cloud-CSnrXzqi.cjs +0 -1
- package/dist/vue-ui-xy-uJqJ5M1Y.cjs +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as h, ref as b, watch as Z, onMounted as ce, createElementBlock as c, openBlock as s, unref as r, normalizeStyle as G, normalizeClass as L, createBlock as F, createCommentVNode as d, createSlots as ve, withCtx as x, renderSlot as y, normalizeProps as z, guardReactiveProps as S, createVNode as he, Fragment as ee, renderList as te, toDisplayString as de } from "vue";
|
|
2
|
-
import { u as ae } from "./useNestedProp-
|
|
3
|
-
import { u as fe, c as ge, a as ye, v as pe, o as me, e as ke, w as oe, X as be, i as _e, f as Ce } from "./index-
|
|
4
|
-
import { _ as $e } from "./Title-
|
|
5
|
-
import { u as we, U as Pe } from "./usePrinter-
|
|
6
|
-
import xe from "./vue-ui-skeleton-
|
|
7
|
-
import { _ as Oe } from "./PackageVersion-
|
|
8
|
-
import { P as Ae } from "./PenAndPaper-
|
|
2
|
+
import { u as ae } from "./useNestedProp-K8B9GMrW.js";
|
|
3
|
+
import { u as fe, c as ge, a as ye, v as pe, o as me, e as ke, w as oe, X as be, i as _e, f as Ce } from "./index-BkzHk-mH.js";
|
|
4
|
+
import { _ as $e } from "./Title-B_6aT-6J.js";
|
|
5
|
+
import { u as we, U as Pe } from "./usePrinter-zF7SO-jf.js";
|
|
6
|
+
import xe from "./vue-ui-skeleton-DxHXl65y.js";
|
|
7
|
+
import { _ as Oe } from "./PackageVersion-BvgxXhNs.js";
|
|
8
|
+
import { P as Ae } from "./PenAndPaper-Ck-AwE4Q.js";
|
|
9
9
|
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Fe } from "./useChartAccessibility-BWojgys7.js";
|
|
11
11
|
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-CSxlyqJ7.cjs"),Me=require("./Title-cUV-IKQY.cjs"),Se=require("./usePrinter-BYER6sQ7.cjs"),He=require("./Tooltip-WSVLbzMX.cjs"),Ue=require("./Legend-DTO9ZsCn.cjs"),We=require("./vue-ui-skeleton-CG-VHaCK.cjs"),Ge=require("./DataTable-mQHJFe7I.cjs"),je=require("./vue-ui-accordion-PlYDvxUG.cjs"),Be=require("./useResponsive-DQmBAoBf.cjs"),Ne=require("./useNestedProp-BMWO2CO2.cjs"),Xe=require("./PackageVersion-Bjsb4wZp.cjs"),Ye=require("./PenAndPaper-D7jbmI-E.cjs"),Ke=require("./useUserOptionState-BgepsfED.cjs"),Ze=require("./useChartAccessibility-Cm7nkzTG.cjs"),Je=require("./BaseIcon-BOQVvTGG.cjs"),Qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function Oe(r,c){const i=r.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${r} is an empty array`);{let d=1/0,s=-1/0,v=0;for(let f=0;f<i;f+=1){const m=r[f].normalizedValue;m<d&&(d=m),m>s&&(s=m),v+=m}return Math.max(c**2*s/v**2,v**2/(c**2*d))}}function _e(r){const{xOffset:c,yOffset:i,width:d,height:s}=r;return{x0:c,y0:i,x1:c+d,y1:i+s}}function et(r,c,i){if(r.length===0)return!0;{const d=r.concat(c),s=Oe(r,i),v=Oe(d,i);return s>=v}}function tt(r){const c=[],i=r.length;for(let d=0;d<i;d+=1){const s=r[d],v=s.length;for(let h=0;h<v;h+=1)c.push(s[h])}return c}function ot(r,c){const i={...c,children:r};return ze(i)}function lt(r){return(r.x1-r.x0)*(r.y1-r.y0)}function Pe(r,c){const{width:i,height:d,xOffset:s,yOffset:v}=Q(c),h=r.length,f=r.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),m=f/d,x=f/i;let C=s,$=v;const b=[];if(i>=d){for(let y=0;y<h;y+=1){const g=r[y],k=$+g.normalizedValue/m,O={x0:C,y0:$,x1:C+m,y1:k},T=Object.assign({},g,O);$=k,b.push(T)}return b}else{for(let y=0;y<h;y+=1){const g=r[y],k=C+g.normalizedValue/x,O={x0:C,y0:$,x1:k,y1:$+x},T=Object.assign({},g,O);C=k,b.push(T)}return b}}function at(r){const c=Q(r),i=c.width,d=c.height;return Math.min(i,d)}function nt(r,c){const i=r.length,d=r.map(m=>m.value??0).reduce((m,x)=>m+x,0),s=c/d,v=[];let h,f;for(let m=0;m<i;m+=1)f=r[m],h=Object.assign({},f,{normalizedValue:f.value*(s||0)}),v.push(h);return v}function Q(r){const{x0:c,y0:i,x1:d,y1:s}=r;return{xOffset:c,yOffset:i,width:d-c,height:s-i}}function rt(r,c,i,d){let s=r,v=c,h=i,f=d;for(;;){const m=s.length;if(m===0){const b=Pe(v,h);return f.concat(b)}const x=at(h),C=s[0],$=s.slice(1,m);if(et(v,C,x)){const b=v.concat(C);s=$,v=b,h=h,f=f}else{const b=v.length;let y=0;for(let T=0;T<b;T+=1)y+=v[T].normalizedValue;const g=ut(h,y),k=Pe(v,h),O=f.concat(k);s=s,v=[],h=g,f=O}}}function ze(r){if(typeof r.children>"u"||!r.children.length)return[r];{const c=nt(r.children,lt(r)),i=rt(c,[],r,[]),d=i.length,s=[];for(let h=0;h<d;h+=1)s.push(ze(i[h]));return tt(s)}}function ut(r,c){const{width:i,height:d,xOffset:s,yOffset:v}=Q(r);if(i>=d){const h=c/d,f=i-h,m={xOffset:s+h,yOffset:v,width:f,height:d};return _e(m)}else{const h=c/i,f=d-h,m={xOffset:s,yOffset:v+h,width:i,height:f};return _e(m)}}const st=["id"],it={key:4,class:"vue-ui-treemap-breadcrumbs","data-dom-to-png-ignore":""},ct=["tabindex","onClick","onKeydown","data-last-crumb","onMouseenter","onFocus"],dt={class:"vue-ui-treemap-crumb-unit"},vt={class:"vue-ui-treemap-crumb-unit-label"},ht={key:0,style:{width:"24px",display:"flex","align-items":"center"}},pt={key:0,class:"vue-ui-treemap-crumb-unit-arrow"},ft=["xmlns","viewBox"],mt={key:0},gt=["id"],yt=["stop-color"],bt=["stop-color"],kt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],Ct=["x","y","height","width"],wt={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},xt={key:6,class:"vue-data-ui-watermark"},$t=["onClick"],Tt={key:0},St={key:1},Bt=["innerHTML"],Nt={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(r,{expose:c,emit:i}){const{vue_ui_treemap:d}=u.useConfig(),s=r,v=i,h=e.useSlots();e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const f=e.computed(()=>!!s.dataset&&s.dataset.length),m=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),x=e.ref(u.createUid()),C=e.ref(!1),$=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),T=e.ref(null),ee=e.ref(null),te=e.ref(null),oe=e.ref(0),le=e.ref(0),ae=e.ref(0),o=e.computed({get:()=>se(),set:t=>t}),{userOptionsVisible:K,setUserOptionsVisibility:ne,keepUserOptionState:re}=Ke.useUserOptionState({config:o.value}),{svgRef:ue}=Ze.useChartAccessibility({config:o.value.style.chart.title});function se(){const t=Ne.useNestedProp({userConfig:s.config,defaultConfig:d});return t.theme?{...Ne.useNestedProp({userConfig:u.themes.vue_ui_treemap[t.theme]||s.config,defaultConfig:t}),customPalette:u.themePalettes[t.theme]||u.palette}:t}e.watch(()=>s.config,t=>{o.value=se(),K.value=!o.value.userOptions.showOnChartHover,oe.value+=1,le.value+=1,ae.value+=1,S.value.showTable=o.value.table.show,S.value.showTooltip=o.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:ie,isImaging:ce,generatePdf:de,generateImage:ve}=Se.usePrinter({elementId:`treemap_${x.value}`,fileName:o.value.style.chart.title.text||"vue-ui-treemap",options:o.value.userOptions.print}),Ve=e.computed(()=>o.value.userOptions.show&&!o.value.style.chart.title.text),H=e.computed(()=>u.convertCustomPalette(o.value.customPalette)),S=e.ref({showTable:o.value.table.show,showTooltip:o.value.style.chart.tooltip.show}),_=e.ref({height:o.value.style.chart.height,width:o.value.style.chart.width}),F=e.computed(()=>({bottom:_.value.height-o.value.style.chart.padding.bottom,height:_.value.height-o.value.style.chart.padding.top-o.value.style.chart.padding.bottom,left:o.value.style.chart.padding.left,right:_.value.width-o.value.style.chart.padding.right,top:o.value.style.chart.padding.top,vbHeight:_.value.height,vbWidth:_.value.width,width:_.value.width-o.value.style.chart.padding.left-o.value.style.chart.padding.right}));function he(t){t.forEach((a,l)=>{a.id=u.createUid(),a.color=u.convertColorToHex(a.color)||H.value[l]||u.palette[l]||u.palette[l%u.palette.length],a.children&&(a.children.forEach(n=>{n.parentId=a.id,n.color=a.color}),he(a.children))})}const P=e.ref(s.dataset),U=e.ref(null);e.onMounted(()=>{Ee()});function Ee(){if(u.objectIsEmpty(s.dataset)&&u.error({componentName:"VueUiTreemap",type:"dataset"}),he(P.value),o.value.responsive){const t=Be.throttle(()=>{const{width:a,height:l}=Be.useResponsive({chart:k.value,title:o.value.style.chart.title.text?O.value:null,legend:o.value.style.chart.legend.show?T.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{_.value.width=a,_.value.height=l})});U.value=new ResizeObserver(t),U.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{U.value&&U.value.disconnect()});const A=e.ref(P.value),q=e.computed(()=>A.value.map((t,a)=>({...t,color:u.convertColorToHex(t.color)||H.value[a]||u.palette[a]||u.palette[a%u.palette.length]})).filter(t=>!g.value.includes(t.id))),L=e.computed(()=>P.value.filter(t=>!g.value.includes(t.id)).map(t=>t.value||0).reduce((t,a)=>t+a,0)),pe=e.computed({get(){let t=[...q.value];return o.value.style.chart.layout.sorted&&(t=[...q.value].sort((a,l)=>l.value-a.value)),t.map(a=>({...a}))},set(t){return t}});function fe(t,a){return t.value/a}function Fe(t,a,l){const n=o.value.style.chart.layout.rects.colorRatio-fe(a,l);return u.lightenHexColor(t,n<0?0:n)}function me(t,a,l,n){return t.map((p,E)=>{const Y=Fe(u.convertColorToHex(a)||H.value[E]||u.palette[E]||u.palette[E%u.palette.length],p,n),qe=fe(p,n);return{...p,color:Y,proportion:qe,parentName:l,children:p.children?me(p.children,Y,p.name,n):void 0}})}const M=e.computed(()=>ot(pe.value.map((t,a)=>{const l=t.children?t.children.reduce((n,p)=>n+p.value,0):t.value;return{value:t.value,id:t.id,children:t.children?me(t.children.sort((n,p)=>p.value-n.value),t.color,t.name,l):void 0,color:t.color,name:t.name}}),{x0:F.value.left*2,y0:F.value.top,x1:F.value.width,y1:F.value.height}));function ge({y0:t,y1:a}){return a-t<=0?1e-4:a-t}function ye({x0:t,x1:a}){return a-t<=0?1e-4:a-t}function I(t){const a=o.value.style.chart.layout.labels.fontSize*(t.proportion*2>1?1:t.proportion*2);return a<o.value.style.chart.layout.labels.minFontSize?o.value.style.chart.layout.labels.minFontSize:a}function Ie(t){b.value=t,y.value+=1}const D=e.computed(()=>({startX:0,startY:0,width:F.value.vbWidth,height:F.value.vbHeight}));function R(t,a=P.value){for(const l of a){if(l.id===t)return l;if(l.children){const n=R(t,l.children);if(n)return n}}return null}const w=e.ref([]),z=e.computed(()=>w.value.length>0);function W(t){var l;if(!t){A.value=P.value.slice(),v("selectDatapoint",void 0),w.value=[];return}const a=R(t.id);if(a&&((l=a.children)!=null&&l.length))w.value.push(a.id),A.value=a.children.slice(),v("selectDatapoint",t);else if(t.parentId){w.value.push(t.parentId);const n=R(t.parentId);A.value=n.children.slice(),v("selectDatapoint",t)}else if(w.value.length>0){w.value.pop();const n=w.value[w.value.length-1];if(n){const p=R(n);A.value=p.children.slice()}else A.value=P.value.slice(),w.value=[],v("selectDatapoint",void 0)}}function Re(t){var l;const a=R(t.id);return!!((l=a==null?void 0:a.children)!=null&&l.length||t.parentId)}const V=e.computed(()=>{const t=[{id:null,label:"All"}];if(w.value.length>0){let a=R(w.value[w.value.length-1]);const l=[];for(;a;)l.unshift(a),a=a.parentId?R(a.parentId):null;for(const n of l)t.push({id:n.id,label:n.name,node:n})}return t}),B=e.ref(null),be=e.computed(()=>P.value.map((t,a)=>({...t,color:u.convertColorToHex(t.color)||H.value[a]||u.palette[a]||u.palette[a%u.palette.length],shape:"square"})).sort((t,a)=>a.value-t.value).map((t,a)=>({...t,proportion:t.value/P.value.map(l=>l.value).reduce((l,n)=>l+n,0),opacity:g.value.includes(t.id)?.5:1}))),Ae=e.computed(()=>({cy:"treemap-div-legend",backgroundColor:o.value.style.chart.legend.backgroundColor,color:o.value.style.chart.legend.color,fontSize:o.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:o.value.style.chart.legend.bold?"bold":""}));function ke(t){z.value=!1,B.value=null,g.value.includes(t.id)?g.value=g.value.filter(a=>a!==t.id):g.value.length<s.dataset.length-1&&g.value.push(t.id),v("selectLegend",pe.value)}const Z=e.ref(null);function Le({datapoint:t,seriesIndex:a}){B.value=t,Z.value={datapoint:t,seriesIndex:a,config:o.value,series:q.value};const l=o.value.style.chart.tooltip.customFormat;if(u.isFunction(l)&&u.functionReturnsString(()=>l({seriesIndex:a,datapoint:t,series:q.value,config:o.value})))$.value=l({seriesIndex:a,datapoint:t,series:q.value,config:o.value});else{let n="";n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${o.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.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="${t.color}"/></svg>`,n+=`<b>${u.applyDataLabel(o.value.style.chart.layout.labels.formatter,t.value,u.dataLabel({p:o.value.style.chart.layout.labels.prefix,v:t.value,s:o.value.style.chart.layout.labels.suffix,r:o.value.style.chart.tooltip.roundingValue}),{datapoint:t,seriesIndex:a})}</b>`,$.value=`<div>${n}</div>`}C.value=!0}const N=e.computed(()=>{const t=M.value.map(l=>({name:l.name,color:l.color})),a=M.value.map(l=>l.value);return{head:t,body:a}});function Ce(){e.nextTick(()=>{const t=N.value.head.map((n,p)=>[[n.name],[N.value.body[p]],[isNaN(N.value.body[p]/L.value)?"-":N.value.body[p]/L.value*100]]),a=[[o.value.style.chart.title.text],[o.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(t),l=u.createCsvContent(a);u.downloadCsv({csvContent:l,title:o.value.style.chart.title.text||"vue-ui-treemap"})})}const G=e.computed(()=>{const t=[o.value.table.columnNames.series,o.value.table.columnNames.value,o.value.table.columnNames.percentage],a=N.value.head.map((p,E)=>{const Y=u.applyDataLabel(o.value.style.chart.layout.labels.formatter,N.value.body[E],u.dataLabel({p:o.value.style.chart.layout.labels.prefix,v:N.value.body[E],s:o.value.style.chart.layout.labels.suffix,r:o.value.table.td.roundingValue}));return[{color:p.color,name:p.name,shape:"square"},Y,isNaN(N.value.body[E]/L.value)?"-":u.dataLabel({v:N.value.body[E]/L.value*100,s:"%",r:o.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:o.value.table.th.backgroundColor,color:o.value.table.th.color,outline:o.value.table.th.outline},td:{backgroundColor:o.value.table.td.backgroundColor,color:o.value.table.td.color,outline:o.value.table.td.outline},breakpoint:o.value.table.responsiveBreakpoint};return{colNames:[o.value.table.columnNames.series,o.value.table.columnNames.value],head:t,body:a,config:l}});function De(){return M.value}function we(){S.value.showTable=!S.value.showTable}function xe(){S.value.showTooltip=!S.value.showTooltip}const j=e.ref(!1);function J(){j.value=!j.value}const X=e.ref(null);function $e(t){X.value=t}function Te(){X.value=null}return c({getData:De,generateCsv:Ce,generateImage:ve,generatePdf:de,toggleTable:we,toggleTooltip:xe,toggleAnnotator:J}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${o.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${o.value.style.fontFamily};width:100%; ${o.value.responsive?"height: 100%;":""} text-align:center;background:${o.value.style.chart.backgroundColor}`),id:`treemap_${x.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(ne)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(ne)(!1))},[o.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ye.PenAndPaper,{key:0,svgRef:e.unref(ue),backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color,active:j.value,onClose:J},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),o.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:O,style:e.normalizeStyle(`width:100%;background:${o.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${oe.value}`,config:{title:{cy:"treemap-div-title",...o.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...o.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),o.value.userOptions.show&&f.value&&(e.unref(re)||e.unref(K))?(e.openBlock(),e.createBlock(Se.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color,isPrinting:e.unref(ie),isImaging:e.unref(ce),uid:x.value,hasTooltip:o.value.userOptions.buttons.tooltip&&o.value.style.chart.tooltip.show,hasPdf:o.value.userOptions.buttons.pdf,hasXls:o.value.userOptions.buttons.csv,hasImg:o.value.userOptions.buttons.img,hasTable:o.value.userOptions.buttons.table,hasFullscreen:o.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:S.value.showTooltip,titles:{...o.value.userOptions.buttonTitles},chartElement:k.value,position:o.value.userOptions.position,hasAnnotator:o.value.userOptions.buttons.annotator,isAnnotation:j.value,onToggleFullscreen:Ie,onGeneratePdf:e.unref(de),onGenerateCsv:Ce,onGenerateImage:e.unref(ve),onToggleTable:we,onToggleTooltip:xe,onToggleAnnotator:J,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(K)?"visible":"hidden":"visible"})},e.createSlots({_:2},[t.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(t.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,t.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,t.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,t.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),V.value.length>1?(e.openBlock(),e.createElementBlock("nav",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(l,n)=>(e.openBlock(),e.createElementBlock("span",{role:"button",tabindex:n<V.value.length-1?0:void 0,key:l.id||"root",onClick:p=>n===V.value.length-1?()=>{}:W(l.node),onKeydown:[e.withKeys(e.withModifiers(p=>n===V.value.length-1?void 0:W(l.node),["prevent"]),["enter"]),e.withKeys(e.withModifiers(p=>n===V.value.length-1?void 0:W(l.node),["prevent"]),["space"])],class:"vue-ui-treemap-crumb","data-last-crumb":n===V.value.length-1,style:e.normalizeStyle({color:o.value.style.chart.color}),onMouseenter:p=>$e(n),onMouseleave:Te,onFocus:p=>$e(n),onBlur:Te},[e.createElementVNode("span",dt,[e.createElementVNode("span",vt,[e.renderSlot(t.$slots,"breadcrumb-label",e.mergeProps({ref_for:!0},{crumb:l,isRoot:n===0,isFocus:X.value===n}),()=>[n===0?(e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(Je.default,{name:X.value===0?"homeFilled":"home",stroke:o.value.style.chart.color},null,8,["name","stroke"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.label),1)],64))],!0)]),n<V.value.length-1?(e.openBlock(),e.createElementBlock("span",pt,[e.renderSlot(t.$slots,"breadcrumb-arrow",{},()=>[a[5]||(a[5]=e.createTextVNode(" › "))],!0)])):e.createCommentVNode("",!0)])],44,ct))),128))])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:5,ref_key:"svgRef",ref:ue,xmlns:e.unref(u.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!z.value,"vue-data-ui-zoom-minus":z.value}),viewBox:`${D.value.startX} ${D.value.startY} ${D.value.width<=0?10:D.value.width} ${D.value.height<=0?10:D.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${o.value.style.chart.color}`)},[e.createVNode(Xe._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[o.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",mt,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,yt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(u.lightenHexColor)(l.color,o.value.style.chart.layout.rects.gradient.intensity/100)},null,8,bt)],8,gt)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(M.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:ge(l),width:ye(l),fill:m.value?l.color:o.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:o.value.style.chart.layout.rects.borderRadius,stroke:B.value&&B.value.id===l.id?o.value.style.chart.layout.rects.selected.stroke:o.value.style.chart.layout.rects.stroke,"stroke-width":B.value&&B.value.id===l.id?o.value.style.chart.layout.rects.selected.strokeWidth:o.value.style.chart.layout.rects.strokeWidth,onClick:e.withModifiers(p=>W(l),["stop"]),onMouseenter:()=>Le({datapoint:l,seriesIndex:n}),onMouseleave:a[0]||(a[0]=p=>{B.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${B.value?B.value.id===l.id?1:o.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:e.normalizeClass(["vue-ui-treemap-rect",Re(l)?"vue-data-ui-zoom-plus":z.value?"vue-data-ui-zoom-minus":""])},null,46,kt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:ge(l),width:ye(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",wt,[o.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>o.value.style.chart.layout.labels.hideUnderProportion||z.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${I(l)/1.5}px);text-align:left;line-height:${I(l)<14?14:I(l)}px;padding:${I(l)/3}px; color:${e.unref(u.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${I(l)}px;`)},e.toDisplayString(l.name),5),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${I(l)}px;`)},e.toDisplayString(e.unref(u.applyDataLabel)(o.value.style.chart.layout.labels.formatter,l.value,e.unref(u.dataLabel)({p:o.value.style.chart.layout.labels.prefix,v:l.value,s:o.value.style.chart.layout.labels.suffix,r:o.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>o.value.style.chart.layout.labels.hideUnderProportion||z.value,fontSize:I(l),isZoom:z.value,textColor:e.unref(u.adaptColorToBackground)(l.color)}),void 0,!0)])],8,Ct))]))),256)),e.renderSlot(t.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:F.value,isZoom:z.value,rect:B.value,config:o.value})),void 0,!0)],14,ft)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ie)||e.unref(ce)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:7,config:{type:"treemap",style:{backgroundColor:o.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:T},[o.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ue.Legend,{key:`legend_${ae.value}`,legendSet:be.value,config:Ae.value,id:`treemap_legend_${x.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>ke(l))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{onClick:p=>ke(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(u.applyDataLabel)(o.value.style.chart.layout.labels.formatter,l.value,e.unref(u.dataLabel)({p:o.value.style.chart.layout.labels.prefix,v:l.value,s:o.value.style.chart.layout.labels.suffix,r:o.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",St," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Tt," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(o.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,$t)]),_:1},8,["legendSet","config","id"])):e.renderSlot(t.$slots,"legend",{key:1,legend:be.value},void 0,!0)],512),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(He._sfc_main,{show:S.value.showTooltip&&C.value,backgroundColor:o.value.style.chart.tooltip.backgroundColor,color:o.value.style.chart.tooltip.color,fontSize:o.value.style.chart.tooltip.fontSize,borderRadius:o.value.style.chart.tooltip.borderRadius,borderColor:o.value.style.chart.tooltip.borderColor,borderWidth:o.value.style.chart.tooltip.borderWidth,backgroundOpacity:o.value.style.chart.tooltip.backgroundOpacity,position:o.value.style.chart.tooltip.position,offsetY:o.value.style.chart.tooltip.offsetY,parent:k.value,content:$.value,isFullscreen:b.value,isCustom:e.unref(u.isFunction)(o.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Z.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Z.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),f.value?(e.openBlock(),e.createBlock(je.default,{key:9,hideDetails:"",config:{open:S.value.showTable,maxHeight:1e4,body:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color},head:{backgroundColor:o.value.style.chart.backgroundColor,color:o.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ge.DataTable,{key:`table_${le.value}`,colNames:G.value.colNames,head:G.value.head,body:G.value.body,config:G.value.config,title:`${o.value.style.chart.title.text}${o.value.style.chart.title.subtitle.text?` : ${o.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>S.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Bt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,st))}},Ot=Qe._export_sfc(Nt,[["__scopeId","data-v-c7aece99"]]);exports.default=Ot;
|