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