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
|
@@ -1,857 +0,0 @@
|
|
|
1
|
-
import { useSlots as st, onMounted as Le, computed as k, ref as f, watch as rt, onBeforeUnmount as ut, createElementBlock as C, openBlock as p, unref as g, normalizeStyle as D, normalizeClass as De, createBlock as E, createCommentVNode as P, createElementVNode as z, createVNode as Me, createSlots as it, withCtx as x, renderSlot as $, normalizeProps as G, guardReactiveProps as q, Fragment as Ve, renderList as Ue, toDisplayString as Y, mergeProps as ct, createTextVNode as Be, nextTick as dt } from "vue";
|
|
2
|
-
import { u as vt, c as He, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as We, G as Ee, x as Ge, q as bt, r as wt, y as kt } from "./index-CzjsUYng.js";
|
|
3
|
-
import { _ as Ct } from "./Title-BS1zFx79.js";
|
|
4
|
-
import { u as $t, U as xt } from "./usePrinter-CUsjlfpk.js";
|
|
5
|
-
import { _ as Tt } from "./Tooltip-BNOd4lK1.js";
|
|
6
|
-
import { L as Ot } from "./Legend-DSzoXS-3.js";
|
|
7
|
-
import _t from "./vue-ui-skeleton-XUKIcV-3.js";
|
|
8
|
-
import { D as St } from "./DataTable-C5EKEHsp.js";
|
|
9
|
-
import Nt from "./vue-ui-accordion-ConQex-C.js";
|
|
10
|
-
import { t as Pt, u as zt } from "./useResponsive-vZgZwV-S.js";
|
|
11
|
-
import { u as qe } from "./useNestedProp-RC28MVml.js";
|
|
12
|
-
import { _ as At } from "./PackageVersion-BtrpyUPC.js";
|
|
13
|
-
import { P as Ft } from "./PenAndPaper-zjBsZuuq.js";
|
|
14
|
-
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
-
import { u as Rt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
|
-
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
function Xe(a, u) {
|
|
18
|
-
const r = a.length;
|
|
19
|
-
if (r === 0)
|
|
20
|
-
throw new Error(`Max aspect ratio cannot be computed: ${a} is an empty array`);
|
|
21
|
-
{
|
|
22
|
-
let i = 1 / 0, n = -1 / 0, d = 0;
|
|
23
|
-
for (let v = 0; v < r; v += 1) {
|
|
24
|
-
const h = a[v].normalizedValue;
|
|
25
|
-
h < i && (i = h), h > n && (n = h), d += h;
|
|
26
|
-
}
|
|
27
|
-
return Math.max(
|
|
28
|
-
u ** 2 * n / d ** 2,
|
|
29
|
-
d ** 2 / (u ** 2 * i)
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function je(a) {
|
|
34
|
-
const { xOffset: u, yOffset: r, width: i, height: n } = a;
|
|
35
|
-
return {
|
|
36
|
-
x0: u,
|
|
37
|
-
y0: r,
|
|
38
|
-
x1: u + i,
|
|
39
|
-
y1: r + n
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function Dt(a, u, r) {
|
|
43
|
-
if (a.length === 0)
|
|
44
|
-
return !0;
|
|
45
|
-
{
|
|
46
|
-
const i = a.concat(u), n = Xe(
|
|
47
|
-
a,
|
|
48
|
-
r
|
|
49
|
-
), d = Xe(i, r);
|
|
50
|
-
return n >= d;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function Mt(a) {
|
|
54
|
-
const u = [], r = a.length;
|
|
55
|
-
for (let i = 0; i < r; i += 1) {
|
|
56
|
-
const n = a[i], d = n.length;
|
|
57
|
-
for (let c = 0; c < d; c += 1)
|
|
58
|
-
u.push(n[c]);
|
|
59
|
-
}
|
|
60
|
-
return u;
|
|
61
|
-
}
|
|
62
|
-
function Vt(a, u) {
|
|
63
|
-
const r = {
|
|
64
|
-
...u,
|
|
65
|
-
children: a
|
|
66
|
-
};
|
|
67
|
-
return Ze(r);
|
|
68
|
-
}
|
|
69
|
-
function Ut(a) {
|
|
70
|
-
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
71
|
-
}
|
|
72
|
-
function Ye(a, u) {
|
|
73
|
-
const { width: r, height: i, xOffset: n, yOffset: d } = de(u), c = a.length, v = a.map((b) => b.normalizedValue || 0).reduce((b, y) => b + y, 0), h = v / i, S = v / r;
|
|
74
|
-
let _ = n, N = d;
|
|
75
|
-
const w = [];
|
|
76
|
-
if (r >= i) {
|
|
77
|
-
for (let b = 0; b < c; b += 1) {
|
|
78
|
-
const y = a[b], T = N + y.normalizedValue / h, M = {
|
|
79
|
-
x0: _,
|
|
80
|
-
y0: N,
|
|
81
|
-
x1: _ + h,
|
|
82
|
-
y1: T
|
|
83
|
-
}, A = Object.assign({}, y, M);
|
|
84
|
-
N = T, w.push(A);
|
|
85
|
-
}
|
|
86
|
-
return w;
|
|
87
|
-
} else {
|
|
88
|
-
for (let b = 0; b < c; b += 1) {
|
|
89
|
-
const y = a[b], T = _ + y.normalizedValue / S, M = {
|
|
90
|
-
x0: _,
|
|
91
|
-
y0: N,
|
|
92
|
-
x1: T,
|
|
93
|
-
y1: N + S
|
|
94
|
-
}, A = Object.assign({}, y, M);
|
|
95
|
-
_ = T, w.push(A);
|
|
96
|
-
}
|
|
97
|
-
return w;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function Bt(a) {
|
|
101
|
-
const u = de(a), r = u.width, i = u.height;
|
|
102
|
-
return Math.min(r, i);
|
|
103
|
-
}
|
|
104
|
-
function Ht(a, u) {
|
|
105
|
-
const r = a.length, i = a.map((h) => h.value ?? 0).reduce((h, S) => h + S, 0), n = u / i, d = [];
|
|
106
|
-
let c, v;
|
|
107
|
-
for (let h = 0; h < r; h += 1)
|
|
108
|
-
v = a[h], c = Object.assign({}, v, {
|
|
109
|
-
normalizedValue: v.value * (n || 0)
|
|
110
|
-
}), d.push(c);
|
|
111
|
-
return d;
|
|
112
|
-
}
|
|
113
|
-
function de(a) {
|
|
114
|
-
const { x0: u, y0: r, x1: i, y1: n } = a;
|
|
115
|
-
return {
|
|
116
|
-
xOffset: u,
|
|
117
|
-
yOffset: r,
|
|
118
|
-
width: i - u,
|
|
119
|
-
height: n - r
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
function Wt(a, u, r, i) {
|
|
123
|
-
let n = a, d = u, c = r, v = i;
|
|
124
|
-
for (; ; ) {
|
|
125
|
-
const h = n.length;
|
|
126
|
-
if (h === 0) {
|
|
127
|
-
const w = Ye(d, c);
|
|
128
|
-
return v.concat(w);
|
|
129
|
-
}
|
|
130
|
-
const S = Bt(c), _ = n[0], N = n.slice(1, h);
|
|
131
|
-
if (Dt(d, _, S)) {
|
|
132
|
-
const w = d.concat(_);
|
|
133
|
-
n = N, d = w, c = c, v = v;
|
|
134
|
-
} else {
|
|
135
|
-
const w = d.length;
|
|
136
|
-
let b = 0;
|
|
137
|
-
for (let A = 0; A < w; A += 1)
|
|
138
|
-
b += d[A].normalizedValue;
|
|
139
|
-
const y = Et(c, b), T = Ye(d, c), M = v.concat(T);
|
|
140
|
-
n = n, d = [], c = y, v = M;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
function Ze(a) {
|
|
145
|
-
if (typeof a.children > "u" || !a.children.length)
|
|
146
|
-
return [a];
|
|
147
|
-
{
|
|
148
|
-
const u = Ht(
|
|
149
|
-
a.children,
|
|
150
|
-
Ut(a)
|
|
151
|
-
), r = Wt(u, [], a, []), i = r.length, n = [];
|
|
152
|
-
for (let c = 0; c < i; c += 1)
|
|
153
|
-
n.push(Ze(r[c]));
|
|
154
|
-
return Mt(n);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
function Et(a, u) {
|
|
158
|
-
const { width: r, height: i, xOffset: n, yOffset: d } = de(a);
|
|
159
|
-
if (r >= i) {
|
|
160
|
-
const c = u / i, v = r - c, h = {
|
|
161
|
-
xOffset: n + c,
|
|
162
|
-
yOffset: d,
|
|
163
|
-
width: v,
|
|
164
|
-
height: i
|
|
165
|
-
};
|
|
166
|
-
return je(h);
|
|
167
|
-
} else {
|
|
168
|
-
const c = u / r, v = i - c, h = {
|
|
169
|
-
xOffset: n,
|
|
170
|
-
yOffset: d + c,
|
|
171
|
-
width: r,
|
|
172
|
-
height: v
|
|
173
|
-
};
|
|
174
|
-
return je(h);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt = ["stop-color"], Zt = ["stop-color"], Jt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Kt = ["x", "y", "height", "width"], Qt = {
|
|
178
|
-
style: { width: "100%", height: "100%" },
|
|
179
|
-
class: "vue-ui-treemap-cell"
|
|
180
|
-
}, eo = {
|
|
181
|
-
key: 5,
|
|
182
|
-
class: "vue-data-ui-watermark"
|
|
183
|
-
}, to = ["onClick"], oo = { key: 0 }, lo = { key: 1 }, ao = ["innerHTML"], no = {
|
|
184
|
-
__name: "vue-ui-treemap",
|
|
185
|
-
props: {
|
|
186
|
-
config: {
|
|
187
|
-
type: Object,
|
|
188
|
-
default() {
|
|
189
|
-
return {};
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
dataset: {
|
|
193
|
-
type: Array,
|
|
194
|
-
default() {
|
|
195
|
-
return [];
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
emits: ["selectLegend", "selectDatapoint"],
|
|
200
|
-
setup(a, { expose: u, emit: r }) {
|
|
201
|
-
const { vue_ui_treemap: i } = vt(), n = a, d = r, c = st();
|
|
202
|
-
Le(() => {
|
|
203
|
-
c["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
204
|
-
});
|
|
205
|
-
const v = k(() => !!n.dataset && n.dataset.length), h = k(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), S = f(He()), _ = f(!1), N = f(""), w = f(!1), b = f(0), y = f([]), T = f(null), M = f(null), A = f(null), ve = f(null), he = f(null), fe = f(0), pe = f(0), ge = f(0), e = k({
|
|
206
|
-
get: () => we(),
|
|
207
|
-
set: (t) => t
|
|
208
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: ye, keepUserOptionState: me } = It({ config: e.value }), { svgRef: be } = Rt({ config: e.value.style.chart.title });
|
|
209
|
-
function we() {
|
|
210
|
-
const t = qe({
|
|
211
|
-
userConfig: n.config,
|
|
212
|
-
defaultConfig: i
|
|
213
|
-
});
|
|
214
|
-
return t.theme ? {
|
|
215
|
-
...qe({
|
|
216
|
-
userConfig: ft.vue_ui_treemap[t.theme] || n.config,
|
|
217
|
-
defaultConfig: t
|
|
218
|
-
}),
|
|
219
|
-
customPalette: ht[t.theme] || O
|
|
220
|
-
} : t;
|
|
221
|
-
}
|
|
222
|
-
rt(() => n.config, (t) => {
|
|
223
|
-
e.value = we(), se.value = !e.value.userOptions.showOnChartHover, fe.value += 1, pe.value += 1, ge.value += 1, F.value.showTable = e.value.table.show, F.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
224
|
-
}, { deep: !0 });
|
|
225
|
-
const { isPrinting: ke, isImaging: Ce, generatePdf: $e, generateImage: xe } = $t({
|
|
226
|
-
elementId: `treemap_${S.value}`,
|
|
227
|
-
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
228
|
-
options: e.value.userOptions.print
|
|
229
|
-
}), Je = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = k(() => pt(e.value.customPalette)), F = f({
|
|
230
|
-
showTable: e.value.table.show,
|
|
231
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
232
|
-
}), V = f({
|
|
233
|
-
height: e.value.style.chart.height,
|
|
234
|
-
width: e.value.style.chart.width
|
|
235
|
-
}), B = k(() => ({
|
|
236
|
-
bottom: V.value.height - e.value.style.chart.padding.bottom,
|
|
237
|
-
height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
238
|
-
left: e.value.style.chart.padding.left,
|
|
239
|
-
right: V.value.width - e.value.style.chart.padding.right,
|
|
240
|
-
top: e.value.style.chart.padding.top,
|
|
241
|
-
vbHeight: V.value.height,
|
|
242
|
-
vbWidth: V.value.width,
|
|
243
|
-
width: V.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
244
|
-
}));
|
|
245
|
-
function Te(t) {
|
|
246
|
-
t.forEach((l, o) => {
|
|
247
|
-
l.id = He(), l.color = ae(l.color) || Q.value[o] || O[o] || O[o % O.length], l.children && (l.children.forEach((s) => {
|
|
248
|
-
s.parentId = l.id, s.color = l.color;
|
|
249
|
-
}), Te(l.children));
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
const H = f(n.dataset), ee = f(null);
|
|
253
|
-
Le(() => {
|
|
254
|
-
Ke();
|
|
255
|
-
});
|
|
256
|
-
function Ke() {
|
|
257
|
-
if (gt(n.dataset) && yt({
|
|
258
|
-
componentName: "VueUiTreemap",
|
|
259
|
-
type: "dataset"
|
|
260
|
-
}), Te(H.value), e.value.responsive) {
|
|
261
|
-
const t = Pt(() => {
|
|
262
|
-
const { width: l, height: o } = zt({
|
|
263
|
-
chart: T.value,
|
|
264
|
-
title: e.value.style.chart.title.text ? M.value : null,
|
|
265
|
-
legend: e.value.style.chart.legend.show ? A.value : null,
|
|
266
|
-
source: ve.value,
|
|
267
|
-
noTitle: he.value
|
|
268
|
-
});
|
|
269
|
-
requestAnimationFrame(() => {
|
|
270
|
-
V.value.width = l, V.value.height = o;
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
ee.value = new ResizeObserver(t), ee.value.observe(T.value.parentNode);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
ut(() => {
|
|
277
|
-
ee.value && ee.value.disconnect();
|
|
278
|
-
});
|
|
279
|
-
const re = f(H.value), Z = k(() => re.value.map((t, l) => ({
|
|
280
|
-
...t,
|
|
281
|
-
color: ae(t.color) || Q.value[l] || O[l] || O[l % O.length]
|
|
282
|
-
})).filter((t) => !y.value.includes(t.id))), X = k(() => H.value.filter((t) => !y.value.includes(t.id)).map((t) => t.value || 0).reduce((t, l) => t + l, 0)), Oe = k({
|
|
283
|
-
get() {
|
|
284
|
-
let t = [...Z.value];
|
|
285
|
-
return e.value.style.chart.layout.sorted && (t = [...Z.value].sort((l, o) => o.value - l.value)), t.map((l) => ({
|
|
286
|
-
...l
|
|
287
|
-
}));
|
|
288
|
-
},
|
|
289
|
-
set(t) {
|
|
290
|
-
return t;
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
function _e(t, l) {
|
|
294
|
-
return t.value / l;
|
|
295
|
-
}
|
|
296
|
-
function Qe(t, l, o) {
|
|
297
|
-
const s = e.value.style.chart.layout.rects.colorRatio - _e(l, o);
|
|
298
|
-
return We(t, s < 0 ? 0 : s);
|
|
299
|
-
}
|
|
300
|
-
function Se(t, l, o, s) {
|
|
301
|
-
return t.map((m, U) => {
|
|
302
|
-
const le = Qe(ae(l) || Q.value[U] || O[U] || O[U % O.length], m, s), nt = _e(m, s);
|
|
303
|
-
return {
|
|
304
|
-
...m,
|
|
305
|
-
color: le,
|
|
306
|
-
proportion: nt,
|
|
307
|
-
parentName: o,
|
|
308
|
-
children: m.children ? Se(m.children, le, m.name, s) : void 0
|
|
309
|
-
};
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
const J = k(() => Vt(
|
|
313
|
-
Oe.value.map((t, l) => {
|
|
314
|
-
const o = t.children ? t.children.reduce((s, m) => s + m.value, 0) : t.value;
|
|
315
|
-
return {
|
|
316
|
-
value: t.value,
|
|
317
|
-
id: t.id,
|
|
318
|
-
children: t.children ? Se(t.children.sort((s, m) => m.value - s.value), t.color, t.name, o) : void 0,
|
|
319
|
-
color: t.color,
|
|
320
|
-
name: t.name
|
|
321
|
-
};
|
|
322
|
-
}),
|
|
323
|
-
{ x0: B.value.left * 2, y0: B.value.top, x1: B.value.width, y1: B.value.height }
|
|
324
|
-
));
|
|
325
|
-
function Ne({ y0: t, y1: l }) {
|
|
326
|
-
return l - t <= 0 ? 1e-4 : l - t;
|
|
327
|
-
}
|
|
328
|
-
function Pe({ x0: t, x1: l }) {
|
|
329
|
-
return l - t <= 0 ? 1e-4 : l - t;
|
|
330
|
-
}
|
|
331
|
-
function W(t) {
|
|
332
|
-
const l = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
333
|
-
return l < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : l;
|
|
334
|
-
}
|
|
335
|
-
function et(t) {
|
|
336
|
-
w.value = t, b.value += 1;
|
|
337
|
-
}
|
|
338
|
-
const j = k(() => ({
|
|
339
|
-
startX: 0,
|
|
340
|
-
startY: 0,
|
|
341
|
-
width: B.value.vbWidth,
|
|
342
|
-
height: B.value.vbHeight
|
|
343
|
-
})), I = f(!1);
|
|
344
|
-
function ue(t, l = H.value) {
|
|
345
|
-
for (const o of l) {
|
|
346
|
-
if (o.id === t)
|
|
347
|
-
return o;
|
|
348
|
-
if (o.children) {
|
|
349
|
-
const s = ue(t, o.children);
|
|
350
|
-
if (s)
|
|
351
|
-
return s;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
return null;
|
|
355
|
-
}
|
|
356
|
-
function tt(t) {
|
|
357
|
-
if (I.value)
|
|
358
|
-
d("selectDatapoint", void 0), re.value = H.value;
|
|
359
|
-
else {
|
|
360
|
-
if (d("selectDatapoint", t), !ue(t.parentId))
|
|
361
|
-
return;
|
|
362
|
-
re.value = [ue(t.parentId)];
|
|
363
|
-
}
|
|
364
|
-
I.value = !I.value;
|
|
365
|
-
}
|
|
366
|
-
const R = f(null), ze = k(() => H.value.map((t, l) => ({
|
|
367
|
-
...t,
|
|
368
|
-
color: ae(t.color) || Q.value[l] || O[l] || O[l % O.length],
|
|
369
|
-
shape: "square"
|
|
370
|
-
})).sort((t, l) => l.value - t.value).map((t, l) => ({
|
|
371
|
-
...t,
|
|
372
|
-
proportion: t.value / H.value.map((o) => o.value).reduce((o, s) => o + s, 0),
|
|
373
|
-
opacity: y.value.includes(t.id) ? 0.5 : 1
|
|
374
|
-
}))), ot = k(() => ({
|
|
375
|
-
cy: "treemap-div-legend",
|
|
376
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
377
|
-
color: e.value.style.chart.legend.color,
|
|
378
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
379
|
-
paddingBottom: 12,
|
|
380
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
381
|
-
}));
|
|
382
|
-
function Ae(t) {
|
|
383
|
-
I.value = !1, R.value = null, y.value.includes(t.id) ? y.value = y.value.filter((l) => l !== t.id) : y.value.length < n.dataset.length - 1 && y.value.push(t.id), d("selectLegend", Oe.value);
|
|
384
|
-
}
|
|
385
|
-
const ie = f(null);
|
|
386
|
-
function lt({ datapoint: t, seriesIndex: l }) {
|
|
387
|
-
R.value = t, ie.value = { datapoint: t, seriesIndex: l, config: e.value, series: Z.value };
|
|
388
|
-
const o = e.value.style.chart.tooltip.customFormat;
|
|
389
|
-
if (Ge(o) && kt(() => o({
|
|
390
|
-
seriesIndex: l,
|
|
391
|
-
datapoint: t,
|
|
392
|
-
series: Z.value,
|
|
393
|
-
config: e.value
|
|
394
|
-
})))
|
|
395
|
-
N.value = o({
|
|
396
|
-
seriesIndex: l,
|
|
397
|
-
datapoint: t,
|
|
398
|
-
series: Z.value,
|
|
399
|
-
config: e.value
|
|
400
|
-
});
|
|
401
|
-
else {
|
|
402
|
-
let s = "";
|
|
403
|
-
s += `<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>`, s += `<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>`, s += `<b>${ne(
|
|
404
|
-
e.value.style.chart.layout.labels.formatter,
|
|
405
|
-
t.value,
|
|
406
|
-
K({
|
|
407
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
408
|
-
v: t.value,
|
|
409
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
410
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
411
|
-
}),
|
|
412
|
-
{ datapoint: t, seriesIndex: l }
|
|
413
|
-
)}</b>`, N.value = `<div>${s}</div>`;
|
|
414
|
-
}
|
|
415
|
-
_.value = !0;
|
|
416
|
-
}
|
|
417
|
-
const L = k(() => {
|
|
418
|
-
const t = J.value.map((o) => ({
|
|
419
|
-
name: o.name,
|
|
420
|
-
color: o.color
|
|
421
|
-
})), l = J.value.map((o) => o.value);
|
|
422
|
-
return { head: t, body: l };
|
|
423
|
-
});
|
|
424
|
-
function Fe() {
|
|
425
|
-
dt(() => {
|
|
426
|
-
const t = L.value.head.map((s, m) => [[
|
|
427
|
-
s.name
|
|
428
|
-
], [L.value.body[m]], [isNaN(L.value.body[m] / X.value) ? "-" : L.value.body[m] / X.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), o = bt(l);
|
|
429
|
-
wt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
const te = k(() => {
|
|
433
|
-
const t = [
|
|
434
|
-
e.value.table.columnNames.series,
|
|
435
|
-
e.value.table.columnNames.value,
|
|
436
|
-
e.value.table.columnNames.percentage
|
|
437
|
-
], l = L.value.head.map((m, U) => {
|
|
438
|
-
const le = ne(
|
|
439
|
-
e.value.style.chart.layout.labels.formatter,
|
|
440
|
-
L.value.body[U],
|
|
441
|
-
K({
|
|
442
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
443
|
-
v: L.value.body[U],
|
|
444
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
445
|
-
r: e.value.table.td.roundingValue
|
|
446
|
-
})
|
|
447
|
-
);
|
|
448
|
-
return [
|
|
449
|
-
{
|
|
450
|
-
color: m.color,
|
|
451
|
-
name: m.name,
|
|
452
|
-
shape: "square"
|
|
453
|
-
},
|
|
454
|
-
le,
|
|
455
|
-
isNaN(L.value.body[U] / X.value) ? "-" : K({
|
|
456
|
-
v: L.value.body[U] / X.value * 100,
|
|
457
|
-
s: "%",
|
|
458
|
-
r: e.value.table.td.roundingPercentage
|
|
459
|
-
})
|
|
460
|
-
];
|
|
461
|
-
}), o = {
|
|
462
|
-
th: {
|
|
463
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
464
|
-
color: e.value.table.th.color,
|
|
465
|
-
outline: e.value.table.th.outline
|
|
466
|
-
},
|
|
467
|
-
td: {
|
|
468
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
469
|
-
color: e.value.table.td.color,
|
|
470
|
-
outline: e.value.table.td.outline
|
|
471
|
-
},
|
|
472
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
473
|
-
};
|
|
474
|
-
return {
|
|
475
|
-
colNames: [
|
|
476
|
-
e.value.table.columnNames.series,
|
|
477
|
-
e.value.table.columnNames.value
|
|
478
|
-
],
|
|
479
|
-
head: t,
|
|
480
|
-
body: l,
|
|
481
|
-
config: o
|
|
482
|
-
};
|
|
483
|
-
});
|
|
484
|
-
function at() {
|
|
485
|
-
return J.value;
|
|
486
|
-
}
|
|
487
|
-
function Ie() {
|
|
488
|
-
F.value.showTable = !F.value.showTable;
|
|
489
|
-
}
|
|
490
|
-
function Re() {
|
|
491
|
-
F.value.showTooltip = !F.value.showTooltip;
|
|
492
|
-
}
|
|
493
|
-
const oe = f(!1);
|
|
494
|
-
function ce() {
|
|
495
|
-
oe.value = !oe.value;
|
|
496
|
-
}
|
|
497
|
-
return u({
|
|
498
|
-
getData: at,
|
|
499
|
-
generateCsv: Fe,
|
|
500
|
-
generateImage: xe,
|
|
501
|
-
generatePdf: $e,
|
|
502
|
-
toggleTable: Ie,
|
|
503
|
-
toggleTooltip: Re,
|
|
504
|
-
toggleAnnotator: ce
|
|
505
|
-
}), (t, l) => (p(), C("div", {
|
|
506
|
-
ref_key: "treemapChart",
|
|
507
|
-
ref: T,
|
|
508
|
-
class: De(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
509
|
-
style: D(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
510
|
-
id: `treemap_${S.value}`,
|
|
511
|
-
onMouseenter: l[3] || (l[3] = () => g(ye)(!0)),
|
|
512
|
-
onMouseleave: l[4] || (l[4] = () => g(ye)(!1))
|
|
513
|
-
}, [
|
|
514
|
-
e.value.userOptions.buttons.annotator ? (p(), E(Ft, {
|
|
515
|
-
key: 0,
|
|
516
|
-
svgRef: g(be),
|
|
517
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
518
|
-
color: e.value.style.chart.color,
|
|
519
|
-
active: oe.value,
|
|
520
|
-
onClose: ce
|
|
521
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : P("", !0),
|
|
522
|
-
Je.value ? (p(), C("div", {
|
|
523
|
-
key: 1,
|
|
524
|
-
ref_key: "noTitle",
|
|
525
|
-
ref: he,
|
|
526
|
-
class: "vue-data-ui-no-title-space",
|
|
527
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
528
|
-
}, null, 512)) : P("", !0),
|
|
529
|
-
e.value.style.chart.title.text ? (p(), C("div", {
|
|
530
|
-
key: 2,
|
|
531
|
-
ref_key: "chartTitle",
|
|
532
|
-
ref: M,
|
|
533
|
-
style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
534
|
-
}, [
|
|
535
|
-
(p(), E(Ct, {
|
|
536
|
-
key: `title_${fe.value}`,
|
|
537
|
-
config: {
|
|
538
|
-
title: {
|
|
539
|
-
cy: "treemap-div-title",
|
|
540
|
-
...e.value.style.chart.title
|
|
541
|
-
},
|
|
542
|
-
subtitle: {
|
|
543
|
-
cy: "treemap-div-subtitle",
|
|
544
|
-
...e.value.style.chart.title.subtitle
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}, null, 8, ["config"]))
|
|
548
|
-
], 4)) : P("", !0),
|
|
549
|
-
e.value.userOptions.show && v.value && (g(me) || g(se)) ? (p(), E(xt, {
|
|
550
|
-
ref: "details",
|
|
551
|
-
key: `user_option_${b.value}`,
|
|
552
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
553
|
-
color: e.value.style.chart.color,
|
|
554
|
-
isPrinting: g(ke),
|
|
555
|
-
isImaging: g(Ce),
|
|
556
|
-
uid: S.value,
|
|
557
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
558
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
559
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
560
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
561
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
562
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
563
|
-
isFullscreen: w.value,
|
|
564
|
-
isTooltip: F.value.showTooltip,
|
|
565
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
566
|
-
chartElement: T.value,
|
|
567
|
-
position: e.value.userOptions.position,
|
|
568
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
569
|
-
isAnnotation: oe.value,
|
|
570
|
-
onToggleFullscreen: et,
|
|
571
|
-
onGeneratePdf: g($e),
|
|
572
|
-
onGenerateCsv: Fe,
|
|
573
|
-
onGenerateImage: g(xe),
|
|
574
|
-
onToggleTable: Ie,
|
|
575
|
-
onToggleTooltip: Re,
|
|
576
|
-
onToggleAnnotator: ce,
|
|
577
|
-
style: D({
|
|
578
|
-
visibility: g(me) ? g(se) ? "visible" : "hidden" : "visible"
|
|
579
|
-
})
|
|
580
|
-
}, it({ _: 2 }, [
|
|
581
|
-
t.$slots.menuIcon ? {
|
|
582
|
-
name: "menuIcon",
|
|
583
|
-
fn: x(({ isOpen: o, color: s }) => [
|
|
584
|
-
$(t.$slots, "menuIcon", G(q({ isOpen: o, color: s })), void 0, !0)
|
|
585
|
-
]),
|
|
586
|
-
key: "0"
|
|
587
|
-
} : void 0,
|
|
588
|
-
t.$slots.optionTooltip ? {
|
|
589
|
-
name: "optionTooltip",
|
|
590
|
-
fn: x(() => [
|
|
591
|
-
$(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
592
|
-
]),
|
|
593
|
-
key: "1"
|
|
594
|
-
} : void 0,
|
|
595
|
-
t.$slots.optionPdf ? {
|
|
596
|
-
name: "optionPdf",
|
|
597
|
-
fn: x(() => [
|
|
598
|
-
$(t.$slots, "optionPdf", {}, void 0, !0)
|
|
599
|
-
]),
|
|
600
|
-
key: "2"
|
|
601
|
-
} : void 0,
|
|
602
|
-
t.$slots.optionCsv ? {
|
|
603
|
-
name: "optionCsv",
|
|
604
|
-
fn: x(() => [
|
|
605
|
-
$(t.$slots, "optionCsv", {}, void 0, !0)
|
|
606
|
-
]),
|
|
607
|
-
key: "3"
|
|
608
|
-
} : void 0,
|
|
609
|
-
t.$slots.optionImg ? {
|
|
610
|
-
name: "optionImg",
|
|
611
|
-
fn: x(() => [
|
|
612
|
-
$(t.$slots, "optionImg", {}, void 0, !0)
|
|
613
|
-
]),
|
|
614
|
-
key: "4"
|
|
615
|
-
} : void 0,
|
|
616
|
-
t.$slots.optionTable ? {
|
|
617
|
-
name: "optionTable",
|
|
618
|
-
fn: x(() => [
|
|
619
|
-
$(t.$slots, "optionTable", {}, void 0, !0)
|
|
620
|
-
]),
|
|
621
|
-
key: "5"
|
|
622
|
-
} : void 0,
|
|
623
|
-
t.$slots.optionFullscreen ? {
|
|
624
|
-
name: "optionFullscreen",
|
|
625
|
-
fn: x(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
626
|
-
$(t.$slots, "optionFullscreen", G(q({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
627
|
-
]),
|
|
628
|
-
key: "6"
|
|
629
|
-
} : void 0,
|
|
630
|
-
t.$slots.optionAnnotator ? {
|
|
631
|
-
name: "optionAnnotator",
|
|
632
|
-
fn: x(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
633
|
-
$(t.$slots, "optionAnnotator", G(q({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
634
|
-
]),
|
|
635
|
-
key: "7"
|
|
636
|
-
} : void 0
|
|
637
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : P("", !0),
|
|
638
|
-
v.value ? (p(), C("svg", {
|
|
639
|
-
key: 4,
|
|
640
|
-
ref_key: "svgRef",
|
|
641
|
-
ref: be,
|
|
642
|
-
xmlns: g(mt),
|
|
643
|
-
class: De({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !I.value, "vue-data-ui-zoom-minus": I.value }),
|
|
644
|
-
viewBox: `${j.value.startX} ${j.value.startY} ${j.value.width <= 0 ? 10 : j.value.width} ${j.value.height <= 0 ? 10 : j.value.height}`,
|
|
645
|
-
style: D(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
646
|
-
}, [
|
|
647
|
-
Me(At),
|
|
648
|
-
(p(!0), C(Ve, null, Ue(J.value, (o, s) => (p(), C("g", null, [
|
|
649
|
-
e.value.style.chart.layout.rects.gradient.show ? (p(), C("defs", Xt, [
|
|
650
|
-
z("radialGradient", {
|
|
651
|
-
id: `tgrad_${o.id}`,
|
|
652
|
-
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
653
|
-
}, [
|
|
654
|
-
z("stop", {
|
|
655
|
-
offset: "18%",
|
|
656
|
-
"stop-color": o.color
|
|
657
|
-
}, null, 8, Yt),
|
|
658
|
-
z("stop", {
|
|
659
|
-
offset: "100%",
|
|
660
|
-
"stop-color": g(We)(o.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
661
|
-
}, null, 8, Zt)
|
|
662
|
-
], 8, jt)
|
|
663
|
-
])) : P("", !0)
|
|
664
|
-
]))), 256)),
|
|
665
|
-
(p(!0), C(Ve, null, Ue(J.value, (o, s) => (p(), C("g", null, [
|
|
666
|
-
z("rect", {
|
|
667
|
-
x: o.x0,
|
|
668
|
-
y: o.y0,
|
|
669
|
-
height: Ne(o),
|
|
670
|
-
width: Pe(o),
|
|
671
|
-
fill: h.value ? o.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${o.id})` : o.color,
|
|
672
|
-
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
673
|
-
stroke: R.value && R.value.id === o.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
674
|
-
"stroke-width": R.value && R.value.id === o.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
675
|
-
onClick: (m) => tt(o),
|
|
676
|
-
onMouseenter: () => lt({
|
|
677
|
-
datapoint: o,
|
|
678
|
-
seriesIndex: s
|
|
679
|
-
}),
|
|
680
|
-
onMouseleave: l[0] || (l[0] = (m) => {
|
|
681
|
-
R.value = null, _.value = !1;
|
|
682
|
-
}),
|
|
683
|
-
style: D(`opacity:${R.value ? R.value.id === o.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
684
|
-
class: "vue-ui-treemap-rect"
|
|
685
|
-
}, null, 44, Jt),
|
|
686
|
-
(p(), C("foreignObject", {
|
|
687
|
-
x: o.x0,
|
|
688
|
-
y: o.y0,
|
|
689
|
-
height: Ne(o),
|
|
690
|
-
width: Pe(o),
|
|
691
|
-
class: "vue-ui-treemap-cell-foreignObject"
|
|
692
|
-
}, [
|
|
693
|
-
z("div", Qt, [
|
|
694
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value) ? (p(), C("div", {
|
|
695
|
-
key: 0,
|
|
696
|
-
class: "vue-ui-treemap-cell-default",
|
|
697
|
-
style: D(`width:calc(100% - ${W(o) / 1.5}px);text-align:left;line-height:${W(o) < 14 ? 14 : W(o)}px;padding:${W(o) / 3}px; color:${g(Ee)(o.color)}`)
|
|
698
|
-
}, [
|
|
699
|
-
z("span", {
|
|
700
|
-
style: D(`width:100%;font-size:${W(o)}px;`)
|
|
701
|
-
}, Y(o.name), 5),
|
|
702
|
-
l[5] || (l[5] = z("br", null, null, -1)),
|
|
703
|
-
z("span", {
|
|
704
|
-
style: D(`width:100%;font-size:${W(o)}px;`)
|
|
705
|
-
}, Y(g(ne)(
|
|
706
|
-
e.value.style.chart.layout.labels.formatter,
|
|
707
|
-
o.value,
|
|
708
|
-
g(K)({
|
|
709
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
710
|
-
v: o.value,
|
|
711
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
712
|
-
r: e.value.style.chart.layout.labels.rounding
|
|
713
|
-
}),
|
|
714
|
-
{ datapoint: o }
|
|
715
|
-
)), 5)
|
|
716
|
-
], 4)) : P("", !0),
|
|
717
|
-
$(t.$slots, "rect", ct({ ref_for: !0 }, {
|
|
718
|
-
rect: o,
|
|
719
|
-
shouldShow: o.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value,
|
|
720
|
-
fontSize: W(o),
|
|
721
|
-
isZoom: I.value,
|
|
722
|
-
textColor: g(Ee)(o.color)
|
|
723
|
-
}), void 0, !0)
|
|
724
|
-
])
|
|
725
|
-
], 8, Kt))
|
|
726
|
-
]))), 256)),
|
|
727
|
-
$(t.$slots, "svg", G(q({ svg: B.value, isZoom: I.value, rect: R.value, config: e.value })), void 0, !0)
|
|
728
|
-
], 14, qt)) : P("", !0),
|
|
729
|
-
t.$slots.watermark ? (p(), C("div", eo, [
|
|
730
|
-
$(t.$slots, "watermark", G(q({ isPrinting: g(ke) || g(Ce) })), void 0, !0)
|
|
731
|
-
])) : P("", !0),
|
|
732
|
-
v.value ? P("", !0) : (p(), E(_t, {
|
|
733
|
-
key: 6,
|
|
734
|
-
config: {
|
|
735
|
-
type: "treemap",
|
|
736
|
-
style: {
|
|
737
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
738
|
-
treemap: {
|
|
739
|
-
color: "#CCCCCC"
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}, null, 8, ["config"])),
|
|
744
|
-
z("div", {
|
|
745
|
-
ref_key: "chartLegend",
|
|
746
|
-
ref: A
|
|
747
|
-
}, [
|
|
748
|
-
e.value.style.chart.legend.show ? (p(), E(Ot, {
|
|
749
|
-
key: `legend_${ge.value}`,
|
|
750
|
-
legendSet: ze.value,
|
|
751
|
-
config: ot.value,
|
|
752
|
-
id: `treemap_legend_${S.value}`,
|
|
753
|
-
onClickMarker: l[1] || (l[1] = ({ legend: o }) => Ae(o))
|
|
754
|
-
}, {
|
|
755
|
-
item: x(({ legend: o, index: s }) => [
|
|
756
|
-
z("div", {
|
|
757
|
-
onClick: (m) => Ae(o),
|
|
758
|
-
style: D(`opacity:${y.value.includes(o.id) ? 0.5 : 1}`)
|
|
759
|
-
}, [
|
|
760
|
-
Be(Y(o.name) + ": " + Y(g(ne)(
|
|
761
|
-
e.value.style.chart.layout.labels.formatter,
|
|
762
|
-
o.value,
|
|
763
|
-
g(K)({
|
|
764
|
-
p: e.value.style.chart.layout.labels.prefix,
|
|
765
|
-
v: o.value,
|
|
766
|
-
s: e.value.style.chart.layout.labels.suffix,
|
|
767
|
-
r: e.value.style.chart.legend.roundingValue
|
|
768
|
-
}),
|
|
769
|
-
{ datapoint: o }
|
|
770
|
-
)) + " ", 1),
|
|
771
|
-
y.value.includes(o.id) ? (p(), C("span", lo, " ( - % ) ")) : (p(), C("span", oo, " (" + Y(isNaN(o.value / X.value) ? "-" : (o.value / X.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
772
|
-
], 12, to)
|
|
773
|
-
]),
|
|
774
|
-
_: 1
|
|
775
|
-
}, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
|
|
776
|
-
key: 1,
|
|
777
|
-
legend: ze.value
|
|
778
|
-
}, void 0, !0)
|
|
779
|
-
], 512),
|
|
780
|
-
t.$slots.source ? (p(), C("div", {
|
|
781
|
-
key: 7,
|
|
782
|
-
ref_key: "source",
|
|
783
|
-
ref: ve,
|
|
784
|
-
dir: "auto"
|
|
785
|
-
}, [
|
|
786
|
-
$(t.$slots, "source", {}, void 0, !0)
|
|
787
|
-
], 512)) : P("", !0),
|
|
788
|
-
Me(Tt, {
|
|
789
|
-
show: F.value.showTooltip && _.value,
|
|
790
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
791
|
-
color: e.value.style.chart.tooltip.color,
|
|
792
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
793
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
794
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
795
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
796
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
797
|
-
position: e.value.style.chart.tooltip.position,
|
|
798
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
799
|
-
parent: T.value,
|
|
800
|
-
content: N.value,
|
|
801
|
-
isFullscreen: w.value,
|
|
802
|
-
isCustom: g(Ge)(e.value.style.chart.tooltip.customFormat)
|
|
803
|
-
}, {
|
|
804
|
-
"tooltip-before": x(() => [
|
|
805
|
-
$(t.$slots, "tooltip-before", G(q({ ...ie.value })), void 0, !0)
|
|
806
|
-
]),
|
|
807
|
-
"tooltip-after": x(() => [
|
|
808
|
-
$(t.$slots, "tooltip-after", G(q({ ...ie.value })), void 0, !0)
|
|
809
|
-
]),
|
|
810
|
-
_: 3
|
|
811
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
812
|
-
v.value ? (p(), E(Nt, {
|
|
813
|
-
key: 8,
|
|
814
|
-
hideDetails: "",
|
|
815
|
-
config: {
|
|
816
|
-
open: F.value.showTable,
|
|
817
|
-
maxHeight: 1e4,
|
|
818
|
-
body: {
|
|
819
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
820
|
-
color: e.value.style.chart.color
|
|
821
|
-
},
|
|
822
|
-
head: {
|
|
823
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
824
|
-
color: e.value.style.chart.color
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
}, {
|
|
828
|
-
content: x(() => [
|
|
829
|
-
(p(), E(St, {
|
|
830
|
-
key: `table_${pe.value}`,
|
|
831
|
-
colNames: te.value.colNames,
|
|
832
|
-
head: te.value.head,
|
|
833
|
-
body: te.value.body,
|
|
834
|
-
config: te.value.config,
|
|
835
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
836
|
-
onClose: l[2] || (l[2] = (o) => F.value.showTable = !1)
|
|
837
|
-
}, {
|
|
838
|
-
th: x(({ th: o }) => [
|
|
839
|
-
z("div", {
|
|
840
|
-
innerHTML: o,
|
|
841
|
-
style: { display: "flex", "align-items": "center" }
|
|
842
|
-
}, null, 8, ao)
|
|
843
|
-
]),
|
|
844
|
-
td: x(({ td: o }) => [
|
|
845
|
-
Be(Y(o.name || o), 1)
|
|
846
|
-
]),
|
|
847
|
-
_: 1
|
|
848
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
849
|
-
]),
|
|
850
|
-
_: 1
|
|
851
|
-
}, 8, ["config"])) : P("", !0)
|
|
852
|
-
], 46, Gt));
|
|
853
|
-
}
|
|
854
|
-
}, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-57b31c44"]]);
|
|
855
|
-
export {
|
|
856
|
-
$o as default
|
|
857
|
-
};
|