vue-data-ui 2.6.43 → 2.6.44-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{Arrow-Bz8n6ycZ.js → Arrow-BoxEqBI9.js} +1 -1
- package/dist/{Arrow-C0LFlY5e.cjs → Arrow-DIUU40P5.cjs} +1 -1
- package/dist/{BaseIcon-BySu2V3d.js → BaseIcon-BDBwHXHX.js} +1 -1
- package/dist/{BaseIcon-Bolmn50v.cjs → BaseIcon-HOCzoYbs.cjs} +1 -1
- package/dist/{ColorPicker-DUYztfXY.cjs → ColorPicker-BE7dtNKz.cjs} +1 -1
- package/dist/{ColorPicker-DxSpy5e2.js → ColorPicker-D5xsaimt.js} +3 -3
- package/dist/{DataTable-DLUrhKkw.cjs → DataTable-CWmGoVel.cjs} +1 -1
- package/dist/{DataTable-C5EKEHsp.js → DataTable-DpYrmdKR.js} +2 -2
- package/dist/{Legend-DSzoXS-3.js → Legend-Bns8n5XI.js} +2 -2
- package/dist/{Legend-CHEbsxt2.cjs → Legend-CAcWDl5L.cjs} +1 -1
- package/dist/{PackageVersion-BtrpyUPC.js → PackageVersion-C-jBIpMs.js} +1 -1
- package/dist/{PackageVersion-B6sWtTA0.cjs → PackageVersion-KqTLourS.cjs} +1 -1
- package/dist/{PenAndPaper-zjBsZuuq.js → PenAndPaper-B1x7gtt0.js} +3 -3
- package/dist/{PenAndPaper-DO7-xSYx.cjs → PenAndPaper-Bhj2KfFw.cjs} +1 -1
- package/dist/{Shape-DzIamXsi.js → Shape-B53a4cKQ.js} +1 -1
- package/dist/{Shape-_vXgfvZP.cjs → Shape-BejVJkvz.cjs} +1 -1
- package/dist/{Slicer-DfOxim5W.js → Slicer-BUH3aQru.js} +2 -2
- package/dist/{Slicer-oUyDkRff.cjs → Slicer-ZM-g13q7.cjs} +1 -1
- package/dist/{Title-BuZQSd23.cjs → Title-B5DeSNYN.cjs} +1 -1
- package/dist/{Title-BS1zFx79.js → Title-CuyN78xN.js} +1 -1
- package/dist/{Tooltip-BiBcMMP3.cjs → Tooltip-BfRrUigu.cjs} +1 -1
- package/dist/{Tooltip-BNOd4lK1.js → Tooltip-CoZJLSUy.js} +1 -1
- package/dist/documentation/installation.md +2 -2
- package/dist/{index-CzjsUYng.js → index-BjeHPQB2.js} +1 -1
- package/dist/{index-Zf2fUMIO.cjs → index-CFpKg6bb.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BcSwG6N0.cjs → useNestedProp-D1QXXl5v.cjs} +1 -1
- package/dist/{useNestedProp-RC28MVml.js → useNestedProp-jWaei8o8.js} +1 -1
- package/dist/{usePrinter-CUsjlfpk.js → usePrinter-BDx4dDHp.js} +1 -1
- package/dist/{usePrinter-BGPa8G48.cjs → usePrinter-D9AdulyE.cjs} +1 -1
- package/dist/{vue-data-ui-BjDb6Vux.cjs → vue-data-ui-DHxKOYW-.cjs} +1 -1
- package/dist/{vue-data-ui-UWKC8R6X.js → vue-data-ui-DVsBaIUb.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-5IdXbLb9.js → vue-ui-3d-bar-ConzsB93.js} +9 -9
- package/dist/{vue-ui-3d-bar-WS8tL_FC.cjs → vue-ui-3d-bar-Cz46fEZ0.cjs} +1 -1
- package/dist/{vue-ui-accordion-CnGQYWdI.cjs → vue-ui-accordion-BMLckzAQ.cjs} +1 -1
- package/dist/{vue-ui-accordion-ConQex-C.js → vue-ui-accordion-CrDhNoyv.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CehCcwLC.cjs → vue-ui-age-pyramid-CDADFGzK.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-CP6Fd6zD.js → vue-ui-age-pyramid-DS4QeJhs.js} +10 -10
- package/dist/{vue-ui-annotator-C5NyXYkj.js → vue-ui-annotator-Bfc_tJu5.js} +1 -1
- package/dist/{vue-ui-annotator-CZ1F-VY2.cjs → vue-ui-annotator-RGa73O7h.cjs} +1 -1
- package/dist/{vue-ui-bullet-DKqr4Rcd.js → vue-ui-bullet-B8lNyqBU.js} +8 -8
- package/dist/{vue-ui-bullet-Djg_HER0.cjs → vue-ui-bullet-lJ7H217l.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DtVpSOzB.js → vue-ui-candlestick-CG3Btn-O.js} +11 -11
- package/dist/{vue-ui-candlestick-BU9MfLPt.cjs → vue-ui-candlestick-LN1alZy4.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CYcrhcdv.js → vue-ui-carousel-table-BPPE00f_.js} +4 -4
- package/dist/{vue-ui-carousel-table-EhzhIcW2.cjs → vue-ui-carousel-table-CPGwzLmi.cjs} +1 -1
- package/dist/{vue-ui-chestnut-D5LH5zdq.js → vue-ui-chestnut-CDahTtnd.js} +8 -8
- package/dist/{vue-ui-chestnut-C3UVgMQo.cjs → vue-ui-chestnut-Cc84Oypu.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CJNBxO1N.cjs → vue-ui-circle-pack-CxueIMwV.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BL753_Uo.js → vue-ui-circle-pack-xNnpqKCg.js} +9 -9
- package/dist/{vue-ui-cursor-B2MxKYNM.cjs → vue-ui-cursor-C1SnyUxK.cjs} +1 -1
- package/dist/{vue-ui-cursor-Fe70t9Bl.js → vue-ui-cursor-CglUvQEj.js} +2 -2
- package/dist/{vue-ui-dashboard-C11-dJEl.cjs → vue-ui-dashboard-BqmoMynd.cjs} +1 -1
- package/dist/{vue-ui-dashboard-QOSGNhC9.js → vue-ui-dashboard-CVuQnChA.js} +2 -2
- package/dist/{vue-ui-digits-C5D_xk6r.js → vue-ui-digits-32Kp_eG8.js} +2 -2
- package/dist/{vue-ui-digits-H19fVeIu.cjs → vue-ui-digits-DCBTsq9c.cjs} +1 -1
- package/dist/{vue-ui-donut-CwJg0emK.cjs → vue-ui-donut-BLx9gvvp.cjs} +1 -1
- package/dist/{vue-ui-donut-Bd1mIoux.js → vue-ui-donut-CsC2XlsB.js} +12 -12
- package/dist/{vue-ui-donut-evolution-DTjfMlNh.cjs → vue-ui-donut-evolution-BVgSIx_N.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CFQ4lMWd.js → vue-ui-donut-evolution-CoHKwqOx.js} +11 -11
- package/dist/{vue-ui-dumbbell-CBsxNWVV.cjs → vue-ui-dumbbell-BFSenYlM.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-KJd6G5qD.js → vue-ui-dumbbell-BtlUd-Uf.js} +10 -10
- package/dist/{vue-ui-flow-DAxMQfhu.js → vue-ui-flow-CQfZK1gp.js} +9 -9
- package/dist/{vue-ui-flow-D3gtil-H.cjs → vue-ui-flow-Cmy--LB8.cjs} +1 -1
- package/dist/{vue-ui-funnel-CkCNCQ1F.cjs → vue-ui-funnel-CuYKPXfV.cjs} +1 -1
- package/dist/{vue-ui-funnel-PvEDGsfj.js → vue-ui-funnel-ZDkI00Ns.js} +9 -9
- package/dist/{vue-ui-galaxy-DfAfjTDr.js → vue-ui-galaxy-Dw_3R-md.js} +11 -11
- package/dist/{vue-ui-galaxy-DjeZUCuE.cjs → vue-ui-galaxy-X7w_aTcI.cjs} +1 -1
- package/dist/{vue-ui-gauge-BfDY3XHF.cjs → vue-ui-gauge-1DflQ456.cjs} +1 -1
- package/dist/{vue-ui-gauge-DBGqwPZs.js → vue-ui-gauge-e4FDUuhW.js} +7 -7
- package/dist/{vue-ui-gizmo-BT0DknqD.js → vue-ui-gizmo-B6n0z4F6.js} +3 -3
- package/dist/{vue-ui-gizmo-yWBMeY1e.cjs → vue-ui-gizmo-DX6dnsfI.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D_Tr1Hot.js → vue-ui-heatmap-DBzP4OF3.js} +10 -10
- package/dist/{vue-ui-heatmap-Bkd2G7uW.cjs → vue-ui-heatmap-Df4bNpxS.cjs} +1 -1
- package/dist/{vue-ui-history-plot-BG4nMlp7.js → vue-ui-history-plot-DDrPZ1aW.js} +11 -11
- package/dist/{vue-ui-history-plot-B-VBGxRa.cjs → vue-ui-history-plot-XPpTXFdp.cjs} +1 -1
- package/dist/{vue-ui-kpi-LMze0lWI.cjs → vue-ui-kpi-DCnXbmlM.cjs} +1 -1
- package/dist/{vue-ui-kpi-WqBG4upX.js → vue-ui-kpi-DllQnaM_.js} +3 -3
- package/dist/{vue-ui-mini-loader-CoVSw6EU.cjs → vue-ui-mini-loader-CAksZ5CW.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-eRXubESG.js → vue-ui-mini-loader-DUUOG16Y.js} +2 -2
- package/dist/{vue-ui-molecule-BcpPXHgo.js → vue-ui-molecule-CNT6Iqi5.js} +10 -10
- package/dist/{vue-ui-molecule-Cu6_FpHD.cjs → vue-ui-molecule-DyQHaYZM.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-CBFN1PfU.js → vue-ui-mood-radar-CprLBHpU.js} +11 -11
- package/dist/{vue-ui-mood-radar-DlTYq1OE.cjs → vue-ui-mood-radar-j9nneyUO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Cq0PWd1N.js → vue-ui-nested-donuts-CF-jSyUa.js} +11 -11
- package/dist/{vue-ui-nested-donuts-c6Dc8R-H.cjs → vue-ui-nested-donuts-Cg1p47uP.cjs} +1 -1
- package/dist/{vue-ui-onion-Bd2D2Vld.cjs → vue-ui-onion-CGvPHton.cjs} +1 -1
- package/dist/{vue-ui-onion-BFDD4SN8.js → vue-ui-onion-lAop0oO0.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BTCld26y.cjs → vue-ui-parallel-coordinate-plot-CF1Dt-34.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-YF_ssmB7.js → vue-ui-parallel-coordinate-plot-vM7BVVi0.js} +12 -12
- package/dist/{vue-ui-quadrant-BeEBWrsG.js → vue-ui-quadrant-DlAbj_j6.js} +12 -12
- package/dist/{vue-ui-quadrant-B659Q5iR.cjs → vue-ui-quadrant-Te6mWq8u.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Ba6-ZZk9.js → vue-ui-quick-chart-CIFSsg2O.js} +9 -9
- package/dist/{vue-ui-quick-chart-w0LaPcFd.cjs → vue-ui-quick-chart-CJ69T4A5.cjs} +1 -1
- package/dist/{vue-ui-radar-DAUGZC3X.cjs → vue-ui-radar-Bpw4Ol7S.cjs} +1 -1
- package/dist/{vue-ui-radar-Dgu656_F.js → vue-ui-radar-DJJEwaWW.js} +12 -12
- package/dist/{vue-ui-rating-BIk1Ip7B.js → vue-ui-rating-BWQ3gtDw.js} +2 -2
- package/dist/{vue-ui-rating-BPgLpyoa.cjs → vue-ui-rating-CEOcHUR1.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dz_Du_5e.cjs → vue-ui-relation-circle-EAC-_4KL.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CUU2Y66i.js → vue-ui-relation-circle-hTF7gfQf.js} +7 -7
- package/dist/{vue-ui-rings-DnZ3fSvL.js → vue-ui-rings-BHhzJO6R.js} +12 -12
- package/dist/{vue-ui-rings-B7kPmx8M.cjs → vue-ui-rings-nshYhfg6.cjs} +1 -1
- package/dist/{vue-ui-scatter-Cej6ox0t.js → vue-ui-scatter-B05oU03T.js} +12 -12
- package/dist/{vue-ui-scatter-GfJALpzt.cjs → vue-ui-scatter-mkaSgzbX.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DkuLYple.cjs → vue-ui-screenshot-BkHsxMBx.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B4HNd362.js → vue-ui-screenshot-DcYLymGX.js} +1 -1
- package/dist/{vue-ui-skeleton-CiGqKHDK.cjs → vue-ui-skeleton-C_vRaZhI.cjs} +1 -1
- package/dist/{vue-ui-skeleton-XUKIcV-3.js → vue-ui-skeleton-Db5GDVLW.js} +3 -3
- package/dist/{vue-ui-smiley-BUgxzenz.js → vue-ui-smiley-BVsPtDbp.js} +2 -2
- package/dist/{vue-ui-smiley-Dfo5zjHi.cjs → vue-ui-smiley-C5grOPd7.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-EK-zZg4U.cjs → vue-ui-spark-trend-BhJUXEbd.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CvsL1wxJ.js → vue-ui-spark-trend-DVMI0hHl.js} +5 -5
- package/dist/{vue-ui-sparkbar-QL_FFOna.js → vue-ui-sparkbar-BP4Klcwq.js} +4 -4
- package/dist/{vue-ui-sparkbar-CvWbFKnW.cjs → vue-ui-sparkbar-CchD9Z0i.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-g51bSap-.js → vue-ui-sparkgauge-Bh40wvEN.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CX9L1CCZ.cjs → vue-ui-sparkgauge-Cc544Aj9.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C_RkgtwV.cjs → vue-ui-sparkhistogram-2aQdqbS-.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-TwShrJAd.js → vue-ui-sparkhistogram-B27-9RmD.js} +5 -5
- package/dist/{vue-ui-sparkline-PoXP19tk.js → vue-ui-sparkline-C4z4BgdB.js} +4 -4
- package/dist/{vue-ui-sparkline-B-1mFAFf.cjs → vue-ui-sparkline-DcjnRMCm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-BtOZ3Xvo.cjs → vue-ui-sparkstackbar-BGV781nw.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C6K5d1a8.js → vue-ui-sparkstackbar-BfD-pJWc.js} +5 -5
- package/dist/{vue-ui-stackbar-DP0kLFaZ.cjs → vue-ui-stackbar-Dj_h3XUr.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DoAp1q1k.js → vue-ui-stackbar-fMdRSsVo.js} +13 -13
- package/dist/{vue-ui-strip-plot-C6r7wmgw.cjs → vue-ui-strip-plot-D2geizj0.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DFyDRMeJ.js → vue-ui-strip-plot-DMmf9d_H.js} +11 -11
- package/dist/{vue-ui-table-COQQvYVK.js → vue-ui-table-CcKldUI9.js} +1 -1
- package/dist/{vue-ui-table-BoFUMpxE.cjs → vue-ui-table-GdqtmrDJ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DEmDa6Mg.cjs → vue-ui-table-heatmap-B1IFStem.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D1a4Jbfq.js → vue-ui-table-heatmap-B82viIhG.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CH1R9R6a.js → vue-ui-table-sparkline-Bm_vy6Lk.js} +5 -5
- package/dist/{vue-ui-table-sparkline-bsEJsgny.cjs → vue-ui-table-sparkline-qY93ZgAb.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CZIBISGi.js → vue-ui-thermometer-BCV4os_6.js} +7 -7
- package/dist/{vue-ui-thermometer-1Gl2tpWy.cjs → vue-ui-thermometer-D6YPh58k.cjs} +1 -1
- package/dist/{vue-ui-timer-CL0vPqGn.js → vue-ui-timer-BH4RyRGU.js} +5 -5
- package/dist/{vue-ui-timer-DXZ_7lOR.cjs → vue-ui-timer-C6tuiP54.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DdwzlfZg.js → vue-ui-tiremarks-Dp3x0P0N.js} +7 -7
- package/dist/{vue-ui-tiremarks-D8rdzzQb.cjs → vue-ui-tiremarks-Dt_VsUOM.cjs} +1 -1
- package/dist/vue-ui-treemap-BHdWvB2b.js +920 -0
- package/dist/vue-ui-treemap-CjFIqX2j.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-pwqVkPXV.cjs → vue-ui-vertical-bar-BCt5jXfW.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BOpex-Xq.js → vue-ui-vertical-bar-C52t8maW.js} +12 -12
- package/dist/{vue-ui-waffle-CW6THuE8.js → vue-ui-waffle-C-KQIRg5.js} +12 -12
- package/dist/{vue-ui-waffle-Bd_6bbdt.cjs → vue-ui-waffle-CZcsqZNd.cjs} +1 -1
- package/dist/{vue-ui-wheel-9xdDEq_q.js → vue-ui-wheel-CIIaCb2O.js} +7 -7
- package/dist/{vue-ui-wheel-BO3Xqux3.cjs → vue-ui-wheel-CQAT1WY8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CJjvWjsc.cjs → vue-ui-word-cloud-BTH_Iu4E.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DAlBxzeY.js → vue-ui-word-cloud-CgC7nBrO.js} +10 -10
- package/dist/{vue-ui-xy-BIBSJN48.cjs → vue-ui-xy-BSlyU66u.cjs} +1 -1
- package/dist/{vue-ui-xy-CDGKX79V.js → vue-ui-xy-XERn_sPB.js} +14 -14
- package/dist/{vue-ui-xy-canvas-BN7OU1Ak.cjs → vue-ui-xy-canvas-DDmWzosq.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-C8YlVwjI.js → vue-ui-xy-canvas-DogYqOaq.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-ui-treemap-B3N6hzO2.js +0 -857
- package/dist/vue-ui-treemap-CTcY1Qxh.cjs +0 -1
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
import { useSlots as it, onMounted as He, computed as C, ref as g, watch as ct, onBeforeUnmount as dt, createElementBlock as b, openBlock as v, unref as y, normalizeStyle as L, normalizeClass as We, createBlock as G, createCommentVNode as _, createElementVNode as O, createVNode as Ee, createSlots as vt, withCtx as T, renderSlot as $, normalizeProps as q, guardReactiveProps as X, Fragment as pe, renderList as fe, mergeProps as Ge, createTextVNode as ue, 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 ie, i as ce, f as le, X as wt, l as Xe, G as je, x as Ye, q as Ct, r as $t, y as Tt } from "./index-BjeHPQB2.js";
|
|
3
|
+
import { _ as xt } from "./Title-CuyN78xN.js";
|
|
4
|
+
import { u as _t, U as Ot } from "./usePrinter-BDx4dDHp.js";
|
|
5
|
+
import { _ as St } from "./Tooltip-CoZJLSUy.js";
|
|
6
|
+
import { L as Nt } from "./Legend-Bns8n5XI.js";
|
|
7
|
+
import At from "./vue-ui-skeleton-Db5GDVLW.js";
|
|
8
|
+
import { D as It } from "./DataTable-DpYrmdKR.js";
|
|
9
|
+
import Pt from "./vue-ui-accordion-CrDhNoyv.js";
|
|
10
|
+
import { t as zt, u as Ft } from "./useResponsive-vZgZwV-S.js";
|
|
11
|
+
import { u as Ze } from "./useNestedProp-jWaei8o8.js";
|
|
12
|
+
import { _ as Rt } from "./PackageVersion-C-jBIpMs.js";
|
|
13
|
+
import { P as Lt } from "./PenAndPaper-B1x7gtt0.js";
|
|
14
|
+
import { u as Dt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { u as Mt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
+
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
function Je(n, u) {
|
|
18
|
+
const r = n.length;
|
|
19
|
+
if (r === 0)
|
|
20
|
+
throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);
|
|
21
|
+
{
|
|
22
|
+
let i = 1 / 0, s = -1 / 0, c = 0;
|
|
23
|
+
for (let h = 0; h < r; h += 1) {
|
|
24
|
+
const p = n[h].normalizedValue;
|
|
25
|
+
p < i && (i = p), p > s && (s = p), c += p;
|
|
26
|
+
}
|
|
27
|
+
return Math.max(
|
|
28
|
+
u ** 2 * s / c ** 2,
|
|
29
|
+
c ** 2 / (u ** 2 * i)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function Ke(n) {
|
|
34
|
+
const { xOffset: u, yOffset: r, width: i, height: s } = n;
|
|
35
|
+
return {
|
|
36
|
+
x0: u,
|
|
37
|
+
y0: r,
|
|
38
|
+
x1: u + i,
|
|
39
|
+
y1: r + s
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function Ut(n, u, r) {
|
|
43
|
+
if (n.length === 0)
|
|
44
|
+
return !0;
|
|
45
|
+
{
|
|
46
|
+
const i = n.concat(u), s = Je(
|
|
47
|
+
n,
|
|
48
|
+
r
|
|
49
|
+
), c = Je(i, r);
|
|
50
|
+
return s >= c;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function Bt(n) {
|
|
54
|
+
const u = [], r = n.length;
|
|
55
|
+
for (let i = 0; i < r; i += 1) {
|
|
56
|
+
const s = n[i], c = s.length;
|
|
57
|
+
for (let d = 0; d < c; d += 1)
|
|
58
|
+
u.push(s[d]);
|
|
59
|
+
}
|
|
60
|
+
return u;
|
|
61
|
+
}
|
|
62
|
+
function Ht(n, u) {
|
|
63
|
+
const r = {
|
|
64
|
+
...u,
|
|
65
|
+
children: n
|
|
66
|
+
};
|
|
67
|
+
return et(r);
|
|
68
|
+
}
|
|
69
|
+
function Wt(n) {
|
|
70
|
+
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
71
|
+
}
|
|
72
|
+
function Qe(n, u) {
|
|
73
|
+
const { width: r, height: i, xOffset: s, yOffset: c } = ge(u), d = n.length, h = n.map((k) => k.normalizedValue || 0).reduce((k, m) => k + m, 0), p = h / i, I = h / r;
|
|
74
|
+
let N = s, P = c;
|
|
75
|
+
const w = [];
|
|
76
|
+
if (r >= i) {
|
|
77
|
+
for (let k = 0; k < d; k += 1) {
|
|
78
|
+
const m = n[k], x = P + m.normalizedValue / p, M = {
|
|
79
|
+
x0: N,
|
|
80
|
+
y0: P,
|
|
81
|
+
x1: N + p,
|
|
82
|
+
y1: x
|
|
83
|
+
}, z = Object.assign({}, m, M);
|
|
84
|
+
P = x, w.push(z);
|
|
85
|
+
}
|
|
86
|
+
return w;
|
|
87
|
+
} else {
|
|
88
|
+
for (let k = 0; k < d; k += 1) {
|
|
89
|
+
const m = n[k], x = N + m.normalizedValue / I, M = {
|
|
90
|
+
x0: N,
|
|
91
|
+
y0: P,
|
|
92
|
+
x1: x,
|
|
93
|
+
y1: P + I
|
|
94
|
+
}, z = Object.assign({}, m, M);
|
|
95
|
+
N = x, w.push(z);
|
|
96
|
+
}
|
|
97
|
+
return w;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function Et(n) {
|
|
101
|
+
const u = ge(n), r = u.width, i = u.height;
|
|
102
|
+
return Math.min(r, i);
|
|
103
|
+
}
|
|
104
|
+
function Gt(n, u) {
|
|
105
|
+
const r = n.length, i = n.map((p) => p.value ?? 0).reduce((p, I) => p + I, 0), s = u / i, c = [];
|
|
106
|
+
let d, h;
|
|
107
|
+
for (let p = 0; p < r; p += 1)
|
|
108
|
+
h = n[p], d = Object.assign({}, h, {
|
|
109
|
+
normalizedValue: h.value * (s || 0)
|
|
110
|
+
}), c.push(d);
|
|
111
|
+
return c;
|
|
112
|
+
}
|
|
113
|
+
function ge(n) {
|
|
114
|
+
const { x0: u, y0: r, x1: i, y1: s } = n;
|
|
115
|
+
return {
|
|
116
|
+
xOffset: u,
|
|
117
|
+
yOffset: r,
|
|
118
|
+
width: i - u,
|
|
119
|
+
height: s - r
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function qt(n, u, r, i) {
|
|
123
|
+
let s = n, c = u, d = r, h = i;
|
|
124
|
+
for (; ; ) {
|
|
125
|
+
const p = s.length;
|
|
126
|
+
if (p === 0) {
|
|
127
|
+
const w = Qe(c, d);
|
|
128
|
+
return h.concat(w);
|
|
129
|
+
}
|
|
130
|
+
const I = Et(d), N = s[0], P = s.slice(1, p);
|
|
131
|
+
if (Ut(c, N, I)) {
|
|
132
|
+
const w = c.concat(N);
|
|
133
|
+
s = P, c = w, d = d, h = h;
|
|
134
|
+
} else {
|
|
135
|
+
const w = c.length;
|
|
136
|
+
let k = 0;
|
|
137
|
+
for (let z = 0; z < w; z += 1)
|
|
138
|
+
k += c[z].normalizedValue;
|
|
139
|
+
const m = Xt(d, k), x = Qe(c, d), M = h.concat(x);
|
|
140
|
+
s = s, c = [], d = m, h = M;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
function et(n) {
|
|
145
|
+
if (typeof n.children > "u" || !n.children.length)
|
|
146
|
+
return [n];
|
|
147
|
+
{
|
|
148
|
+
const u = Gt(
|
|
149
|
+
n.children,
|
|
150
|
+
Wt(n)
|
|
151
|
+
), r = qt(u, [], n, []), i = r.length, s = [];
|
|
152
|
+
for (let d = 0; d < i; d += 1)
|
|
153
|
+
s.push(et(r[d]));
|
|
154
|
+
return Bt(s);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function Xt(n, u) {
|
|
158
|
+
const { width: r, height: i, xOffset: s, yOffset: c } = ge(n);
|
|
159
|
+
if (r >= i) {
|
|
160
|
+
const d = u / i, h = r - d, p = {
|
|
161
|
+
xOffset: s + d,
|
|
162
|
+
yOffset: c,
|
|
163
|
+
width: h,
|
|
164
|
+
height: i
|
|
165
|
+
};
|
|
166
|
+
return Ke(p);
|
|
167
|
+
} else {
|
|
168
|
+
const d = u / r, h = i - d, p = {
|
|
169
|
+
xOffset: s,
|
|
170
|
+
yOffset: c + d,
|
|
171
|
+
width: r,
|
|
172
|
+
height: h
|
|
173
|
+
};
|
|
174
|
+
return Ke(p);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
const jt = ["id"], Yt = {
|
|
178
|
+
key: 4,
|
|
179
|
+
class: "vue-ui-treemap-breadcrumbs",
|
|
180
|
+
"data-html2canvas-ignore": ""
|
|
181
|
+
}, Zt = ["onClick", "data-last-crumb"], Jt = { class: "vue-ui-treemap-crumb-unit" }, Kt = { class: "vue-ui-treemap-crumb-unit-label" }, Qt = {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
184
|
+
}, el = ["xmlns", "viewBox"], tl = { key: 0 }, ll = ["id"], ol = ["stop-color"], al = ["stop-color"], nl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], sl = ["x", "y", "height", "width"], rl = {
|
|
185
|
+
style: { width: "100%", height: "100%" },
|
|
186
|
+
class: "vue-ui-treemap-cell"
|
|
187
|
+
}, ul = {
|
|
188
|
+
key: 6,
|
|
189
|
+
class: "vue-data-ui-watermark"
|
|
190
|
+
}, il = ["onClick"], cl = { key: 0 }, dl = { key: 1 }, vl = ["innerHTML"], hl = {
|
|
191
|
+
__name: "vue-ui-treemap",
|
|
192
|
+
props: {
|
|
193
|
+
config: {
|
|
194
|
+
type: Object,
|
|
195
|
+
default() {
|
|
196
|
+
return {};
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
dataset: {
|
|
200
|
+
type: Array,
|
|
201
|
+
default() {
|
|
202
|
+
return [];
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
emits: ["selectLegend", "selectDatapoint"],
|
|
207
|
+
setup(n, { expose: u, emit: r }) {
|
|
208
|
+
const { vue_ui_treemap: i } = ft(), s = n, c = r, d = it();
|
|
209
|
+
He(() => {
|
|
210
|
+
d["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
211
|
+
});
|
|
212
|
+
const h = C(() => !!s.dataset && s.dataset.length), p = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), I = g(qe()), N = g(!1), P = g(""), w = g(!1), k = g(0), m = g([]), x = g(null), M = g(null), z = g(null), ye = g(null), me = g(null), be = g(0), ke = g(0), we = g(0), e = C({
|
|
213
|
+
get: () => xe(),
|
|
214
|
+
set: (t) => t
|
|
215
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Dt({ config: e.value }), { svgRef: Te } = Mt({ config: e.value.style.chart.title });
|
|
216
|
+
function xe() {
|
|
217
|
+
const t = Ze({
|
|
218
|
+
userConfig: s.config,
|
|
219
|
+
defaultConfig: i
|
|
220
|
+
});
|
|
221
|
+
return t.theme ? {
|
|
222
|
+
...Ze({
|
|
223
|
+
userConfig: yt.vue_ui_treemap[t.theme] || s.config,
|
|
224
|
+
defaultConfig: t
|
|
225
|
+
}),
|
|
226
|
+
customPalette: gt[t.theme] || S
|
|
227
|
+
} : t;
|
|
228
|
+
}
|
|
229
|
+
ct(() => s.config, (t) => {
|
|
230
|
+
e.value = xe(), de.value = !e.value.userOptions.showOnChartHover, be.value += 1, ke.value += 1, we.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
231
|
+
}, { deep: !0 });
|
|
232
|
+
const { isPrinting: _e, isImaging: Oe, generatePdf: Se, generateImage: Ne } = _t({
|
|
233
|
+
elementId: `treemap_${I.value}`,
|
|
234
|
+
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
235
|
+
options: e.value.userOptions.print
|
|
236
|
+
}), tt = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = C(() => mt(e.value.customPalette)), F = g({
|
|
237
|
+
showTable: e.value.table.show,
|
|
238
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
239
|
+
}), V = g({
|
|
240
|
+
height: e.value.style.chart.height,
|
|
241
|
+
width: e.value.style.chart.width
|
|
242
|
+
}), H = C(() => ({
|
|
243
|
+
bottom: V.value.height - e.value.style.chart.padding.bottom,
|
|
244
|
+
height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
245
|
+
left: e.value.style.chart.padding.left,
|
|
246
|
+
right: V.value.width - e.value.style.chart.padding.right,
|
|
247
|
+
top: e.value.style.chart.padding.top,
|
|
248
|
+
vbHeight: V.value.height,
|
|
249
|
+
vbWidth: V.value.width,
|
|
250
|
+
width: V.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
251
|
+
}));
|
|
252
|
+
function Ae(t) {
|
|
253
|
+
t.forEach((o, l) => {
|
|
254
|
+
o.id = qe(), o.color = ie(o.color) || oe.value[l] || S[l] || S[l % S.length], o.children && (o.children.forEach((a) => {
|
|
255
|
+
a.parentId = o.id, a.color = o.color;
|
|
256
|
+
}), Ae(o.children));
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
const U = g(s.dataset), ae = g(null);
|
|
260
|
+
He(() => {
|
|
261
|
+
lt();
|
|
262
|
+
});
|
|
263
|
+
function lt() {
|
|
264
|
+
if (bt(s.dataset) && kt({
|
|
265
|
+
componentName: "VueUiTreemap",
|
|
266
|
+
type: "dataset"
|
|
267
|
+
}), Ae(U.value), e.value.responsive) {
|
|
268
|
+
const t = zt(() => {
|
|
269
|
+
const { width: o, height: l } = Ft({
|
|
270
|
+
chart: x.value,
|
|
271
|
+
title: e.value.style.chart.title.text ? M.value : null,
|
|
272
|
+
legend: e.value.style.chart.legend.show ? z.value : null,
|
|
273
|
+
source: ye.value,
|
|
274
|
+
noTitle: me.value
|
|
275
|
+
});
|
|
276
|
+
requestAnimationFrame(() => {
|
|
277
|
+
V.value.width = o, V.value.height = l;
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
ae.value = new ResizeObserver(t), ae.value.observe(x.value.parentNode);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
dt(() => {
|
|
284
|
+
ae.value && ae.value.disconnect();
|
|
285
|
+
});
|
|
286
|
+
const Y = g(U.value), Q = C(() => Y.value.map((t, o) => ({
|
|
287
|
+
...t,
|
|
288
|
+
color: ie(t.color) || oe.value[o] || S[o] || S[o % S.length]
|
|
289
|
+
})).filter((t) => !m.value.includes(t.id))), Z = C(() => U.value.filter((t) => !m.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), Ie = C({
|
|
290
|
+
get() {
|
|
291
|
+
let t = [...Q.value];
|
|
292
|
+
return e.value.style.chart.layout.sorted && (t = [...Q.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
293
|
+
...o
|
|
294
|
+
}));
|
|
295
|
+
},
|
|
296
|
+
set(t) {
|
|
297
|
+
return t;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
function Pe(t, o) {
|
|
301
|
+
return t.value / o;
|
|
302
|
+
}
|
|
303
|
+
function ot(t, o, l) {
|
|
304
|
+
const a = e.value.style.chart.layout.rects.colorRatio - Pe(o, l);
|
|
305
|
+
return Xe(t, a < 0 ? 0 : a);
|
|
306
|
+
}
|
|
307
|
+
function ze(t, o, l, a) {
|
|
308
|
+
return t.map((f, B) => {
|
|
309
|
+
const re = ot(ie(o) || oe.value[B] || S[B] || S[B % S.length], f, a), ut = Pe(f, a);
|
|
310
|
+
return {
|
|
311
|
+
...f,
|
|
312
|
+
color: re,
|
|
313
|
+
proportion: ut,
|
|
314
|
+
parentName: l,
|
|
315
|
+
children: f.children ? ze(f.children, re, f.name, a) : void 0
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
const ee = C(() => Ht(
|
|
320
|
+
Ie.value.map((t, o) => {
|
|
321
|
+
const l = t.children ? t.children.reduce((a, f) => a + f.value, 0) : t.value;
|
|
322
|
+
return {
|
|
323
|
+
value: t.value,
|
|
324
|
+
id: t.id,
|
|
325
|
+
children: t.children ? ze(t.children.sort((a, f) => f.value - a.value), t.color, t.name, l) : void 0,
|
|
326
|
+
color: t.color,
|
|
327
|
+
name: t.name
|
|
328
|
+
};
|
|
329
|
+
}),
|
|
330
|
+
{ x0: H.value.left * 2, y0: H.value.top, x1: H.value.width, y1: H.value.height }
|
|
331
|
+
));
|
|
332
|
+
function Fe({ y0: t, y1: o }) {
|
|
333
|
+
return o - t <= 0 ? 1e-4 : o - t;
|
|
334
|
+
}
|
|
335
|
+
function Re({ x0: t, x1: o }) {
|
|
336
|
+
return o - t <= 0 ? 1e-4 : o - t;
|
|
337
|
+
}
|
|
338
|
+
function W(t) {
|
|
339
|
+
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
340
|
+
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
341
|
+
}
|
|
342
|
+
function at(t) {
|
|
343
|
+
w.value = t, k.value += 1;
|
|
344
|
+
}
|
|
345
|
+
const J = C(() => ({
|
|
346
|
+
startX: 0,
|
|
347
|
+
startY: 0,
|
|
348
|
+
width: H.value.vbWidth,
|
|
349
|
+
height: H.value.vbHeight
|
|
350
|
+
}));
|
|
351
|
+
function K(t, o = U.value) {
|
|
352
|
+
for (const l of o) {
|
|
353
|
+
if (l.id === t)
|
|
354
|
+
return l;
|
|
355
|
+
if (l.children) {
|
|
356
|
+
const a = K(t, l.children);
|
|
357
|
+
if (a)
|
|
358
|
+
return a;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return null;
|
|
362
|
+
}
|
|
363
|
+
const A = g([]), E = C(() => A.value.length > 0);
|
|
364
|
+
function Le(t) {
|
|
365
|
+
var l;
|
|
366
|
+
if (!t) {
|
|
367
|
+
Y.value = U.value.slice(), c("selectDatapoint", void 0), A.value = [];
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
const o = K(t.id);
|
|
371
|
+
if (o && ((l = o.children) != null && l.length))
|
|
372
|
+
A.value.push(o.id), Y.value = o.children.slice(), c("selectDatapoint", t);
|
|
373
|
+
else if (t.parentId) {
|
|
374
|
+
A.value.push(t.parentId);
|
|
375
|
+
const a = K(t.parentId);
|
|
376
|
+
Y.value = a.children.slice(), c("selectDatapoint", t);
|
|
377
|
+
} else if (A.value.length > 0) {
|
|
378
|
+
A.value.pop();
|
|
379
|
+
const a = A.value[A.value.length - 1];
|
|
380
|
+
if (a) {
|
|
381
|
+
const f = K(a);
|
|
382
|
+
Y.value = f.children.slice();
|
|
383
|
+
} else
|
|
384
|
+
Y.value = U.value.slice(), A.value = [], c("selectDatapoint", void 0);
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
const te = C(() => {
|
|
388
|
+
const t = [
|
|
389
|
+
{ id: null, label: "All" }
|
|
390
|
+
];
|
|
391
|
+
if (A.value.length > 0) {
|
|
392
|
+
let o = K(A.value[A.value.length - 1]);
|
|
393
|
+
const l = [];
|
|
394
|
+
for (; o; )
|
|
395
|
+
l.unshift(o), o = o.parentId ? K(o.parentId) : null;
|
|
396
|
+
for (const a of l)
|
|
397
|
+
t.push({
|
|
398
|
+
id: a.id,
|
|
399
|
+
label: a.name,
|
|
400
|
+
node: a
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
return t;
|
|
404
|
+
}), R = g(null), De = C(() => U.value.map((t, o) => ({
|
|
405
|
+
...t,
|
|
406
|
+
color: ie(t.color) || oe.value[o] || S[o] || S[o % S.length],
|
|
407
|
+
shape: "square"
|
|
408
|
+
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
409
|
+
...t,
|
|
410
|
+
proportion: t.value / U.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
411
|
+
opacity: m.value.includes(t.id) ? 0.5 : 1
|
|
412
|
+
}))), nt = C(() => ({
|
|
413
|
+
cy: "treemap-div-legend",
|
|
414
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
415
|
+
color: e.value.style.chart.legend.color,
|
|
416
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
417
|
+
paddingBottom: 12,
|
|
418
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
419
|
+
}));
|
|
420
|
+
function Me(t) {
|
|
421
|
+
E.value = !1, R.value = null, m.value.includes(t.id) ? m.value = m.value.filter((o) => o !== t.id) : m.value.length < s.dataset.length - 1 && m.value.push(t.id), c("selectLegend", Ie.value);
|
|
422
|
+
}
|
|
423
|
+
const ve = g(null);
|
|
424
|
+
function st({ datapoint: t, seriesIndex: o }) {
|
|
425
|
+
R.value = t, ve.value = { datapoint: t, seriesIndex: o, config: e.value, series: Q.value };
|
|
426
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
427
|
+
if (Ye(l) && Tt(() => l({
|
|
428
|
+
seriesIndex: o,
|
|
429
|
+
datapoint: t,
|
|
430
|
+
series: Q.value,
|
|
431
|
+
config: e.value
|
|
432
|
+
})))
|
|
433
|
+
P.value = l({
|
|
434
|
+
seriesIndex: o,
|
|
435
|
+
datapoint: t,
|
|
436
|
+
series: Q.value,
|
|
437
|
+
config: e.value
|
|
438
|
+
});
|
|
439
|
+
else {
|
|
440
|
+
let a = "";
|
|
441
|
+
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>${ce(
|
|
442
|
+
e.value.style.chart.layout.labels.formatter,
|
|
443
|
+
t.value,
|
|
444
|
+
le({
|
|
445
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
446
|
+
v: t.value,
|
|
447
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
448
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
449
|
+
}),
|
|
450
|
+
{ datapoint: t, seriesIndex: o }
|
|
451
|
+
)}</b>`, P.value = `<div>${a}</div>`;
|
|
452
|
+
}
|
|
453
|
+
N.value = !0;
|
|
454
|
+
}
|
|
455
|
+
const D = C(() => {
|
|
456
|
+
const t = ee.value.map((l) => ({
|
|
457
|
+
name: l.name,
|
|
458
|
+
color: l.color
|
|
459
|
+
})), o = ee.value.map((l) => l.value);
|
|
460
|
+
return { head: t, body: o };
|
|
461
|
+
});
|
|
462
|
+
function Ve() {
|
|
463
|
+
pt(() => {
|
|
464
|
+
const t = D.value.head.map((a, f) => [[
|
|
465
|
+
a.name
|
|
466
|
+
], [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);
|
|
467
|
+
$t({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
const ne = C(() => {
|
|
471
|
+
const t = [
|
|
472
|
+
e.value.table.columnNames.series,
|
|
473
|
+
e.value.table.columnNames.value,
|
|
474
|
+
e.value.table.columnNames.percentage
|
|
475
|
+
], o = D.value.head.map((f, B) => {
|
|
476
|
+
const re = ce(
|
|
477
|
+
e.value.style.chart.layout.labels.formatter,
|
|
478
|
+
D.value.body[B],
|
|
479
|
+
le({
|
|
480
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
481
|
+
v: D.value.body[B],
|
|
482
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
483
|
+
r: e.value.table.td.roundingValue
|
|
484
|
+
})
|
|
485
|
+
);
|
|
486
|
+
return [
|
|
487
|
+
{
|
|
488
|
+
color: f.color,
|
|
489
|
+
name: f.name,
|
|
490
|
+
shape: "square"
|
|
491
|
+
},
|
|
492
|
+
re,
|
|
493
|
+
isNaN(D.value.body[B] / Z.value) ? "-" : le({
|
|
494
|
+
v: D.value.body[B] / Z.value * 100,
|
|
495
|
+
s: "%",
|
|
496
|
+
r: e.value.table.td.roundingPercentage
|
|
497
|
+
})
|
|
498
|
+
];
|
|
499
|
+
}), l = {
|
|
500
|
+
th: {
|
|
501
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
502
|
+
color: e.value.table.th.color,
|
|
503
|
+
outline: e.value.table.th.outline
|
|
504
|
+
},
|
|
505
|
+
td: {
|
|
506
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
507
|
+
color: e.value.table.td.color,
|
|
508
|
+
outline: e.value.table.td.outline
|
|
509
|
+
},
|
|
510
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
511
|
+
};
|
|
512
|
+
return {
|
|
513
|
+
colNames: [
|
|
514
|
+
e.value.table.columnNames.series,
|
|
515
|
+
e.value.table.columnNames.value
|
|
516
|
+
],
|
|
517
|
+
head: t,
|
|
518
|
+
body: o,
|
|
519
|
+
config: l
|
|
520
|
+
};
|
|
521
|
+
});
|
|
522
|
+
function rt() {
|
|
523
|
+
return ee.value;
|
|
524
|
+
}
|
|
525
|
+
function Ue() {
|
|
526
|
+
F.value.showTable = !F.value.showTable;
|
|
527
|
+
}
|
|
528
|
+
function Be() {
|
|
529
|
+
F.value.showTooltip = !F.value.showTooltip;
|
|
530
|
+
}
|
|
531
|
+
const se = g(!1);
|
|
532
|
+
function he() {
|
|
533
|
+
se.value = !se.value;
|
|
534
|
+
}
|
|
535
|
+
return u({
|
|
536
|
+
getData: rt,
|
|
537
|
+
generateCsv: Ve,
|
|
538
|
+
generateImage: Ne,
|
|
539
|
+
generatePdf: Se,
|
|
540
|
+
toggleTable: Ue,
|
|
541
|
+
toggleTooltip: Be,
|
|
542
|
+
toggleAnnotator: he
|
|
543
|
+
}), (t, o) => (v(), b("div", {
|
|
544
|
+
ref_key: "treemapChart",
|
|
545
|
+
ref: x,
|
|
546
|
+
class: We(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
547
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
548
|
+
id: `treemap_${I.value}`,
|
|
549
|
+
onMouseenter: o[3] || (o[3] = () => y(Ce)(!0)),
|
|
550
|
+
onMouseleave: o[4] || (o[4] = () => y(Ce)(!1))
|
|
551
|
+
}, [
|
|
552
|
+
e.value.userOptions.buttons.annotator ? (v(), G(Lt, {
|
|
553
|
+
key: 0,
|
|
554
|
+
svgRef: y(Te),
|
|
555
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
556
|
+
color: e.value.style.chart.color,
|
|
557
|
+
active: se.value,
|
|
558
|
+
onClose: he
|
|
559
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
560
|
+
tt.value ? (v(), b("div", {
|
|
561
|
+
key: 1,
|
|
562
|
+
ref_key: "noTitle",
|
|
563
|
+
ref: me,
|
|
564
|
+
class: "vue-data-ui-no-title-space",
|
|
565
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
566
|
+
}, null, 512)) : _("", !0),
|
|
567
|
+
e.value.style.chart.title.text ? (v(), b("div", {
|
|
568
|
+
key: 2,
|
|
569
|
+
ref_key: "chartTitle",
|
|
570
|
+
ref: M,
|
|
571
|
+
style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
572
|
+
}, [
|
|
573
|
+
(v(), G(xt, {
|
|
574
|
+
key: `title_${be.value}`,
|
|
575
|
+
config: {
|
|
576
|
+
title: {
|
|
577
|
+
cy: "treemap-div-title",
|
|
578
|
+
...e.value.style.chart.title
|
|
579
|
+
},
|
|
580
|
+
subtitle: {
|
|
581
|
+
cy: "treemap-div-subtitle",
|
|
582
|
+
...e.value.style.chart.title.subtitle
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}, null, 8, ["config"]))
|
|
586
|
+
], 4)) : _("", !0),
|
|
587
|
+
e.value.userOptions.show && h.value && (y($e) || y(de)) ? (v(), G(Ot, {
|
|
588
|
+
ref: "details",
|
|
589
|
+
key: `user_option_${k.value}`,
|
|
590
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
591
|
+
color: e.value.style.chart.color,
|
|
592
|
+
isPrinting: y(_e),
|
|
593
|
+
isImaging: y(Oe),
|
|
594
|
+
uid: I.value,
|
|
595
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
596
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
597
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
598
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
599
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
600
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
601
|
+
isFullscreen: w.value,
|
|
602
|
+
isTooltip: F.value.showTooltip,
|
|
603
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
604
|
+
chartElement: x.value,
|
|
605
|
+
position: e.value.userOptions.position,
|
|
606
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
607
|
+
isAnnotation: se.value,
|
|
608
|
+
onToggleFullscreen: at,
|
|
609
|
+
onGeneratePdf: y(Se),
|
|
610
|
+
onGenerateCsv: Ve,
|
|
611
|
+
onGenerateImage: y(Ne),
|
|
612
|
+
onToggleTable: Ue,
|
|
613
|
+
onToggleTooltip: Be,
|
|
614
|
+
onToggleAnnotator: he,
|
|
615
|
+
style: L({
|
|
616
|
+
visibility: y($e) ? y(de) ? "visible" : "hidden" : "visible"
|
|
617
|
+
})
|
|
618
|
+
}, vt({ _: 2 }, [
|
|
619
|
+
t.$slots.menuIcon ? {
|
|
620
|
+
name: "menuIcon",
|
|
621
|
+
fn: T(({ isOpen: l, color: a }) => [
|
|
622
|
+
$(t.$slots, "menuIcon", q(X({ isOpen: l, color: a })), void 0, !0)
|
|
623
|
+
]),
|
|
624
|
+
key: "0"
|
|
625
|
+
} : void 0,
|
|
626
|
+
t.$slots.optionTooltip ? {
|
|
627
|
+
name: "optionTooltip",
|
|
628
|
+
fn: T(() => [
|
|
629
|
+
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
630
|
+
]),
|
|
631
|
+
key: "1"
|
|
632
|
+
} : void 0,
|
|
633
|
+
t.$slots.optionPdf ? {
|
|
634
|
+
name: "optionPdf",
|
|
635
|
+
fn: T(() => [
|
|
636
|
+
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
637
|
+
]),
|
|
638
|
+
key: "2"
|
|
639
|
+
} : void 0,
|
|
640
|
+
t.$slots.optionCsv ? {
|
|
641
|
+
name: "optionCsv",
|
|
642
|
+
fn: T(() => [
|
|
643
|
+
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
644
|
+
]),
|
|
645
|
+
key: "3"
|
|
646
|
+
} : void 0,
|
|
647
|
+
t.$slots.optionImg ? {
|
|
648
|
+
name: "optionImg",
|
|
649
|
+
fn: T(() => [
|
|
650
|
+
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
651
|
+
]),
|
|
652
|
+
key: "4"
|
|
653
|
+
} : void 0,
|
|
654
|
+
t.$slots.optionTable ? {
|
|
655
|
+
name: "optionTable",
|
|
656
|
+
fn: T(() => [
|
|
657
|
+
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
658
|
+
]),
|
|
659
|
+
key: "5"
|
|
660
|
+
} : void 0,
|
|
661
|
+
t.$slots.optionFullscreen ? {
|
|
662
|
+
name: "optionFullscreen",
|
|
663
|
+
fn: T(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
664
|
+
$(t.$slots, "optionFullscreen", q(X({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
665
|
+
]),
|
|
666
|
+
key: "6"
|
|
667
|
+
} : void 0,
|
|
668
|
+
t.$slots.optionAnnotator ? {
|
|
669
|
+
name: "optionAnnotator",
|
|
670
|
+
fn: T(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
671
|
+
$(t.$slots, "optionAnnotator", q(X({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
672
|
+
]),
|
|
673
|
+
key: "7"
|
|
674
|
+
} : void 0
|
|
675
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
676
|
+
te.value.length > 1 ? (v(), b("nav", Yt, [
|
|
677
|
+
(v(!0), b(pe, null, fe(te.value, (l, a) => (v(), b("span", {
|
|
678
|
+
key: l.id || "root",
|
|
679
|
+
onClick: (f) => a === te.value.length - 1 ? () => {
|
|
680
|
+
} : Le(l.node),
|
|
681
|
+
class: "vue-ui-treemap-crumb",
|
|
682
|
+
"data-last-crumb": a === te.value.length - 1,
|
|
683
|
+
style: L({
|
|
684
|
+
color: e.value.style.chart.color
|
|
685
|
+
})
|
|
686
|
+
}, [
|
|
687
|
+
O("span", Jt, [
|
|
688
|
+
O("span", Kt, [
|
|
689
|
+
$(t.$slots, "breadcrumb-label", Ge({ ref_for: !0 }, { crumb: l }), () => [
|
|
690
|
+
ue(j(l.label), 1)
|
|
691
|
+
], !0)
|
|
692
|
+
]),
|
|
693
|
+
a < te.value.length - 1 ? (v(), b("span", Qt, [
|
|
694
|
+
$(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
695
|
+
o[5] || (o[5] = ue(" › "))
|
|
696
|
+
], !0)
|
|
697
|
+
])) : _("", !0)
|
|
698
|
+
])
|
|
699
|
+
], 12, Zt))), 128))
|
|
700
|
+
])) : _("", !0),
|
|
701
|
+
h.value ? (v(), b("svg", {
|
|
702
|
+
key: 5,
|
|
703
|
+
ref_key: "svgRef",
|
|
704
|
+
ref: Te,
|
|
705
|
+
xmlns: y(wt),
|
|
706
|
+
class: We({ "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 }),
|
|
707
|
+
viewBox: `${J.value.startX} ${J.value.startY} ${J.value.width <= 0 ? 10 : J.value.width} ${J.value.height <= 0 ? 10 : J.value.height}`,
|
|
708
|
+
style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
709
|
+
}, [
|
|
710
|
+
Ee(Rt),
|
|
711
|
+
(v(!0), b(pe, null, fe(ee.value, (l, a) => (v(), b("g", null, [
|
|
712
|
+
e.value.style.chart.layout.rects.gradient.show ? (v(), b("defs", tl, [
|
|
713
|
+
O("radialGradient", {
|
|
714
|
+
id: `tgrad_${l.id}`,
|
|
715
|
+
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
716
|
+
}, [
|
|
717
|
+
O("stop", {
|
|
718
|
+
offset: "18%",
|
|
719
|
+
"stop-color": l.color
|
|
720
|
+
}, null, 8, ol),
|
|
721
|
+
O("stop", {
|
|
722
|
+
offset: "100%",
|
|
723
|
+
"stop-color": y(Xe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
724
|
+
}, null, 8, al)
|
|
725
|
+
], 8, ll)
|
|
726
|
+
])) : _("", !0)
|
|
727
|
+
]))), 256)),
|
|
728
|
+
(v(!0), b(pe, null, fe(ee.value, (l, a) => (v(), b("g", null, [
|
|
729
|
+
O("rect", {
|
|
730
|
+
x: l.x0,
|
|
731
|
+
y: l.y0,
|
|
732
|
+
height: Fe(l),
|
|
733
|
+
width: Re(l),
|
|
734
|
+
fill: p.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
735
|
+
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
736
|
+
stroke: R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
737
|
+
"stroke-width": R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
738
|
+
onClick: ht((f) => Le(l), ["stop"]),
|
|
739
|
+
onMouseenter: () => st({
|
|
740
|
+
datapoint: l,
|
|
741
|
+
seriesIndex: a
|
|
742
|
+
}),
|
|
743
|
+
onMouseleave: o[0] || (o[0] = (f) => {
|
|
744
|
+
R.value = null, N.value = !1;
|
|
745
|
+
}),
|
|
746
|
+
style: L(`opacity:${R.value ? R.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
747
|
+
class: "vue-ui-treemap-rect"
|
|
748
|
+
}, null, 44, nl),
|
|
749
|
+
(v(), b("foreignObject", {
|
|
750
|
+
x: l.x0,
|
|
751
|
+
y: l.y0,
|
|
752
|
+
height: Fe(l),
|
|
753
|
+
width: Re(l),
|
|
754
|
+
class: "vue-ui-treemap-cell-foreignObject"
|
|
755
|
+
}, [
|
|
756
|
+
O("div", rl, [
|
|
757
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || E.value) ? (v(), b("div", {
|
|
758
|
+
key: 0,
|
|
759
|
+
class: "vue-ui-treemap-cell-default",
|
|
760
|
+
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)}`)
|
|
761
|
+
}, [
|
|
762
|
+
O("span", {
|
|
763
|
+
style: L(`width:100%;font-size:${W(l)}px;`)
|
|
764
|
+
}, j(l.name), 5),
|
|
765
|
+
o[6] || (o[6] = O("br", null, null, -1)),
|
|
766
|
+
O("span", {
|
|
767
|
+
style: L(`width:100%;font-size:${W(l)}px;`)
|
|
768
|
+
}, j(y(ce)(
|
|
769
|
+
e.value.style.chart.layout.labels.formatter,
|
|
770
|
+
l.value,
|
|
771
|
+
y(le)({
|
|
772
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
773
|
+
v: l.value,
|
|
774
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
775
|
+
r: e.value.style.chart.layout.labels.rounding
|
|
776
|
+
}),
|
|
777
|
+
{ datapoint: l }
|
|
778
|
+
)), 5)
|
|
779
|
+
], 4)) : _("", !0),
|
|
780
|
+
$(t.$slots, "rect", Ge({ ref_for: !0 }, {
|
|
781
|
+
rect: l,
|
|
782
|
+
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || E.value,
|
|
783
|
+
fontSize: W(l),
|
|
784
|
+
isZoom: E.value,
|
|
785
|
+
textColor: y(je)(l.color)
|
|
786
|
+
}), void 0, !0)
|
|
787
|
+
])
|
|
788
|
+
], 8, sl))
|
|
789
|
+
]))), 256)),
|
|
790
|
+
$(t.$slots, "svg", q(X({ svg: H.value, isZoom: E.value, rect: R.value, config: e.value })), void 0, !0)
|
|
791
|
+
], 14, el)) : _("", !0),
|
|
792
|
+
t.$slots.watermark ? (v(), b("div", ul, [
|
|
793
|
+
$(t.$slots, "watermark", q(X({ isPrinting: y(_e) || y(Oe) })), void 0, !0)
|
|
794
|
+
])) : _("", !0),
|
|
795
|
+
h.value ? _("", !0) : (v(), G(At, {
|
|
796
|
+
key: 7,
|
|
797
|
+
config: {
|
|
798
|
+
type: "treemap",
|
|
799
|
+
style: {
|
|
800
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
801
|
+
treemap: {
|
|
802
|
+
color: "#CCCCCC"
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}, null, 8, ["config"])),
|
|
807
|
+
O("div", {
|
|
808
|
+
ref_key: "chartLegend",
|
|
809
|
+
ref: z
|
|
810
|
+
}, [
|
|
811
|
+
e.value.style.chart.legend.show ? (v(), G(Nt, {
|
|
812
|
+
key: `legend_${we.value}`,
|
|
813
|
+
legendSet: De.value,
|
|
814
|
+
config: nt.value,
|
|
815
|
+
id: `treemap_legend_${I.value}`,
|
|
816
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => Me(l))
|
|
817
|
+
}, {
|
|
818
|
+
item: T(({ legend: l, index: a }) => [
|
|
819
|
+
O("div", {
|
|
820
|
+
onClick: (f) => Me(l),
|
|
821
|
+
style: L(`opacity:${m.value.includes(l.id) ? 0.5 : 1}`)
|
|
822
|
+
}, [
|
|
823
|
+
ue(j(l.name) + ": " + j(y(ce)(
|
|
824
|
+
e.value.style.chart.layout.labels.formatter,
|
|
825
|
+
l.value,
|
|
826
|
+
y(le)({
|
|
827
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
828
|
+
v: l.value,
|
|
829
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
830
|
+
r: e.value.style.chart.legend.roundingValue
|
|
831
|
+
}),
|
|
832
|
+
{ datapoint: l }
|
|
833
|
+
)) + " ", 1),
|
|
834
|
+
m.value.includes(l.id) ? (v(), b("span", dl, " ( - % ) ")) : (v(), b("span", cl, " (" + j(isNaN(l.value / Z.value) ? "-" : (l.value / Z.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
835
|
+
], 12, il)
|
|
836
|
+
]),
|
|
837
|
+
_: 1
|
|
838
|
+
}, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
|
|
839
|
+
key: 1,
|
|
840
|
+
legend: De.value
|
|
841
|
+
}, void 0, !0)
|
|
842
|
+
], 512),
|
|
843
|
+
t.$slots.source ? (v(), b("div", {
|
|
844
|
+
key: 8,
|
|
845
|
+
ref_key: "source",
|
|
846
|
+
ref: ye,
|
|
847
|
+
dir: "auto"
|
|
848
|
+
}, [
|
|
849
|
+
$(t.$slots, "source", {}, void 0, !0)
|
|
850
|
+
], 512)) : _("", !0),
|
|
851
|
+
Ee(St, {
|
|
852
|
+
show: F.value.showTooltip && N.value,
|
|
853
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
854
|
+
color: e.value.style.chart.tooltip.color,
|
|
855
|
+
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
856
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
857
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
858
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
859
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
860
|
+
position: e.value.style.chart.tooltip.position,
|
|
861
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
862
|
+
parent: x.value,
|
|
863
|
+
content: P.value,
|
|
864
|
+
isFullscreen: w.value,
|
|
865
|
+
isCustom: y(Ye)(e.value.style.chart.tooltip.customFormat)
|
|
866
|
+
}, {
|
|
867
|
+
"tooltip-before": T(() => [
|
|
868
|
+
$(t.$slots, "tooltip-before", q(X({ ...ve.value })), void 0, !0)
|
|
869
|
+
]),
|
|
870
|
+
"tooltip-after": T(() => [
|
|
871
|
+
$(t.$slots, "tooltip-after", q(X({ ...ve.value })), void 0, !0)
|
|
872
|
+
]),
|
|
873
|
+
_: 3
|
|
874
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
875
|
+
h.value ? (v(), G(Pt, {
|
|
876
|
+
key: 9,
|
|
877
|
+
hideDetails: "",
|
|
878
|
+
config: {
|
|
879
|
+
open: F.value.showTable,
|
|
880
|
+
maxHeight: 1e4,
|
|
881
|
+
body: {
|
|
882
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
883
|
+
color: e.value.style.chart.color
|
|
884
|
+
},
|
|
885
|
+
head: {
|
|
886
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
887
|
+
color: e.value.style.chart.color
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}, {
|
|
891
|
+
content: T(() => [
|
|
892
|
+
(v(), G(It, {
|
|
893
|
+
key: `table_${ke.value}`,
|
|
894
|
+
colNames: ne.value.colNames,
|
|
895
|
+
head: ne.value.head,
|
|
896
|
+
body: ne.value.body,
|
|
897
|
+
config: ne.value.config,
|
|
898
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
899
|
+
onClose: o[2] || (o[2] = (l) => F.value.showTable = !1)
|
|
900
|
+
}, {
|
|
901
|
+
th: T(({ th: l }) => [
|
|
902
|
+
O("div", {
|
|
903
|
+
innerHTML: l,
|
|
904
|
+
style: { display: "flex", "align-items": "center" }
|
|
905
|
+
}, null, 8, vl)
|
|
906
|
+
]),
|
|
907
|
+
td: T(({ td: l }) => [
|
|
908
|
+
ue(j(l.name || l), 1)
|
|
909
|
+
]),
|
|
910
|
+
_: 1
|
|
911
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
912
|
+
]),
|
|
913
|
+
_: 1
|
|
914
|
+
}, 8, ["config"])) : _("", !0)
|
|
915
|
+
], 46, jt));
|
|
916
|
+
}
|
|
917
|
+
}, Al = /* @__PURE__ */ Vt(hl, [["__scopeId", "data-v-2bcbaa56"]]);
|
|
918
|
+
export {
|
|
919
|
+
Al as default
|
|
920
|
+
};
|