vue-data-ui 2.6.45 → 2.6.46
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/dist/{Arrow-km8WlE5f.js → Arrow-D4sCAfTr.js} +1 -1
- package/dist/{Arrow-Bfwl8OAb.cjs → Arrow-l2Rjf1KV.cjs} +1 -1
- package/dist/{BaseIcon-BjlTm9wZ.cjs → BaseIcon-BpdQLb-0.cjs} +1 -1
- package/dist/{BaseIcon-DywZoZmD.js → BaseIcon-Dx5FJt-N.js} +4 -3
- package/dist/{ColorPicker-gkZLlxzP.js → ColorPicker-Ag9OY75a.js} +3 -3
- package/dist/{ColorPicker-COPqu9IV.cjs → ColorPicker-BkUHmkbg.cjs} +1 -1
- package/dist/{DataTable-ImmHVJ0i.cjs → DataTable-B8Ui_Pd4.cjs} +1 -1
- package/dist/{DataTable-CrhPpuOy.js → DataTable-D9wdDVT6.js} +2 -2
- package/dist/{Legend-BVtJaKHS.js → Legend-BCngKEVr.js} +2 -2
- package/dist/{Legend-CfimXfYH.cjs → Legend-BFB4DMQS.cjs} +1 -1
- package/dist/{PackageVersion-DJu8NH8u.js → PackageVersion-DR6SOSy8.js} +1 -1
- package/dist/{PackageVersion-DjHCw2D_.cjs → PackageVersion-Da8iEjju.cjs} +1 -1
- package/dist/{PenAndPaper-AZpGBe7x.cjs → PenAndPaper-Dpjaroq-.cjs} +1 -1
- package/dist/{PenAndPaper-DC3X33rh.js → PenAndPaper-DxsKkGjV.js} +3 -3
- package/dist/{Shape-Bs4vWaC-.js → Shape-CcATSdDH.js} +1 -1
- package/dist/{Shape-Dl6kIG9D.cjs → Shape-DomxDqtX.cjs} +1 -1
- package/dist/{Slicer-CgnhZJgM.js → Slicer-Bw4VblBK.js} +2 -2
- package/dist/{Slicer-OBTv9I2-.cjs → Slicer-DlCXj2P9.cjs} +1 -1
- package/dist/{Title-DBgUbEU1.cjs → Title-CFmNnjPN.cjs} +1 -1
- package/dist/{Title-6BRNasyb.js → Title-Dr0O3Ohb.js} +1 -1
- package/dist/{Tooltip-BUPxcljs.js → Tooltip-C8mLFDBp.js} +1 -1
- package/dist/{Tooltip-TGHDsCSU.cjs → Tooltip-UBWsyt1M.cjs} +1 -1
- package/dist/{index-jVWdGfFl.js → index-BdV23M_4.js} +1 -1
- package/dist/{index-BXhJaCcU.cjs → index-FtxQWcA1.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -1
- package/dist/types/vue-data-ui.d.ts +2 -1
- package/dist/{useNestedProp-DhyCNtMY.cjs → useNestedProp-BIeXIQxH.cjs} +1 -1
- package/dist/{useNestedProp-BN5jbfiQ.js → useNestedProp-DyW-iWus.js} +1 -1
- package/dist/{usePrinter-DRWBcwQ7.cjs → usePrinter-BUMwWyWM.cjs} +1 -1
- package/dist/{usePrinter-BI95cSFJ.js → usePrinter-TFomTfxX.js} +1 -1
- package/dist/{vue-data-ui-DFmsvz9E.js → vue-data-ui-Cal0DvqU.js} +61 -61
- package/dist/{vue-data-ui-B0eO9goE.cjs → vue-data-ui-DBoVETZN.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BcdL4c9H.js → vue-ui-3d-bar-DUMfvSbU.js} +9 -9
- package/dist/{vue-ui-3d-bar-CwXgNWXb.cjs → vue-ui-3d-bar-GTKfWFni.cjs} +1 -1
- package/dist/{vue-ui-accordion-DOBMerZl.js → vue-ui-accordion-2_hSAOvX.js} +3 -3
- package/dist/{vue-ui-accordion-DdHwnq9o.cjs → vue-ui-accordion-BIBhKMbJ.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Dtaikxqn.js → vue-ui-age-pyramid-C0UfrmeD.js} +10 -10
- package/dist/{vue-ui-age-pyramid-i52Ub253.cjs → vue-ui-age-pyramid-DotN5JY1.cjs} +1 -1
- package/dist/{vue-ui-annotator-BrjeA9CQ.js → vue-ui-annotator-C-9pwUrR.js} +1 -1
- package/dist/{vue-ui-annotator-CKUZCHHC.cjs → vue-ui-annotator-C0V4kD4I.cjs} +1 -1
- package/dist/{vue-ui-bullet-C1xxCzws.js → vue-ui-bullet-6vftOeqJ.js} +8 -8
- package/dist/{vue-ui-bullet-DxUauLaF.cjs → vue-ui-bullet-Ct39TnfH.cjs} +1 -1
- package/dist/{vue-ui-candlestick-t1BaVylo.cjs → vue-ui-candlestick-Cxpk32bR.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CPF7rQqu.js → vue-ui-candlestick-IxSh2gnY.js} +11 -11
- package/dist/{vue-ui-carousel-table-BqPfItK8.cjs → vue-ui-carousel-table-BinpEAPd.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-x8RLpKZv.js → vue-ui-carousel-table-DreHo_wE.js} +4 -4
- package/dist/{vue-ui-chestnut-SdFREl6l.js → vue-ui-chestnut-3saDHpZ-.js} +8 -8
- package/dist/{vue-ui-chestnut-BiX9TQ2v.cjs → vue-ui-chestnut-CpYTb1wd.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-DVkRm1KL.js → vue-ui-circle-pack-BechgWzd.js} +9 -9
- package/dist/{vue-ui-circle-pack-B28TVLHQ.cjs → vue-ui-circle-pack-BfskRpSw.cjs} +1 -1
- package/dist/{vue-ui-cursor-CY5VZS8t.js → vue-ui-cursor-BEuJm8Mb.js} +2 -2
- package/dist/{vue-ui-cursor-BkQNdavl.cjs → vue-ui-cursor-CRMGfBFa.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DQ8lax7M.js → vue-ui-dashboard-DSrb1InR.js} +2 -2
- package/dist/{vue-ui-dashboard-BCcNNuM_.cjs → vue-ui-dashboard-TQto_FFI.cjs} +1 -1
- package/dist/{vue-ui-digits-D-F0Chxn.cjs → vue-ui-digits-BRPGEv7S.cjs} +1 -1
- package/dist/{vue-ui-digits-BkXEbzlS.js → vue-ui-digits-BeoOy04C.js} +2 -2
- package/dist/{vue-ui-donut-qRDAQa4n.js → vue-ui-donut-BWQ3vgjP.js} +12 -12
- package/dist/{vue-ui-donut-Dxie1WUb.cjs → vue-ui-donut-Dam0YSMu.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-C8ZQum6h.cjs → vue-ui-donut-evolution-DOXHsGwg.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-YKmsjVkR.js → vue-ui-donut-evolution-DQIaWcso.js} +11 -11
- package/dist/{vue-ui-dumbbell-bOMg4szX.cjs → vue-ui-dumbbell--mlgQyZ7.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-C6OpTSyF.js → vue-ui-dumbbell-BAA0L5kU.js} +10 -10
- package/dist/{vue-ui-flow-aIpHJK9l.js → vue-ui-flow-CbIxR8qu.js} +9 -9
- package/dist/{vue-ui-flow-Bnj7K0Td.cjs → vue-ui-flow-zigj6Xbo.cjs} +1 -1
- package/dist/{vue-ui-funnel-Ckn6d97S.js → vue-ui-funnel-C1CjZHuh.js} +9 -9
- package/dist/{vue-ui-funnel-CapST2C3.cjs → vue-ui-funnel-Cs-Kjiev.cjs} +1 -1
- package/dist/{vue-ui-galaxy-FIQp4ePf.cjs → vue-ui-galaxy-CWI4H3RW.cjs} +1 -1
- package/dist/{vue-ui-galaxy-0p-jvo0s.js → vue-ui-galaxy-G9AFzo0J.js} +11 -11
- package/dist/{vue-ui-gauge-C1QU2678.cjs → vue-ui-gauge-CsyLGIqh.cjs} +1 -1
- package/dist/{vue-ui-gauge-CtzP0_kK.js → vue-ui-gauge-hDpxwLu6.js} +7 -7
- package/dist/{vue-ui-gizmo-D6E03WtQ.cjs → vue-ui-gizmo-BIcmHlyo.cjs} +1 -1
- package/dist/{vue-ui-gizmo--TFv_z_f.js → vue-ui-gizmo-Bc-DWND7.js} +3 -3
- package/dist/{vue-ui-heatmap-Bx9RCECY.js → vue-ui-heatmap-8p4PejGU.js} +10 -10
- package/dist/{vue-ui-heatmap-DQ_4z6a6.cjs → vue-ui-heatmap-DZ9xsMHI.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BNybvrYe.cjs → vue-ui-history-plot-DiTEY9hR.cjs} +1 -1
- package/dist/{vue-ui-history-plot-OlxcB4fR.js → vue-ui-history-plot-W2UVpzIY.js} +11 -11
- package/dist/{vue-ui-kpi-DhsQdhIg.cjs → vue-ui-kpi-BXQ6gSky.cjs} +1 -1
- package/dist/{vue-ui-kpi-D-EjjlYh.js → vue-ui-kpi-DFFosWUi.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYRJtuw3.js → vue-ui-mini-loader-C2uhjtCz.js} +2 -2
- package/dist/{vue-ui-mini-loader-gsh0jMbc.cjs → vue-ui-mini-loader-C8hmEB9w.cjs} +1 -1
- package/dist/{vue-ui-molecule-Dke-JabR.js → vue-ui-molecule-B1pxOA3p.js} +10 -10
- package/dist/{vue-ui-molecule-K4PM7UqE.cjs → vue-ui-molecule-CXIE8hWW.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-sXLyAWIK.js → vue-ui-mood-radar-B-bELxUM.js} +11 -11
- package/dist/{vue-ui-mood-radar-CnR7mp7Z.cjs → vue-ui-mood-radar-BuLuDh5y.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CJ9r-x9P.js → vue-ui-nested-donuts-C4isJwag.js} +11 -11
- package/dist/{vue-ui-nested-donuts-DW1Zx5R0.cjs → vue-ui-nested-donuts-C4vK7cf-.cjs} +1 -1
- package/dist/{vue-ui-onion-CVRrdFde.js → vue-ui-onion-BNPFlq-G.js} +11 -11
- package/dist/{vue-ui-onion-DM-jq72Y.cjs → vue-ui-onion-nbqNRCyk.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DMouPTwE.cjs → vue-ui-parallel-coordinate-plot-C9FIQC4s.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DLVjGpqC.js → vue-ui-parallel-coordinate-plot-DFHwTxhN.js} +12 -12
- package/dist/{vue-ui-quadrant-BGuywSpy.js → vue-ui-quadrant-C4NULaSL.js} +12 -12
- package/dist/{vue-ui-quadrant-CXFcrSRD.cjs → vue-ui-quadrant-CEyZ6gCX.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-9R835dAy.cjs → vue-ui-quick-chart-B7PqLKWn.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D_ZSUMnh.js → vue-ui-quick-chart-m9kWUtKc.js} +9 -9
- package/dist/{vue-ui-radar-CrF3XMq8.js → vue-ui-radar-CKb7rcO0.js} +12 -12
- package/dist/{vue-ui-radar-CGSB8Q_3.cjs → vue-ui-radar-DHH8CDle.cjs} +1 -1
- package/dist/{vue-ui-rating-DCH03Nd-.js → vue-ui-rating-BowDISAW.js} +2 -2
- package/dist/{vue-ui-rating-BiwEz-WI.cjs → vue-ui-rating-nYq9NVf8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-D7sKIx2H.cjs → vue-ui-relation-circle-CXa8v5cY.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CFB3nQrw.js → vue-ui-relation-circle-CtaNRzML.js} +7 -7
- package/dist/{vue-ui-rings-CMzJJbL7.cjs → vue-ui-rings-CRgcPBhj.cjs} +1 -1
- package/dist/{vue-ui-rings-CDFQgsVL.js → vue-ui-rings-DaydpH_W.js} +12 -12
- package/dist/{vue-ui-scatter-CYweE3aN.js → vue-ui-scatter-Bx16gq37.js} +12 -12
- package/dist/{vue-ui-scatter-Cpc9LK6H.cjs → vue-ui-scatter-CH8b47_g.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BA27Irge.cjs → vue-ui-screenshot-BOqEw_Ty.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BRY1fQOv.js → vue-ui-screenshot-j_ruTkOe.js} +1 -1
- package/dist/{vue-ui-skeleton-Dsd0bx0Y.js → vue-ui-skeleton-CVnkLuNk.js} +3 -3
- package/dist/{vue-ui-skeleton-CLMRPxZm.cjs → vue-ui-skeleton-CX4m8kLi.cjs} +1 -1
- package/dist/{vue-ui-smiley-CeC-WFLx.js → vue-ui-smiley-DGfBC_1p.js} +2 -2
- package/dist/{vue-ui-smiley-CNnxNaGC.cjs → vue-ui-smiley-DOcs96EG.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-C8FlaTDz.js → vue-ui-spark-trend-BjNjO7Al.js} +5 -5
- package/dist/{vue-ui-spark-trend-liGslvUe.cjs → vue-ui-spark-trend-Cx5_BczW.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BjCkuYB0.js → vue-ui-sparkbar-Bj9M7Klo.js} +4 -4
- package/dist/{vue-ui-sparkbar-DTUuvjOA.cjs → vue-ui-sparkbar-CzRw1-5c.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BEL_6k7M.cjs → vue-ui-sparkgauge-iMqket_H.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BBJvgM0r.js → vue-ui-sparkgauge-mx5x8jhB.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DgRpgf4S.js → vue-ui-sparkhistogram-knnJtMmd.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B12f_DfZ.cjs → vue-ui-sparkhistogram-w4t8R3kU.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CgNq3TDg.cjs → vue-ui-sparkline-BgGreU8G.cjs} +1 -1
- package/dist/{vue-ui-sparkline-COtgfnKN.js → vue-ui-sparkline-C4xJULc3.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-3qtBnVN-.js → vue-ui-sparkstackbar-DKozbgvk.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-JgTWCear.cjs → vue-ui-sparkstackbar-oCiVPgqg.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BIQOmKWQ.cjs → vue-ui-stackbar-Bomp_wIS.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BzWMNHEl.js → vue-ui-stackbar-avxRfDtE.js} +13 -13
- package/dist/{vue-ui-strip-plot-Pr-p3HVe.cjs → vue-ui-strip-plot-7k2wQR85.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B5yz7F4O.js → vue-ui-strip-plot-CdLa8dCp.js} +11 -11
- package/dist/{vue-ui-table-DfzIKXYz.js → vue-ui-table-C0a-SgcX.js} +1 -1
- package/dist/{vue-ui-table-Da8yPHbm.cjs → vue-ui-table-CE-PgrMl.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B42LEDQq.js → vue-ui-table-heatmap-BoI6tise.js} +4 -4
- package/dist/{vue-ui-table-heatmap-m9WunlMI.cjs → vue-ui-table-heatmap-ycSv15rY.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-D0NpqAlx.js → vue-ui-table-sparkline-Dxx6025N.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D87wVYbh.cjs → vue-ui-table-sparkline-idKvXcFK.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CpaWOGHr.cjs → vue-ui-thermometer-Bu1o-YxS.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CLrrfpCH.js → vue-ui-thermometer-Cx0BYvoa.js} +7 -7
- package/dist/{vue-ui-timer-DJ3N2OIu.cjs → vue-ui-timer-D_UKwqRG.cjs} +1 -1
- package/dist/{vue-ui-timer-ruhqlCDV.js → vue-ui-timer-DkGY_7Z9.js} +5 -5
- package/dist/{vue-ui-tiremarks-B1PaJvW_.js → vue-ui-tiremarks-CL8yqBs3.js} +7 -7
- package/dist/{vue-ui-tiremarks-By-ZwLdD.cjs → vue-ui-tiremarks-DTm_Xj8_.cjs} +1 -1
- package/dist/vue-ui-treemap-WcZTaeP0.js +956 -0
- package/dist/vue-ui-treemap-rohF9UGD.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-Bi_p2HMG.js → vue-ui-vertical-bar-Czmk3lor.js} +12 -12
- package/dist/{vue-ui-vertical-bar-D51OT6tD.cjs → vue-ui-vertical-bar-EJofGF6Z.cjs} +1 -1
- package/dist/{vue-ui-waffle-BRFWNTTy.cjs → vue-ui-waffle-C7Lq9EWX.cjs} +1 -1
- package/dist/{vue-ui-waffle-D_OFNFu_.js → vue-ui-waffle-Ci5lps_0.js} +12 -12
- package/dist/{vue-ui-wheel-C_0xODX0.cjs → vue-ui-wheel-DSUUCTFP.cjs} +1 -1
- package/dist/{vue-ui-wheel-Dm-sn-fc.js → vue-ui-wheel-DWSgTz2U.js} +7 -7
- package/dist/{vue-ui-word-cloud-WO_xGFwd.js → vue-ui-word-cloud-IoOiZMCJ.js} +10 -10
- package/dist/{vue-ui-word-cloud-CpbPC0k6.cjs → vue-ui-word-cloud-pp9BsZMx.cjs} +1 -1
- package/dist/{vue-ui-xy-DYGsBFzv.js → vue-ui-xy-Bk09XvD1.js} +14 -14
- package/dist/{vue-ui-xy-canvas-SpUUvBPW.js → vue-ui-xy-canvas-BEWBX2Os.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DCFJnGtu.cjs → vue-ui-xy-canvas-hUlid7hP.cjs} +1 -1
- package/dist/{vue-ui-xy-ArWU04zz.cjs → vue-ui-xy-e1xFpXmD.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-treemap-B3_lUi3B.js +0 -939
- package/dist/vue-ui-treemap-DX_oIHsl.cjs +0 -1
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
import { useSlots as pt, onMounted as je, computed as C, ref as g, watch as gt, onBeforeUnmount as mt, createElementBlock as y, openBlock as v, unref as m, normalizeStyle as L, normalizeClass as me, createBlock as X, createCommentVNode as _, createElementVNode as O, createVNode as ye, createSlots as yt, withCtx as x, renderSlot as $, normalizeProps as j, guardReactiveProps as Y, Fragment as ce, renderList as be, withKeys as Ye, withModifiers as ke, mergeProps as Ke, createTextVNode as de, toDisplayString as K, nextTick as bt } from "vue";
|
|
2
|
+
import { u as kt, c as Ze, t as wt, p as S, a as Ct, b as $t, o as xt, e as Tt, d as ve, i as he, f as le, X as _t, l as Je, G as Qe, x as et, q as Ot, r as St, y as It } from "./index-BdV23M_4.js";
|
|
3
|
+
import { _ as Nt } from "./Title-Dr0O3Ohb.js";
|
|
4
|
+
import { u as zt, U as Ft } from "./usePrinter-TFomTfxX.js";
|
|
5
|
+
import { _ as At } from "./Tooltip-C8mLFDBp.js";
|
|
6
|
+
import { L as Pt } from "./Legend-BCngKEVr.js";
|
|
7
|
+
import Rt from "./vue-ui-skeleton-CVnkLuNk.js";
|
|
8
|
+
import { D as Lt } from "./DataTable-D9wdDVT6.js";
|
|
9
|
+
import Dt from "./vue-ui-accordion-2_hSAOvX.js";
|
|
10
|
+
import { t as Mt, u as Vt } from "./useResponsive-vZgZwV-S.js";
|
|
11
|
+
import { u as tt } from "./useNestedProp-DyW-iWus.js";
|
|
12
|
+
import { _ as Bt } from "./PackageVersion-DR6SOSy8.js";
|
|
13
|
+
import { P as Ht } from "./PenAndPaper-DxsKkGjV.js";
|
|
14
|
+
import { u as Ut } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { u as Wt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
+
import Et from "./BaseIcon-Dx5FJt-N.js";
|
|
17
|
+
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
function lt(n, r) {
|
|
19
|
+
const u = n.length;
|
|
20
|
+
if (u === 0)
|
|
21
|
+
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
22
|
+
{
|
|
23
|
+
let i = 1 / 0, s = -1 / 0, c = 0;
|
|
24
|
+
for (let f = 0; f < u; f += 1) {
|
|
25
|
+
const p = n[f].normalizedValue;
|
|
26
|
+
p < i && (i = p), p > s && (s = p), c += p;
|
|
27
|
+
}
|
|
28
|
+
return Math.max(
|
|
29
|
+
r ** 2 * s / c ** 2,
|
|
30
|
+
c ** 2 / (r ** 2 * i)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function ot(n) {
|
|
35
|
+
const { xOffset: r, yOffset: u, width: i, height: s } = n;
|
|
36
|
+
return {
|
|
37
|
+
x0: r,
|
|
38
|
+
y0: u,
|
|
39
|
+
x1: r + i,
|
|
40
|
+
y1: u + s
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function qt(n, r, u) {
|
|
44
|
+
if (n.length === 0)
|
|
45
|
+
return !0;
|
|
46
|
+
{
|
|
47
|
+
const i = n.concat(r), s = lt(
|
|
48
|
+
n,
|
|
49
|
+
u
|
|
50
|
+
), c = lt(i, u);
|
|
51
|
+
return s >= c;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function Xt(n) {
|
|
55
|
+
const r = [], u = n.length;
|
|
56
|
+
for (let i = 0; i < u; i += 1) {
|
|
57
|
+
const s = n[i], c = s.length;
|
|
58
|
+
for (let d = 0; d < c; d += 1)
|
|
59
|
+
r.push(s[d]);
|
|
60
|
+
}
|
|
61
|
+
return r;
|
|
62
|
+
}
|
|
63
|
+
function jt(n, r) {
|
|
64
|
+
const u = {
|
|
65
|
+
...r,
|
|
66
|
+
children: n
|
|
67
|
+
};
|
|
68
|
+
return nt(u);
|
|
69
|
+
}
|
|
70
|
+
function Yt(n) {
|
|
71
|
+
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
72
|
+
}
|
|
73
|
+
function at(n, r) {
|
|
74
|
+
const { width: u, height: i, xOffset: s, yOffset: c } = we(r), d = n.length, f = n.map((k) => k.normalizedValue || 0).reduce((k, b) => k + b, 0), p = f / i, z = f / u;
|
|
75
|
+
let I = s, F = c;
|
|
76
|
+
const w = [];
|
|
77
|
+
if (u >= i) {
|
|
78
|
+
for (let k = 0; k < d; k += 1) {
|
|
79
|
+
const b = n[k], T = F + b.normalizedValue / p, M = {
|
|
80
|
+
x0: I,
|
|
81
|
+
y0: F,
|
|
82
|
+
x1: I + p,
|
|
83
|
+
y1: T
|
|
84
|
+
}, A = Object.assign({}, b, M);
|
|
85
|
+
F = T, w.push(A);
|
|
86
|
+
}
|
|
87
|
+
return w;
|
|
88
|
+
} else {
|
|
89
|
+
for (let k = 0; k < d; k += 1) {
|
|
90
|
+
const b = n[k], T = I + b.normalizedValue / z, M = {
|
|
91
|
+
x0: I,
|
|
92
|
+
y0: F,
|
|
93
|
+
x1: T,
|
|
94
|
+
y1: F + z
|
|
95
|
+
}, A = Object.assign({}, b, M);
|
|
96
|
+
I = T, w.push(A);
|
|
97
|
+
}
|
|
98
|
+
return w;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
function Kt(n) {
|
|
102
|
+
const r = we(n), u = r.width, i = r.height;
|
|
103
|
+
return Math.min(u, i);
|
|
104
|
+
}
|
|
105
|
+
function Zt(n, r) {
|
|
106
|
+
const u = n.length, i = n.map((p) => p.value ?? 0).reduce((p, z) => p + z, 0), s = r / i, c = [];
|
|
107
|
+
let d, f;
|
|
108
|
+
for (let p = 0; p < u; p += 1)
|
|
109
|
+
f = n[p], d = Object.assign({}, f, {
|
|
110
|
+
normalizedValue: f.value * (s || 0)
|
|
111
|
+
}), c.push(d);
|
|
112
|
+
return c;
|
|
113
|
+
}
|
|
114
|
+
function we(n) {
|
|
115
|
+
const { x0: r, y0: u, x1: i, y1: s } = n;
|
|
116
|
+
return {
|
|
117
|
+
xOffset: r,
|
|
118
|
+
yOffset: u,
|
|
119
|
+
width: i - r,
|
|
120
|
+
height: s - u
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function Jt(n, r, u, i) {
|
|
124
|
+
let s = n, c = r, d = u, f = i;
|
|
125
|
+
for (; ; ) {
|
|
126
|
+
const p = s.length;
|
|
127
|
+
if (p === 0) {
|
|
128
|
+
const w = at(c, d);
|
|
129
|
+
return f.concat(w);
|
|
130
|
+
}
|
|
131
|
+
const z = Kt(d), I = s[0], F = s.slice(1, p);
|
|
132
|
+
if (qt(c, I, z)) {
|
|
133
|
+
const w = c.concat(I);
|
|
134
|
+
s = F, c = w, d = d, f = f;
|
|
135
|
+
} else {
|
|
136
|
+
const w = c.length;
|
|
137
|
+
let k = 0;
|
|
138
|
+
for (let A = 0; A < w; A += 1)
|
|
139
|
+
k += c[A].normalizedValue;
|
|
140
|
+
const b = Qt(d, k), T = at(c, d), M = f.concat(T);
|
|
141
|
+
s = s, c = [], d = b, f = M;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function nt(n) {
|
|
146
|
+
if (typeof n.children > "u" || !n.children.length)
|
|
147
|
+
return [n];
|
|
148
|
+
{
|
|
149
|
+
const r = Zt(
|
|
150
|
+
n.children,
|
|
151
|
+
Yt(n)
|
|
152
|
+
), u = Jt(r, [], n, []), i = u.length, s = [];
|
|
153
|
+
for (let d = 0; d < i; d += 1)
|
|
154
|
+
s.push(nt(u[d]));
|
|
155
|
+
return Xt(s);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function Qt(n, r) {
|
|
159
|
+
const { width: u, height: i, xOffset: s, yOffset: c } = we(n);
|
|
160
|
+
if (u >= i) {
|
|
161
|
+
const d = r / i, f = u - d, p = {
|
|
162
|
+
xOffset: s + d,
|
|
163
|
+
yOffset: c,
|
|
164
|
+
width: f,
|
|
165
|
+
height: i
|
|
166
|
+
};
|
|
167
|
+
return ot(p);
|
|
168
|
+
} else {
|
|
169
|
+
const d = r / u, f = i - d, p = {
|
|
170
|
+
xOffset: s,
|
|
171
|
+
yOffset: c + d,
|
|
172
|
+
width: u,
|
|
173
|
+
height: f
|
|
174
|
+
};
|
|
175
|
+
return ot(p);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
const el = ["id"], tl = {
|
|
179
|
+
key: 4,
|
|
180
|
+
class: "vue-ui-treemap-breadcrumbs",
|
|
181
|
+
"data-html2canvas-ignore": ""
|
|
182
|
+
}, ll = ["tabindex", "onClick", "onKeydown", "data-last-crumb", "onMouseenter", "onFocus"], ol = { class: "vue-ui-treemap-crumb-unit" }, al = { class: "vue-ui-treemap-crumb-unit-label" }, nl = {
|
|
183
|
+
key: 0,
|
|
184
|
+
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
185
|
+
}, sl = {
|
|
186
|
+
key: 0,
|
|
187
|
+
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
188
|
+
}, ul = ["xmlns", "viewBox"], rl = { key: 0 }, il = ["id"], cl = ["stop-color"], dl = ["stop-color"], vl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], hl = ["x", "y", "height", "width"], fl = {
|
|
189
|
+
style: { width: "100%", height: "100%" },
|
|
190
|
+
class: "vue-ui-treemap-cell"
|
|
191
|
+
}, pl = {
|
|
192
|
+
key: 6,
|
|
193
|
+
class: "vue-data-ui-watermark"
|
|
194
|
+
}, gl = ["onClick"], ml = { key: 0 }, yl = { key: 1 }, bl = ["innerHTML"], kl = {
|
|
195
|
+
__name: "vue-ui-treemap",
|
|
196
|
+
props: {
|
|
197
|
+
config: {
|
|
198
|
+
type: Object,
|
|
199
|
+
default() {
|
|
200
|
+
return {};
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
dataset: {
|
|
204
|
+
type: Array,
|
|
205
|
+
default() {
|
|
206
|
+
return [];
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
emits: ["selectLegend", "selectDatapoint"],
|
|
211
|
+
setup(n, { expose: r, emit: u }) {
|
|
212
|
+
const { vue_ui_treemap: i } = kt(), s = n, c = u, d = pt();
|
|
213
|
+
je(() => {
|
|
214
|
+
d["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
215
|
+
});
|
|
216
|
+
const f = C(() => !!s.dataset && s.dataset.length), p = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), z = g(Ze()), I = g(!1), F = g(""), w = g(!1), k = g(0), b = g([]), T = g(null), M = g(null), A = g(null), Ce = g(null), $e = g(null), xe = g(0), Te = g(0), _e = g(0), t = C({
|
|
217
|
+
get: () => Ne(),
|
|
218
|
+
set: (e) => e
|
|
219
|
+
}), { userOptionsVisible: fe, setUserOptionsVisibility: Oe, keepUserOptionState: Se } = Ut({ config: t.value }), { svgRef: Ie } = Wt({ config: t.value.style.chart.title });
|
|
220
|
+
function Ne() {
|
|
221
|
+
const e = tt({
|
|
222
|
+
userConfig: s.config,
|
|
223
|
+
defaultConfig: i
|
|
224
|
+
});
|
|
225
|
+
return e.theme ? {
|
|
226
|
+
...tt({
|
|
227
|
+
userConfig: Ct.vue_ui_treemap[e.theme] || s.config,
|
|
228
|
+
defaultConfig: e
|
|
229
|
+
}),
|
|
230
|
+
customPalette: wt[e.theme] || S
|
|
231
|
+
} : e;
|
|
232
|
+
}
|
|
233
|
+
gt(() => s.config, (e) => {
|
|
234
|
+
t.value = Ne(), fe.value = !t.value.userOptions.showOnChartHover, xe.value += 1, Te.value += 1, _e.value += 1, P.value.showTable = t.value.table.show, P.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
235
|
+
}, { deep: !0 });
|
|
236
|
+
const { isPrinting: ze, isImaging: Fe, generatePdf: Ae, generateImage: Pe } = zt({
|
|
237
|
+
elementId: `treemap_${z.value}`,
|
|
238
|
+
fileName: t.value.style.chart.title.text || "vue-ui-treemap",
|
|
239
|
+
options: t.value.userOptions.print
|
|
240
|
+
}), st = C(() => t.value.userOptions.show && !t.value.style.chart.title.text), oe = C(() => $t(t.value.customPalette)), P = g({
|
|
241
|
+
showTable: t.value.table.show,
|
|
242
|
+
showTooltip: t.value.style.chart.tooltip.show
|
|
243
|
+
}), V = g({
|
|
244
|
+
height: t.value.style.chart.height,
|
|
245
|
+
width: t.value.style.chart.width
|
|
246
|
+
}), E = C(() => ({
|
|
247
|
+
bottom: V.value.height - t.value.style.chart.padding.bottom,
|
|
248
|
+
height: V.value.height - t.value.style.chart.padding.top - t.value.style.chart.padding.bottom,
|
|
249
|
+
left: t.value.style.chart.padding.left,
|
|
250
|
+
right: V.value.width - t.value.style.chart.padding.right,
|
|
251
|
+
top: t.value.style.chart.padding.top,
|
|
252
|
+
vbHeight: V.value.height,
|
|
253
|
+
vbWidth: V.value.width,
|
|
254
|
+
width: V.value.width - t.value.style.chart.padding.left - t.value.style.chart.padding.right
|
|
255
|
+
}));
|
|
256
|
+
function Re(e) {
|
|
257
|
+
e.forEach((o, l) => {
|
|
258
|
+
o.id = Ze(), o.color = ve(o.color) || oe.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
|
|
259
|
+
a.parentId = o.id, a.color = o.color;
|
|
260
|
+
}), Re(o.children));
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
const B = g(s.dataset), ae = g(null);
|
|
264
|
+
je(() => {
|
|
265
|
+
ut();
|
|
266
|
+
});
|
|
267
|
+
function ut() {
|
|
268
|
+
if (xt(s.dataset) && Tt({
|
|
269
|
+
componentName: "VueUiTreemap",
|
|
270
|
+
type: "dataset"
|
|
271
|
+
}), Re(B.value), t.value.responsive) {
|
|
272
|
+
const e = Mt(() => {
|
|
273
|
+
const { width: o, height: l } = Vt({
|
|
274
|
+
chart: T.value,
|
|
275
|
+
title: t.value.style.chart.title.text ? M.value : null,
|
|
276
|
+
legend: t.value.style.chart.legend.show ? A.value : null,
|
|
277
|
+
source: Ce.value,
|
|
278
|
+
noTitle: $e.value
|
|
279
|
+
});
|
|
280
|
+
requestAnimationFrame(() => {
|
|
281
|
+
V.value.width = o, V.value.height = l;
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
ae.value = new ResizeObserver(e), ae.value.observe(T.value.parentNode);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
mt(() => {
|
|
288
|
+
ae.value && ae.value.disconnect();
|
|
289
|
+
});
|
|
290
|
+
const Z = g(B.value), ee = C(() => Z.value.map((e, o) => ({
|
|
291
|
+
...e,
|
|
292
|
+
color: ve(e.color) || oe.value[o] || S[o] || S[o % S.length]
|
|
293
|
+
})).filter((e) => !b.value.includes(e.id))), J = C(() => B.value.filter((e) => !b.value.includes(e.id)).map((e) => e.value || 0).reduce((e, o) => e + o, 0)), Le = C({
|
|
294
|
+
get() {
|
|
295
|
+
let e = [...ee.value];
|
|
296
|
+
return t.value.style.chart.layout.sorted && (e = [...ee.value].sort((o, l) => l.value - o.value)), e.map((o) => ({
|
|
297
|
+
...o
|
|
298
|
+
}));
|
|
299
|
+
},
|
|
300
|
+
set(e) {
|
|
301
|
+
return e;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
function De(e, o) {
|
|
305
|
+
return e.value / o;
|
|
306
|
+
}
|
|
307
|
+
function rt(e, o, l) {
|
|
308
|
+
const a = t.value.style.chart.layout.rects.colorRatio - De(o, l);
|
|
309
|
+
return Je(e, a < 0 ? 0 : a);
|
|
310
|
+
}
|
|
311
|
+
function Me(e, o, l, a) {
|
|
312
|
+
return e.map((h, W) => {
|
|
313
|
+
const ie = rt(ve(o) || oe.value[W] || S[W] || S[W % S.length], h, a), ft = De(h, a);
|
|
314
|
+
return {
|
|
315
|
+
...h,
|
|
316
|
+
color: ie,
|
|
317
|
+
proportion: ft,
|
|
318
|
+
parentName: l,
|
|
319
|
+
children: h.children ? Me(h.children, ie, h.name, a) : void 0
|
|
320
|
+
};
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
const te = C(() => jt(
|
|
324
|
+
Le.value.map((e, o) => {
|
|
325
|
+
const l = e.children ? e.children.reduce((a, h) => a + h.value, 0) : e.value;
|
|
326
|
+
return {
|
|
327
|
+
value: e.value,
|
|
328
|
+
id: e.id,
|
|
329
|
+
children: e.children ? Me(e.children.sort((a, h) => h.value - a.value), e.color, e.name, l) : void 0,
|
|
330
|
+
color: e.color,
|
|
331
|
+
name: e.name
|
|
332
|
+
};
|
|
333
|
+
}),
|
|
334
|
+
{ x0: E.value.left * 2, y0: E.value.top, x1: E.value.width, y1: E.value.height }
|
|
335
|
+
));
|
|
336
|
+
function Ve({ y0: e, y1: o }) {
|
|
337
|
+
return o - e <= 0 ? 1e-4 : o - e;
|
|
338
|
+
}
|
|
339
|
+
function Be({ x0: e, x1: o }) {
|
|
340
|
+
return o - e <= 0 ? 1e-4 : o - e;
|
|
341
|
+
}
|
|
342
|
+
function G(e) {
|
|
343
|
+
const o = t.value.style.chart.layout.labels.fontSize * (e.proportion * 2 > 1 ? 1 : e.proportion * 2);
|
|
344
|
+
return o < t.value.style.chart.layout.labels.minFontSize ? t.value.style.chart.layout.labels.minFontSize : o;
|
|
345
|
+
}
|
|
346
|
+
function it(e) {
|
|
347
|
+
w.value = e, k.value += 1;
|
|
348
|
+
}
|
|
349
|
+
const Q = C(() => ({
|
|
350
|
+
startX: 0,
|
|
351
|
+
startY: 0,
|
|
352
|
+
width: E.value.vbWidth,
|
|
353
|
+
height: E.value.vbHeight
|
|
354
|
+
}));
|
|
355
|
+
function q(e, o = B.value) {
|
|
356
|
+
for (const l of o) {
|
|
357
|
+
if (l.id === e)
|
|
358
|
+
return l;
|
|
359
|
+
if (l.children) {
|
|
360
|
+
const a = q(e, l.children);
|
|
361
|
+
if (a)
|
|
362
|
+
return a;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
const N = g([]), H = C(() => N.value.length > 0);
|
|
368
|
+
function ne(e) {
|
|
369
|
+
var l;
|
|
370
|
+
if (!e) {
|
|
371
|
+
Z.value = B.value.slice(), c("selectDatapoint", void 0), N.value = [];
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
const o = q(e.id);
|
|
375
|
+
if (o && ((l = o.children) != null && l.length))
|
|
376
|
+
N.value.push(o.id), Z.value = o.children.slice(), c("selectDatapoint", e);
|
|
377
|
+
else if (e.parentId) {
|
|
378
|
+
N.value.push(e.parentId);
|
|
379
|
+
const a = q(e.parentId);
|
|
380
|
+
Z.value = a.children.slice(), c("selectDatapoint", e);
|
|
381
|
+
} else if (N.value.length > 0) {
|
|
382
|
+
N.value.pop();
|
|
383
|
+
const a = N.value[N.value.length - 1];
|
|
384
|
+
if (a) {
|
|
385
|
+
const h = q(a);
|
|
386
|
+
Z.value = h.children.slice();
|
|
387
|
+
} else
|
|
388
|
+
Z.value = B.value.slice(), N.value = [], c("selectDatapoint", void 0);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
function ct(e) {
|
|
392
|
+
var l;
|
|
393
|
+
const o = q(e.id);
|
|
394
|
+
return !!((l = o == null ? void 0 : o.children) != null && l.length || e.parentId);
|
|
395
|
+
}
|
|
396
|
+
const U = C(() => {
|
|
397
|
+
const e = [
|
|
398
|
+
{ id: null, label: "All" }
|
|
399
|
+
];
|
|
400
|
+
if (N.value.length > 0) {
|
|
401
|
+
let o = q(N.value[N.value.length - 1]);
|
|
402
|
+
const l = [];
|
|
403
|
+
for (; o; )
|
|
404
|
+
l.unshift(o), o = o.parentId ? q(o.parentId) : null;
|
|
405
|
+
for (const a of l)
|
|
406
|
+
e.push({
|
|
407
|
+
id: a.id,
|
|
408
|
+
label: a.name,
|
|
409
|
+
node: a
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
return e;
|
|
413
|
+
}), R = g(null), He = C(() => B.value.map((e, o) => ({
|
|
414
|
+
...e,
|
|
415
|
+
color: ve(e.color) || oe.value[o] || S[o] || S[o % S.length],
|
|
416
|
+
shape: "square"
|
|
417
|
+
})).sort((e, o) => o.value - e.value).map((e, o) => ({
|
|
418
|
+
...e,
|
|
419
|
+
proportion: e.value / B.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
420
|
+
opacity: b.value.includes(e.id) ? 0.5 : 1
|
|
421
|
+
}))), dt = C(() => ({
|
|
422
|
+
cy: "treemap-div-legend",
|
|
423
|
+
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
424
|
+
color: t.value.style.chart.legend.color,
|
|
425
|
+
fontSize: t.value.style.chart.legend.fontSize,
|
|
426
|
+
paddingBottom: 12,
|
|
427
|
+
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
428
|
+
}));
|
|
429
|
+
function Ue(e) {
|
|
430
|
+
H.value = !1, R.value = null, b.value.includes(e.id) ? b.value = b.value.filter((o) => o !== e.id) : b.value.length < s.dataset.length - 1 && b.value.push(e.id), c("selectLegend", Le.value);
|
|
431
|
+
}
|
|
432
|
+
const pe = g(null);
|
|
433
|
+
function vt({ datapoint: e, seriesIndex: o }) {
|
|
434
|
+
R.value = e, pe.value = { datapoint: e, seriesIndex: o, config: t.value, series: ee.value };
|
|
435
|
+
const l = t.value.style.chart.tooltip.customFormat;
|
|
436
|
+
if (et(l) && It(() => l({
|
|
437
|
+
seriesIndex: o,
|
|
438
|
+
datapoint: e,
|
|
439
|
+
series: ee.value,
|
|
440
|
+
config: t.value
|
|
441
|
+
})))
|
|
442
|
+
F.value = l({
|
|
443
|
+
seriesIndex: o,
|
|
444
|
+
datapoint: e,
|
|
445
|
+
series: ee.value,
|
|
446
|
+
config: t.value
|
|
447
|
+
});
|
|
448
|
+
else {
|
|
449
|
+
let a = "";
|
|
450
|
+
a += `<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>`, a += `<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>`, a += `<b>${he(
|
|
451
|
+
t.value.style.chart.layout.labels.formatter,
|
|
452
|
+
e.value,
|
|
453
|
+
le({
|
|
454
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
455
|
+
v: e.value,
|
|
456
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
457
|
+
r: t.value.style.chart.tooltip.roundingValue
|
|
458
|
+
}),
|
|
459
|
+
{ datapoint: e, seriesIndex: o }
|
|
460
|
+
)}</b>`, F.value = `<div>${a}</div>`;
|
|
461
|
+
}
|
|
462
|
+
I.value = !0;
|
|
463
|
+
}
|
|
464
|
+
const D = C(() => {
|
|
465
|
+
const e = te.value.map((l) => ({
|
|
466
|
+
name: l.name,
|
|
467
|
+
color: l.color
|
|
468
|
+
})), o = te.value.map((l) => l.value);
|
|
469
|
+
return { head: e, body: o };
|
|
470
|
+
});
|
|
471
|
+
function We() {
|
|
472
|
+
bt(() => {
|
|
473
|
+
const e = D.value.head.map((a, h) => [[
|
|
474
|
+
a.name
|
|
475
|
+
], [D.value.body[h]], [isNaN(D.value.body[h] / J.value) ? "-" : D.value.body[h] / J.value * 100]]), o = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(e), l = Ot(o);
|
|
476
|
+
St({ csvContent: l, title: t.value.style.chart.title.text || "vue-ui-treemap" });
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
const se = C(() => {
|
|
480
|
+
const e = [
|
|
481
|
+
t.value.table.columnNames.series,
|
|
482
|
+
t.value.table.columnNames.value,
|
|
483
|
+
t.value.table.columnNames.percentage
|
|
484
|
+
], o = D.value.head.map((h, W) => {
|
|
485
|
+
const ie = he(
|
|
486
|
+
t.value.style.chart.layout.labels.formatter,
|
|
487
|
+
D.value.body[W],
|
|
488
|
+
le({
|
|
489
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
490
|
+
v: D.value.body[W],
|
|
491
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
492
|
+
r: t.value.table.td.roundingValue
|
|
493
|
+
})
|
|
494
|
+
);
|
|
495
|
+
return [
|
|
496
|
+
{
|
|
497
|
+
color: h.color,
|
|
498
|
+
name: h.name,
|
|
499
|
+
shape: "square"
|
|
500
|
+
},
|
|
501
|
+
ie,
|
|
502
|
+
isNaN(D.value.body[W] / J.value) ? "-" : le({
|
|
503
|
+
v: D.value.body[W] / J.value * 100,
|
|
504
|
+
s: "%",
|
|
505
|
+
r: t.value.table.td.roundingPercentage
|
|
506
|
+
})
|
|
507
|
+
];
|
|
508
|
+
}), l = {
|
|
509
|
+
th: {
|
|
510
|
+
backgroundColor: t.value.table.th.backgroundColor,
|
|
511
|
+
color: t.value.table.th.color,
|
|
512
|
+
outline: t.value.table.th.outline
|
|
513
|
+
},
|
|
514
|
+
td: {
|
|
515
|
+
backgroundColor: t.value.table.td.backgroundColor,
|
|
516
|
+
color: t.value.table.td.color,
|
|
517
|
+
outline: t.value.table.td.outline
|
|
518
|
+
},
|
|
519
|
+
breakpoint: t.value.table.responsiveBreakpoint
|
|
520
|
+
};
|
|
521
|
+
return {
|
|
522
|
+
colNames: [
|
|
523
|
+
t.value.table.columnNames.series,
|
|
524
|
+
t.value.table.columnNames.value
|
|
525
|
+
],
|
|
526
|
+
head: e,
|
|
527
|
+
body: o,
|
|
528
|
+
config: l
|
|
529
|
+
};
|
|
530
|
+
});
|
|
531
|
+
function ht() {
|
|
532
|
+
return te.value;
|
|
533
|
+
}
|
|
534
|
+
function Ee() {
|
|
535
|
+
P.value.showTable = !P.value.showTable;
|
|
536
|
+
}
|
|
537
|
+
function Ge() {
|
|
538
|
+
P.value.showTooltip = !P.value.showTooltip;
|
|
539
|
+
}
|
|
540
|
+
const ue = g(!1);
|
|
541
|
+
function ge() {
|
|
542
|
+
ue.value = !ue.value;
|
|
543
|
+
}
|
|
544
|
+
const re = g(null);
|
|
545
|
+
function qe(e) {
|
|
546
|
+
re.value = e;
|
|
547
|
+
}
|
|
548
|
+
function Xe() {
|
|
549
|
+
re.value = null;
|
|
550
|
+
}
|
|
551
|
+
return r({
|
|
552
|
+
getData: ht,
|
|
553
|
+
generateCsv: We,
|
|
554
|
+
generateImage: Pe,
|
|
555
|
+
generatePdf: Ae,
|
|
556
|
+
toggleTable: Ee,
|
|
557
|
+
toggleTooltip: Ge,
|
|
558
|
+
toggleAnnotator: ge
|
|
559
|
+
}), (e, o) => (v(), y("div", {
|
|
560
|
+
ref_key: "treemapChart",
|
|
561
|
+
ref: T,
|
|
562
|
+
class: me(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
563
|
+
style: L(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive ? "height: 100%;" : ""} text-align:center;background:${t.value.style.chart.backgroundColor}`),
|
|
564
|
+
id: `treemap_${z.value}`,
|
|
565
|
+
onMouseenter: o[3] || (o[3] = () => m(Oe)(!0)),
|
|
566
|
+
onMouseleave: o[4] || (o[4] = () => m(Oe)(!1))
|
|
567
|
+
}, [
|
|
568
|
+
t.value.userOptions.buttons.annotator ? (v(), X(Ht, {
|
|
569
|
+
key: 0,
|
|
570
|
+
svgRef: m(Ie),
|
|
571
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
572
|
+
color: t.value.style.chart.color,
|
|
573
|
+
active: ue.value,
|
|
574
|
+
onClose: ge
|
|
575
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
576
|
+
st.value ? (v(), y("div", {
|
|
577
|
+
key: 1,
|
|
578
|
+
ref_key: "noTitle",
|
|
579
|
+
ref: $e,
|
|
580
|
+
class: "vue-data-ui-no-title-space",
|
|
581
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
582
|
+
}, null, 512)) : _("", !0),
|
|
583
|
+
t.value.style.chart.title.text ? (v(), y("div", {
|
|
584
|
+
key: 2,
|
|
585
|
+
ref_key: "chartTitle",
|
|
586
|
+
ref: M,
|
|
587
|
+
style: L(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
588
|
+
}, [
|
|
589
|
+
(v(), X(Nt, {
|
|
590
|
+
key: `title_${xe.value}`,
|
|
591
|
+
config: {
|
|
592
|
+
title: {
|
|
593
|
+
cy: "treemap-div-title",
|
|
594
|
+
...t.value.style.chart.title
|
|
595
|
+
},
|
|
596
|
+
subtitle: {
|
|
597
|
+
cy: "treemap-div-subtitle",
|
|
598
|
+
...t.value.style.chart.title.subtitle
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}, null, 8, ["config"]))
|
|
602
|
+
], 4)) : _("", !0),
|
|
603
|
+
t.value.userOptions.show && f.value && (m(Se) || m(fe)) ? (v(), X(Ft, {
|
|
604
|
+
ref: "details",
|
|
605
|
+
key: `user_option_${k.value}`,
|
|
606
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
607
|
+
color: t.value.style.chart.color,
|
|
608
|
+
isPrinting: m(ze),
|
|
609
|
+
isImaging: m(Fe),
|
|
610
|
+
uid: z.value,
|
|
611
|
+
hasTooltip: t.value.userOptions.buttons.tooltip && t.value.style.chart.tooltip.show,
|
|
612
|
+
hasPdf: t.value.userOptions.buttons.pdf,
|
|
613
|
+
hasXls: t.value.userOptions.buttons.csv,
|
|
614
|
+
hasImg: t.value.userOptions.buttons.img,
|
|
615
|
+
hasTable: t.value.userOptions.buttons.table,
|
|
616
|
+
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
617
|
+
isFullscreen: w.value,
|
|
618
|
+
isTooltip: P.value.showTooltip,
|
|
619
|
+
titles: { ...t.value.userOptions.buttonTitles },
|
|
620
|
+
chartElement: T.value,
|
|
621
|
+
position: t.value.userOptions.position,
|
|
622
|
+
hasAnnotator: t.value.userOptions.buttons.annotator,
|
|
623
|
+
isAnnotation: ue.value,
|
|
624
|
+
onToggleFullscreen: it,
|
|
625
|
+
onGeneratePdf: m(Ae),
|
|
626
|
+
onGenerateCsv: We,
|
|
627
|
+
onGenerateImage: m(Pe),
|
|
628
|
+
onToggleTable: Ee,
|
|
629
|
+
onToggleTooltip: Ge,
|
|
630
|
+
onToggleAnnotator: ge,
|
|
631
|
+
style: L({
|
|
632
|
+
visibility: m(Se) ? m(fe) ? "visible" : "hidden" : "visible"
|
|
633
|
+
})
|
|
634
|
+
}, yt({ _: 2 }, [
|
|
635
|
+
e.$slots.menuIcon ? {
|
|
636
|
+
name: "menuIcon",
|
|
637
|
+
fn: x(({ isOpen: l, color: a }) => [
|
|
638
|
+
$(e.$slots, "menuIcon", j(Y({ isOpen: l, color: a })), void 0, !0)
|
|
639
|
+
]),
|
|
640
|
+
key: "0"
|
|
641
|
+
} : void 0,
|
|
642
|
+
e.$slots.optionTooltip ? {
|
|
643
|
+
name: "optionTooltip",
|
|
644
|
+
fn: x(() => [
|
|
645
|
+
$(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
646
|
+
]),
|
|
647
|
+
key: "1"
|
|
648
|
+
} : void 0,
|
|
649
|
+
e.$slots.optionPdf ? {
|
|
650
|
+
name: "optionPdf",
|
|
651
|
+
fn: x(() => [
|
|
652
|
+
$(e.$slots, "optionPdf", {}, void 0, !0)
|
|
653
|
+
]),
|
|
654
|
+
key: "2"
|
|
655
|
+
} : void 0,
|
|
656
|
+
e.$slots.optionCsv ? {
|
|
657
|
+
name: "optionCsv",
|
|
658
|
+
fn: x(() => [
|
|
659
|
+
$(e.$slots, "optionCsv", {}, void 0, !0)
|
|
660
|
+
]),
|
|
661
|
+
key: "3"
|
|
662
|
+
} : void 0,
|
|
663
|
+
e.$slots.optionImg ? {
|
|
664
|
+
name: "optionImg",
|
|
665
|
+
fn: x(() => [
|
|
666
|
+
$(e.$slots, "optionImg", {}, void 0, !0)
|
|
667
|
+
]),
|
|
668
|
+
key: "4"
|
|
669
|
+
} : void 0,
|
|
670
|
+
e.$slots.optionTable ? {
|
|
671
|
+
name: "optionTable",
|
|
672
|
+
fn: x(() => [
|
|
673
|
+
$(e.$slots, "optionTable", {}, void 0, !0)
|
|
674
|
+
]),
|
|
675
|
+
key: "5"
|
|
676
|
+
} : void 0,
|
|
677
|
+
e.$slots.optionFullscreen ? {
|
|
678
|
+
name: "optionFullscreen",
|
|
679
|
+
fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
680
|
+
$(e.$slots, "optionFullscreen", j(Y({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
681
|
+
]),
|
|
682
|
+
key: "6"
|
|
683
|
+
} : void 0,
|
|
684
|
+
e.$slots.optionAnnotator ? {
|
|
685
|
+
name: "optionAnnotator",
|
|
686
|
+
fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
687
|
+
$(e.$slots, "optionAnnotator", j(Y({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
688
|
+
]),
|
|
689
|
+
key: "7"
|
|
690
|
+
} : void 0
|
|
691
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
692
|
+
U.value.length > 1 ? (v(), y("nav", tl, [
|
|
693
|
+
(v(!0), y(ce, null, be(U.value, (l, a) => (v(), y("span", {
|
|
694
|
+
role: "button",
|
|
695
|
+
tabindex: a < U.value.length - 1 ? 0 : void 0,
|
|
696
|
+
key: l.id || "root",
|
|
697
|
+
onClick: (h) => a === U.value.length - 1 ? () => {
|
|
698
|
+
} : ne(l.node),
|
|
699
|
+
onKeydown: [
|
|
700
|
+
Ye(ke((h) => a === U.value.length - 1 ? void 0 : ne(l.node), ["prevent"]), ["enter"]),
|
|
701
|
+
Ye(ke((h) => a === U.value.length - 1 ? void 0 : ne(l.node), ["prevent"]), ["space"])
|
|
702
|
+
],
|
|
703
|
+
class: "vue-ui-treemap-crumb",
|
|
704
|
+
"data-last-crumb": a === U.value.length - 1,
|
|
705
|
+
style: L({
|
|
706
|
+
color: t.value.style.chart.color
|
|
707
|
+
}),
|
|
708
|
+
onMouseenter: (h) => qe(a),
|
|
709
|
+
onMouseleave: Xe,
|
|
710
|
+
onFocus: (h) => qe(a),
|
|
711
|
+
onBlur: Xe
|
|
712
|
+
}, [
|
|
713
|
+
O("span", ol, [
|
|
714
|
+
O("span", al, [
|
|
715
|
+
$(e.$slots, "breadcrumb-label", Ke({ ref_for: !0 }, { crumb: l, isRoot: a === 0, isFocus: re.value === a }), () => [
|
|
716
|
+
a === 0 ? (v(), y("div", nl, [
|
|
717
|
+
ye(Et, {
|
|
718
|
+
name: re.value === 0 ? "homeFilled" : "home",
|
|
719
|
+
stroke: t.value.style.chart.color
|
|
720
|
+
}, null, 8, ["name", "stroke"])
|
|
721
|
+
])) : (v(), y(ce, { key: 1 }, [
|
|
722
|
+
de(K(l.label), 1)
|
|
723
|
+
], 64))
|
|
724
|
+
], !0)
|
|
725
|
+
]),
|
|
726
|
+
a < U.value.length - 1 ? (v(), y("span", sl, [
|
|
727
|
+
$(e.$slots, "breadcrumb-arrow", {}, () => [
|
|
728
|
+
o[5] || (o[5] = de(" › "))
|
|
729
|
+
], !0)
|
|
730
|
+
])) : _("", !0)
|
|
731
|
+
])
|
|
732
|
+
], 44, ll))), 128))
|
|
733
|
+
])) : _("", !0),
|
|
734
|
+
f.value ? (v(), y("svg", {
|
|
735
|
+
key: 5,
|
|
736
|
+
ref_key: "svgRef",
|
|
737
|
+
ref: Ie,
|
|
738
|
+
xmlns: m(_t),
|
|
739
|
+
class: me({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !H.value, "vue-data-ui-zoom-minus": H.value }),
|
|
740
|
+
viewBox: `${Q.value.startX} ${Q.value.startY} ${Q.value.width <= 0 ? 10 : Q.value.width} ${Q.value.height <= 0 ? 10 : Q.value.height}`,
|
|
741
|
+
style: L(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)
|
|
742
|
+
}, [
|
|
743
|
+
ye(Bt),
|
|
744
|
+
(v(!0), y(ce, null, be(te.value, (l, a) => (v(), y("g", null, [
|
|
745
|
+
t.value.style.chart.layout.rects.gradient.show ? (v(), y("defs", rl, [
|
|
746
|
+
O("radialGradient", {
|
|
747
|
+
id: `tgrad_${l.id}`,
|
|
748
|
+
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
749
|
+
}, [
|
|
750
|
+
O("stop", {
|
|
751
|
+
offset: "18%",
|
|
752
|
+
"stop-color": l.color
|
|
753
|
+
}, null, 8, cl),
|
|
754
|
+
O("stop", {
|
|
755
|
+
offset: "100%",
|
|
756
|
+
"stop-color": m(Je)(l.color, t.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
757
|
+
}, null, 8, dl)
|
|
758
|
+
], 8, il)
|
|
759
|
+
])) : _("", !0)
|
|
760
|
+
]))), 256)),
|
|
761
|
+
(v(!0), y(ce, null, be(te.value, (l, a) => (v(), y("g", null, [
|
|
762
|
+
O("rect", {
|
|
763
|
+
x: l.x0,
|
|
764
|
+
y: l.y0,
|
|
765
|
+
height: Ve(l),
|
|
766
|
+
width: Be(l),
|
|
767
|
+
fill: p.value ? l.color : t.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
768
|
+
rx: t.value.style.chart.layout.rects.borderRadius,
|
|
769
|
+
stroke: R.value && R.value.id === l.id ? t.value.style.chart.layout.rects.selected.stroke : t.value.style.chart.layout.rects.stroke,
|
|
770
|
+
"stroke-width": R.value && R.value.id === l.id ? t.value.style.chart.layout.rects.selected.strokeWidth : t.value.style.chart.layout.rects.strokeWidth,
|
|
771
|
+
onClick: ke((h) => ne(l), ["stop"]),
|
|
772
|
+
onMouseenter: () => vt({
|
|
773
|
+
datapoint: l,
|
|
774
|
+
seriesIndex: a
|
|
775
|
+
}),
|
|
776
|
+
onMouseleave: o[0] || (o[0] = (h) => {
|
|
777
|
+
R.value = null, I.value = !1;
|
|
778
|
+
}),
|
|
779
|
+
style: L(`opacity:${R.value ? R.value.id === l.id ? 1 : t.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
780
|
+
class: me([
|
|
781
|
+
"vue-ui-treemap-rect",
|
|
782
|
+
ct(l) ? "vue-data-ui-zoom-plus" : H.value ? "vue-data-ui-zoom-minus" : ""
|
|
783
|
+
])
|
|
784
|
+
}, null, 46, vl),
|
|
785
|
+
(v(), y("foreignObject", {
|
|
786
|
+
x: l.x0,
|
|
787
|
+
y: l.y0,
|
|
788
|
+
height: Ve(l),
|
|
789
|
+
width: Be(l),
|
|
790
|
+
class: "vue-ui-treemap-cell-foreignObject"
|
|
791
|
+
}, [
|
|
792
|
+
O("div", fl, [
|
|
793
|
+
t.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > t.value.style.chart.layout.labels.hideUnderProportion || H.value) ? (v(), y("div", {
|
|
794
|
+
key: 0,
|
|
795
|
+
class: "vue-ui-treemap-cell-default",
|
|
796
|
+
style: L(`width:calc(100% - ${G(l) / 1.5}px);text-align:left;line-height:${G(l) < 14 ? 14 : G(l)}px;padding:${G(l) / 3}px; color:${m(Qe)(l.color)}`)
|
|
797
|
+
}, [
|
|
798
|
+
O("span", {
|
|
799
|
+
style: L(`width:100%;font-size:${G(l)}px;`)
|
|
800
|
+
}, K(l.name), 5),
|
|
801
|
+
o[6] || (o[6] = O("br", null, null, -1)),
|
|
802
|
+
O("span", {
|
|
803
|
+
style: L(`width:100%;font-size:${G(l)}px;`)
|
|
804
|
+
}, K(m(he)(
|
|
805
|
+
t.value.style.chart.layout.labels.formatter,
|
|
806
|
+
l.value,
|
|
807
|
+
m(le)({
|
|
808
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
809
|
+
v: l.value,
|
|
810
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
811
|
+
r: t.value.style.chart.layout.labels.rounding
|
|
812
|
+
}),
|
|
813
|
+
{ datapoint: l }
|
|
814
|
+
)), 5)
|
|
815
|
+
], 4)) : _("", !0),
|
|
816
|
+
$(e.$slots, "rect", Ke({ ref_for: !0 }, {
|
|
817
|
+
rect: l,
|
|
818
|
+
shouldShow: l.proportion > t.value.style.chart.layout.labels.hideUnderProportion || H.value,
|
|
819
|
+
fontSize: G(l),
|
|
820
|
+
isZoom: H.value,
|
|
821
|
+
textColor: m(Qe)(l.color)
|
|
822
|
+
}), void 0, !0)
|
|
823
|
+
])
|
|
824
|
+
], 8, hl))
|
|
825
|
+
]))), 256)),
|
|
826
|
+
$(e.$slots, "svg", j(Y({ svg: E.value, isZoom: H.value, rect: R.value, config: t.value })), void 0, !0)
|
|
827
|
+
], 14, ul)) : _("", !0),
|
|
828
|
+
e.$slots.watermark ? (v(), y("div", pl, [
|
|
829
|
+
$(e.$slots, "watermark", j(Y({ isPrinting: m(ze) || m(Fe) })), void 0, !0)
|
|
830
|
+
])) : _("", !0),
|
|
831
|
+
f.value ? _("", !0) : (v(), X(Rt, {
|
|
832
|
+
key: 7,
|
|
833
|
+
config: {
|
|
834
|
+
type: "treemap",
|
|
835
|
+
style: {
|
|
836
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
837
|
+
treemap: {
|
|
838
|
+
color: "#CCCCCC"
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}, null, 8, ["config"])),
|
|
843
|
+
O("div", {
|
|
844
|
+
ref_key: "chartLegend",
|
|
845
|
+
ref: A
|
|
846
|
+
}, [
|
|
847
|
+
t.value.style.chart.legend.show ? (v(), X(Pt, {
|
|
848
|
+
key: `legend_${_e.value}`,
|
|
849
|
+
legendSet: He.value,
|
|
850
|
+
config: dt.value,
|
|
851
|
+
id: `treemap_legend_${z.value}`,
|
|
852
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Ue(l))
|
|
853
|
+
}, {
|
|
854
|
+
item: x(({ legend: l, index: a }) => [
|
|
855
|
+
O("div", {
|
|
856
|
+
onClick: (h) => Ue(l),
|
|
857
|
+
style: L(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
|
|
858
|
+
}, [
|
|
859
|
+
de(K(l.name) + ": " + K(m(he)(
|
|
860
|
+
t.value.style.chart.layout.labels.formatter,
|
|
861
|
+
l.value,
|
|
862
|
+
m(le)({
|
|
863
|
+
p: t.value.style.chart.layout.labels.prefix,
|
|
864
|
+
v: l.value,
|
|
865
|
+
s: t.value.style.chart.layout.labels.suffix,
|
|
866
|
+
r: t.value.style.chart.legend.roundingValue
|
|
867
|
+
}),
|
|
868
|
+
{ datapoint: l }
|
|
869
|
+
)) + " ", 1),
|
|
870
|
+
b.value.includes(l.id) ? (v(), y("span", yl, " ( - % ) ")) : (v(), y("span", ml, " (" + K(isNaN(l.value / J.value) ? "-" : (l.value / J.value * 100).toFixed(t.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
871
|
+
], 12, gl)
|
|
872
|
+
]),
|
|
873
|
+
_: 1
|
|
874
|
+
}, 8, ["legendSet", "config", "id"])) : $(e.$slots, "legend", {
|
|
875
|
+
key: 1,
|
|
876
|
+
legend: He.value
|
|
877
|
+
}, void 0, !0)
|
|
878
|
+
], 512),
|
|
879
|
+
e.$slots.source ? (v(), y("div", {
|
|
880
|
+
key: 8,
|
|
881
|
+
ref_key: "source",
|
|
882
|
+
ref: Ce,
|
|
883
|
+
dir: "auto"
|
|
884
|
+
}, [
|
|
885
|
+
$(e.$slots, "source", {}, void 0, !0)
|
|
886
|
+
], 512)) : _("", !0),
|
|
887
|
+
ye(At, {
|
|
888
|
+
show: P.value.showTooltip && I.value,
|
|
889
|
+
backgroundColor: t.value.style.chart.tooltip.backgroundColor,
|
|
890
|
+
color: t.value.style.chart.tooltip.color,
|
|
891
|
+
fontSize: t.value.style.chart.tooltip.fontSize,
|
|
892
|
+
borderRadius: t.value.style.chart.tooltip.borderRadius,
|
|
893
|
+
borderColor: t.value.style.chart.tooltip.borderColor,
|
|
894
|
+
borderWidth: t.value.style.chart.tooltip.borderWidth,
|
|
895
|
+
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
896
|
+
position: t.value.style.chart.tooltip.position,
|
|
897
|
+
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
898
|
+
parent: T.value,
|
|
899
|
+
content: F.value,
|
|
900
|
+
isFullscreen: w.value,
|
|
901
|
+
isCustom: m(et)(t.value.style.chart.tooltip.customFormat)
|
|
902
|
+
}, {
|
|
903
|
+
"tooltip-before": x(() => [
|
|
904
|
+
$(e.$slots, "tooltip-before", j(Y({ ...pe.value })), void 0, !0)
|
|
905
|
+
]),
|
|
906
|
+
"tooltip-after": x(() => [
|
|
907
|
+
$(e.$slots, "tooltip-after", j(Y({ ...pe.value })), void 0, !0)
|
|
908
|
+
]),
|
|
909
|
+
_: 3
|
|
910
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
911
|
+
f.value ? (v(), X(Dt, {
|
|
912
|
+
key: 9,
|
|
913
|
+
hideDetails: "",
|
|
914
|
+
config: {
|
|
915
|
+
open: P.value.showTable,
|
|
916
|
+
maxHeight: 1e4,
|
|
917
|
+
body: {
|
|
918
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
919
|
+
color: t.value.style.chart.color
|
|
920
|
+
},
|
|
921
|
+
head: {
|
|
922
|
+
backgroundColor: t.value.style.chart.backgroundColor,
|
|
923
|
+
color: t.value.style.chart.color
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}, {
|
|
927
|
+
content: x(() => [
|
|
928
|
+
(v(), X(Lt, {
|
|
929
|
+
key: `table_${Te.value}`,
|
|
930
|
+
colNames: se.value.colNames,
|
|
931
|
+
head: se.value.head,
|
|
932
|
+
body: se.value.body,
|
|
933
|
+
config: se.value.config,
|
|
934
|
+
title: `${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text ? ` : ${t.value.style.chart.title.subtitle.text}` : ""}`,
|
|
935
|
+
onClose: o[2] || (o[2] = (l) => P.value.showTable = !1)
|
|
936
|
+
}, {
|
|
937
|
+
th: x(({ th: l }) => [
|
|
938
|
+
O("div", {
|
|
939
|
+
innerHTML: l,
|
|
940
|
+
style: { display: "flex", "align-items": "center" }
|
|
941
|
+
}, null, 8, bl)
|
|
942
|
+
]),
|
|
943
|
+
td: x(({ td: l }) => [
|
|
944
|
+
de(K(l.name || l), 1)
|
|
945
|
+
]),
|
|
946
|
+
_: 1
|
|
947
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
948
|
+
]),
|
|
949
|
+
_: 1
|
|
950
|
+
}, 8, ["config"])) : _("", !0)
|
|
951
|
+
], 46, el));
|
|
952
|
+
}
|
|
953
|
+
}, Ml = /* @__PURE__ */ Gt(kl, [["__scopeId", "data-v-3119d5fd"]]);
|
|
954
|
+
export {
|
|
955
|
+
Ml as default
|
|
956
|
+
};
|