vue-data-ui 2.6.44 → 2.6.45
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-DGay3Mq4.cjs → Arrow-Bfwl8OAb.cjs} +1 -1
- package/dist/{Arrow-BIsMVdtn.js → Arrow-km8WlE5f.js} +1 -1
- package/dist/{BaseIcon-CNr0ynIA.cjs → BaseIcon-BjlTm9wZ.cjs} +1 -1
- package/dist/{BaseIcon-BkG8oy7S.js → BaseIcon-DywZoZmD.js} +1 -1
- package/dist/{ColorPicker-Dk1k_q80.cjs → ColorPicker-COPqu9IV.cjs} +1 -1
- package/dist/{ColorPicker-BolaeJP4.js → ColorPicker-gkZLlxzP.js} +3 -3
- package/dist/{DataTable-CMtUsL3k.js → DataTable-CrhPpuOy.js} +2 -2
- package/dist/{DataTable-ChXRV1c1.cjs → DataTable-ImmHVJ0i.cjs} +1 -1
- package/dist/{Legend-CNvH8CO_.js → Legend-BVtJaKHS.js} +2 -2
- package/dist/{Legend-DpeobB-J.cjs → Legend-CfimXfYH.cjs} +1 -1
- package/dist/{PackageVersion-DpTw0H2K.js → PackageVersion-DJu8NH8u.js} +3 -3
- package/dist/PackageVersion-DjHCw2D_.cjs +1 -0
- package/dist/{PenAndPaper-B3u1FDG_.cjs → PenAndPaper-AZpGBe7x.cjs} +1 -1
- package/dist/{PenAndPaper-CdyjU7Bn.js → PenAndPaper-DC3X33rh.js} +3 -3
- package/dist/{Shape--0X0ca4a.js → Shape-Bs4vWaC-.js} +1 -1
- package/dist/{Shape-gapU-fux.cjs → Shape-Dl6kIG9D.cjs} +1 -1
- package/dist/{Slicer-CZQhXgqN.js → Slicer-CgnhZJgM.js} +2 -2
- package/dist/{Slicer-hryDvXmh.cjs → Slicer-OBTv9I2-.cjs} +1 -1
- package/dist/{Title-CUTRN3ig.js → Title-6BRNasyb.js} +1 -1
- package/dist/{Title-DRo5NxnS.cjs → Title-DBgUbEU1.cjs} +1 -1
- package/dist/{Tooltip-BvEZcxbc.js → Tooltip-BUPxcljs.js} +1 -1
- package/dist/{Tooltip-Cbjcw6Jz.cjs → Tooltip-TGHDsCSU.cjs} +1 -1
- package/dist/{index-hcakVXU6.cjs → index-BXhJaCcU.cjs} +1 -1
- package/dist/{index-DQCJDAtd.js → index-jVWdGfFl.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-WD6Qn-jr.js → useNestedProp-BN5jbfiQ.js} +1 -1
- package/dist/{useNestedProp-DCfCPrTU.cjs → useNestedProp-DhyCNtMY.cjs} +1 -1
- package/dist/{usePrinter-FM1PheWO.js → usePrinter-BI95cSFJ.js} +1 -1
- package/dist/{usePrinter-Dv0RMCX1.cjs → usePrinter-DRWBcwQ7.cjs} +1 -1
- package/dist/{vue-data-ui-CDVMMv3d.cjs → vue-data-ui-B0eO9goE.cjs} +1 -1
- package/dist/{vue-data-ui-Byi8FBJM.js → vue-data-ui-DFmsvz9E.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-CZJ6Zo23.js → vue-ui-3d-bar-BcdL4c9H.js} +9 -9
- package/dist/{vue-ui-3d-bar-DJUNcjtc.cjs → vue-ui-3d-bar-CwXgNWXb.cjs} +1 -1
- package/dist/{vue-ui-accordion-BckkmphN.js → vue-ui-accordion-DOBMerZl.js} +3 -3
- package/dist/{vue-ui-accordion-BfFg-sVJ.cjs → vue-ui-accordion-DdHwnq9o.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DgGMb_Xp.js → vue-ui-age-pyramid-Dtaikxqn.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DunUSOpu.cjs → vue-ui-age-pyramid-i52Ub253.cjs} +1 -1
- package/dist/{vue-ui-annotator-B_MQz1AA.js → vue-ui-annotator-BrjeA9CQ.js} +1 -1
- package/dist/{vue-ui-annotator-B3G-FQLy.cjs → vue-ui-annotator-CKUZCHHC.cjs} +1 -1
- package/dist/{vue-ui-bullet-DYpgP9uL.js → vue-ui-bullet-C1xxCzws.js} +8 -8
- package/dist/{vue-ui-bullet-8Kk3qeH_.cjs → vue-ui-bullet-DxUauLaF.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DnY1Z5sA.js → vue-ui-candlestick-CPF7rQqu.js} +11 -11
- package/dist/{vue-ui-candlestick-BSB_x1u_.cjs → vue-ui-candlestick-t1BaVylo.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DNnBKojP.cjs → vue-ui-carousel-table-BqPfItK8.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cd_2r90R.js → vue-ui-carousel-table-x8RLpKZv.js} +4 -4
- package/dist/{vue-ui-chestnut-WcoV2zl6.cjs → vue-ui-chestnut-BiX9TQ2v.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B1NWviH6.js → vue-ui-chestnut-SdFREl6l.js} +8 -8
- package/dist/{vue-ui-circle-pack-D32Zo62g.cjs → vue-ui-circle-pack-B28TVLHQ.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CxxPZDLO.js → vue-ui-circle-pack-DVkRm1KL.js} +9 -9
- package/dist/{vue-ui-cursor-BNdKosWF.cjs → vue-ui-cursor-BkQNdavl.cjs} +1 -1
- package/dist/{vue-ui-cursor-Df3A3tId.js → vue-ui-cursor-CY5VZS8t.js} +2 -2
- package/dist/{vue-ui-dashboard-SRIs3xRd.cjs → vue-ui-dashboard-BCcNNuM_.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BD3v2yB2.js → vue-ui-dashboard-DQ8lax7M.js} +2 -2
- package/dist/{vue-ui-digits-6ixh72pY.js → vue-ui-digits-BkXEbzlS.js} +2 -2
- package/dist/{vue-ui-digits-DiwdDWIi.cjs → vue-ui-digits-D-F0Chxn.cjs} +1 -1
- package/dist/{vue-ui-donut-O_bMKpp0.cjs → vue-ui-donut-Dxie1WUb.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-COqxvgDm.cjs → vue-ui-donut-evolution-C8ZQum6h.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DFeCoFLD.js → vue-ui-donut-evolution-YKmsjVkR.js} +11 -11
- package/dist/{vue-ui-donut-BLrLvjYC.js → vue-ui-donut-qRDAQa4n.js} +12 -12
- package/dist/{vue-ui-dumbbell-BdpORbsw.js → vue-ui-dumbbell-C6OpTSyF.js} +10 -10
- package/dist/{vue-ui-dumbbell-CnvbgjAc.cjs → vue-ui-dumbbell-bOMg4szX.cjs} +1 -1
- package/dist/{vue-ui-flow-DZW6HtMG.cjs → vue-ui-flow-Bnj7K0Td.cjs} +1 -1
- package/dist/{vue-ui-flow-Bq5TNf0q.js → vue-ui-flow-aIpHJK9l.js} +9 -9
- package/dist/{vue-ui-funnel-BTs69xlm.cjs → vue-ui-funnel-CapST2C3.cjs} +1 -1
- package/dist/{vue-ui-funnel-CdTmW2Dv.js → vue-ui-funnel-Ckn6d97S.js} +9 -9
- package/dist/{vue-ui-galaxy-Dc38cJm-.js → vue-ui-galaxy-0p-jvo0s.js} +11 -11
- package/dist/{vue-ui-galaxy-Bks-C0T9.cjs → vue-ui-galaxy-FIQp4ePf.cjs} +1 -1
- package/dist/{vue-ui-gauge-BTCMT6kZ.cjs → vue-ui-gauge-C1QU2678.cjs} +1 -1
- package/dist/{vue-ui-gauge-BPe-Wpxa.js → vue-ui-gauge-CtzP0_kK.js} +7 -7
- package/dist/{vue-ui-gizmo-DBnHMb9H.js → vue-ui-gizmo--TFv_z_f.js} +3 -3
- package/dist/{vue-ui-gizmo-CUKcPiKM.cjs → vue-ui-gizmo-D6E03WtQ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C1YhyvNx.js → vue-ui-heatmap-Bx9RCECY.js} +10 -10
- package/dist/{vue-ui-heatmap-BufOxGx7.cjs → vue-ui-heatmap-DQ_4z6a6.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DWAkb7b_.cjs → vue-ui-history-plot-BNybvrYe.cjs} +1 -1
- package/dist/{vue-ui-history-plot-oMjKnlp3.js → vue-ui-history-plot-OlxcB4fR.js} +11 -11
- package/dist/{vue-ui-kpi-BLHpMBxd.js → vue-ui-kpi-D-EjjlYh.js} +3 -3
- package/dist/{vue-ui-kpi-ufMTcMPT.cjs → vue-ui-kpi-DhsQdhIg.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BLsy0k_A.js → vue-ui-mini-loader-CYRJtuw3.js} +2 -2
- package/dist/{vue-ui-mini-loader-T1GcVUKb.cjs → vue-ui-mini-loader-gsh0jMbc.cjs} +1 -1
- package/dist/{vue-ui-molecule-BnCvFuus.js → vue-ui-molecule-Dke-JabR.js} +10 -10
- package/dist/{vue-ui-molecule-B3GExfFV.cjs → vue-ui-molecule-K4PM7UqE.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Cxt_fhUy.cjs → vue-ui-mood-radar-CnR7mp7Z.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-Yso-s4of.js → vue-ui-mood-radar-sXLyAWIK.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BfRWRgkw.js → vue-ui-nested-donuts-CJ9r-x9P.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BBzhXq6P.cjs → vue-ui-nested-donuts-DW1Zx5R0.cjs} +1 -1
- package/dist/{vue-ui-onion-Dt4TWe6t.js → vue-ui-onion-CVRrdFde.js} +11 -11
- package/dist/{vue-ui-onion-OEnDmiOB.cjs → vue-ui-onion-DM-jq72Y.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DGLh0ael.js → vue-ui-parallel-coordinate-plot-DLVjGpqC.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BnAAzLae.cjs → vue-ui-parallel-coordinate-plot-DMouPTwE.cjs} +1 -1
- package/dist/{vue-ui-quadrant-nHh7YqG6.js → vue-ui-quadrant-BGuywSpy.js} +12 -12
- package/dist/{vue-ui-quadrant-B6E6v1xG.cjs → vue-ui-quadrant-CXFcrSRD.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Dr20RPOf.cjs → vue-ui-quick-chart-9R835dAy.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-SGvhac9d.js → vue-ui-quick-chart-D_ZSUMnh.js} +9 -9
- package/dist/{vue-ui-radar-BRtf9Ps5.cjs → vue-ui-radar-CGSB8Q_3.cjs} +1 -1
- package/dist/{vue-ui-radar-CcdphM-O.js → vue-ui-radar-CrF3XMq8.js} +12 -12
- package/dist/{vue-ui-rating-DgwurE4x.cjs → vue-ui-rating-BiwEz-WI.cjs} +1 -1
- package/dist/{vue-ui-rating-DRlCBElN.js → vue-ui-rating-DCH03Nd-.js} +2 -2
- package/dist/{vue-ui-relation-circle-g1JlL2f2.js → vue-ui-relation-circle-CFB3nQrw.js} +7 -7
- package/dist/{vue-ui-relation-circle-B4TErNPT.cjs → vue-ui-relation-circle-D7sKIx2H.cjs} +1 -1
- package/dist/{vue-ui-rings-BM9uYCUU.js → vue-ui-rings-CDFQgsVL.js} +12 -12
- package/dist/{vue-ui-rings-CBeL3HIa.cjs → vue-ui-rings-CMzJJbL7.cjs} +1 -1
- package/dist/{vue-ui-scatter-DT_QBIeo.js → vue-ui-scatter-CYweE3aN.js} +12 -12
- package/dist/{vue-ui-scatter-gkSm6cYR.cjs → vue-ui-scatter-Cpc9LK6H.cjs} +1 -1
- package/dist/{vue-ui-screenshot-2leQxim8.cjs → vue-ui-screenshot-BA27Irge.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DGbuK-RT.js → vue-ui-screenshot-BRY1fQOv.js} +1 -1
- package/dist/{vue-ui-skeleton-FXF7pMM8.cjs → vue-ui-skeleton-CLMRPxZm.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BTfzoolB.js → vue-ui-skeleton-Dsd0bx0Y.js} +3 -3
- package/dist/{vue-ui-smiley-Dijs1HRf.cjs → vue-ui-smiley-CNnxNaGC.cjs} +1 -1
- package/dist/{vue-ui-smiley-rwgYU3A2.js → vue-ui-smiley-CeC-WFLx.js} +2 -2
- package/dist/{vue-ui-spark-trend-Cj0B6A_8.js → vue-ui-spark-trend-C8FlaTDz.js} +5 -5
- package/dist/{vue-ui-spark-trend-D62Z0XyP.cjs → vue-ui-spark-trend-liGslvUe.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B3R7uA_h.js → vue-ui-sparkbar-BjCkuYB0.js} +4 -4
- package/dist/{vue-ui-sparkbar-BB_OXsVx.cjs → vue-ui-sparkbar-DTUuvjOA.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-20iVOcBv.js → vue-ui-sparkgauge-BBJvgM0r.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CV3MRct2.cjs → vue-ui-sparkgauge-BEL_6k7M.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-ASA1Izuq.cjs → vue-ui-sparkhistogram-B12f_DfZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C8WGWsjQ.js → vue-ui-sparkhistogram-DgRpgf4S.js} +5 -5
- package/dist/{vue-ui-sparkline-C4MRWUBA.js → vue-ui-sparkline-COtgfnKN.js} +4 -4
- package/dist/{vue-ui-sparkline-jX03CtPG.cjs → vue-ui-sparkline-CgNq3TDg.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C6jgtbtu.js → vue-ui-sparkstackbar-3qtBnVN-.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BcCB8Id3.cjs → vue-ui-sparkstackbar-JgTWCear.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CVS_1WMe.cjs → vue-ui-stackbar-BIQOmKWQ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CkEnBXay.js → vue-ui-stackbar-BzWMNHEl.js} +13 -13
- package/dist/{vue-ui-strip-plot-ES7BwMoF.js → vue-ui-strip-plot-B5yz7F4O.js} +11 -11
- package/dist/{vue-ui-strip-plot-DBabY03i.cjs → vue-ui-strip-plot-Pr-p3HVe.cjs} +1 -1
- package/dist/{vue-ui-table-Cf1g82vY.cjs → vue-ui-table-Da8yPHbm.cjs} +1 -1
- package/dist/{vue-ui-table-CCwzUTnA.js → vue-ui-table-DfzIKXYz.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DtzKVrpK.js → vue-ui-table-heatmap-B42LEDQq.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CyHzz9rv.cjs → vue-ui-table-heatmap-m9WunlMI.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-95pS3pBt.js → vue-ui-table-sparkline-D0NpqAlx.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CLAybURJ.cjs → vue-ui-table-sparkline-D87wVYbh.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BQTWXeqU.js → vue-ui-thermometer-CLrrfpCH.js} +7 -7
- package/dist/{vue-ui-thermometer-Cm_KBNVZ.cjs → vue-ui-thermometer-CpaWOGHr.cjs} +1 -1
- package/dist/{vue-ui-timer-B0D_sZmm.cjs → vue-ui-timer-DJ3N2OIu.cjs} +1 -1
- package/dist/{vue-ui-timer-tLNMbgLM.js → vue-ui-timer-ruhqlCDV.js} +5 -5
- package/dist/{vue-ui-tiremarks-nIj267dw.js → vue-ui-tiremarks-B1PaJvW_.js} +7 -7
- package/dist/{vue-ui-tiremarks-CWIZflLH.cjs → vue-ui-tiremarks-By-ZwLdD.cjs} +1 -1
- package/dist/{vue-ui-treemap-Js5dG3BL.js → vue-ui-treemap-B3_lUi3B.js} +276 -268
- package/dist/vue-ui-treemap-DX_oIHsl.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-NCB7yZQF.js → vue-ui-vertical-bar-Bi_p2HMG.js} +12 -12
- package/dist/{vue-ui-vertical-bar-fh2mIy4s.cjs → vue-ui-vertical-bar-D51OT6tD.cjs} +1 -1
- package/dist/{vue-ui-waffle-BTz72Vui.cjs → vue-ui-waffle-BRFWNTTy.cjs} +1 -1
- package/dist/{vue-ui-waffle-C70QQeU2.js → vue-ui-waffle-D_OFNFu_.js} +12 -12
- package/dist/{vue-ui-wheel-C9DYeu9D.cjs → vue-ui-wheel-C_0xODX0.cjs} +1 -1
- package/dist/{vue-ui-wheel-BKAEI3lz.js → vue-ui-wheel-Dm-sn-fc.js} +7 -7
- package/dist/{vue-ui-word-cloud-BgxihpLV.cjs → vue-ui-word-cloud-CpbPC0k6.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-ChIuYeMe.js → vue-ui-word-cloud-WO_xGFwd.js} +10 -10
- package/dist/{vue-ui-xy-BSKwWGbp.cjs → vue-ui-xy-ArWU04zz.cjs} +1 -1
- package/dist/{vue-ui-xy-DHgnF-1N.js → vue-ui-xy-DYGsBFzv.js} +14 -14
- package/dist/{vue-ui-xy-canvas-BstJgVjY.cjs → vue-ui-xy-canvas-DCFJnGtu.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-xQvriWI0.js → vue-ui-xy-canvas-SpUUvBPW.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-C9u9Pwxk.cjs +0 -1
- package/dist/vue-ui-treemap-DRDVV_Da.cjs +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { L as Nt } from "./Legend-
|
|
7
|
-
import
|
|
8
|
-
import { D as At } from "./DataTable-
|
|
9
|
-
import Pt from "./vue-ui-accordion-
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as Ze } from "./useNestedProp-
|
|
12
|
-
import { _ as
|
|
13
|
-
import { P as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
import
|
|
17
|
-
import { _ as
|
|
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
18
|
function Je(n, u) {
|
|
19
19
|
const r = n.length;
|
|
20
20
|
if (r === 0)
|
|
@@ -22,8 +22,8 @@ function Je(n, u) {
|
|
|
22
22
|
{
|
|
23
23
|
let i = 1 / 0, s = -1 / 0, c = 0;
|
|
24
24
|
for (let h = 0; h < r; h += 1) {
|
|
25
|
-
const
|
|
26
|
-
|
|
25
|
+
const f = n[h].normalizedValue;
|
|
26
|
+
f < i && (i = f), f > s && (s = f), c += f;
|
|
27
27
|
}
|
|
28
28
|
return Math.max(
|
|
29
29
|
u ** 2 * s / c ** 2,
|
|
@@ -40,7 +40,7 @@ function Ke(n) {
|
|
|
40
40
|
y1: r + s
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ht(n, u, r) {
|
|
44
44
|
if (n.length === 0)
|
|
45
45
|
return !0;
|
|
46
46
|
{
|
|
@@ -51,7 +51,7 @@ function Ut(n, u, r) {
|
|
|
51
51
|
return s >= c;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Wt(n) {
|
|
55
55
|
const u = [], r = n.length;
|
|
56
56
|
for (let i = 0; i < r; i += 1) {
|
|
57
57
|
const s = n[i], c = s.length;
|
|
@@ -60,53 +60,53 @@ function Ht(n) {
|
|
|
60
60
|
}
|
|
61
61
|
return u;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Et(n, u) {
|
|
64
64
|
const r = {
|
|
65
65
|
...u,
|
|
66
66
|
children: n
|
|
67
67
|
};
|
|
68
68
|
return et(r);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Gt(n) {
|
|
71
71
|
return (n.x1 - n.x0) * (n.y1 - n.y0);
|
|
72
72
|
}
|
|
73
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),
|
|
75
|
-
let
|
|
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
76
|
const w = [];
|
|
77
77
|
if (r >= i) {
|
|
78
78
|
for (let k = 0; k < d; k += 1) {
|
|
79
|
-
const b = n[k], T =
|
|
80
|
-
x0:
|
|
81
|
-
y0:
|
|
82
|
-
x1:
|
|
79
|
+
const b = n[k], T = A + b.normalizedValue / f, M = {
|
|
80
|
+
x0: I,
|
|
81
|
+
y0: A,
|
|
82
|
+
x1: I + f,
|
|
83
83
|
y1: T
|
|
84
|
-
},
|
|
85
|
-
|
|
84
|
+
}, P = Object.assign({}, b, M);
|
|
85
|
+
A = T, w.push(P);
|
|
86
86
|
}
|
|
87
87
|
return w;
|
|
88
88
|
} else {
|
|
89
89
|
for (let k = 0; k < d; k += 1) {
|
|
90
|
-
const b = n[k], T =
|
|
91
|
-
x0:
|
|
92
|
-
y0:
|
|
90
|
+
const b = n[k], T = I + b.normalizedValue / z, M = {
|
|
91
|
+
x0: I,
|
|
92
|
+
y0: A,
|
|
93
93
|
x1: T,
|
|
94
|
-
y1:
|
|
95
|
-
},
|
|
96
|
-
|
|
94
|
+
y1: A + z
|
|
95
|
+
}, P = Object.assign({}, b, M);
|
|
96
|
+
I = T, w.push(P);
|
|
97
97
|
}
|
|
98
98
|
return w;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function qt(n) {
|
|
102
102
|
const u = ye(n), r = u.width, i = u.height;
|
|
103
103
|
return Math.min(r, i);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
const r = n.length, i = n.map((
|
|
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
107
|
let d, h;
|
|
108
|
-
for (let
|
|
109
|
-
h = n[
|
|
108
|
+
for (let f = 0; f < r; f += 1)
|
|
109
|
+
h = n[f], d = Object.assign({}, h, {
|
|
110
110
|
normalizedValue: h.value * (s || 0)
|
|
111
111
|
}), c.push(d);
|
|
112
112
|
return c;
|
|
@@ -120,24 +120,24 @@ function ye(n) {
|
|
|
120
120
|
height: s - r
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function jt(n, u, r, i) {
|
|
124
124
|
let s = n, c = u, d = r, h = i;
|
|
125
125
|
for (; ; ) {
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
126
|
+
const f = s.length;
|
|
127
|
+
if (f === 0) {
|
|
128
128
|
const w = Qe(c, d);
|
|
129
129
|
return h.concat(w);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
const w = c.concat(
|
|
134
|
-
s =
|
|
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
135
|
} else {
|
|
136
136
|
const w = c.length;
|
|
137
137
|
let k = 0;
|
|
138
|
-
for (let
|
|
139
|
-
k += c[
|
|
140
|
-
const b =
|
|
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
141
|
s = s, c = [], d = b, h = M;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -146,52 +146,52 @@ function et(n) {
|
|
|
146
146
|
if (typeof n.children > "u" || !n.children.length)
|
|
147
147
|
return [n];
|
|
148
148
|
{
|
|
149
|
-
const u =
|
|
149
|
+
const u = Xt(
|
|
150
150
|
n.children,
|
|
151
|
-
|
|
152
|
-
), r =
|
|
151
|
+
Gt(n)
|
|
152
|
+
), r = jt(u, [], n, []), i = r.length, s = [];
|
|
153
153
|
for (let d = 0; d < i; d += 1)
|
|
154
154
|
s.push(et(r[d]));
|
|
155
|
-
return
|
|
155
|
+
return Wt(s);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Yt(n, u) {
|
|
159
159
|
const { width: r, height: i, xOffset: s, yOffset: c } = ye(n);
|
|
160
160
|
if (r >= i) {
|
|
161
|
-
const d = u / i, h = r - d,
|
|
161
|
+
const d = u / i, h = r - d, f = {
|
|
162
162
|
xOffset: s + d,
|
|
163
163
|
yOffset: c,
|
|
164
164
|
width: h,
|
|
165
165
|
height: i
|
|
166
166
|
};
|
|
167
|
-
return Ke(
|
|
167
|
+
return Ke(f);
|
|
168
168
|
} else {
|
|
169
|
-
const d = u / r, h = i - d,
|
|
169
|
+
const d = u / r, h = i - d, f = {
|
|
170
170
|
xOffset: s,
|
|
171
171
|
yOffset: c + d,
|
|
172
172
|
width: r,
|
|
173
173
|
height: h
|
|
174
174
|
};
|
|
175
|
-
return Ke(
|
|
175
|
+
return Ke(f);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const Zt = ["id"], Jt = {
|
|
179
179
|
key: 4,
|
|
180
180
|
class: "vue-ui-treemap-breadcrumbs",
|
|
181
181
|
"data-html2canvas-ignore": ""
|
|
182
|
-
},
|
|
182
|
+
}, Kt = ["onClick", "data-last-crumb"], Qt = { class: "vue-ui-treemap-crumb-unit" }, el = { class: "vue-ui-treemap-crumb-unit-label" }, tl = {
|
|
183
183
|
key: 0,
|
|
184
184
|
style: { width: "24px", display: "flex", "align-items": "center" }
|
|
185
|
-
},
|
|
185
|
+
}, ll = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
188
|
-
},
|
|
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
189
|
style: { width: "100%", height: "100%" },
|
|
190
190
|
class: "vue-ui-treemap-cell"
|
|
191
|
-
},
|
|
191
|
+
}, dl = {
|
|
192
192
|
key: 6,
|
|
193
193
|
class: "vue-data-ui-watermark"
|
|
194
|
-
},
|
|
194
|
+
}, vl = ["onClick"], hl = { key: 0 }, fl = { key: 1 }, pl = ["innerHTML"], gl = {
|
|
195
195
|
__name: "vue-ui-treemap",
|
|
196
196
|
props: {
|
|
197
197
|
config: {
|
|
@@ -209,15 +209,15 @@ const Yt = ["id"], Zt = {
|
|
|
209
209
|
},
|
|
210
210
|
emits: ["selectLegend", "selectDatapoint"],
|
|
211
211
|
setup(n, { expose: u, emit: r }) {
|
|
212
|
-
const { vue_ui_treemap: i } =
|
|
213
|
-
|
|
212
|
+
const { vue_ui_treemap: i } = gt(), s = n, c = r, d = ct();
|
|
213
|
+
Ee(() => {
|
|
214
214
|
d["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
215
215
|
});
|
|
216
|
-
const h = C(() => !!s.dataset && s.dataset.length),
|
|
217
|
-
get: () =>
|
|
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
218
|
set: (t) => t
|
|
219
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility:
|
|
220
|
-
function
|
|
219
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: xe, keepUserOptionState: Te } = Mt({ config: e.value }), { svgRef: _e } = Vt({ config: e.value.style.chart.title });
|
|
220
|
+
function Oe() {
|
|
221
221
|
const t = Ze({
|
|
222
222
|
userConfig: s.config,
|
|
223
223
|
defaultConfig: i
|
|
@@ -227,23 +227,23 @@ const Yt = ["id"], Zt = {
|
|
|
227
227
|
userConfig: yt.vue_ui_treemap[t.theme] || s.config,
|
|
228
228
|
defaultConfig: t
|
|
229
229
|
}),
|
|
230
|
-
customPalette:
|
|
230
|
+
customPalette: mt[t.theme] || S
|
|
231
231
|
} : t;
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
e.value =
|
|
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
235
|
}, { deep: !0 });
|
|
236
|
-
const { isPrinting:
|
|
237
|
-
elementId: `treemap_${
|
|
236
|
+
const { isPrinting: Se, isImaging: Ie, generatePdf: Ne, generateImage: ze } = Ot({
|
|
237
|
+
elementId: `treemap_${z.value}`,
|
|
238
238
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
239
239
|
options: e.value.userOptions.print
|
|
240
|
-
}), tt = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = C(() =>
|
|
240
|
+
}), tt = C(() => e.value.userOptions.show && !e.value.style.chart.title.text), oe = C(() => bt(e.value.customPalette)), F = g({
|
|
241
241
|
showTable: e.value.table.show,
|
|
242
242
|
showTooltip: e.value.style.chart.tooltip.show
|
|
243
243
|
}), V = g({
|
|
244
244
|
height: e.value.style.chart.height,
|
|
245
245
|
width: e.value.style.chart.width
|
|
246
|
-
}),
|
|
246
|
+
}), W = C(() => ({
|
|
247
247
|
bottom: V.value.height - e.value.style.chart.padding.bottom,
|
|
248
248
|
height: V.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
249
249
|
left: e.value.style.chart.padding.left,
|
|
@@ -261,21 +261,21 @@ const Yt = ["id"], Zt = {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
const B = g(s.dataset), ae = g(null);
|
|
264
|
-
|
|
264
|
+
Ee(() => {
|
|
265
265
|
lt();
|
|
266
266
|
});
|
|
267
267
|
function lt() {
|
|
268
|
-
if (
|
|
268
|
+
if (kt(s.dataset) && wt({
|
|
269
269
|
componentName: "VueUiTreemap",
|
|
270
270
|
type: "dataset"
|
|
271
271
|
}), Ae(B.value), e.value.responsive) {
|
|
272
|
-
const t =
|
|
273
|
-
const { width: o, height: l } =
|
|
272
|
+
const t = Ft(() => {
|
|
273
|
+
const { width: o, height: l } = Rt({
|
|
274
274
|
chart: T.value,
|
|
275
275
|
title: e.value.style.chart.title.text ? M.value : null,
|
|
276
|
-
legend: e.value.style.chart.legend.show ?
|
|
277
|
-
source:
|
|
278
|
-
noTitle:
|
|
276
|
+
legend: e.value.style.chart.legend.show ? P.value : null,
|
|
277
|
+
source: be.value,
|
|
278
|
+
noTitle: ke.value
|
|
279
279
|
});
|
|
280
280
|
requestAnimationFrame(() => {
|
|
281
281
|
V.value.width = o, V.value.height = l;
|
|
@@ -284,13 +284,13 @@ const Yt = ["id"], Zt = {
|
|
|
284
284
|
ae.value = new ResizeObserver(t), ae.value.observe(T.value.parentNode);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
vt(() => {
|
|
288
288
|
ae.value && ae.value.disconnect();
|
|
289
289
|
});
|
|
290
|
-
const
|
|
290
|
+
const Z = g(B.value), Q = C(() => Z.value.map((t, o) => ({
|
|
291
291
|
...t,
|
|
292
292
|
color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length]
|
|
293
|
-
})).filter((t) => !b.value.includes(t.id))),
|
|
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
294
|
get() {
|
|
295
295
|
let t = [...Q.value];
|
|
296
296
|
return e.value.style.chart.layout.sorted && (t = [...Q.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
@@ -301,102 +301,107 @@ const Yt = ["id"], Zt = {
|
|
|
301
301
|
return t;
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
-
function
|
|
304
|
+
function Fe(t, o) {
|
|
305
305
|
return t.value / o;
|
|
306
306
|
}
|
|
307
307
|
function ot(t, o, l) {
|
|
308
|
-
const a = e.value.style.chart.layout.rects.colorRatio -
|
|
308
|
+
const a = e.value.style.chart.layout.rects.colorRatio - Fe(o, l);
|
|
309
309
|
return Xe(t, a < 0 ? 0 : a);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
return t.map((
|
|
313
|
-
const re = ot(ce(o) || oe.value[
|
|
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
314
|
return {
|
|
315
|
-
...
|
|
315
|
+
...p,
|
|
316
316
|
color: re,
|
|
317
|
-
proportion:
|
|
317
|
+
proportion: it,
|
|
318
318
|
parentName: l,
|
|
319
|
-
children:
|
|
319
|
+
children: p.children ? Re(p.children, re, p.name, a) : void 0
|
|
320
320
|
};
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
|
-
const ee = C(() =>
|
|
323
|
+
const ee = C(() => Et(
|
|
324
324
|
Pe.value.map((t, o) => {
|
|
325
|
-
const l = t.children ? t.children.reduce((a,
|
|
325
|
+
const l = t.children ? t.children.reduce((a, p) => a + p.value, 0) : t.value;
|
|
326
326
|
return {
|
|
327
327
|
value: t.value,
|
|
328
328
|
id: t.id,
|
|
329
|
-
children: t.children ?
|
|
329
|
+
children: t.children ? Re(t.children.sort((a, p) => p.value - a.value), t.color, t.name, l) : void 0,
|
|
330
330
|
color: t.color,
|
|
331
331
|
name: t.name
|
|
332
332
|
};
|
|
333
333
|
}),
|
|
334
|
-
{ x0:
|
|
334
|
+
{ x0: W.value.left * 2, y0: W.value.top, x1: W.value.width, y1: W.value.height }
|
|
335
335
|
));
|
|
336
|
-
function
|
|
336
|
+
function Le({ y0: t, y1: o }) {
|
|
337
337
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function De({ x0: t, x1: o }) {
|
|
340
340
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function E(t) {
|
|
343
343
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
344
344
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
345
345
|
}
|
|
346
346
|
function at(t) {
|
|
347
347
|
w.value = t, k.value += 1;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const K = C(() => ({
|
|
350
350
|
startX: 0,
|
|
351
351
|
startY: 0,
|
|
352
|
-
width:
|
|
353
|
-
height:
|
|
352
|
+
width: W.value.vbWidth,
|
|
353
|
+
height: W.value.vbHeight
|
|
354
354
|
}));
|
|
355
|
-
function
|
|
355
|
+
function G(t, o = B.value) {
|
|
356
356
|
for (const l of o) {
|
|
357
357
|
if (l.id === t)
|
|
358
358
|
return l;
|
|
359
359
|
if (l.children) {
|
|
360
|
-
const a =
|
|
360
|
+
const a = G(t, l.children);
|
|
361
361
|
if (a)
|
|
362
362
|
return a;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
return null;
|
|
366
366
|
}
|
|
367
|
-
const
|
|
368
|
-
function
|
|
367
|
+
const N = g([]), U = C(() => N.value.length > 0);
|
|
368
|
+
function Me(t) {
|
|
369
369
|
var l;
|
|
370
370
|
if (!t) {
|
|
371
|
-
|
|
371
|
+
Z.value = B.value.slice(), c("selectDatapoint", void 0), N.value = [];
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
374
|
-
const o =
|
|
374
|
+
const o = G(t.id);
|
|
375
375
|
if (o && ((l = o.children) != null && l.length))
|
|
376
|
-
|
|
376
|
+
N.value.push(o.id), Z.value = o.children.slice(), c("selectDatapoint", t);
|
|
377
377
|
else if (t.parentId) {
|
|
378
|
-
|
|
379
|
-
const a =
|
|
380
|
-
|
|
381
|
-
} else if (
|
|
382
|
-
|
|
383
|
-
const a =
|
|
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
384
|
if (a) {
|
|
385
|
-
const
|
|
386
|
-
|
|
385
|
+
const p = G(a);
|
|
386
|
+
Z.value = p.children.slice();
|
|
387
387
|
} else
|
|
388
|
-
|
|
388
|
+
Z.value = B.value.slice(), N.value = [], c("selectDatapoint", void 0);
|
|
389
389
|
}
|
|
390
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
|
+
}
|
|
391
396
|
const te = C(() => {
|
|
392
397
|
const t = [
|
|
393
398
|
{ id: null, label: "All" }
|
|
394
399
|
];
|
|
395
|
-
if (
|
|
396
|
-
let o =
|
|
400
|
+
if (N.value.length > 0) {
|
|
401
|
+
let o = G(N.value[N.value.length - 1]);
|
|
397
402
|
const l = [];
|
|
398
403
|
for (; o; )
|
|
399
|
-
l.unshift(o), o = o.parentId ?
|
|
404
|
+
l.unshift(o), o = o.parentId ? G(o.parentId) : null;
|
|
400
405
|
for (const a of l)
|
|
401
406
|
t.push({
|
|
402
407
|
id: a.id,
|
|
@@ -405,7 +410,7 @@ const Yt = ["id"], Zt = {
|
|
|
405
410
|
});
|
|
406
411
|
}
|
|
407
412
|
return t;
|
|
408
|
-
}), R = g(null),
|
|
413
|
+
}), R = g(null), Ve = C(() => B.value.map((t, o) => ({
|
|
409
414
|
...t,
|
|
410
415
|
color: ce(t.color) || oe.value[o] || S[o] || S[o % S.length],
|
|
411
416
|
shape: "square"
|
|
@@ -413,7 +418,7 @@ const Yt = ["id"], Zt = {
|
|
|
413
418
|
...t,
|
|
414
419
|
proportion: t.value / B.value.map((l) => l.value).reduce((l, a) => l + a, 0),
|
|
415
420
|
opacity: b.value.includes(t.id) ? 0.5 : 1
|
|
416
|
-
}))),
|
|
421
|
+
}))), st = C(() => ({
|
|
417
422
|
cy: "treemap-div-legend",
|
|
418
423
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
419
424
|
color: e.value.style.chart.legend.color,
|
|
@@ -421,20 +426,20 @@ const Yt = ["id"], Zt = {
|
|
|
421
426
|
paddingBottom: 12,
|
|
422
427
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
423
428
|
}));
|
|
424
|
-
function
|
|
425
|
-
|
|
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);
|
|
426
431
|
}
|
|
427
432
|
const he = g(null);
|
|
428
|
-
function
|
|
433
|
+
function rt({ datapoint: t, seriesIndex: o }) {
|
|
429
434
|
R.value = t, he.value = { datapoint: t, seriesIndex: o, config: e.value, series: Q.value };
|
|
430
435
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
431
|
-
if (Ye(l) &&
|
|
436
|
+
if (Ye(l) && Tt(() => l({
|
|
432
437
|
seriesIndex: o,
|
|
433
438
|
datapoint: t,
|
|
434
439
|
series: Q.value,
|
|
435
440
|
config: e.value
|
|
436
441
|
})))
|
|
437
|
-
|
|
442
|
+
A.value = l({
|
|
438
443
|
seriesIndex: o,
|
|
439
444
|
datapoint: t,
|
|
440
445
|
series: Q.value,
|
|
@@ -452,9 +457,9 @@ const Yt = ["id"], Zt = {
|
|
|
452
457
|
r: e.value.style.chart.tooltip.roundingValue
|
|
453
458
|
}),
|
|
454
459
|
{ datapoint: t, seriesIndex: o }
|
|
455
|
-
)}</b>`,
|
|
460
|
+
)}</b>`, A.value = `<div>${a}</div>`;
|
|
456
461
|
}
|
|
457
|
-
|
|
462
|
+
I.value = !0;
|
|
458
463
|
}
|
|
459
464
|
const D = C(() => {
|
|
460
465
|
const t = ee.value.map((l) => ({
|
|
@@ -463,12 +468,12 @@ const Yt = ["id"], Zt = {
|
|
|
463
468
|
})), o = ee.value.map((l) => l.value);
|
|
464
469
|
return { head: t, body: o };
|
|
465
470
|
});
|
|
466
|
-
function
|
|
471
|
+
function Ue() {
|
|
467
472
|
pt(() => {
|
|
468
|
-
const t = D.value.head.map((a,
|
|
473
|
+
const t = D.value.head.map((a, p) => [[
|
|
469
474
|
a.name
|
|
470
|
-
], [D.value.body[
|
|
471
|
-
|
|
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" });
|
|
472
477
|
});
|
|
473
478
|
}
|
|
474
479
|
const ne = C(() => {
|
|
@@ -476,26 +481,26 @@ const Yt = ["id"], Zt = {
|
|
|
476
481
|
e.value.table.columnNames.series,
|
|
477
482
|
e.value.table.columnNames.value,
|
|
478
483
|
e.value.table.columnNames.percentage
|
|
479
|
-
], o = D.value.head.map((
|
|
484
|
+
], o = D.value.head.map((p, H) => {
|
|
480
485
|
const re = de(
|
|
481
486
|
e.value.style.chart.layout.labels.formatter,
|
|
482
|
-
D.value.body[
|
|
487
|
+
D.value.body[H],
|
|
483
488
|
le({
|
|
484
489
|
p: e.value.style.chart.layout.labels.prefix,
|
|
485
|
-
v: D.value.body[
|
|
490
|
+
v: D.value.body[H],
|
|
486
491
|
s: e.value.style.chart.layout.labels.suffix,
|
|
487
492
|
r: e.value.table.td.roundingValue
|
|
488
493
|
})
|
|
489
494
|
);
|
|
490
495
|
return [
|
|
491
496
|
{
|
|
492
|
-
color:
|
|
493
|
-
name:
|
|
497
|
+
color: p.color,
|
|
498
|
+
name: p.name,
|
|
494
499
|
shape: "square"
|
|
495
500
|
},
|
|
496
501
|
re,
|
|
497
|
-
isNaN(D.value.body[
|
|
498
|
-
v: D.value.body[
|
|
502
|
+
isNaN(D.value.body[H] / J.value) ? "-" : le({
|
|
503
|
+
v: D.value.body[H] / J.value * 100,
|
|
499
504
|
s: "%",
|
|
500
505
|
r: e.value.table.td.roundingPercentage
|
|
501
506
|
})
|
|
@@ -523,59 +528,59 @@ const Yt = ["id"], Zt = {
|
|
|
523
528
|
config: l
|
|
524
529
|
};
|
|
525
530
|
});
|
|
526
|
-
function
|
|
531
|
+
function ut() {
|
|
527
532
|
return ee.value;
|
|
528
533
|
}
|
|
529
|
-
function
|
|
534
|
+
function He() {
|
|
530
535
|
F.value.showTable = !F.value.showTable;
|
|
531
536
|
}
|
|
532
|
-
function
|
|
537
|
+
function We() {
|
|
533
538
|
F.value.showTooltip = !F.value.showTooltip;
|
|
534
539
|
}
|
|
535
540
|
const se = g(!1);
|
|
536
|
-
function
|
|
541
|
+
function fe() {
|
|
537
542
|
se.value = !se.value;
|
|
538
543
|
}
|
|
539
544
|
return u({
|
|
540
|
-
getData:
|
|
541
|
-
generateCsv:
|
|
542
|
-
generateImage:
|
|
545
|
+
getData: ut,
|
|
546
|
+
generateCsv: Ue,
|
|
547
|
+
generateImage: ze,
|
|
543
548
|
generatePdf: Ne,
|
|
544
|
-
toggleTable:
|
|
545
|
-
toggleTooltip:
|
|
546
|
-
toggleAnnotator:
|
|
547
|
-
}), (t, o) => (v(),
|
|
549
|
+
toggleTable: He,
|
|
550
|
+
toggleTooltip: We,
|
|
551
|
+
toggleAnnotator: fe
|
|
552
|
+
}), (t, o) => (v(), y("div", {
|
|
548
553
|
ref_key: "treemapChart",
|
|
549
554
|
ref: T,
|
|
550
|
-
class:
|
|
555
|
+
class: pe(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
551
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}`),
|
|
552
|
-
id: `treemap_${
|
|
553
|
-
onMouseenter: o[3] || (o[3] = () =>
|
|
554
|
-
onMouseleave: o[4] || (o[4] = () =>
|
|
557
|
+
id: `treemap_${z.value}`,
|
|
558
|
+
onMouseenter: o[3] || (o[3] = () => m(xe)(!0)),
|
|
559
|
+
onMouseleave: o[4] || (o[4] = () => m(xe)(!1))
|
|
555
560
|
}, [
|
|
556
|
-
e.value.userOptions.buttons.annotator ? (v(),
|
|
561
|
+
e.value.userOptions.buttons.annotator ? (v(), q(Dt, {
|
|
557
562
|
key: 0,
|
|
558
|
-
svgRef:
|
|
563
|
+
svgRef: m(_e),
|
|
559
564
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
560
565
|
color: e.value.style.chart.color,
|
|
561
566
|
active: se.value,
|
|
562
|
-
onClose:
|
|
567
|
+
onClose: fe
|
|
563
568
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : _("", !0),
|
|
564
|
-
tt.value ? (v(),
|
|
569
|
+
tt.value ? (v(), y("div", {
|
|
565
570
|
key: 1,
|
|
566
571
|
ref_key: "noTitle",
|
|
567
|
-
ref:
|
|
572
|
+
ref: ke,
|
|
568
573
|
class: "vue-data-ui-no-title-space",
|
|
569
574
|
style: "height:36px; width: 100%;background:transparent"
|
|
570
575
|
}, null, 512)) : _("", !0),
|
|
571
|
-
e.value.style.chart.title.text ? (v(),
|
|
576
|
+
e.value.style.chart.title.text ? (v(), y("div", {
|
|
572
577
|
key: 2,
|
|
573
578
|
ref_key: "chartTitle",
|
|
574
579
|
ref: M,
|
|
575
580
|
style: L(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
576
581
|
}, [
|
|
577
|
-
(v(),
|
|
578
|
-
key: `title_${
|
|
582
|
+
(v(), q(_t, {
|
|
583
|
+
key: `title_${we.value}`,
|
|
579
584
|
config: {
|
|
580
585
|
title: {
|
|
581
586
|
cy: "treemap-div-title",
|
|
@@ -588,14 +593,14 @@ const Yt = ["id"], Zt = {
|
|
|
588
593
|
}
|
|
589
594
|
}, null, 8, ["config"]))
|
|
590
595
|
], 4)) : _("", !0),
|
|
591
|
-
e.value.userOptions.show && h.value && (
|
|
596
|
+
e.value.userOptions.show && h.value && (m(Te) || m(ve)) ? (v(), q(St, {
|
|
592
597
|
ref: "details",
|
|
593
598
|
key: `user_option_${k.value}`,
|
|
594
599
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
595
600
|
color: e.value.style.chart.color,
|
|
596
|
-
isPrinting:
|
|
597
|
-
isImaging:
|
|
598
|
-
uid:
|
|
601
|
+
isPrinting: m(Se),
|
|
602
|
+
isImaging: m(Ie),
|
|
603
|
+
uid: z.value,
|
|
599
604
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
600
605
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
601
606
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -610,20 +615,20 @@ const Yt = ["id"], Zt = {
|
|
|
610
615
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
611
616
|
isAnnotation: se.value,
|
|
612
617
|
onToggleFullscreen: at,
|
|
613
|
-
onGeneratePdf:
|
|
614
|
-
onGenerateCsv:
|
|
615
|
-
onGenerateImage:
|
|
616
|
-
onToggleTable:
|
|
617
|
-
onToggleTooltip:
|
|
618
|
-
onToggleAnnotator:
|
|
618
|
+
onGeneratePdf: m(Ne),
|
|
619
|
+
onGenerateCsv: Ue,
|
|
620
|
+
onGenerateImage: m(ze),
|
|
621
|
+
onToggleTable: He,
|
|
622
|
+
onToggleTooltip: We,
|
|
623
|
+
onToggleAnnotator: fe,
|
|
619
624
|
style: L({
|
|
620
|
-
visibility:
|
|
625
|
+
visibility: m(Te) ? m(ve) ? "visible" : "hidden" : "visible"
|
|
621
626
|
})
|
|
622
|
-
},
|
|
627
|
+
}, ht({ _: 2 }, [
|
|
623
628
|
t.$slots.menuIcon ? {
|
|
624
629
|
name: "menuIcon",
|
|
625
630
|
fn: x(({ isOpen: l, color: a }) => [
|
|
626
|
-
$(t.$slots, "menuIcon",
|
|
631
|
+
$(t.$slots, "menuIcon", X(j({ isOpen: l, color: a })), void 0, !0)
|
|
627
632
|
]),
|
|
628
633
|
key: "0"
|
|
629
634
|
} : void 0,
|
|
@@ -665,62 +670,62 @@ const Yt = ["id"], Zt = {
|
|
|
665
670
|
t.$slots.optionFullscreen ? {
|
|
666
671
|
name: "optionFullscreen",
|
|
667
672
|
fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
668
|
-
$(t.$slots, "optionFullscreen",
|
|
673
|
+
$(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
669
674
|
]),
|
|
670
675
|
key: "6"
|
|
671
676
|
} : void 0,
|
|
672
677
|
t.$slots.optionAnnotator ? {
|
|
673
678
|
name: "optionAnnotator",
|
|
674
679
|
fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
675
|
-
$(t.$slots, "optionAnnotator",
|
|
680
|
+
$(t.$slots, "optionAnnotator", X(j({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
676
681
|
]),
|
|
677
682
|
key: "7"
|
|
678
683
|
} : void 0
|
|
679
684
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
|
|
680
|
-
te.value.length > 1 ? (v(),
|
|
681
|
-
(v(!0),
|
|
685
|
+
te.value.length > 1 ? (v(), y("nav", Jt, [
|
|
686
|
+
(v(!0), y(ue, null, me(te.value, (l, a) => (v(), y("span", {
|
|
682
687
|
key: l.id || "root",
|
|
683
|
-
onClick: (
|
|
684
|
-
} :
|
|
688
|
+
onClick: (p) => a === te.value.length - 1 ? () => {
|
|
689
|
+
} : Me(l.node),
|
|
685
690
|
class: "vue-ui-treemap-crumb",
|
|
686
691
|
"data-last-crumb": a === te.value.length - 1,
|
|
687
692
|
style: L({
|
|
688
693
|
color: e.value.style.chart.color
|
|
689
694
|
})
|
|
690
695
|
}, [
|
|
691
|
-
O("span",
|
|
692
|
-
O("span",
|
|
696
|
+
O("span", Qt, [
|
|
697
|
+
O("span", el, [
|
|
693
698
|
$(t.$slots, "breadcrumb-label", Ge({ ref_for: !0 }, { crumb: l, isRoot: a === 0 }), () => [
|
|
694
|
-
a === 0 ? (v(),
|
|
695
|
-
|
|
699
|
+
a === 0 ? (v(), y("div", tl, [
|
|
700
|
+
ge(Bt, {
|
|
696
701
|
name: "home",
|
|
697
702
|
stroke: e.value.style.chart.color
|
|
698
703
|
}, null, 8, ["stroke"])
|
|
699
|
-
])) : (v(),
|
|
700
|
-
ie(
|
|
704
|
+
])) : (v(), y(ue, { key: 1 }, [
|
|
705
|
+
ie(Y(l.label), 1)
|
|
701
706
|
], 64))
|
|
702
707
|
], !0)
|
|
703
708
|
]),
|
|
704
|
-
a < te.value.length - 1 ? (v(),
|
|
709
|
+
a < te.value.length - 1 ? (v(), y("span", ll, [
|
|
705
710
|
$(t.$slots, "breadcrumb-arrow", {}, () => [
|
|
706
711
|
o[5] || (o[5] = ie(" › "))
|
|
707
712
|
], !0)
|
|
708
713
|
])) : _("", !0)
|
|
709
714
|
])
|
|
710
|
-
], 12,
|
|
715
|
+
], 12, Kt))), 128))
|
|
711
716
|
])) : _("", !0),
|
|
712
|
-
h.value ? (v(),
|
|
717
|
+
h.value ? (v(), y("svg", {
|
|
713
718
|
key: 5,
|
|
714
719
|
ref_key: "svgRef",
|
|
715
|
-
ref:
|
|
716
|
-
xmlns:
|
|
717
|
-
class:
|
|
718
|
-
viewBox: `${
|
|
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}`,
|
|
719
724
|
style: L(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
720
725
|
}, [
|
|
721
|
-
|
|
722
|
-
(v(!0),
|
|
723
|
-
e.value.style.chart.layout.rects.gradient.show ? (v(),
|
|
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, [
|
|
724
729
|
O("radialGradient", {
|
|
725
730
|
id: `tgrad_${l.id}`,
|
|
726
731
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -728,58 +733,61 @@ const Yt = ["id"], Zt = {
|
|
|
728
733
|
O("stop", {
|
|
729
734
|
offset: "18%",
|
|
730
735
|
"stop-color": l.color
|
|
731
|
-
}, null, 8,
|
|
736
|
+
}, null, 8, sl),
|
|
732
737
|
O("stop", {
|
|
733
738
|
offset: "100%",
|
|
734
|
-
"stop-color":
|
|
735
|
-
}, null, 8,
|
|
736
|
-
], 8,
|
|
739
|
+
"stop-color": m(Xe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
740
|
+
}, null, 8, rl)
|
|
741
|
+
], 8, nl)
|
|
737
742
|
])) : _("", !0)
|
|
738
743
|
]))), 256)),
|
|
739
|
-
(v(!0),
|
|
744
|
+
(v(!0), y(ue, null, me(ee.value, (l, a) => (v(), y("g", null, [
|
|
740
745
|
O("rect", {
|
|
741
746
|
x: l.x0,
|
|
742
747
|
y: l.y0,
|
|
743
|
-
height:
|
|
744
|
-
width:
|
|
745
|
-
fill:
|
|
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,
|
|
746
751
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
747
752
|
stroke: R.value && R.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
748
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,
|
|
749
|
-
onClick:
|
|
750
|
-
onMouseenter: () =>
|
|
754
|
+
onClick: ft((p) => Me(l), ["stop"]),
|
|
755
|
+
onMouseenter: () => rt({
|
|
751
756
|
datapoint: l,
|
|
752
757
|
seriesIndex: a
|
|
753
758
|
}),
|
|
754
|
-
onMouseleave: o[0] || (o[0] = (
|
|
755
|
-
R.value = null,
|
|
759
|
+
onMouseleave: o[0] || (o[0] = (p) => {
|
|
760
|
+
R.value = null, I.value = !1;
|
|
756
761
|
}),
|
|
757
762
|
style: L(`opacity:${R.value ? R.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
758
|
-
class:
|
|
759
|
-
|
|
760
|
-
|
|
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", {
|
|
761
769
|
x: l.x0,
|
|
762
770
|
y: l.y0,
|
|
763
|
-
height:
|
|
764
|
-
width:
|
|
771
|
+
height: Le(l),
|
|
772
|
+
width: De(l),
|
|
765
773
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
766
774
|
}, [
|
|
767
|
-
O("div",
|
|
768
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
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", {
|
|
769
777
|
key: 0,
|
|
770
778
|
class: "vue-ui-treemap-cell-default",
|
|
771
|
-
style: L(`width:calc(100% - ${
|
|
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)}`)
|
|
772
780
|
}, [
|
|
773
781
|
O("span", {
|
|
774
|
-
style: L(`width:100%;font-size:${
|
|
775
|
-
},
|
|
782
|
+
style: L(`width:100%;font-size:${E(l)}px;`)
|
|
783
|
+
}, Y(l.name), 5),
|
|
776
784
|
o[6] || (o[6] = O("br", null, null, -1)),
|
|
777
785
|
O("span", {
|
|
778
|
-
style: L(`width:100%;font-size:${
|
|
779
|
-
},
|
|
786
|
+
style: L(`width:100%;font-size:${E(l)}px;`)
|
|
787
|
+
}, Y(m(de)(
|
|
780
788
|
e.value.style.chart.layout.labels.formatter,
|
|
781
789
|
l.value,
|
|
782
|
-
|
|
790
|
+
m(le)({
|
|
783
791
|
p: e.value.style.chart.layout.labels.prefix,
|
|
784
792
|
v: l.value,
|
|
785
793
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -790,20 +798,20 @@ const Yt = ["id"], Zt = {
|
|
|
790
798
|
], 4)) : _("", !0),
|
|
791
799
|
$(t.$slots, "rect", Ge({ ref_for: !0 }, {
|
|
792
800
|
rect: l,
|
|
793
|
-
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
794
|
-
fontSize:
|
|
795
|
-
isZoom:
|
|
796
|
-
textColor:
|
|
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)
|
|
797
805
|
}), void 0, !0)
|
|
798
806
|
])
|
|
799
|
-
], 8,
|
|
807
|
+
], 8, il))
|
|
800
808
|
]))), 256)),
|
|
801
|
-
$(t.$slots, "svg",
|
|
802
|
-
], 14,
|
|
803
|
-
t.$slots.watermark ? (v(),
|
|
804
|
-
$(t.$slots, "watermark",
|
|
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)
|
|
805
813
|
])) : _("", !0),
|
|
806
|
-
h.value ? _("", !0) : (v(),
|
|
814
|
+
h.value ? _("", !0) : (v(), q(zt, {
|
|
807
815
|
key: 7,
|
|
808
816
|
config: {
|
|
809
817
|
type: "treemap",
|
|
@@ -817,24 +825,24 @@ const Yt = ["id"], Zt = {
|
|
|
817
825
|
}, null, 8, ["config"])),
|
|
818
826
|
O("div", {
|
|
819
827
|
ref_key: "chartLegend",
|
|
820
|
-
ref:
|
|
828
|
+
ref: P
|
|
821
829
|
}, [
|
|
822
|
-
e.value.style.chart.legend.show ? (v(),
|
|
823
|
-
key: `legend_${
|
|
824
|
-
legendSet:
|
|
825
|
-
config:
|
|
826
|
-
id: `treemap_legend_${
|
|
827
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
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))
|
|
828
836
|
}, {
|
|
829
837
|
item: x(({ legend: l, index: a }) => [
|
|
830
838
|
O("div", {
|
|
831
|
-
onClick: (
|
|
839
|
+
onClick: (p) => Be(l),
|
|
832
840
|
style: L(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
|
|
833
841
|
}, [
|
|
834
|
-
ie(
|
|
842
|
+
ie(Y(l.name) + ": " + Y(m(de)(
|
|
835
843
|
e.value.style.chart.layout.labels.formatter,
|
|
836
844
|
l.value,
|
|
837
|
-
|
|
845
|
+
m(le)({
|
|
838
846
|
p: e.value.style.chart.layout.labels.prefix,
|
|
839
847
|
v: l.value,
|
|
840
848
|
s: e.value.style.chart.layout.labels.suffix,
|
|
@@ -842,25 +850,25 @@ const Yt = ["id"], Zt = {
|
|
|
842
850
|
}),
|
|
843
851
|
{ datapoint: l }
|
|
844
852
|
)) + " ", 1),
|
|
845
|
-
b.value.includes(l.id) ? (v(),
|
|
846
|
-
], 12,
|
|
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)
|
|
847
855
|
]),
|
|
848
856
|
_: 1
|
|
849
857
|
}, 8, ["legendSet", "config", "id"])) : $(t.$slots, "legend", {
|
|
850
858
|
key: 1,
|
|
851
|
-
legend:
|
|
859
|
+
legend: Ve.value
|
|
852
860
|
}, void 0, !0)
|
|
853
861
|
], 512),
|
|
854
|
-
t.$slots.source ? (v(),
|
|
862
|
+
t.$slots.source ? (v(), y("div", {
|
|
855
863
|
key: 8,
|
|
856
864
|
ref_key: "source",
|
|
857
|
-
ref:
|
|
865
|
+
ref: be,
|
|
858
866
|
dir: "auto"
|
|
859
867
|
}, [
|
|
860
868
|
$(t.$slots, "source", {}, void 0, !0)
|
|
861
869
|
], 512)) : _("", !0),
|
|
862
|
-
|
|
863
|
-
show: F.value.showTooltip &&
|
|
870
|
+
ge(It, {
|
|
871
|
+
show: F.value.showTooltip && I.value,
|
|
864
872
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
865
873
|
color: e.value.style.chart.tooltip.color,
|
|
866
874
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -871,19 +879,19 @@ const Yt = ["id"], Zt = {
|
|
|
871
879
|
position: e.value.style.chart.tooltip.position,
|
|
872
880
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
873
881
|
parent: T.value,
|
|
874
|
-
content:
|
|
882
|
+
content: A.value,
|
|
875
883
|
isFullscreen: w.value,
|
|
876
|
-
isCustom:
|
|
884
|
+
isCustom: m(Ye)(e.value.style.chart.tooltip.customFormat)
|
|
877
885
|
}, {
|
|
878
886
|
"tooltip-before": x(() => [
|
|
879
|
-
$(t.$slots, "tooltip-before",
|
|
887
|
+
$(t.$slots, "tooltip-before", X(j({ ...he.value })), void 0, !0)
|
|
880
888
|
]),
|
|
881
889
|
"tooltip-after": x(() => [
|
|
882
|
-
$(t.$slots, "tooltip-after",
|
|
890
|
+
$(t.$slots, "tooltip-after", X(j({ ...he.value })), void 0, !0)
|
|
883
891
|
]),
|
|
884
892
|
_: 3
|
|
885
893
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
886
|
-
h.value ? (v(),
|
|
894
|
+
h.value ? (v(), q(Pt, {
|
|
887
895
|
key: 9,
|
|
888
896
|
hideDetails: "",
|
|
889
897
|
config: {
|
|
@@ -900,8 +908,8 @@ const Yt = ["id"], Zt = {
|
|
|
900
908
|
}
|
|
901
909
|
}, {
|
|
902
910
|
content: x(() => [
|
|
903
|
-
(v(),
|
|
904
|
-
key: `table_${
|
|
911
|
+
(v(), q(At, {
|
|
912
|
+
key: `table_${Ce.value}`,
|
|
905
913
|
colNames: ne.value.colNames,
|
|
906
914
|
head: ne.value.head,
|
|
907
915
|
body: ne.value.body,
|
|
@@ -916,16 +924,16 @@ const Yt = ["id"], Zt = {
|
|
|
916
924
|
}, null, 8, pl)
|
|
917
925
|
]),
|
|
918
926
|
td: x(({ td: l }) => [
|
|
919
|
-
ie(
|
|
927
|
+
ie(Y(l.name || l), 1)
|
|
920
928
|
]),
|
|
921
929
|
_: 1
|
|
922
930
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
923
931
|
]),
|
|
924
932
|
_: 1
|
|
925
933
|
}, 8, ["config"])) : _("", !0)
|
|
926
|
-
], 46,
|
|
934
|
+
], 46, Zt));
|
|
927
935
|
}
|
|
928
|
-
},
|
|
936
|
+
}, Fl = /* @__PURE__ */ Ut(gl, [["__scopeId", "data-v-5e08c158"]]);
|
|
929
937
|
export {
|
|
930
|
-
|
|
938
|
+
Fl as default
|
|
931
939
|
};
|