vue-data-ui 2.3.27 → 2.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { L as
|
|
7
|
-
import
|
|
8
|
-
import { D as
|
|
9
|
-
import
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
1
|
+
import { computed as C, ref as y, onMounted as Ee, onBeforeUnmount as Ue, openBlock as m, createElementBlock as k, normalizeClass as xe, normalizeStyle as M, createVNode as se, createCommentVNode as V, createBlock as te, unref as b, createSlots as Ge, withCtx as T, renderSlot as _, normalizeProps as G, guardReactiveProps as X, Fragment as $e, renderList as Te, createElementVNode as O, toDisplayString as q, createTextVNode as _e, nextTick as Xe, pushScopeId as qe, popScopeId as je } from "vue";
|
|
2
|
+
import { u as Ye, c as Oe, t as Ze, a as Je, p as x, b as Ke, o as Qe, e as et, d as le, i as oe, f as Z, X as tt, l as Se, D as Ne, w as ze, x as lt, q as ot, r as at } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { _ as nt } from "./Title-eBTH8iGJ.js";
|
|
4
|
+
import { u as st, U as rt } from "./usePrinter-CZ8F5Cth.js";
|
|
5
|
+
import { _ as ut } from "./Tooltip-B11OahTD.js";
|
|
6
|
+
import { L as it } from "./Legend-CkQ_zypV.js";
|
|
7
|
+
import ct from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
8
|
+
import { D as dt } from "./DataTable-CsPidn0_.js";
|
|
9
|
+
import vt from "./vue-ui-accordion-wHRG3nXl.js";
|
|
10
|
+
import { t as ht, u as ft } from "./useResponsive-NZB-WLRF.js";
|
|
11
|
+
import { u as Pe } from "./useNestedProp-BoNl5H_z.js";
|
|
12
|
+
import { _ as pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
function Ie(a, i) {
|
|
14
14
|
const s = a.length;
|
|
15
15
|
if (s === 0)
|
|
@@ -26,7 +26,7 @@ function Ie(a, i) {
|
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Fe(a) {
|
|
30
30
|
const { xOffset: i, yOffset: s, width: n, height: r } = a;
|
|
31
31
|
return {
|
|
32
32
|
x0: i,
|
|
@@ -35,7 +35,7 @@ function Pe(a) {
|
|
|
35
35
|
y1: s + r
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function gt(a, i, s) {
|
|
39
39
|
if (a.length === 0)
|
|
40
40
|
return !0;
|
|
41
41
|
{
|
|
@@ -46,7 +46,7 @@ function pt(a, i, s) {
|
|
|
46
46
|
return r >= c;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function yt(a) {
|
|
50
50
|
const i = [], s = a.length;
|
|
51
51
|
for (let n = 0; n < s; n += 1) {
|
|
52
52
|
const r = a[n], c = r.length;
|
|
@@ -55,49 +55,49 @@ function gt(a) {
|
|
|
55
55
|
}
|
|
56
56
|
return i;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function mt(a, i) {
|
|
59
59
|
const s = {
|
|
60
60
|
...i,
|
|
61
61
|
children: a
|
|
62
62
|
};
|
|
63
|
-
return
|
|
63
|
+
return Re(s);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function bt(a) {
|
|
66
66
|
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const { width: s, height: n, xOffset: r, yOffset: c } =
|
|
70
|
-
let
|
|
68
|
+
function Le(a, i) {
|
|
69
|
+
const { width: s, height: n, xOffset: r, yOffset: c } = re(i), d = a.length, h = a.map((p) => p.normalizedValue || 0).reduce((p, $) => p + $, 0), v = h / n, S = h / s;
|
|
70
|
+
let w = r, N = c;
|
|
71
71
|
const f = [];
|
|
72
72
|
if (s >= n) {
|
|
73
73
|
for (let p = 0; p < d; p += 1) {
|
|
74
74
|
const $ = a[p], z = N + $.normalizedValue / v, e = {
|
|
75
|
-
x0:
|
|
75
|
+
x0: w,
|
|
76
76
|
y0: N,
|
|
77
|
-
x1:
|
|
77
|
+
x1: w + v,
|
|
78
78
|
y1: z
|
|
79
|
-
},
|
|
80
|
-
N = z, f.push(
|
|
79
|
+
}, P = Object.assign({}, $, e);
|
|
80
|
+
N = z, f.push(P);
|
|
81
81
|
}
|
|
82
82
|
return f;
|
|
83
83
|
} else {
|
|
84
84
|
for (let p = 0; p < d; p += 1) {
|
|
85
|
-
const $ = a[p], z =
|
|
86
|
-
x0:
|
|
85
|
+
const $ = a[p], z = w + $.normalizedValue / S, e = {
|
|
86
|
+
x0: w,
|
|
87
87
|
y0: N,
|
|
88
88
|
x1: z,
|
|
89
89
|
y1: N + S
|
|
90
|
-
},
|
|
91
|
-
|
|
90
|
+
}, P = Object.assign({}, $, e);
|
|
91
|
+
w = z, f.push(P);
|
|
92
92
|
}
|
|
93
93
|
return f;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
const i =
|
|
96
|
+
function wt(a) {
|
|
97
|
+
const i = re(a), s = i.width, n = i.height;
|
|
98
98
|
return Math.min(s, n);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Ct(a, i) {
|
|
101
101
|
const s = a.length, n = a.map((v) => v.value ?? 0).reduce((v, S) => v + S, 0), r = i / n, c = [];
|
|
102
102
|
let d, h;
|
|
103
103
|
for (let v = 0; v < s; v += 1)
|
|
@@ -106,7 +106,7 @@ function wt(a, i) {
|
|
|
106
106
|
}), c.push(d);
|
|
107
107
|
return c;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function re(a) {
|
|
110
110
|
const { x0: i, y0: s, x1: n, y1: r } = a;
|
|
111
111
|
return {
|
|
112
112
|
xOffset: i,
|
|
@@ -115,43 +115,43 @@ function se(a) {
|
|
|
115
115
|
height: r - s
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function kt(a, i, s, n) {
|
|
119
119
|
let r = a, c = i, d = s, h = n;
|
|
120
120
|
for (; ; ) {
|
|
121
121
|
const v = r.length;
|
|
122
122
|
if (v === 0) {
|
|
123
|
-
const f =
|
|
123
|
+
const f = Le(c, d);
|
|
124
124
|
return h.concat(f);
|
|
125
125
|
}
|
|
126
|
-
const S =
|
|
127
|
-
if (
|
|
128
|
-
const f = c.concat(
|
|
126
|
+
const S = wt(d), w = r[0], N = r.slice(1, v);
|
|
127
|
+
if (gt(c, w, S)) {
|
|
128
|
+
const f = c.concat(w);
|
|
129
129
|
r = N, c = f, d = d, h = h;
|
|
130
130
|
} else {
|
|
131
131
|
const f = c.length;
|
|
132
132
|
let p = 0;
|
|
133
|
-
for (let
|
|
134
|
-
p += c[
|
|
135
|
-
const $ =
|
|
133
|
+
for (let P = 0; P < f; P += 1)
|
|
134
|
+
p += c[P].normalizedValue;
|
|
135
|
+
const $ = xt(d, p), z = Le(c, d), e = h.concat(z);
|
|
136
136
|
r = r, c = [], d = $, h = e;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Re(a) {
|
|
141
141
|
if (typeof a.children > "u" || !a.children.length)
|
|
142
142
|
return [a];
|
|
143
143
|
{
|
|
144
|
-
const i =
|
|
144
|
+
const i = Ct(
|
|
145
145
|
a.children,
|
|
146
|
-
|
|
147
|
-
), s =
|
|
146
|
+
bt(a)
|
|
147
|
+
), s = kt(i, [], a, []), n = s.length, r = [];
|
|
148
148
|
for (let d = 0; d < n; d += 1)
|
|
149
|
-
r.push(
|
|
150
|
-
return
|
|
149
|
+
r.push(Re(s[d]));
|
|
150
|
+
return yt(r);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
const { width: s, height: n, xOffset: r, yOffset: c } =
|
|
153
|
+
function xt(a, i) {
|
|
154
|
+
const { width: s, height: n, xOffset: r, yOffset: c } = re(a);
|
|
155
155
|
if (s >= n) {
|
|
156
156
|
const d = i / n, h = s - d, v = {
|
|
157
157
|
xOffset: r + d,
|
|
@@ -159,7 +159,7 @@ function kt(a, i) {
|
|
|
159
159
|
width: h,
|
|
160
160
|
height: n
|
|
161
161
|
};
|
|
162
|
-
return
|
|
162
|
+
return Fe(v);
|
|
163
163
|
} else {
|
|
164
164
|
const d = i / s, h = n - d, v = {
|
|
165
165
|
xOffset: r,
|
|
@@ -167,16 +167,16 @@ function kt(a, i) {
|
|
|
167
167
|
width: s,
|
|
168
168
|
height: h
|
|
169
169
|
};
|
|
170
|
-
return
|
|
170
|
+
return Fe(v);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
const
|
|
173
|
+
const $t = (a) => (qe("data-v-7028d693"), a = a(), je(), a), Tt = ["id"], _t = ["xmlns", "viewBox"], Ot = { key: 0 }, St = ["id"], Nt = ["stop-color"], zt = ["stop-color"], Pt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], It = ["x", "y", "height", "width"], Ft = {
|
|
174
174
|
style: { width: "100%", height: "100%" },
|
|
175
175
|
class: "vue-ui-treemap-cell"
|
|
176
|
-
},
|
|
176
|
+
}, Lt = /* @__PURE__ */ $t(() => /* @__PURE__ */ O("br", null, null, -1)), Rt = {
|
|
177
177
|
key: 3,
|
|
178
178
|
class: "vue-data-ui-watermark"
|
|
179
|
-
},
|
|
179
|
+
}, Dt = ["onClick"], At = { key: 0 }, Mt = { key: 1 }, Vt = ["innerHTML"], Bt = {
|
|
180
180
|
__name: "vue-ui-treemap",
|
|
181
181
|
props: {
|
|
182
182
|
config: {
|
|
@@ -194,67 +194,67 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
194
194
|
},
|
|
195
195
|
emits: ["selectLegend", "selectDatapoint"],
|
|
196
196
|
setup(a, { expose: i, emit: s }) {
|
|
197
|
-
const n = a, { vue_ui_treemap: r } =
|
|
198
|
-
const t =
|
|
197
|
+
const n = a, { vue_ui_treemap: r } = Ye(), c = C(() => !!n.dataset && n.dataset.length), d = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = y(Oe()), v = y(!1), S = y(""), w = y(!1), N = y(0), f = y([]), p = y(null), $ = y(null), z = y(null), e = C(() => {
|
|
198
|
+
const t = Pe({
|
|
199
199
|
userConfig: n.config,
|
|
200
200
|
defaultConfig: r
|
|
201
201
|
});
|
|
202
202
|
return t.theme ? {
|
|
203
|
-
...
|
|
204
|
-
userConfig:
|
|
203
|
+
...Pe({
|
|
204
|
+
userConfig: Ze.vue_ui_treemap[t.theme] || n.config,
|
|
205
205
|
defaultConfig: t
|
|
206
206
|
}),
|
|
207
|
-
customPalette:
|
|
207
|
+
customPalette: Je[t.theme] || x
|
|
208
208
|
} : t;
|
|
209
|
-
}), { isPrinting:
|
|
209
|
+
}), { isPrinting: P, isImaging: ue, generatePdf: ie, generateImage: ce } = st({
|
|
210
210
|
elementId: `treemap_${h.value}`,
|
|
211
211
|
fileName: e.value.style.chart.title.text || "vue-ui-treemap"
|
|
212
|
-
}),
|
|
212
|
+
}), J = C(() => Ke(e.value.customPalette)), R = y({
|
|
213
213
|
showTable: e.value.table.show,
|
|
214
214
|
showTooltip: e.value.style.chart.tooltip.show
|
|
215
|
-
}),
|
|
215
|
+
}), D = y({
|
|
216
216
|
height: e.value.style.chart.height,
|
|
217
217
|
width: e.value.style.chart.width
|
|
218
|
-
}),
|
|
219
|
-
bottom:
|
|
220
|
-
height:
|
|
218
|
+
}), B = C(() => ({
|
|
219
|
+
bottom: D.value.height - e.value.style.chart.padding.bottom,
|
|
220
|
+
height: D.value.height - e.value.style.chart.padding.top - e.value.style.chart.padding.bottom,
|
|
221
221
|
left: e.value.style.chart.padding.left,
|
|
222
|
-
right:
|
|
222
|
+
right: D.value.width - e.value.style.chart.padding.right,
|
|
223
223
|
top: e.value.style.chart.padding.top,
|
|
224
|
-
vbHeight:
|
|
225
|
-
vbWidth:
|
|
226
|
-
width:
|
|
224
|
+
vbHeight: D.value.height,
|
|
225
|
+
vbWidth: D.value.width,
|
|
226
|
+
width: D.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right
|
|
227
227
|
}));
|
|
228
|
-
function
|
|
228
|
+
function de(t) {
|
|
229
229
|
t.forEach((o, l) => {
|
|
230
|
-
o.id =
|
|
230
|
+
o.id = Oe(), o.color = le(o.color) || J.value[l] || x[l] || x[l % x.length], o.children && (o.children.forEach((u) => {
|
|
231
231
|
u.parentId = o.id, u.color = o.color;
|
|
232
|
-
}),
|
|
232
|
+
}), de(o.children));
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
-
if (
|
|
235
|
+
const W = y(n.dataset), K = y(null);
|
|
236
|
+
Ee(() => {
|
|
237
|
+
if (Qe(n.dataset) && et({
|
|
238
238
|
componentName: "VueUiTreemap",
|
|
239
239
|
type: "dataset"
|
|
240
|
-
}),
|
|
241
|
-
const t =
|
|
242
|
-
const { width: o, height: l } =
|
|
240
|
+
}), de(W.value), e.value.responsive) {
|
|
241
|
+
const t = ht(() => {
|
|
242
|
+
const { width: o, height: l } = ft({
|
|
243
243
|
chart: p.value,
|
|
244
244
|
title: e.value.style.chart.title.text ? $.value : null,
|
|
245
245
|
legend: e.value.style.chart.legend.show ? z.value : null
|
|
246
246
|
});
|
|
247
|
-
|
|
247
|
+
D.value.width = o, D.value.height = l;
|
|
248
248
|
});
|
|
249
|
-
|
|
249
|
+
K.value = new ResizeObserver(t), K.value.observe(p.value.parentNode);
|
|
250
250
|
}
|
|
251
|
-
}),
|
|
252
|
-
|
|
251
|
+
}), Ue(() => {
|
|
252
|
+
K.value && K.value.disconnect();
|
|
253
253
|
});
|
|
254
|
-
const
|
|
254
|
+
const ae = y(W.value), j = C(() => ae.value.map((t, o) => ({
|
|
255
255
|
...t,
|
|
256
|
-
color:
|
|
257
|
-
})).filter((t) => !f.value.includes(t.id))), E =
|
|
256
|
+
color: le(t.color) || J.value[o] || x[o] || x[o % x.length]
|
|
257
|
+
})).filter((t) => !f.value.includes(t.id))), E = C(() => W.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value || 0).reduce((t, o) => t + o, 0)), ve = C({
|
|
258
258
|
get() {
|
|
259
259
|
let t = [...j.value];
|
|
260
260
|
return e.value.style.chart.layout.sorted && (t = [...j.value].sort((o, l) => l.value - o.value)), t.map((o) => ({
|
|
@@ -265,81 +265,81 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
|
-
function
|
|
268
|
+
function he(t, o) {
|
|
269
269
|
return t.value / o;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
const u = e.value.style.chart.layout.rects.colorRatio -
|
|
273
|
-
return
|
|
271
|
+
function De(t, o, l) {
|
|
272
|
+
const u = e.value.style.chart.layout.rects.colorRatio - he(o, l);
|
|
273
|
+
return Se(t, u < 0 ? 0 : u);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
return t.map((g,
|
|
277
|
-
const
|
|
275
|
+
function fe(t, o, l, u) {
|
|
276
|
+
return t.map((g, A) => {
|
|
277
|
+
const ee = De(le(o) || J.value[A] || x[A] || x[A % x.length], g, u), He = he(g, u);
|
|
278
278
|
return {
|
|
279
279
|
...g,
|
|
280
|
-
color:
|
|
281
|
-
proportion:
|
|
280
|
+
color: ee,
|
|
281
|
+
proportion: He,
|
|
282
282
|
parentName: l,
|
|
283
|
-
children: g.children ?
|
|
283
|
+
children: g.children ? fe(g.children, ee, g.name, u) : void 0
|
|
284
284
|
};
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
|
-
const Y =
|
|
288
|
-
|
|
287
|
+
const Y = C(() => mt(
|
|
288
|
+
ve.value.map((t, o) => {
|
|
289
289
|
const l = t.children ? t.children.reduce((u, g) => u + g.value, 0) : t.value;
|
|
290
290
|
return {
|
|
291
291
|
value: t.value,
|
|
292
292
|
id: t.id,
|
|
293
|
-
children: t.children ?
|
|
293
|
+
children: t.children ? fe(t.children.sort((u, g) => g.value - u.value), t.color, t.name, l) : void 0,
|
|
294
294
|
color: t.color,
|
|
295
295
|
name: t.name
|
|
296
296
|
};
|
|
297
297
|
}),
|
|
298
|
-
{ x0:
|
|
298
|
+
{ x0: B.value.left * 2, y0: B.value.top, x1: B.value.width, y1: B.value.height }
|
|
299
299
|
));
|
|
300
|
-
function
|
|
300
|
+
function pe({ y0: t, y1: o }) {
|
|
301
301
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function ge({ x0: t, x1: o }) {
|
|
304
304
|
return o - t <= 0 ? 1e-4 : o - t;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function H(t) {
|
|
307
307
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
308
308
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
309
309
|
}
|
|
310
310
|
function Ae(t) {
|
|
311
|
-
|
|
311
|
+
w.value = t, N.value += 1;
|
|
312
312
|
}
|
|
313
|
-
const U =
|
|
313
|
+
const U = C(() => ({
|
|
314
314
|
startX: 0,
|
|
315
315
|
startY: 0,
|
|
316
|
-
width:
|
|
317
|
-
height:
|
|
318
|
-
})),
|
|
319
|
-
function
|
|
316
|
+
width: B.value.vbWidth,
|
|
317
|
+
height: B.value.vbHeight
|
|
318
|
+
})), I = y(!1);
|
|
319
|
+
function ye(t, o = W.value) {
|
|
320
320
|
for (const l of o) {
|
|
321
321
|
if (l.id === t)
|
|
322
322
|
return l;
|
|
323
323
|
if (l.children) {
|
|
324
|
-
const u =
|
|
324
|
+
const u = ye(t, l.children);
|
|
325
325
|
if (u)
|
|
326
326
|
return u;
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
return null;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
331
|
+
function Me(t) {
|
|
332
|
+
I.value ? (s("selectDatapoint", void 0), ae.value = W.value) : (s("selectDatapoint", t), ae.value = [ye(t.parentId)]), I.value = !I.value;
|
|
333
333
|
}
|
|
334
|
-
const F = y(null),
|
|
334
|
+
const F = y(null), me = C(() => W.value.map((t, o) => ({
|
|
335
335
|
...t,
|
|
336
|
-
color:
|
|
336
|
+
color: le(t.color) || J.value[o] || x[o] || x[o % x.length],
|
|
337
337
|
shape: "square"
|
|
338
338
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
339
339
|
...t,
|
|
340
|
-
proportion: t.value /
|
|
340
|
+
proportion: t.value / W.value.map((l) => l.value).reduce((l, u) => l + u, 0),
|
|
341
341
|
opacity: f.value.includes(t.id) ? 0.5 : 1
|
|
342
|
-
}))),
|
|
342
|
+
}))), Ve = C(() => ({
|
|
343
343
|
cy: "treemap-div-legend",
|
|
344
344
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
345
345
|
color: e.value.style.chart.legend.color,
|
|
@@ -347,14 +347,14 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
347
347
|
paddingBottom: 12,
|
|
348
348
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
349
349
|
}));
|
|
350
|
-
function
|
|
351
|
-
|
|
350
|
+
function be(t) {
|
|
351
|
+
I.value = !1, F.value = null, f.value.includes(t.id) ? f.value = f.value.filter((o) => o !== t.id) : f.value.length < n.dataset.length - 1 && f.value.push(t.id), s("selectLegend", ve.value);
|
|
352
352
|
}
|
|
353
|
-
const
|
|
354
|
-
function
|
|
355
|
-
F.value = t,
|
|
353
|
+
const ne = y(null);
|
|
354
|
+
function Be({ datapoint: t, seriesIndex: o }) {
|
|
355
|
+
F.value = t, ne.value = { datapoint: t, seriesIndex: o, config: e.value, series: j.value };
|
|
356
356
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
357
|
-
if (
|
|
357
|
+
if (ze(l) && lt(() => l({
|
|
358
358
|
seriesIndex: o,
|
|
359
359
|
datapoint: t,
|
|
360
360
|
series: j.value,
|
|
@@ -368,40 +368,63 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
368
368
|
});
|
|
369
369
|
else {
|
|
370
370
|
let u = "";
|
|
371
|
-
u += `<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>`, u += `<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>`, u += `<b>${
|
|
371
|
+
u += `<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>`, u += `<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>`, u += `<b>${oe(
|
|
372
|
+
e.value.style.chart.layout.labels.formatter,
|
|
373
|
+
t.value,
|
|
374
|
+
Z({
|
|
375
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
376
|
+
v: t.value,
|
|
377
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
378
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
379
|
+
}),
|
|
380
|
+
{ datapoint: t, seriesIndex: o }
|
|
381
|
+
)}</b>`, S.value = `<div>${u}</div>`;
|
|
372
382
|
}
|
|
373
383
|
v.value = !0;
|
|
374
384
|
}
|
|
375
|
-
const
|
|
385
|
+
const L = C(() => {
|
|
376
386
|
const t = Y.value.map((l) => ({
|
|
377
387
|
name: l.name,
|
|
378
388
|
color: l.color
|
|
379
389
|
})), o = Y.value.map((l) => l.value);
|
|
380
390
|
return { head: t, body: o };
|
|
381
391
|
});
|
|
382
|
-
function
|
|
383
|
-
|
|
384
|
-
const t =
|
|
392
|
+
function we() {
|
|
393
|
+
Xe(() => {
|
|
394
|
+
const t = L.value.head.map((u, g) => [[
|
|
385
395
|
u.name
|
|
386
|
-
], [
|
|
387
|
-
|
|
396
|
+
], [L.value.body[g]], [isNaN(L.value.body[g] / E.value) ? "-" : L.value.body[g] / E.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ot(o);
|
|
397
|
+
at({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-treemap" });
|
|
388
398
|
});
|
|
389
399
|
}
|
|
390
|
-
const
|
|
400
|
+
const Q = C(() => {
|
|
391
401
|
const t = [
|
|
392
402
|
e.value.table.columnNames.series,
|
|
393
403
|
e.value.table.columnNames.value,
|
|
394
404
|
e.value.table.columnNames.percentage
|
|
395
|
-
], o =
|
|
396
|
-
const
|
|
405
|
+
], o = L.value.head.map((g, A) => {
|
|
406
|
+
const ee = oe(
|
|
407
|
+
e.value.style.chart.layout.labels.formatter,
|
|
408
|
+
L.value.body[A],
|
|
409
|
+
Z({
|
|
410
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
411
|
+
v: L.value.body[A],
|
|
412
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
413
|
+
r: e.value.table.td.roundingValue
|
|
414
|
+
})
|
|
415
|
+
);
|
|
397
416
|
return [
|
|
398
417
|
{
|
|
399
418
|
color: g.color,
|
|
400
419
|
name: g.name,
|
|
401
420
|
shape: "square"
|
|
402
421
|
},
|
|
403
|
-
|
|
404
|
-
isNaN(
|
|
422
|
+
ee,
|
|
423
|
+
isNaN(L.value.body[A] / E.value) ? "-" : Z({
|
|
424
|
+
v: L.value.body[A] / E.value * 100,
|
|
425
|
+
s: "%",
|
|
426
|
+
r: e.value.table.td.roundingPercentage
|
|
427
|
+
})
|
|
405
428
|
];
|
|
406
429
|
}), l = {
|
|
407
430
|
th: {
|
|
@@ -426,36 +449,36 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
426
449
|
config: l
|
|
427
450
|
};
|
|
428
451
|
});
|
|
429
|
-
function
|
|
452
|
+
function We() {
|
|
430
453
|
return Y.value;
|
|
431
454
|
}
|
|
432
|
-
function we() {
|
|
433
|
-
L.value.showTable = !L.value.showTable;
|
|
434
|
-
}
|
|
435
455
|
function Ce() {
|
|
436
|
-
|
|
456
|
+
R.value.showTable = !R.value.showTable;
|
|
457
|
+
}
|
|
458
|
+
function ke() {
|
|
459
|
+
R.value.showTooltip = !R.value.showTooltip;
|
|
437
460
|
}
|
|
438
461
|
return i({
|
|
439
|
-
getData:
|
|
440
|
-
generateCsv:
|
|
441
|
-
generateImage:
|
|
442
|
-
generatePdf:
|
|
443
|
-
toggleTable:
|
|
444
|
-
toggleTooltip:
|
|
445
|
-
}), (t, o) => (m(),
|
|
462
|
+
getData: We,
|
|
463
|
+
generateCsv: we,
|
|
464
|
+
generateImage: ce,
|
|
465
|
+
generatePdf: ie,
|
|
466
|
+
toggleTable: Ce,
|
|
467
|
+
toggleTooltip: ke
|
|
468
|
+
}), (t, o) => (m(), k("div", {
|
|
446
469
|
ref_key: "treemapChart",
|
|
447
470
|
ref: p,
|
|
448
|
-
class:
|
|
449
|
-
style:
|
|
471
|
+
class: xe(`vue-ui-treemap ${w.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
472
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
450
473
|
id: `treemap_${h.value}`
|
|
451
474
|
}, [
|
|
452
|
-
e.value.style.chart.title.text ? (m(),
|
|
475
|
+
e.value.style.chart.title.text ? (m(), k("div", {
|
|
453
476
|
key: 0,
|
|
454
477
|
ref_key: "chartTitle",
|
|
455
478
|
ref: $,
|
|
456
|
-
style:
|
|
479
|
+
style: M(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
457
480
|
}, [
|
|
458
|
-
|
|
481
|
+
se(nt, {
|
|
459
482
|
config: {
|
|
460
483
|
title: {
|
|
461
484
|
cy: "treemap-div-title",
|
|
@@ -467,14 +490,14 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
467
490
|
}
|
|
468
491
|
}
|
|
469
492
|
}, null, 8, ["config"])
|
|
470
|
-
], 4)) :
|
|
471
|
-
e.value.userOptions.show && c.value ? (m(),
|
|
493
|
+
], 4)) : V("", !0),
|
|
494
|
+
e.value.userOptions.show && c.value ? (m(), te(rt, {
|
|
472
495
|
ref: "details",
|
|
473
496
|
key: `user_option_${N.value}`,
|
|
474
497
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
475
498
|
color: e.value.style.chart.color,
|
|
476
|
-
isPrinting:
|
|
477
|
-
isImaging:
|
|
499
|
+
isPrinting: b(P),
|
|
500
|
+
isImaging: b(ue),
|
|
478
501
|
uid: h.value,
|
|
479
502
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
480
503
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -482,17 +505,17 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
482
505
|
hasImg: e.value.userOptions.buttons.img,
|
|
483
506
|
hasTable: e.value.userOptions.buttons.table,
|
|
484
507
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
485
|
-
isFullscreen:
|
|
486
|
-
isTooltip:
|
|
508
|
+
isFullscreen: w.value,
|
|
509
|
+
isTooltip: R.value.showTooltip,
|
|
487
510
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
488
511
|
chartElement: p.value,
|
|
489
512
|
onToggleFullscreen: Ae,
|
|
490
|
-
onGeneratePdf:
|
|
491
|
-
onGenerateCsv:
|
|
492
|
-
onGenerateImage:
|
|
493
|
-
onToggleTable:
|
|
494
|
-
onToggleTooltip:
|
|
495
|
-
},
|
|
513
|
+
onGeneratePdf: b(ie),
|
|
514
|
+
onGenerateCsv: we,
|
|
515
|
+
onGenerateImage: b(ce),
|
|
516
|
+
onToggleTable: Ce,
|
|
517
|
+
onToggleTooltip: ke
|
|
518
|
+
}, Ge({ _: 2 }, [
|
|
496
519
|
t.$slots.optionTooltip ? {
|
|
497
520
|
name: "optionTooltip",
|
|
498
521
|
fn: T(() => [
|
|
@@ -535,16 +558,16 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
535
558
|
]),
|
|
536
559
|
key: "5"
|
|
537
560
|
} : void 0
|
|
538
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
539
|
-
c.value ? (m(),
|
|
561
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : V("", !0),
|
|
562
|
+
c.value ? (m(), k("svg", {
|
|
540
563
|
key: 2,
|
|
541
|
-
xmlns:
|
|
542
|
-
class:
|
|
564
|
+
xmlns: b(tt),
|
|
565
|
+
class: xe({ "vue-data-ui-fullscreen--on": w.value, "vue-data-ui-fulscreen--off": !w.value, "vue-data-ui-zoom-plus": !I.value, "vue-data-ui-zoom-minus": I.value }),
|
|
543
566
|
viewBox: `${U.value.startX} ${U.value.startY} ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
544
|
-
style:
|
|
567
|
+
style: M(`max-width:100%; overflow: hidden; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
545
568
|
}, [
|
|
546
|
-
(m(!0),
|
|
547
|
-
e.value.style.chart.layout.rects.gradient.show ? (m(),
|
|
569
|
+
(m(!0), k($e, null, Te(Y.value, (l, u) => (m(), k("g", null, [
|
|
570
|
+
e.value.style.chart.layout.rects.gradient.show ? (m(), k("defs", Ot, [
|
|
548
571
|
O("radialGradient", {
|
|
549
572
|
id: `tgrad_${l.id}`,
|
|
550
573
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -552,77 +575,82 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
552
575
|
O("stop", {
|
|
553
576
|
offset: "18%",
|
|
554
577
|
"stop-color": l.color
|
|
555
|
-
}, null, 8,
|
|
578
|
+
}, null, 8, Nt),
|
|
556
579
|
O("stop", {
|
|
557
580
|
offset: "100%",
|
|
558
|
-
"stop-color":
|
|
559
|
-
}, null, 8,
|
|
560
|
-
], 8,
|
|
561
|
-
])) :
|
|
581
|
+
"stop-color": b(Se)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
582
|
+
}, null, 8, zt)
|
|
583
|
+
], 8, St)
|
|
584
|
+
])) : V("", !0)
|
|
562
585
|
]))), 256)),
|
|
563
|
-
(m(!0),
|
|
586
|
+
(m(!0), k($e, null, Te(Y.value, (l, u) => (m(), k("g", null, [
|
|
564
587
|
O("rect", {
|
|
565
588
|
x: l.x0,
|
|
566
589
|
y: l.y0,
|
|
567
|
-
height:
|
|
568
|
-
width:
|
|
590
|
+
height: pe(l),
|
|
591
|
+
width: ge(l),
|
|
569
592
|
fill: d.value ? l.color : e.value.style.chart.layout.rects.gradient.show ? `url(#tgrad_${l.id})` : l.color,
|
|
570
593
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
571
594
|
stroke: F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
572
595
|
"stroke-width": F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
573
|
-
onClick: (g) =>
|
|
574
|
-
onMouseenter: () =>
|
|
596
|
+
onClick: (g) => Me(l),
|
|
597
|
+
onMouseenter: () => Be({
|
|
575
598
|
datapoint: l,
|
|
576
599
|
seriesIndex: u
|
|
577
600
|
}),
|
|
578
601
|
onMouseleave: o[0] || (o[0] = (g) => {
|
|
579
602
|
F.value = null, v.value = !1;
|
|
580
603
|
}),
|
|
581
|
-
style:
|
|
604
|
+
style: M(`opacity:${F.value ? F.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
582
605
|
class: "vue-ui-treemap-rect"
|
|
583
|
-
}, null, 44,
|
|
584
|
-
(m(),
|
|
606
|
+
}, null, 44, Pt),
|
|
607
|
+
(m(), k("foreignObject", {
|
|
585
608
|
x: l.x0,
|
|
586
609
|
y: l.y0,
|
|
587
|
-
height:
|
|
588
|
-
width:
|
|
610
|
+
height: pe(l),
|
|
611
|
+
width: ge(l),
|
|
589
612
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
590
613
|
}, [
|
|
591
|
-
O("div",
|
|
592
|
-
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
614
|
+
O("div", Ft, [
|
|
615
|
+
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value) ? (m(), k("div", {
|
|
593
616
|
key: 0,
|
|
594
617
|
class: "vue-ui-treemap-cell-default",
|
|
595
|
-
style:
|
|
618
|
+
style: M(`width:calc(100% - ${H(l) / 1.5}px);text-align:left;line-height:${H(l) < 14 ? 14 : H(l)}px;padding:${H(l) / 3}px; color:${b(Ne)(l.color)}`)
|
|
596
619
|
}, [
|
|
597
620
|
O("span", {
|
|
598
|
-
style:
|
|
621
|
+
style: M(`width:100%;font-size:${H(l)}px;`)
|
|
599
622
|
}, q(l.name), 5),
|
|
600
|
-
|
|
623
|
+
Lt,
|
|
601
624
|
O("span", {
|
|
602
|
-
style:
|
|
603
|
-
}, q(
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
625
|
+
style: M(`width:100%;font-size:${H(l)}px;`)
|
|
626
|
+
}, q(b(oe)(
|
|
627
|
+
e.value.style.chart.layout.labels.formatter,
|
|
628
|
+
l.value,
|
|
629
|
+
b(Z)({
|
|
630
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
631
|
+
v: l.value,
|
|
632
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
633
|
+
r: e.value.style.chart.layout.labels.rounding
|
|
634
|
+
}),
|
|
635
|
+
{ datapoint: l }
|
|
636
|
+
)), 5)
|
|
637
|
+
], 4)) : V("", !0),
|
|
610
638
|
_(t.$slots, "rect", G(X({
|
|
611
639
|
rect: l,
|
|
612
|
-
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion ||
|
|
613
|
-
fontSize:
|
|
614
|
-
isZoom:
|
|
615
|
-
textColor:
|
|
640
|
+
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || I.value,
|
|
641
|
+
fontSize: H(l),
|
|
642
|
+
isZoom: I.value,
|
|
643
|
+
textColor: b(Ne)(l.color)
|
|
616
644
|
})), void 0, !0)
|
|
617
645
|
])
|
|
618
646
|
], 8, It))
|
|
619
647
|
]))), 256)),
|
|
620
|
-
_(t.$slots, "svg", G(X({ svg:
|
|
621
|
-
], 14,
|
|
622
|
-
t.$slots.watermark ? (m(),
|
|
623
|
-
_(t.$slots, "watermark", G(X({ isPrinting:
|
|
624
|
-
])) :
|
|
625
|
-
c.value ?
|
|
648
|
+
_(t.$slots, "svg", G(X({ svg: B.value, isZoom: I.value, rect: F.value, config: e.value })), void 0, !0)
|
|
649
|
+
], 14, _t)) : V("", !0),
|
|
650
|
+
t.$slots.watermark ? (m(), k("div", Rt, [
|
|
651
|
+
_(t.$slots, "watermark", G(X({ isPrinting: b(P) || b(ue) })), void 0, !0)
|
|
652
|
+
])) : V("", !0),
|
|
653
|
+
c.value ? V("", !0) : (m(), te(ct, {
|
|
626
654
|
key: 4,
|
|
627
655
|
config: {
|
|
628
656
|
type: "treemap",
|
|
@@ -638,30 +666,40 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
638
666
|
ref_key: "chartLegend",
|
|
639
667
|
ref: z
|
|
640
668
|
}, [
|
|
641
|
-
e.value.style.chart.legend.show ? (m(),
|
|
669
|
+
e.value.style.chart.legend.show ? (m(), te(it, {
|
|
642
670
|
key: 0,
|
|
643
|
-
legendSet:
|
|
644
|
-
config:
|
|
671
|
+
legendSet: me.value,
|
|
672
|
+
config: Ve.value,
|
|
645
673
|
id: `treemap_legend_${h.value}`,
|
|
646
|
-
onClickMarker: o[1] || (o[1] = ({ legend: l }) =>
|
|
674
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => be(l))
|
|
647
675
|
}, {
|
|
648
676
|
item: T(({ legend: l, index: u }) => [
|
|
649
677
|
O("div", {
|
|
650
|
-
onClick: (g) =>
|
|
651
|
-
style:
|
|
678
|
+
onClick: (g) => be(l),
|
|
679
|
+
style: M(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
652
680
|
}, [
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
681
|
+
_e(q(l.name) + ": " + q(b(oe)(
|
|
682
|
+
e.value.style.chart.layout.labels.formatter,
|
|
683
|
+
l.value,
|
|
684
|
+
b(Z)({
|
|
685
|
+
p: e.value.style.chart.layout.labels.prefix,
|
|
686
|
+
v: l.value,
|
|
687
|
+
s: e.value.style.chart.layout.labels.suffix,
|
|
688
|
+
r: e.value.style.chart.legend.roundingValue
|
|
689
|
+
}),
|
|
690
|
+
{ datapoint: l }
|
|
691
|
+
)) + " ", 1),
|
|
692
|
+
f.value.includes(l.id) ? (m(), k("span", Mt, " ( - % ) ")) : (m(), k("span", At, " (" + q(isNaN(l.value / E.value) ? "-" : (l.value / E.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
693
|
+
], 12, Dt)
|
|
656
694
|
]),
|
|
657
695
|
_: 1
|
|
658
696
|
}, 8, ["legendSet", "config", "id"])) : _(t.$slots, "legend", {
|
|
659
697
|
key: 1,
|
|
660
|
-
legend:
|
|
698
|
+
legend: me.value
|
|
661
699
|
}, void 0, !0)
|
|
662
700
|
], 512),
|
|
663
|
-
|
|
664
|
-
show:
|
|
701
|
+
se(ut, {
|
|
702
|
+
show: R.value.showTooltip && v.value,
|
|
665
703
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
666
704
|
color: e.value.style.chart.tooltip.color,
|
|
667
705
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -673,21 +711,21 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
673
711
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
674
712
|
parent: p.value,
|
|
675
713
|
content: S.value,
|
|
676
|
-
isCustom:
|
|
714
|
+
isCustom: b(ze)(e.value.style.chart.tooltip.customFormat)
|
|
677
715
|
}, {
|
|
678
716
|
"tooltip-before": T(() => [
|
|
679
|
-
_(t.$slots, "tooltip-before", G(X({ ...
|
|
717
|
+
_(t.$slots, "tooltip-before", G(X({ ...ne.value })), void 0, !0)
|
|
680
718
|
]),
|
|
681
719
|
"tooltip-after": T(() => [
|
|
682
|
-
_(t.$slots, "tooltip-after", G(X({ ...
|
|
720
|
+
_(t.$slots, "tooltip-after", G(X({ ...ne.value })), void 0, !0)
|
|
683
721
|
]),
|
|
684
722
|
_: 3
|
|
685
723
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
686
|
-
c.value ? (m(),
|
|
724
|
+
c.value ? (m(), te(vt, {
|
|
687
725
|
key: 5,
|
|
688
726
|
hideDetails: "",
|
|
689
727
|
config: {
|
|
690
|
-
open:
|
|
728
|
+
open: R.value.showTable,
|
|
691
729
|
maxHeight: 1e4,
|
|
692
730
|
body: {
|
|
693
731
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -700,31 +738,31 @@ const xt = (a) => (Xe("data-v-1e3a642b"), a = a(), qe(), a), $t = ["id"], Tt = [
|
|
|
700
738
|
}
|
|
701
739
|
}, {
|
|
702
740
|
content: T(() => [
|
|
703
|
-
|
|
704
|
-
colNames:
|
|
705
|
-
head:
|
|
706
|
-
body:
|
|
707
|
-
config:
|
|
741
|
+
se(dt, {
|
|
742
|
+
colNames: Q.value.colNames,
|
|
743
|
+
head: Q.value.head,
|
|
744
|
+
body: Q.value.body,
|
|
745
|
+
config: Q.value.config,
|
|
708
746
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
709
|
-
onClose: o[2] || (o[2] = (l) =>
|
|
747
|
+
onClose: o[2] || (o[2] = (l) => R.value.showTable = !1)
|
|
710
748
|
}, {
|
|
711
749
|
th: T(({ th: l }) => [
|
|
712
750
|
O("div", {
|
|
713
751
|
innerHTML: l,
|
|
714
752
|
style: { display: "flex", "align-items": "center" }
|
|
715
|
-
}, null, 8,
|
|
753
|
+
}, null, 8, Vt)
|
|
716
754
|
]),
|
|
717
755
|
td: T(({ td: l }) => [
|
|
718
|
-
|
|
756
|
+
_e(q(l.name || l), 1)
|
|
719
757
|
]),
|
|
720
758
|
_: 1
|
|
721
759
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
722
760
|
]),
|
|
723
761
|
_: 1
|
|
724
|
-
}, 8, ["config"])) :
|
|
725
|
-
], 14,
|
|
762
|
+
}, 8, ["config"])) : V("", !0)
|
|
763
|
+
], 14, Tt));
|
|
726
764
|
}
|
|
727
|
-
},
|
|
765
|
+
}, Qt = /* @__PURE__ */ pt(Bt, [["__scopeId", "data-v-7028d693"]]);
|
|
728
766
|
export {
|
|
729
|
-
|
|
767
|
+
Qt as default
|
|
730
768
|
};
|