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