vue-data-ui 2.4.89 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/{Arrow-CbP9kLxJ.cjs → Arrow-CDKNBZrn.cjs} +1 -1
- package/dist/{Arrow-CuAfInZx.js → Arrow-DO1Kr0tq.js} +1 -1
- package/dist/{BaseIcon-C8eZuK3O.cjs → BaseIcon-BKYwMJ4Y.cjs} +1 -1
- package/dist/{BaseIcon-BpNWrQFd.js → BaseIcon-DVY6e_YL.js} +4 -3
- package/dist/{DataTable-CBJXWv2y.js → DataTable-D4_TjSBJ.js} +2 -2
- package/dist/{DataTable-D-lEfCvI.cjs → DataTable-ZowHAjXC.cjs} +1 -1
- package/dist/{Legend-BHqhIxpn.cjs → Legend-CcoLuZn0.cjs} +1 -1
- package/dist/{Legend-BSpbp1BZ.js → Legend-K7NRkzGf.js} +2 -2
- package/dist/PackageVersion-Cun_qdX7.cjs +1 -0
- package/dist/{PackageVersion-DtBpSOiQ.js → PackageVersion-DKr8jVlI.js} +1 -1
- package/dist/{PenAndPaper-B2XkoPXE.js → PenAndPaper-CurhQVkh.js} +3 -3
- package/dist/{PenAndPaper-JJPSlM7l.cjs → PenAndPaper-u46MyY7W.cjs} +1 -1
- package/dist/{Shape-Do_AzV1G.cjs → Shape-B6dlN2je.cjs} +1 -1
- package/dist/{Shape-BOPYNx7w.js → Shape-C4LyHNQ3.js} +1 -1
- package/dist/{Slicer-Ztz1Ij0w.cjs → Slicer-BIzpsKb9.cjs} +1 -1
- package/dist/{Slicer-ChE3bif9.js → Slicer-CP2dQhd5.js} +2 -2
- package/dist/{Title-ccoiJ0mq.js → Title-C4aoNP1T.js} +1 -1
- package/dist/{Title-0PbYWvbk.cjs → Title-bDp_4dQV.cjs} +1 -1
- package/dist/{Tooltip-DvT_JgqK.js → Tooltip-CG6ZX21C.js} +1 -1
- package/dist/{Tooltip-yfpr967Z.cjs → Tooltip-fEuHWstj.cjs} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-CHCA909R.cjs +9 -0
- package/dist/{index-CbMgQMOZ.js → index-DAAFXQJj.js} +709 -542
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1140 -384
- package/dist/types/vue-data-ui.d.ts +1140 -384
- package/dist/{useNestedProp-BbHX6tgE.cjs → useNestedProp--1nKK7i0.cjs} +1 -1
- package/dist/{useNestedProp-vYrmxXEi.js → useNestedProp-DMtJzMiX.js} +1 -1
- package/dist/{usePrinter-sMoxYV4s.js → usePrinter-BvlefWMW.js} +1 -1
- package/dist/{usePrinter-CCvLCahd.cjs → usePrinter-xicwiw8r.cjs} +1 -1
- package/dist/{vue-data-ui-cjdjZcIN.js → vue-data-ui-59LZYiyy.js} +68 -66
- package/dist/vue-data-ui-DfZfDAuq.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +59 -58
- package/dist/{vue-ui-3d-bar-BCUFEN3E.js → vue-ui-3d-bar-Bm56SoLy.js} +41 -41
- package/dist/{vue-ui-3d-bar-BIxPk-3O.cjs → vue-ui-3d-bar-CZlGwiDq.cjs} +11 -11
- package/dist/{vue-ui-accordion-D0YEkQP_.cjs → vue-ui-accordion-B4PyxVUm.cjs} +1 -1
- package/dist/{vue-ui-accordion-DXPXhPPW.js → vue-ui-accordion-B67N9Oo8.js} +3 -3
- package/dist/vue-ui-age-pyramid-D9DN4SYa.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Bu2gLwi_.js → vue-ui-age-pyramid-DCMUbrYc.js} +12 -12
- package/dist/{vue-ui-annotator-np4TLsbB.cjs → vue-ui-annotator-CNrWYokB.cjs} +1 -1
- package/dist/{vue-ui-annotator-rRlHgjug.js → vue-ui-annotator-MuRFw529.js} +1 -1
- package/dist/{vue-ui-bullet-BG4ZoJWg.js → vue-ui-bullet-Bojb2p0l.js} +42 -42
- package/dist/vue-ui-bullet-DJjM56tB.cjs +34 -0
- package/dist/{vue-ui-candlestick-zm-vNhJF.cjs → vue-ui-candlestick-B3J5_Q_K.cjs} +2 -2
- package/dist/{vue-ui-candlestick-Bs_FB1xf.js → vue-ui-candlestick-DXMPVZ0k.js} +13 -13
- package/dist/{vue-ui-carousel-table-D73qjY94.js → vue-ui-carousel-table-CQAWsXet.js} +26 -26
- package/dist/vue-ui-carousel-table-WNkO6kVE.cjs +1 -0
- package/dist/{vue-ui-chestnut-BKka1suh.js → vue-ui-chestnut-CChxV7D2.js} +11 -11
- package/dist/{vue-ui-chestnut-BZ7WKn-P.cjs → vue-ui-chestnut-DUHyQSIc.cjs} +2 -2
- package/dist/vue-ui-circle-pack-Bo9NTyE5.cjs +1 -0
- package/dist/vue-ui-circle-pack-feW9MRNc.js +639 -0
- package/dist/{vue-ui-cursor-CKQ7lIEU.js → vue-ui-cursor-CTNCoeO1.js} +2 -2
- package/dist/{vue-ui-cursor-BvDKJ-EE.cjs → vue-ui-cursor-Y79oTXbN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CLDULZmZ.js → vue-ui-dashboard-CTk7cXk3.js} +2 -2
- package/dist/{vue-ui-dashboard-CU18bFKg.cjs → vue-ui-dashboard-ht0wjO32.cjs} +1 -1
- package/dist/{vue-ui-digits-_Q3BPnPQ.js → vue-ui-digits-CRfqQd-4.js} +2 -2
- package/dist/{vue-ui-digits-ZsDxljaT.cjs → vue-ui-digits-CSzsY3pv.cjs} +1 -1
- package/dist/{vue-ui-donut-uSvi7mes.js → vue-ui-donut-D6U1P8MA.js} +15 -15
- package/dist/vue-ui-donut-DhQt8Zro.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DeaRL3Qp.js → vue-ui-donut-evolution-BSk3uqC8.js} +42 -42
- package/dist/vue-ui-donut-evolution-ZOfJ13fG.cjs +1 -0
- package/dist/vue-ui-dumbbell-Cc2vQuKa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DxOC8F_T.js → vue-ui-dumbbell-DwNJ0t9t.js} +12 -12
- package/dist/vue-ui-flow-BbKP10ov.cjs +1 -0
- package/dist/{vue-ui-flow-Cli1Nia2.js → vue-ui-flow-CQisc_LK.js} +11 -11
- package/dist/{vue-ui-funnel-DUSetrwZ.js → vue-ui-funnel-DA82mX-l.js} +12 -12
- package/dist/vue-ui-funnel-DybxnhPr.cjs +1 -0
- package/dist/vue-ui-galaxy-C-hNndez.cjs +1 -0
- package/dist/{vue-ui-galaxy-B6chdxw9.js → vue-ui-galaxy-Co-39JiJ.js} +29 -29
- package/dist/{vue-ui-gauge-BWsStiRt.js → vue-ui-gauge-TvTF5LS6.js} +46 -46
- package/dist/vue-ui-gauge-gWdl5oo1.cjs +1 -0
- package/dist/{vue-ui-gizmo-CIZXKQaP.cjs → vue-ui-gizmo-BQoNUgtQ.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BwPZP3S1.js → vue-ui-gizmo-KnX0YMoX.js} +3 -3
- package/dist/vue-ui-heatmap-B5xnkUqI.cjs +1 -0
- package/dist/{vue-ui-heatmap-DPO0-7Kr.js → vue-ui-heatmap-BYhGn41t.js} +32 -32
- package/dist/{vue-ui-history-plot-Bn1Pt_Ti.js → vue-ui-history-plot-8n3FPjHp.js} +33 -33
- package/dist/vue-ui-history-plot-BFZOwwn-.cjs +1 -0
- package/dist/{vue-ui-kpi-DyI2-86Q.cjs → vue-ui-kpi-BRrkDdp5.cjs} +1 -1
- package/dist/{vue-ui-kpi-BbeBozJ_.js → vue-ui-kpi-r9o6PDR7.js} +3 -3
- package/dist/{vue-ui-mini-loader-DkkBYJla.cjs → vue-ui-mini-loader-BXBmMZE5.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BbXkCdaA.js → vue-ui-mini-loader-z5Tjy9_F.js} +2 -2
- package/dist/vue-ui-molecule-BS-uVTx6.cjs +1 -0
- package/dist/{vue-ui-molecule-b4smncqZ.js → vue-ui-molecule-Hmix0fg_.js} +13 -13
- package/dist/vue-ui-mood-radar-D3bJvAUA.cjs +1 -0
- package/dist/{vue-ui-mood-radar-BdT3nuEz.js → vue-ui-mood-radar-cQQYzxOe.js} +13 -13
- package/dist/{vue-ui-nested-donuts-DttOstux.js → vue-ui-nested-donuts-BQ-orCsy.js} +14 -14
- package/dist/{vue-ui-nested-donuts-ko1-nRO2.cjs → vue-ui-nested-donuts-CJoByLIN.cjs} +2 -2
- package/dist/{vue-ui-onion-CFjFt2g0.cjs → vue-ui-onion-2gpWMiK3.cjs} +2 -2
- package/dist/{vue-ui-onion-TYSsqogk.js → vue-ui-onion-DMdgBAGm.js} +13 -13
- package/dist/{vue-ui-parallel-coordinate-plot-DzBoNAa1.cjs → vue-ui-parallel-coordinate-plot-BkksCptE.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CAqhUHot.js → vue-ui-parallel-coordinate-plot-CORjvdpu.js} +35 -35
- package/dist/{vue-ui-quadrant-BQH_Xifg.js → vue-ui-quadrant-C7z-xan4.js} +14 -14
- package/dist/vue-ui-quadrant-DwLVQDkC.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CULnpCgG.js → vue-ui-quick-chart-BNBYa1qm.js} +9 -9
- package/dist/{vue-ui-quick-chart-Bz-nNd-y.cjs → vue-ui-quick-chart-DQ_0L2k8.cjs} +1 -1
- package/dist/{vue-ui-radar-Cx-rxEMq.js → vue-ui-radar-BJalnvQ0.js} +14 -14
- package/dist/vue-ui-radar-DMug3I3r.cjs +1 -0
- package/dist/{vue-ui-rating-BKQNJZ0P.cjs → vue-ui-rating-CAtmkCip.cjs} +1 -1
- package/dist/{vue-ui-rating-F9PTlU7Q.js → vue-ui-rating-YrpteNHP.js} +2 -2
- package/dist/vue-ui-relation-circle-6WgpxOdi.cjs +1 -0
- package/dist/{vue-ui-relation-circle-DegxFhlA.js → vue-ui-relation-circle-CaX6ryF7.js} +37 -37
- package/dist/{vue-ui-rings-fJvO6eX_.js → vue-ui-rings-B94ER7yb.js} +36 -36
- package/dist/{vue-ui-rings-B18Wqo7x.cjs → vue-ui-rings-DwXSWAh9.cjs} +2 -2
- package/dist/{vue-ui-scatter-nVMhmeVK.js → vue-ui-scatter-R_o-56au.js} +14 -14
- package/dist/vue-ui-scatter-klHezU7g.cjs +1 -0
- package/dist/{vue-ui-screenshot-CL_BGDeM.cjs → vue-ui-screenshot-BJBVXs5F.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DsGxjAas.js → vue-ui-screenshot-CawOtRGf.js} +1 -1
- package/dist/{vue-ui-skeleton-odlG21I6.js → vue-ui-skeleton-BM3ut-zl.js} +457 -377
- package/dist/vue-ui-skeleton-DsMIGHB3.cjs +41 -0
- package/dist/{vue-ui-smiley-CcM-XG7o.js → vue-ui-smiley-DX5k4pRq.js} +2 -2
- package/dist/{vue-ui-smiley-DjCnF05n.cjs → vue-ui-smiley-bh_FuZmP.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DbfmJnyG.js → vue-ui-spark-trend-BSLfkSAJ.js} +5 -5
- package/dist/{vue-ui-spark-trend-B3wvoHdy.cjs → vue-ui-spark-trend-N88_MES6.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DkwgnqvW.js → vue-ui-sparkbar-CgV-sv7t.js} +4 -4
- package/dist/{vue-ui-sparkbar-Unem3qlf.cjs → vue-ui-sparkbar-NRuy_wAW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CFNCtwjD.js → vue-ui-sparkgauge-YOs41cOi.js} +4 -4
- package/dist/{vue-ui-sparkgauge-1oonX7Pt.cjs → vue-ui-sparkgauge-h9hOQBbL.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BDq3T-6n.js → vue-ui-sparkhistogram-BHVoP35U.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C2FOzWbO.cjs → vue-ui-sparkhistogram-BIoA2rZ8.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BXCPWLbx.cjs → vue-ui-sparkline-C3lqwFGV.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDGqFfbA.js → vue-ui-sparkline-nIfo0etd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Crr9O93o.cjs → vue-ui-sparkstackbar-CBBZJlfz.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BGDxXx1H.js → vue-ui-sparkstackbar-CMH38Bht.js} +5 -5
- package/dist/{vue-ui-stackbar-CXVJgWTO.js → vue-ui-stackbar-CBzYWzrX.js} +15 -15
- package/dist/{vue-ui-stackbar-YULKQ4Q2.cjs → vue-ui-stackbar-CwwOCVW2.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-D-_BcZGB.js → vue-ui-strip-plot-3UZVAou8.js} +13 -13
- package/dist/vue-ui-strip-plot-Dp2kJ7iQ.cjs +1 -0
- package/dist/{vue-ui-table-DCR-izqY.cjs → vue-ui-table-B3s1IcfE.cjs} +1 -1
- package/dist/{vue-ui-table-BKMfZhPB.js → vue-ui-table-CDmWHO-z.js} +1 -1
- package/dist/vue-ui-table-heatmap-BsZvR-Zs.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-BYnl_vUh.js → vue-ui-table-heatmap-CZD0-bMz.js} +8 -8
- package/dist/vue-ui-table-sparkline-BqGa1gwS.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-C1Xx-B2E.js → vue-ui-table-sparkline-nCnQKAqx.js} +8 -8
- package/dist/{vue-ui-thermometer-Ba5L3NM-.js → vue-ui-thermometer-Be7yQtd0.js} +12 -12
- package/dist/vue-ui-thermometer-dk2T8fWc.cjs +1 -0
- package/dist/{vue-ui-timer-CrJJnZKN.js → vue-ui-timer-B7jYXTxP.js} +5 -5
- package/dist/{vue-ui-timer-BLM1ZnqH.cjs → vue-ui-timer-DMPyhmkw.cjs} +1 -1
- package/dist/vue-ui-tiremarks-B2YzKOZ9.cjs +1 -0
- package/dist/{vue-ui-tiremarks-C0FaGxaE.js → vue-ui-tiremarks-BysMKDiL.js} +9 -9
- package/dist/vue-ui-treemap-BgPQTI0-.cjs +1 -0
- package/dist/{vue-ui-treemap-DUUBok0Z.js → vue-ui-treemap-CVEo4sPM.js} +40 -40
- package/dist/{vue-ui-vertical-bar-DGSL6lGQ.js → vue-ui-vertical-bar-DqNS7Ash.js} +36 -36
- package/dist/{vue-ui-vertical-bar-qY3NE5sf.cjs → vue-ui-vertical-bar-tR8BBtIQ.cjs} +2 -2
- package/dist/vue-ui-waffle-CNIMp_6k.cjs +1 -0
- package/dist/{vue-ui-waffle-DeDjMqj4.js → vue-ui-waffle-pwRzgt1I.js} +40 -40
- package/dist/{vue-ui-wheel-D2pWanO3.js → vue-ui-wheel-U-zWCCQP.js} +18 -18
- package/dist/vue-ui-wheel-yVszAJvl.cjs +1 -0
- package/dist/vue-ui-word-cloud-D2bvq4zl.cjs +1 -0
- package/dist/{vue-ui-word-cloud-DDubuSNu.js → vue-ui-word-cloud-RI8RK0o-.js} +38 -38
- package/dist/{vue-ui-xy-DvaJ_oyE.js → vue-ui-xy-BqbnfSBo.js} +14 -14
- package/dist/{vue-ui-xy-BKEjcTkg.cjs → vue-ui-xy-Iprttv_w.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-CgzTusyc.cjs → vue-ui-xy-canvas-7QgtFfPE.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-DpTDw8Rv.js → vue-ui-xy-canvas-CauFtYWC.js} +13 -13
- package/package.json +3 -2
- package/dist/PackageVersion-fh_T3pry.cjs +0 -1
- package/dist/index-DHTOdsmm.cjs +0 -9
- package/dist/vue-data-ui-B4yl-5k7.cjs +0 -9
- package/dist/vue-ui-age-pyramid-JUp6_DQU.cjs +0 -1
- package/dist/vue-ui-bullet-DuPHT9m_.cjs +0 -34
- package/dist/vue-ui-carousel-table-CVlt3x_V.cjs +0 -1
- package/dist/vue-ui-donut-BTLM3pc-.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B9b0VDlt.cjs +0 -1
- package/dist/vue-ui-dumbbell-D0-fNbuR.cjs +0 -9
- package/dist/vue-ui-flow-CVX1Booa.cjs +0 -1
- package/dist/vue-ui-funnel-CkrA8ZGZ.cjs +0 -1
- package/dist/vue-ui-galaxy-XLY4fBs_.cjs +0 -1
- package/dist/vue-ui-gauge-DKv2V1ZR.cjs +0 -1
- package/dist/vue-ui-heatmap-DpZM0Il7.cjs +0 -1
- package/dist/vue-ui-history-plot-DyTTxsEC.cjs +0 -1
- package/dist/vue-ui-molecule-CVg3G3jq.cjs +0 -1
- package/dist/vue-ui-mood-radar-bRCa4Y3L.cjs +0 -1
- package/dist/vue-ui-quadrant-Cx1wlTvP.cjs +0 -1
- package/dist/vue-ui-radar-gWd0pEpW.cjs +0 -1
- package/dist/vue-ui-relation-circle-B3PfO20q.cjs +0 -1
- package/dist/vue-ui-scatter-ZJO-zIjS.cjs +0 -1
- package/dist/vue-ui-skeleton-BZDfN8kq.cjs +0 -41
- package/dist/vue-ui-strip-plot-D2tY6IaY.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BQk6Gd_E.cjs +0 -1
- package/dist/vue-ui-table-sparkline-Fk2HnXUF.cjs +0 -1
- package/dist/vue-ui-thermometer-CUa9blx-.cjs +0 -1
- package/dist/vue-ui-tiremarks-C0ic3lVR.cjs +0 -1
- package/dist/vue-ui-treemap-C7lv9JcH.cjs +0 -1
- package/dist/vue-ui-waffle-lANO8NSp.cjs +0 -1
- package/dist/vue-ui-wheel-yw94VIYd.cjs +0 -1
- package/dist/vue-ui-word-cloud-BQuOLoHD.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useSlots as at, onMounted as Ie, computed as w, ref as p, watch as nt, onBeforeUnmount as st, openBlock as g, createElementBlock as k, normalizeClass as Le, normalizeStyle as D, unref as y, createBlock as E, createCommentVNode as S, createSlots as rt, withCtx as T, renderSlot as $, normalizeProps as G, guardReactiveProps as q, createVNode as Re, Fragment as De, renderList as Me, createElementVNode as N, toDisplayString as Y, createTextVNode as Ve, nextTick as ut, pushScopeId as it, popScopeId as ct } from "vue";
|
|
2
|
-
import { u as dt, c as Ue, t as vt, a as ht, p as
|
|
3
|
-
import { _ as kt } from "./Title-
|
|
4
|
-
import { u as Ct, U as $t } from "./usePrinter-
|
|
5
|
-
import { _ as xt } from "./Tooltip-
|
|
6
|
-
import { L as Tt } from "./Legend-
|
|
7
|
-
import
|
|
8
|
-
import { D as
|
|
9
|
-
import St from "./vue-ui-accordion-
|
|
2
|
+
import { u as dt, c as Ue, t as vt, a as ht, p as O, b as pt, o as ft, e as gt, d as ae, i as ne, f as K, X as yt, l as Be, G as He, x as We, y as mt, q as bt, r as wt } from "./index-DAAFXQJj.js";
|
|
3
|
+
import { _ as kt } from "./Title-C4aoNP1T.js";
|
|
4
|
+
import { u as Ct, U as $t } from "./usePrinter-BvlefWMW.js";
|
|
5
|
+
import { _ as xt } from "./Tooltip-CG6ZX21C.js";
|
|
6
|
+
import { L as Tt } from "./Legend-K7NRkzGf.js";
|
|
7
|
+
import Ot from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
8
|
+
import { D as _t } from "./DataTable-D4_TjSBJ.js";
|
|
9
|
+
import St from "./vue-ui-accordion-B67N9Oo8.js";
|
|
10
10
|
import { t as Nt, u as zt } from "./useResponsive-CoxXLe23.js";
|
|
11
|
-
import { u as Ee } from "./useNestedProp-
|
|
12
|
-
import { _ as Pt } from "./PackageVersion-
|
|
13
|
-
import { P as At } from "./PenAndPaper-
|
|
11
|
+
import { u as Ee } from "./useNestedProp-DMtJzMiX.js";
|
|
12
|
+
import { _ as Pt } from "./PackageVersion-DKr8jVlI.js";
|
|
13
|
+
import { P as At } from "./PenAndPaper-CurhQVkh.js";
|
|
14
14
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
function Ge(a, c) {
|
|
@@ -70,14 +70,14 @@ function Mt(a) {
|
|
|
70
70
|
}
|
|
71
71
|
function Xe(a, c) {
|
|
72
72
|
const { width: s, height: n, xOffset: i, yOffset: v } = de(c), u = a.length, f = a.map((h) => h.normalizedValue || 0).reduce((h, b) => h + b, 0), d = f / n, z = f / s;
|
|
73
|
-
let
|
|
73
|
+
let _ = i, C = v;
|
|
74
74
|
const x = [];
|
|
75
75
|
if (s >= n) {
|
|
76
76
|
for (let h = 0; h < u; h += 1) {
|
|
77
77
|
const b = a[h], P = C + b.normalizedValue / d, M = {
|
|
78
|
-
x0:
|
|
78
|
+
x0: _,
|
|
79
79
|
y0: C,
|
|
80
|
-
x1:
|
|
80
|
+
x1: _ + d,
|
|
81
81
|
y1: P
|
|
82
82
|
}, A = Object.assign({}, b, M);
|
|
83
83
|
C = P, x.push(A);
|
|
@@ -85,13 +85,13 @@ function Xe(a, c) {
|
|
|
85
85
|
return x;
|
|
86
86
|
} else {
|
|
87
87
|
for (let h = 0; h < u; h += 1) {
|
|
88
|
-
const b = a[h], P =
|
|
89
|
-
x0:
|
|
88
|
+
const b = a[h], P = _ + b.normalizedValue / z, M = {
|
|
89
|
+
x0: _,
|
|
90
90
|
y0: C,
|
|
91
91
|
x1: P,
|
|
92
92
|
y1: C + z
|
|
93
93
|
}, A = Object.assign({}, b, M);
|
|
94
|
-
|
|
94
|
+
_ = P, x.push(A);
|
|
95
95
|
}
|
|
96
96
|
return x;
|
|
97
97
|
}
|
|
@@ -126,9 +126,9 @@ function Bt(a, c, s, n) {
|
|
|
126
126
|
const x = Xe(v, u);
|
|
127
127
|
return f.concat(x);
|
|
128
128
|
}
|
|
129
|
-
const z = Vt(u),
|
|
130
|
-
if (Lt(v,
|
|
131
|
-
const x = v.concat(
|
|
129
|
+
const z = Vt(u), _ = i[0], C = i.slice(1, d);
|
|
130
|
+
if (Lt(v, _, z)) {
|
|
131
|
+
const x = v.concat(_);
|
|
132
132
|
i = C, v = x, u = u, f = f;
|
|
133
133
|
} else {
|
|
134
134
|
const x = v.length;
|
|
@@ -173,7 +173,7 @@ function Ht(a, c) {
|
|
|
173
173
|
return qe(d);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const Wt = (a) => (it("data-v-
|
|
176
|
+
const Wt = (a) => (it("data-v-f3bac1ee"), a = a(), ct(), a), Et = ["id"], Gt = ["xmlns", "viewBox"], qt = { key: 0 }, Xt = ["id"], jt = ["stop-color"], Yt = ["stop-color"], Zt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Jt = ["x", "y", "height", "width"], Kt = {
|
|
177
177
|
style: { width: "100%", height: "100%" },
|
|
178
178
|
class: "vue-ui-treemap-cell"
|
|
179
179
|
}, Qt = /* @__PURE__ */ Wt(() => /* @__PURE__ */ N("br", null, null, -1)), eo = {
|
|
@@ -201,7 +201,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
201
201
|
Ie(() => {
|
|
202
202
|
v["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
203
203
|
});
|
|
204
|
-
const u = w(() => !!n.dataset && n.dataset.length), f = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), d = p(Ue()), z = p(!1),
|
|
204
|
+
const u = w(() => !!n.dataset && n.dataset.length), f = w(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), d = p(Ue()), z = p(!1), _ = p(""), C = p(!1), x = p(0), h = p([]), b = p(null), P = p(null), M = p(null), A = p(null), ve = p(null), he = p(0), pe = p(0), fe = p(0), e = w({
|
|
205
205
|
get: () => me(),
|
|
206
206
|
set: (t) => t
|
|
207
207
|
}), { userOptionsVisible: se, setUserOptionsVisibility: ge, keepUserOptionState: ye } = Ft({ config: e.value });
|
|
@@ -215,11 +215,11 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
215
215
|
userConfig: vt.vue_ui_treemap[t.theme] || n.config,
|
|
216
216
|
defaultConfig: t
|
|
217
217
|
}),
|
|
218
|
-
customPalette: ht[t.theme] ||
|
|
218
|
+
customPalette: ht[t.theme] || O
|
|
219
219
|
} : t;
|
|
220
220
|
}
|
|
221
221
|
nt(() => n.config, (t) => {
|
|
222
|
-
e.value = me(), se.value = !e.value.showOnChartHover, he.value += 1, pe.value += 1, fe.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
222
|
+
e.value = me(), se.value = !e.value.userOptions.showOnChartHover, he.value += 1, pe.value += 1, fe.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
223
223
|
}, { deep: !0 });
|
|
224
224
|
const { isPrinting: be, isImaging: we, generatePdf: ke, generateImage: Ce } = Ct({
|
|
225
225
|
elementId: `treemap_${d.value}`,
|
|
@@ -242,7 +242,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
242
242
|
}));
|
|
243
243
|
function $e(t) {
|
|
244
244
|
t.forEach((l, o) => {
|
|
245
|
-
l.id = Ue(), l.color = ae(l.color) || Q.value[o] ||
|
|
245
|
+
l.id = Ue(), l.color = ae(l.color) || Q.value[o] || O[o] || O[o % O.length], l.children && (l.children.forEach((r) => {
|
|
246
246
|
r.parentId = l.id, r.color = l.color;
|
|
247
247
|
}), $e(l.children));
|
|
248
248
|
});
|
|
@@ -276,7 +276,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
276
276
|
});
|
|
277
277
|
const re = p(H.value), Z = w(() => re.value.map((t, l) => ({
|
|
278
278
|
...t,
|
|
279
|
-
color: ae(t.color) || Q.value[l] ||
|
|
279
|
+
color: ae(t.color) || Q.value[l] || O[l] || O[l % O.length]
|
|
280
280
|
})).filter((t) => !h.value.includes(t.id))), X = w(() => H.value.filter((t) => !h.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), xe = w({
|
|
281
281
|
get() {
|
|
282
282
|
let t = [...Z.value];
|
|
@@ -295,15 +295,15 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
295
295
|
const r = e.value.style.chart.layout.rects.colorRatio - Te(l, o);
|
|
296
296
|
return Be(t, r < 0 ? 0 : r);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Oe(t, l, o, r) {
|
|
299
299
|
return t.map((m, U) => {
|
|
300
|
-
const le = Je(ae(l) || Q.value[U] ||
|
|
300
|
+
const le = Je(ae(l) || Q.value[U] || O[U] || O[U % O.length], m, r), lt = Te(m, r);
|
|
301
301
|
return {
|
|
302
302
|
...m,
|
|
303
303
|
color: le,
|
|
304
304
|
proportion: lt,
|
|
305
305
|
parentName: o,
|
|
306
|
-
children: m.children ?
|
|
306
|
+
children: m.children ? Oe(m.children, le, m.name, r) : void 0
|
|
307
307
|
};
|
|
308
308
|
});
|
|
309
309
|
}
|
|
@@ -313,14 +313,14 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
313
313
|
return {
|
|
314
314
|
value: t.value,
|
|
315
315
|
id: t.id,
|
|
316
|
-
children: t.children ?
|
|
316
|
+
children: t.children ? Oe(t.children.sort((r, m) => m.value - r.value), t.color, t.name, o) : void 0,
|
|
317
317
|
color: t.color,
|
|
318
318
|
name: t.name
|
|
319
319
|
};
|
|
320
320
|
}),
|
|
321
321
|
{ x0: B.value.left * 2, y0: B.value.top, x1: B.value.width, y1: B.value.height }
|
|
322
322
|
));
|
|
323
|
-
function
|
|
323
|
+
function _e({ y0: t, y1: l }) {
|
|
324
324
|
return l - t <= 0 ? 1e-4 : l - t;
|
|
325
325
|
}
|
|
326
326
|
function Se({ x0: t, x1: l }) {
|
|
@@ -363,7 +363,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
363
363
|
}
|
|
364
364
|
const L = p(null), Ne = w(() => H.value.map((t, l) => ({
|
|
365
365
|
...t,
|
|
366
|
-
color: ae(t.color) || Q.value[l] ||
|
|
366
|
+
color: ae(t.color) || Q.value[l] || O[l] || O[l % O.length],
|
|
367
367
|
shape: "square"
|
|
368
368
|
})).sort((t, l) => l.value - t.value).map((t, l) => ({
|
|
369
369
|
...t,
|
|
@@ -390,7 +390,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
390
390
|
series: Z.value,
|
|
391
391
|
config: e.value
|
|
392
392
|
})))
|
|
393
|
-
|
|
393
|
+
_.value = o({
|
|
394
394
|
seriesIndex: l,
|
|
395
395
|
datapoint: t,
|
|
396
396
|
series: Z.value,
|
|
@@ -408,7 +408,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
408
408
|
r: e.value.style.chart.tooltip.roundingValue
|
|
409
409
|
}),
|
|
410
410
|
{ datapoint: t, seriesIndex: l }
|
|
411
|
-
)}</b>`,
|
|
411
|
+
)}</b>`, _.value = `<div>${r}</div>`;
|
|
412
412
|
}
|
|
413
413
|
z.value = !0;
|
|
414
414
|
}
|
|
@@ -655,7 +655,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
655
655
|
N("rect", {
|
|
656
656
|
x: o.x0,
|
|
657
657
|
y: o.y0,
|
|
658
|
-
height:
|
|
658
|
+
height: _e(o),
|
|
659
659
|
width: Se(o),
|
|
660
660
|
fill: f.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
661
661
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
@@ -675,7 +675,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
675
675
|
(g(), k("foreignObject", {
|
|
676
676
|
x: o.x0,
|
|
677
677
|
y: o.y0,
|
|
678
|
-
height:
|
|
678
|
+
height: _e(o),
|
|
679
679
|
width: Se(o),
|
|
680
680
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
681
681
|
}, [
|
|
@@ -718,7 +718,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
718
718
|
t.$slots.watermark ? (g(), k("div", eo, [
|
|
719
719
|
$(t.$slots, "watermark", G(q({ isPrinting: y(be) || y(we) })), void 0, !0)
|
|
720
720
|
])) : S("", !0),
|
|
721
|
-
u.value ? S("", !0) : (g(), E(
|
|
721
|
+
u.value ? S("", !0) : (g(), E(Ot, {
|
|
722
722
|
key: 6,
|
|
723
723
|
config: {
|
|
724
724
|
type: "treemap",
|
|
@@ -786,7 +786,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
786
786
|
position: e.value.style.chart.tooltip.position,
|
|
787
787
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
788
788
|
parent: b.value,
|
|
789
|
-
content:
|
|
789
|
+
content: _.value,
|
|
790
790
|
isFullscreen: C.value,
|
|
791
791
|
isCustom: y(We)(e.value.style.chart.tooltip.customFormat)
|
|
792
792
|
}, {
|
|
@@ -815,7 +815,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
815
815
|
}
|
|
816
816
|
}, {
|
|
817
817
|
content: T(() => [
|
|
818
|
-
(g(), E(
|
|
818
|
+
(g(), E(_t, {
|
|
819
819
|
key: `table_${pe.value}`,
|
|
820
820
|
colNames: te.value.colNames,
|
|
821
821
|
head: te.value.head,
|
|
@@ -840,7 +840,7 @@ const Wt = (a) => (it("data-v-150cb298"), a = a(), ct(), a), Et = ["id"], Gt = [
|
|
|
840
840
|
}, 8, ["config"])) : S("", !0)
|
|
841
841
|
], 46, Et));
|
|
842
842
|
}
|
|
843
|
-
}, Co = /* @__PURE__ */ It(no, [["__scopeId", "data-v-
|
|
843
|
+
}, Co = /* @__PURE__ */ It(no, [["__scopeId", "data-v-f3bac1ee"]]);
|
|
844
844
|
export {
|
|
845
845
|
Co as default
|
|
846
846
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useCssVars as dt, useSlots as vt, computed as b, ref as i, watch as Re, onMounted as Ue, onBeforeUnmount as ct, openBlock as u, createElementBlock as r, normalizeClass as A, normalizeStyle as c, unref as d, createBlock as B, createCommentVNode as p, createSlots as ce, withCtx as k, renderSlot as m, normalizeProps as E, guardReactiveProps as H, createElementVNode as n, toDisplayString as h, createVNode as Y, Fragment as W, renderList as G, withKeys as ht, createTextVNode as pt } from "vue";
|
|
2
|
-
import { u as yt, c as gt, t as ft, a as bt, p as D, b as mt, o as Xe, e as K, v as N, d as he, i as le, f as R, X as _t, s as pe, w as kt, x as $t, y as xt, q as wt, r as Ct } from "./index-
|
|
2
|
+
import { u as yt, c as gt, t as ft, a as bt, p as D, b as mt, o as Xe, e as K, v as N, d as he, i as le, f as R, X as _t, s as pe, w as kt, x as $t, y as xt, q as wt, r as Ct } from "./index-DAAFXQJj.js";
|
|
3
3
|
import { t as Tt, u as Lt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Nt } from "./Title-
|
|
5
|
-
import { u as Pt, U as St } from "./usePrinter-
|
|
6
|
-
import { _ as Vt } from "./Tooltip-
|
|
7
|
-
import { L as Ee } from "./Legend-
|
|
8
|
-
import It from "./vue-ui-skeleton-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as He } from "./useNestedProp-
|
|
12
|
-
import { _ as Mt } from "./PackageVersion-
|
|
13
|
-
import { P as zt } from "./PenAndPaper-
|
|
4
|
+
import { _ as Nt } from "./Title-C4aoNP1T.js";
|
|
5
|
+
import { u as Pt, U as St } from "./usePrinter-BvlefWMW.js";
|
|
6
|
+
import { _ as Vt } from "./Tooltip-CG6ZX21C.js";
|
|
7
|
+
import { L as Ee } from "./Legend-K7NRkzGf.js";
|
|
8
|
+
import It from "./vue-ui-skeleton-BM3ut-zl.js";
|
|
9
|
+
import Ot from "./BaseIcon-DVY6e_YL.js";
|
|
10
|
+
import Ft from "./vue-ui-accordion-B67N9Oo8.js";
|
|
11
|
+
import { u as He } from "./useNestedProp-DMtJzMiX.js";
|
|
12
|
+
import { _ as Mt } from "./PackageVersion-DKr8jVlI.js";
|
|
13
|
+
import { P as zt } from "./PenAndPaper-CurhQVkh.js";
|
|
14
14
|
import { u as At } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { _ as We } from "./Shape-
|
|
15
|
+
import { _ as We } from "./Shape-C4LyHNQ3.js";
|
|
16
16
|
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Et = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Gt = { key: 1 }, jt = ["x", "y", "width", "height", "fill", "rx"], qt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Yt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Kt = ["x2", "y1", "y2", "stroke", "stroke-width"], Jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], Zt = ["x", "y", "font-size", "fill", "font-weight"], ea = ["x", "y", "font-size", "fill", "font-weight"], ta = ["x", "y", "font-size", "fill", "font-weight"], aa = ["y", "width", "height", "fill", "onMouseenter"], la = {
|
|
18
18
|
key: 6,
|
|
@@ -37,7 +37,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
37
37
|
setup(Ge, { expose: je, emit: qe }) {
|
|
38
38
|
const T = Ge;
|
|
39
39
|
dt((a) => ({
|
|
40
|
-
"
|
|
40
|
+
"782729ec": a.tdo
|
|
41
41
|
}));
|
|
42
42
|
const { vue_ui_vertical_bar: Ye } = yt(), Ke = vt(), J = b(() => !!T.dataset && T.dataset.length), C = i(gt()), Je = i(null), oe = i(!1), ne = i(""), Q = i(0), Qe = i(null), ye = i(0), U = i(null), ge = i(null), ue = i(null), fe = i(null), be = i(null), me = i(0), se = i(0), e = b({
|
|
43
43
|
get: () => $e(),
|
|
@@ -57,7 +57,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
57
57
|
} : a;
|
|
58
58
|
}
|
|
59
59
|
Re(() => T.config, (a) => {
|
|
60
|
-
e.value = $e(), re.value = !e.value.showOnChartHover, Se(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
60
|
+
e.value = $e(), re.value = !e.value.userOptions.showOnChartHover, Se(), me.value += 1, se.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap, $.value.showTable = e.value.table.show, $.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", $.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
61
61
|
}, { deep: !0 }), Re(() => T.dataset, ee, { deep: !0 });
|
|
62
62
|
const { isPrinting: xe, isImaging: we, generatePdf: Ce, generateImage: Te } = Pt({
|
|
63
63
|
elementId: `vue-ui-vertical-bar_${C.value}`,
|
|
@@ -80,7 +80,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
80
80
|
noTitle: be.value
|
|
81
81
|
});
|
|
82
82
|
requestAnimationFrame(() => {
|
|
83
|
-
|
|
83
|
+
Oe.value = l, v.value = t / Q.value - g.value * 2;
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
86
|
Z.value = new ResizeObserver(a), Z.value.observe(U.value.parentNode);
|
|
@@ -100,7 +100,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
100
100
|
showTable: e.value.table.show,
|
|
101
101
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
102
102
|
showTooltip: e.value.style.chart.tooltip.show
|
|
103
|
-
}), Ve = b(() => $.value.sortDesc),
|
|
103
|
+
}), Ve = b(() => $.value.sortDesc), O = b(() => (T.dataset.forEach((a, l) => {
|
|
104
104
|
!a.value && !a.children && K({
|
|
105
105
|
componentName: "VueUiVerticalBar",
|
|
106
106
|
type: "datasetAttributeEmpty",
|
|
@@ -159,8 +159,8 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
159
159
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
160
160
|
paddingBottom: 12,
|
|
161
161
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
162
|
-
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), at = b(() => (v.value + g.value) * Q.value),
|
|
163
|
-
width:
|
|
162
|
+
})), v = i(e.value.style.chart.layout.bars.height), g = i(e.value.style.chart.layout.bars.gap), at = b(() => (v.value + g.value) * Q.value), Oe = i(512), y = b(() => ({
|
|
163
|
+
width: Oe.value,
|
|
164
164
|
height: at.value,
|
|
165
165
|
padding: {
|
|
166
166
|
top: 12,
|
|
@@ -177,21 +177,21 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
177
177
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
178
178
|
}));
|
|
179
179
|
function ee() {
|
|
180
|
-
Q.value =
|
|
180
|
+
Q.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
181
181
|
}
|
|
182
182
|
const P = i([]);
|
|
183
183
|
function j(a) {
|
|
184
|
-
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), qe("selectLegend",
|
|
184
|
+
P.value.includes(a) ? P.value = P.value.filter((l) => l !== a) : P.value.push(a), ee(), qe("selectLegend", F.value);
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
186
|
+
const F = b(() => O.value.filter((a) => !P.value.includes(a.id))), S = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
187
|
+
function Fe(a, l = !1, t = 0) {
|
|
188
188
|
return l ? R({
|
|
189
189
|
v: N(Math.abs(a) / S.value * 100),
|
|
190
190
|
s: "%",
|
|
191
191
|
r: t
|
|
192
192
|
}) : Math.abs(a) / S.value;
|
|
193
193
|
}
|
|
194
|
-
const M = b(() =>
|
|
194
|
+
const M = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), z = b(() => M.value.map((a) => a.sign).includes(-1)), lt = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
195
195
|
function x(a) {
|
|
196
196
|
const l = a / lt.value;
|
|
197
197
|
return s.value.width / (z.value ? 2 : 1) * l;
|
|
@@ -200,36 +200,36 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
200
200
|
return x(a) + s.value.left;
|
|
201
201
|
}
|
|
202
202
|
function q(a, l) {
|
|
203
|
-
const t =
|
|
203
|
+
const t = F.value.find((f) => f.id === a.parentId), o = s.value.top + (g.value + v.value) * l, _ = t.children.length * (g.value + v.value);
|
|
204
204
|
return {
|
|
205
205
|
y: o + _ / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
206
206
|
name: t.name,
|
|
207
207
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
208
|
-
percentageToTotal: isNaN(t.value / S.value) ? "" :
|
|
208
|
+
percentageToTotal: isNaN(t.value / S.value) ? "" : Fe(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
209
209
|
sign: t.sign
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function nt() {
|
|
213
|
-
return
|
|
213
|
+
return F.value;
|
|
214
214
|
}
|
|
215
215
|
const ie = i(null), de = i(null);
|
|
216
216
|
function ut(a, l) {
|
|
217
217
|
de.value = {
|
|
218
218
|
datapoint: a,
|
|
219
219
|
seriesIndex: l,
|
|
220
|
-
series:
|
|
220
|
+
series: O.value,
|
|
221
221
|
config: e.value
|
|
222
222
|
}, oe.value = !0, ie.value = a.id;
|
|
223
223
|
let t = "";
|
|
224
224
|
const o = a.isChild ? a.parentName : a.name, _ = a.isChild ? a.name : "", f = e.value.style.chart.tooltip.customFormat;
|
|
225
225
|
$t(f) && xt(() => f({
|
|
226
226
|
datapoint: a,
|
|
227
|
-
series:
|
|
227
|
+
series: O.value,
|
|
228
228
|
config: e.value,
|
|
229
229
|
seriesIndex: l
|
|
230
230
|
})) ? ne.value = f({
|
|
231
231
|
datapoint: a,
|
|
232
|
-
series:
|
|
232
|
+
series: O.value,
|
|
233
233
|
config: e.value,
|
|
234
234
|
seriesIndex: l
|
|
235
235
|
}) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
@@ -268,7 +268,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
268
268
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
269
269
|
}),
|
|
270
270
|
{ datapoint: l, seriesIndex: t }
|
|
271
|
-
), f = `(${
|
|
271
|
+
), f = `(${Fe(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
272
272
|
return `${_}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${f}` : ""}`;
|
|
273
273
|
}
|
|
274
274
|
const L = b(() => {
|
|
@@ -515,7 +515,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
515
515
|
}, [
|
|
516
516
|
(u(), B(Ee, {
|
|
517
517
|
key: `legend_top_${se.value}`,
|
|
518
|
-
legendSet:
|
|
518
|
+
legendSet: O.value,
|
|
519
519
|
config: Ie.value,
|
|
520
520
|
onClickMarker: l[0] || (l[0] = ({ legend: t }) => j(t.id))
|
|
521
521
|
}, ce({
|
|
@@ -724,7 +724,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
724
724
|
}, [
|
|
725
725
|
(u(), B(Ee, {
|
|
726
726
|
key: `legend_bottom_${se.value}`,
|
|
727
|
-
legendSet:
|
|
727
|
+
legendSet: O.value,
|
|
728
728
|
config: Ie.value,
|
|
729
729
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => j(t.id))
|
|
730
730
|
}, ce({
|
|
@@ -761,7 +761,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
761
761
|
} : void 0
|
|
762
762
|
]), 1032, ["legendSet", "config"]))
|
|
763
763
|
], 512)) : p("", !0),
|
|
764
|
-
m(a.$slots, "legend", { legend:
|
|
764
|
+
m(a.$slots, "legend", { legend: O.value }, void 0, !0),
|
|
765
765
|
a.$slots.source ? (u(), r("div", {
|
|
766
766
|
key: 9,
|
|
767
767
|
ref_key: "source",
|
|
@@ -794,7 +794,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
794
794
|
]),
|
|
795
795
|
_: 3
|
|
796
796
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
797
|
-
J.value ? (u(), B(
|
|
797
|
+
J.value ? (u(), B(Ft, {
|
|
798
798
|
key: 10,
|
|
799
799
|
hideDetails: "",
|
|
800
800
|
config: {
|
|
@@ -824,7 +824,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
824
824
|
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
825
825
|
onKeypress: l[4] || (l[4] = ht((t) => $.value.showTable = !1, ["enter"]))
|
|
826
826
|
}, [
|
|
827
|
-
Y(
|
|
827
|
+
Y(Ot, {
|
|
828
828
|
name: "close",
|
|
829
829
|
stroke: e.value.table.th.color,
|
|
830
830
|
"stroke-width": 2
|
|
@@ -948,7 +948,7 @@ const Dt = ["id"], Rt = ["onClick"], Ut = ["xmlns", "viewBox"], Xt = ["width", "
|
|
|
948
948
|
}, 8, ["config"])) : p("", !0)
|
|
949
949
|
], 46, Dt));
|
|
950
950
|
}
|
|
951
|
-
}, Ra = /* @__PURE__ */ Bt(xa, [["__scopeId", "data-v-
|
|
951
|
+
}, Ra = /* @__PURE__ */ Bt(xa, [["__scopeId", "data-v-320e6bda"]]);
|
|
952
952
|
export {
|
|
953
953
|
Ra as default
|
|
954
954
|
};
|