vue-data-ui 2.3.90 → 2.3.92
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 +3 -2
- package/dist/{Arrow-C_Fnn6al.js → Arrow-16rQhq4i.js} +1 -1
- package/dist/{Arrow-D1pymKl6.cjs → Arrow-CdJD01md.cjs} +1 -1
- package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-CAmYNoaf.js} +1 -1
- package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-dYWMubrH.cjs} +1 -1
- package/dist/{DataTable-Cmbf3abv.js → DataTable-BXnbua0J.js} +2 -2
- package/dist/{DataTable-cOEA6Z37.cjs → DataTable-oa0Srfuc.cjs} +1 -1
- package/dist/{Legend-CCq0mNRg.js → Legend-Cr1hulgT.js} +1 -1
- package/dist/{Legend-XqP6-7Ac.cjs → Legend-Dhm9_peB.cjs} +1 -1
- package/dist/PackageVersion-BVZfgDqm.js +10 -0
- package/dist/PackageVersion-BkgJVmj1.cjs +1 -0
- package/dist/{Shape-BNocET8E.js → Shape-D75m5xWM.js} +1 -1
- package/dist/{Shape-B51JGReT.cjs → Shape-hGbEoQOv.cjs} +1 -1
- package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-B7ya0m2Q.cjs} +1 -1
- package/dist/{Slicer-BKszZXjM.js → Slicer-Bx8AozB8.js} +2 -2
- package/dist/{Title-DlBwa3-X.js → Title-1Sw6EmHy.js} +1 -1
- package/dist/{Title-BaR4XyXa.cjs → Title-Bjrh7khe.cjs} +1 -1
- package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-CPATjuur.cjs} +1 -1
- package/dist/{Tooltip-w32n-8sY.js → Tooltip-EJf3VBPR.js} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/index-D09qCApg.cjs +4 -0
- package/dist/{index-DQl1TFXa.js → index-DhJby8wL.js} +8 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +16 -0
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-Bwd7mK1Z.cjs} +1 -1
- package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-CrHvyupb.js} +1 -1
- package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Bwm8J3RQ.js} +1 -1
- package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-DdsPm5a4.cjs} +1 -1
- package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-CLxne31S.js} +57 -57
- package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-ZitCqVgG.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DAv5cYGJ.cjs +19 -0
- package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Dg87_AAm.js} +148 -146
- package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-BAHX7KzB.cjs} +1 -1
- package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-Cn5Jbplg.js} +3 -3
- package/dist/vue-ui-age-pyramid-GzHwQzsH.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-PlamQWqC.js} +83 -81
- package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-DGgQwl-K.cjs} +1 -1
- package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-Dd5KF_cy.js} +1 -1
- package/dist/vue-ui-candlestick-BIEB2J1w.cjs +2 -0
- package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-DTzwPhV5.js} +113 -111
- package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-HNTf5AYY.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-YEfvPESA.js} +4 -4
- package/dist/vue-ui-chestnut-DzjdAYsT.cjs +6 -0
- package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-PzMOM7mp.js} +161 -159
- package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-C5rsiCdn.cjs} +1 -1
- package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-DWea2yXV.js} +2 -2
- package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-BqXhoS8m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CVespiTo.js} +2 -2
- package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-gNKgZqYU.js} +2 -2
- package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-wmDN7Vkf.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-Ch6HH0ja.js} +102 -100
- package/dist/vue-ui-donut-evolution-DhDxLZ1J.cjs +1 -0
- package/dist/vue-ui-donut-n37BZPxr.cjs +1 -0
- package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-sQunZI1L.js} +118 -116
- package/dist/vue-ui-dumbbell-B9Z_pjnG.cjs +9 -0
- package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-lFlZX8Yi.js} +88 -86
- package/dist/vue-ui-flow-BaFpUJg-.cjs +1 -0
- package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CSIOC-JR.js} +65 -63
- package/dist/vue-ui-galaxy-BIR5GxIc.cjs +1 -0
- package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-DL2mnel_.js} +82 -80
- package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BMq7KT3t.js} +56 -54
- package/dist/vue-ui-gauge-r_qvpwE7.cjs +1 -0
- package/dist/vue-ui-gizmo-DBas_Sw_.cjs +1 -0
- package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-Dj7zvNI1.js} +32 -30
- package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-pqBYIrxm.js} +99 -97
- package/dist/vue-ui-heatmap-qPgEhAzc.cjs +1 -0
- package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-Cmo9J7wp.cjs} +1 -1
- package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-ZPBinMiF.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-Ce-jbgMT.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-DOTWhLi9.js} +2 -2
- package/dist/vue-ui-molecule-D429iwPP.cjs +1 -0
- package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-RDpgNrHQ.js} +77 -75
- package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CD5L8WCU.js} +76 -74
- package/dist/vue-ui-mood-radar-CdLJxrkT.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-A-tid5cQ.js} +112 -110
- package/dist/vue-ui-nested-donuts-DyM3uc7x.cjs +17 -0
- package/dist/vue-ui-onion-BKql8oal.cjs +5 -0
- package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-Cap01Ehu.js} +82 -80
- package/dist/vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-CcDKe4L0.js} +91 -89
- package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-BDEfAeyJ.js} +141 -139
- package/dist/vue-ui-quadrant-CZzdpeQ2.cjs +1 -0
- package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-DlAUYg5u.js} +166 -164
- package/dist/vue-ui-quick-chart-DpGYUyhq.cjs +15 -0
- package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CbTln7gs.js} +89 -87
- package/dist/vue-ui-radar-oBeaHlpT.cjs +1 -0
- package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-BU7-F3_e.cjs} +1 -1
- package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-BkDncqow.js} +2 -2
- package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-C5B6UNGd.js} +54 -52
- package/dist/vue-ui-relation-circle-IWiJWgcB.cjs +1 -0
- package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-BujVUJ90.js} +97 -93
- package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-Df2cRgD8.cjs} +2 -2
- package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-D6yqZJ7s.js} +132 -130
- package/dist/vue-ui-scatter-jFTeM2hW.cjs +1 -0
- package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-CHAySwpv.js} +1 -1
- package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-CVu8IM33.cjs} +1 -1
- package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-ASX40MGk.js} +423 -388
- package/dist/vue-ui-skeleton-CAlTn_Cg.cjs +41 -0
- package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-DGVzhza2.js} +2 -2
- package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-dwCqhB0r.cjs} +1 -1
- package/dist/vue-ui-spark-trend-A1EHFK_r.cjs +1 -0
- package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-B7XhDvTj.js} +42 -40
- package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-BuNcvi66.js} +53 -51
- package/dist/vue-ui-sparkbar-CwNjHOjD.cjs +1 -0
- package/dist/vue-ui-sparkgauge-ISu154lS.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-JY2kB9WX.js} +31 -29
- package/dist/vue-ui-sparkhistogram-C8zyC-ii.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-DyEPWxkP.js} +69 -67
- package/dist/vue-ui-sparkline-DL3Thtc4.cjs +1 -0
- package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-DYC3sdvQ.js} +65 -63
- package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-7TmtP3WR.js} +46 -44
- package/dist/vue-ui-sparkstackbar-ChIM9bn2.cjs +1 -0
- package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-CP5C6Gb_.js} +128 -126
- package/dist/vue-ui-stackbar-DrtiSaNc.cjs +6 -0
- package/dist/vue-ui-strip-plot-BMYMIHGu.cjs +1 -0
- package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-DJQCq_KE.js} +78 -76
- package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-D6hvgMif.cjs} +1 -1
- package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-IJi0xaVg.js} +1 -1
- package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-BZNKXZNs.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-Ls8_xq0D.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BQFK30H1.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeuvdssX.js} +5 -5
- package/dist/vue-ui-thermometer-DKm8SXlE.cjs +1 -0
- package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-DPWIvG92.js} +80 -78
- package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-CEzDvZf7.js} +62 -60
- package/dist/vue-ui-timer-n6lv7oTx.cjs +64 -0
- package/dist/vue-ui-tiremarks-B33mHXZN.cjs +1 -0
- package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-BUGoY22W.js} +51 -49
- package/dist/vue-ui-treemap-DPxBZUUr.cjs +1 -0
- package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-DmOYjJ_F.js} +93 -91
- package/dist/vue-ui-vertical-bar-BJMYX8t4.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BpVKdSY5.js} +110 -108
- package/dist/vue-ui-waffle-DGcueccy.cjs +1 -0
- package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-ULg6SwPx.js} +72 -70
- package/dist/vue-ui-wheel-CWKq-CFW.cjs +1 -0
- package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-DlmgZd-_.js} +43 -41
- package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +1 -0
- package/dist/vue-ui-word-cloud-DWyboczt.js +574 -0
- package/dist/vue-ui-xy-Cz81fw_E.cjs +3 -0
- package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-V13Ns1gv.js} +507 -504
- package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-B9cRe5gT.js} +10 -10
- package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-GiuHOyj5.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-B8EMsnjU.cjs +0 -4
- package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
- package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
- package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
- package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
- package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
- package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
- package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
- package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
- package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
- package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
- package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
- package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
- package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
- package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
- package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
- package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
- package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
- package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
- package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
- package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
- package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
- package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
- package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
- package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
- package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
- package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
- package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
- package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
- package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
- package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
- package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
- package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
- package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
- package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
- package/dist/vue-ui-word-cloud-dMBTVGVk.js +0 -513
- package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
- package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { computed as C, ref as y, watch as
|
|
2
|
-
import { u as tt, c as
|
|
3
|
-
import { _ as dt } from "./Title-
|
|
4
|
-
import { u as vt, U as ht } from "./usePrinter-
|
|
5
|
-
import { _ as ft } from "./Tooltip-
|
|
6
|
-
import { L as pt } from "./Legend-
|
|
7
|
-
import gt from "./vue-ui-skeleton-
|
|
8
|
-
import { D as yt } from "./DataTable-
|
|
9
|
-
import mt from "./vue-ui-accordion-
|
|
1
|
+
import { computed as C, ref as y, watch as je, onMounted as Ye, onBeforeUnmount as Ze, openBlock as m, createElementBlock as k, normalizeClass as _e, normalizeStyle as V, createBlock as X, createCommentVNode as B, unref as b, createSlots as Je, withCtx as T, renderSlot as _, normalizeProps as q, guardReactiveProps as j, createVNode as Oe, Fragment as Se, renderList as Ne, createElementVNode as O, toDisplayString as Y, createTextVNode as ze, nextTick as Ke, pushScopeId as Qe, popScopeId as et } from "vue";
|
|
2
|
+
import { u as tt, c as Ie, t as lt, a as ot, p as x, b as at, o as nt, e as st, d as oe, i as ae, f as K, X as rt, l as Pe, F as Fe, x as Le, y as ut, q as it, r as ct } from "./index-DhJby8wL.js";
|
|
3
|
+
import { _ as dt } from "./Title-1Sw6EmHy.js";
|
|
4
|
+
import { u as vt, U as ht } from "./usePrinter-Bwm8J3RQ.js";
|
|
5
|
+
import { _ as ft } from "./Tooltip-EJf3VBPR.js";
|
|
6
|
+
import { L as pt } from "./Legend-Cr1hulgT.js";
|
|
7
|
+
import gt from "./vue-ui-skeleton-ASX40MGk.js";
|
|
8
|
+
import { D as yt } from "./DataTable-BXnbua0J.js";
|
|
9
|
+
import mt from "./vue-ui-accordion-Cn5Jbplg.js";
|
|
10
10
|
import { t as bt, u as wt } from "./useResponsive-NZB-WLRF.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as Ct } from "./
|
|
13
|
-
|
|
11
|
+
import { u as Re } from "./useNestedProp-CrHvyupb.js";
|
|
12
|
+
import { _ as Ct } from "./PackageVersion-BVZfgDqm.js";
|
|
13
|
+
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
function De(a, i) {
|
|
14
15
|
const s = a.length;
|
|
15
16
|
if (s === 0)
|
|
16
17
|
throw new Error(`Max aspect ratio cannot be computed: ${a} is an empty array`);
|
|
@@ -26,7 +27,7 @@ function Re(a, i) {
|
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function Ae(a) {
|
|
30
31
|
const { xOffset: i, yOffset: s, width: n, height: r } = a;
|
|
31
32
|
return {
|
|
32
33
|
x0: i,
|
|
@@ -35,18 +36,18 @@ function De(a) {
|
|
|
35
36
|
y1: s + r
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function xt(a, i, s) {
|
|
39
40
|
if (a.length === 0)
|
|
40
41
|
return !0;
|
|
41
42
|
{
|
|
42
|
-
const n = a.concat(i), r =
|
|
43
|
+
const n = a.concat(i), r = De(
|
|
43
44
|
a,
|
|
44
45
|
s
|
|
45
|
-
), c =
|
|
46
|
+
), c = De(n, s);
|
|
46
47
|
return r >= c;
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function $t(a) {
|
|
50
51
|
const i = [], s = a.length;
|
|
51
52
|
for (let n = 0; n < s; n += 1) {
|
|
52
53
|
const r = a[n], c = r.length;
|
|
@@ -55,17 +56,17 @@ function xt(a) {
|
|
|
55
56
|
}
|
|
56
57
|
return i;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function Tt(a, i) {
|
|
59
60
|
const s = {
|
|
60
61
|
...i,
|
|
61
62
|
children: a
|
|
62
63
|
};
|
|
63
|
-
return
|
|
64
|
+
return Ve(s);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function _t(a) {
|
|
66
67
|
return (a.x1 - a.x0) * (a.y1 - a.y0);
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
+
function Me(a, i) {
|
|
69
70
|
const { width: s, height: n, xOffset: r, yOffset: c } = ue(i), d = a.length, h = a.map((p) => p.normalizedValue || 0).reduce((p, $) => p + $, 0), v = h / n, S = h / s;
|
|
70
71
|
let w = r, N = c;
|
|
71
72
|
const f = [];
|
|
@@ -93,11 +94,11 @@ function Ae(a, i) {
|
|
|
93
94
|
return f;
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function Ot(a) {
|
|
97
98
|
const i = ue(a), s = i.width, n = i.height;
|
|
98
99
|
return Math.min(s, n);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function St(a, i) {
|
|
101
102
|
const s = a.length, n = a.map((v) => v.value ?? 0).reduce((v, S) => v + S, 0), r = i / n, c = [];
|
|
102
103
|
let d, h;
|
|
103
104
|
for (let v = 0; v < s; v += 1)
|
|
@@ -115,16 +116,16 @@ function ue(a) {
|
|
|
115
116
|
height: r - s
|
|
116
117
|
};
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function Nt(a, i, s, n) {
|
|
119
120
|
let r = a, c = i, d = s, h = n;
|
|
120
121
|
for (; ; ) {
|
|
121
122
|
const v = r.length;
|
|
122
123
|
if (v === 0) {
|
|
123
|
-
const f =
|
|
124
|
+
const f = Me(c, d);
|
|
124
125
|
return h.concat(f);
|
|
125
126
|
}
|
|
126
|
-
const S =
|
|
127
|
-
if (
|
|
127
|
+
const S = Ot(d), w = r[0], N = r.slice(1, v);
|
|
128
|
+
if (xt(c, w, S)) {
|
|
128
129
|
const f = c.concat(w);
|
|
129
130
|
r = N, c = f, d = d, h = h;
|
|
130
131
|
} else {
|
|
@@ -132,25 +133,25 @@ function St(a, i, s, n) {
|
|
|
132
133
|
let p = 0;
|
|
133
134
|
for (let I = 0; I < f; I += 1)
|
|
134
135
|
p += c[I].normalizedValue;
|
|
135
|
-
const $ =
|
|
136
|
+
const $ = zt(d, p), z = Me(c, d), R = h.concat(z);
|
|
136
137
|
r = r, c = [], d = $, h = R;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function Ve(a) {
|
|
141
142
|
if (typeof a.children > "u" || !a.children.length)
|
|
142
143
|
return [a];
|
|
143
144
|
{
|
|
144
|
-
const i =
|
|
145
|
+
const i = St(
|
|
145
146
|
a.children,
|
|
146
|
-
|
|
147
|
-
), s =
|
|
147
|
+
_t(a)
|
|
148
|
+
), s = Nt(i, [], a, []), n = s.length, r = [];
|
|
148
149
|
for (let d = 0; d < n; d += 1)
|
|
149
|
-
r.push(
|
|
150
|
-
return
|
|
150
|
+
r.push(Ve(s[d]));
|
|
151
|
+
return $t(r);
|
|
151
152
|
}
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function zt(a, i) {
|
|
154
155
|
const { width: s, height: n, xOffset: r, yOffset: c } = ue(a);
|
|
155
156
|
if (s >= n) {
|
|
156
157
|
const d = i / n, h = s - d, v = {
|
|
@@ -159,7 +160,7 @@ function Nt(a, i) {
|
|
|
159
160
|
width: h,
|
|
160
161
|
height: n
|
|
161
162
|
};
|
|
162
|
-
return
|
|
163
|
+
return Ae(v);
|
|
163
164
|
} else {
|
|
164
165
|
const d = i / s, h = n - d, v = {
|
|
165
166
|
xOffset: r,
|
|
@@ -167,16 +168,16 @@ function Nt(a, i) {
|
|
|
167
168
|
width: s,
|
|
168
169
|
height: h
|
|
169
170
|
};
|
|
170
|
-
return
|
|
171
|
+
return Ae(v);
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
|
-
const
|
|
174
|
+
const It = (a) => (Qe("data-v-f7f2df00"), a = a(), et(), a), Pt = ["id"], Ft = ["xmlns", "viewBox"], Lt = { key: 0 }, Rt = ["id"], Dt = ["stop-color"], At = ["stop-color"], Mt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick", "onMouseenter"], Vt = ["x", "y", "height", "width"], Bt = {
|
|
174
175
|
style: { width: "100%", height: "100%" },
|
|
175
176
|
class: "vue-ui-treemap-cell"
|
|
176
|
-
},
|
|
177
|
+
}, Wt = /* @__PURE__ */ It(() => /* @__PURE__ */ O("br", null, null, -1)), Ht = {
|
|
177
178
|
key: 3,
|
|
178
179
|
class: "vue-data-ui-watermark"
|
|
179
|
-
},
|
|
180
|
+
}, Et = ["onClick"], Ut = { key: 0 }, Gt = { key: 1 }, Xt = ["innerHTML"], qt = {
|
|
180
181
|
__name: "vue-ui-treemap",
|
|
181
182
|
props: {
|
|
182
183
|
config: {
|
|
@@ -194,24 +195,24 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
194
195
|
},
|
|
195
196
|
emits: ["selectLegend", "selectDatapoint"],
|
|
196
197
|
setup(a, { expose: i, emit: s }) {
|
|
197
|
-
const n = a, { vue_ui_treemap: r } = tt(), c = C(() => !!n.dataset && n.dataset.length), d = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = y(
|
|
198
|
+
const n = a, { vue_ui_treemap: r } = tt(), c = C(() => !!n.dataset && n.dataset.length), d = C(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), h = y(Ie()), v = y(!1), S = y(""), w = y(!1), N = y(0), f = y([]), p = y(null), $ = y(null), z = y(null), R = y(0), I = y(0), ie = y(0), e = C({
|
|
198
199
|
get: () => ce(),
|
|
199
200
|
set: (t) => t
|
|
200
201
|
});
|
|
201
202
|
function ce() {
|
|
202
|
-
const t =
|
|
203
|
+
const t = Re({
|
|
203
204
|
userConfig: n.config,
|
|
204
205
|
defaultConfig: r
|
|
205
206
|
});
|
|
206
207
|
return t.theme ? {
|
|
207
|
-
...
|
|
208
|
+
...Re({
|
|
208
209
|
userConfig: lt.vue_ui_treemap[t.theme] || n.config,
|
|
209
210
|
defaultConfig: t
|
|
210
211
|
}),
|
|
211
212
|
customPalette: ot[t.theme] || x
|
|
212
213
|
} : t;
|
|
213
214
|
}
|
|
214
|
-
|
|
215
|
+
je(() => n.config, (t) => {
|
|
215
216
|
e.value = ce(), R.value += 1, I.value += 1, ie.value += 1;
|
|
216
217
|
}, { deep: !0 });
|
|
217
218
|
const { isPrinting: de, isImaging: ve, generatePdf: he, generateImage: fe } = vt({
|
|
@@ -235,16 +236,16 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
235
236
|
}));
|
|
236
237
|
function pe(t) {
|
|
237
238
|
t.forEach((o, l) => {
|
|
238
|
-
o.id =
|
|
239
|
+
o.id = Ie(), o.color = oe(o.color) || Q.value[l] || x[l] || x[l % x.length], o.children && (o.children.forEach((u) => {
|
|
239
240
|
u.parentId = o.id, u.color = o.color;
|
|
240
241
|
}), pe(o.children));
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
244
|
const H = y(n.dataset), ee = y(null);
|
|
244
|
-
|
|
245
|
-
|
|
245
|
+
Ye(() => {
|
|
246
|
+
Be();
|
|
246
247
|
});
|
|
247
|
-
function
|
|
248
|
+
function Be() {
|
|
248
249
|
if (nt(n.dataset) && st({
|
|
249
250
|
componentName: "VueUiTreemap",
|
|
250
251
|
type: "dataset"
|
|
@@ -260,7 +261,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
260
261
|
ee.value = new ResizeObserver(t), ee.value.observe(p.value.parentNode);
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
|
-
|
|
264
|
+
Ze(() => {
|
|
264
265
|
ee.value && ee.value.disconnect();
|
|
265
266
|
});
|
|
266
267
|
const ne = y(H.value), Z = C(() => ne.value.map((t, o) => ({
|
|
@@ -280,23 +281,23 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
280
281
|
function ye(t, o) {
|
|
281
282
|
return t.value / o;
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function We(t, o, l) {
|
|
284
285
|
const u = e.value.style.chart.layout.rects.colorRatio - ye(o, l);
|
|
285
|
-
return
|
|
286
|
+
return Pe(t, u < 0 ? 0 : u);
|
|
286
287
|
}
|
|
287
288
|
function me(t, o, l, u) {
|
|
288
289
|
return t.map((g, M) => {
|
|
289
|
-
const le =
|
|
290
|
+
const le = We(oe(o) || Q.value[M] || x[M] || x[M % x.length], g, u), qe = ye(g, u);
|
|
290
291
|
return {
|
|
291
292
|
...g,
|
|
292
293
|
color: le,
|
|
293
|
-
proportion:
|
|
294
|
+
proportion: qe,
|
|
294
295
|
parentName: l,
|
|
295
296
|
children: g.children ? me(g.children, le, g.name, u) : void 0
|
|
296
297
|
};
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
|
-
const J = C(() =>
|
|
300
|
+
const J = C(() => Tt(
|
|
300
301
|
ge.value.map((t, o) => {
|
|
301
302
|
const l = t.children ? t.children.reduce((u, g) => u + g.value, 0) : t.value;
|
|
302
303
|
return {
|
|
@@ -319,7 +320,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
319
320
|
const o = e.value.style.chart.layout.labels.fontSize * (t.proportion * 2 > 1 ? 1 : t.proportion * 2);
|
|
320
321
|
return o < e.value.style.chart.layout.labels.minFontSize ? e.value.style.chart.layout.labels.minFontSize : o;
|
|
321
322
|
}
|
|
322
|
-
function
|
|
323
|
+
function He(t) {
|
|
323
324
|
w.value = t, N.value += 1;
|
|
324
325
|
}
|
|
325
326
|
const G = C(() => ({
|
|
@@ -340,7 +341,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
340
341
|
}
|
|
341
342
|
return null;
|
|
342
343
|
}
|
|
343
|
-
function
|
|
344
|
+
function Ee(t) {
|
|
344
345
|
if (P.value)
|
|
345
346
|
s("selectDatapoint", void 0), ne.value = H.value;
|
|
346
347
|
else {
|
|
@@ -358,7 +359,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
358
359
|
...t,
|
|
359
360
|
proportion: t.value / H.value.map((l) => l.value).reduce((l, u) => l + u, 0),
|
|
360
361
|
opacity: f.value.includes(t.id) ? 0.5 : 1
|
|
361
|
-
}))),
|
|
362
|
+
}))), Ue = C(() => ({
|
|
362
363
|
cy: "treemap-div-legend",
|
|
363
364
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
364
365
|
color: e.value.style.chart.legend.color,
|
|
@@ -370,10 +371,10 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
370
371
|
P.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", ge.value);
|
|
371
372
|
}
|
|
372
373
|
const re = y(null);
|
|
373
|
-
function
|
|
374
|
+
function Ge({ datapoint: t, seriesIndex: o }) {
|
|
374
375
|
F.value = t, re.value = { datapoint: t, seriesIndex: o, config: e.value, series: Z.value };
|
|
375
376
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
376
|
-
if (
|
|
377
|
+
if (Le(l) && ut(() => l({
|
|
377
378
|
seriesIndex: o,
|
|
378
379
|
datapoint: t,
|
|
379
380
|
series: Z.value,
|
|
@@ -468,7 +469,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
468
469
|
config: l
|
|
469
470
|
};
|
|
470
471
|
});
|
|
471
|
-
function
|
|
472
|
+
function Xe() {
|
|
472
473
|
return J.value;
|
|
473
474
|
}
|
|
474
475
|
function $e() {
|
|
@@ -478,7 +479,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
478
479
|
D.value.showTooltip = !D.value.showTooltip;
|
|
479
480
|
}
|
|
480
481
|
return i({
|
|
481
|
-
getData:
|
|
482
|
+
getData: Xe,
|
|
482
483
|
generateCsv: xe,
|
|
483
484
|
generateImage: fe,
|
|
484
485
|
generatePdf: he,
|
|
@@ -530,13 +531,13 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
530
531
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
531
532
|
chartElement: p.value,
|
|
532
533
|
position: e.value.userOptions.position,
|
|
533
|
-
onToggleFullscreen:
|
|
534
|
+
onToggleFullscreen: He,
|
|
534
535
|
onGeneratePdf: b(he),
|
|
535
536
|
onGenerateCsv: xe,
|
|
536
537
|
onGenerateImage: b(fe),
|
|
537
538
|
onToggleTable: $e,
|
|
538
539
|
onToggleTooltip: Te
|
|
539
|
-
},
|
|
540
|
+
}, Je({ _: 2 }, [
|
|
540
541
|
t.$slots.optionTooltip ? {
|
|
541
542
|
name: "optionTooltip",
|
|
542
543
|
fn: T(() => [
|
|
@@ -587,8 +588,9 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
587
588
|
viewBox: `${G.value.startX} ${G.value.startY} ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
|
|
588
589
|
style: V(`max-width:100%; overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
589
590
|
}, [
|
|
590
|
-
|
|
591
|
-
|
|
591
|
+
Oe(Ct),
|
|
592
|
+
(m(!0), k(Se, null, Ne(J.value, (l, u) => (m(), k("g", null, [
|
|
593
|
+
e.value.style.chart.layout.rects.gradient.show ? (m(), k("defs", Lt, [
|
|
592
594
|
O("radialGradient", {
|
|
593
595
|
id: `tgrad_${l.id}`,
|
|
594
596
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)"
|
|
@@ -596,15 +598,15 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
596
598
|
O("stop", {
|
|
597
599
|
offset: "18%",
|
|
598
600
|
"stop-color": l.color
|
|
599
|
-
}, null, 8,
|
|
601
|
+
}, null, 8, Dt),
|
|
600
602
|
O("stop", {
|
|
601
603
|
offset: "100%",
|
|
602
|
-
"stop-color": b(
|
|
603
|
-
}, null, 8,
|
|
604
|
-
], 8,
|
|
604
|
+
"stop-color": b(Pe)(l.color, e.value.style.chart.layout.rects.gradient.intensity / 100)
|
|
605
|
+
}, null, 8, At)
|
|
606
|
+
], 8, Rt)
|
|
605
607
|
])) : B("", !0)
|
|
606
608
|
]))), 256)),
|
|
607
|
-
(m(!0), k(
|
|
609
|
+
(m(!0), k(Se, null, Ne(J.value, (l, u) => (m(), k("g", null, [
|
|
608
610
|
O("rect", {
|
|
609
611
|
x: l.x0,
|
|
610
612
|
y: l.y0,
|
|
@@ -614,8 +616,8 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
614
616
|
rx: e.value.style.chart.layout.rects.borderRadius,
|
|
615
617
|
stroke: F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.stroke : e.value.style.chart.layout.rects.stroke,
|
|
616
618
|
"stroke-width": F.value && F.value.id === l.id ? e.value.style.chart.layout.rects.selected.strokeWidth : e.value.style.chart.layout.rects.strokeWidth,
|
|
617
|
-
onClick: (g) =>
|
|
618
|
-
onMouseenter: () =>
|
|
619
|
+
onClick: (g) => Ee(l),
|
|
620
|
+
onMouseenter: () => Ge({
|
|
619
621
|
datapoint: l,
|
|
620
622
|
seriesIndex: u
|
|
621
623
|
}),
|
|
@@ -624,7 +626,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
624
626
|
}),
|
|
625
627
|
style: V(`opacity:${F.value ? F.value.id === l.id ? 1 : e.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
626
628
|
class: "vue-ui-treemap-rect"
|
|
627
|
-
}, null, 44,
|
|
629
|
+
}, null, 44, Mt),
|
|
628
630
|
(m(), k("foreignObject", {
|
|
629
631
|
x: l.x0,
|
|
630
632
|
y: l.y0,
|
|
@@ -632,16 +634,16 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
632
634
|
width: we(l),
|
|
633
635
|
class: "vue-ui-treemap-cell-foreignObject"
|
|
634
636
|
}, [
|
|
635
|
-
O("div",
|
|
637
|
+
O("div", Bt, [
|
|
636
638
|
e.value.style.chart.layout.labels.showDefaultLabels && (l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || P.value) ? (m(), k("div", {
|
|
637
639
|
key: 0,
|
|
638
640
|
class: "vue-ui-treemap-cell-default",
|
|
639
|
-
style: V(`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:${b(
|
|
641
|
+
style: V(`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:${b(Fe)(l.color)}`)
|
|
640
642
|
}, [
|
|
641
643
|
O("span", {
|
|
642
644
|
style: V(`width:100%;font-size:${E(l)}px;`)
|
|
643
645
|
}, Y(l.name), 5),
|
|
644
|
-
|
|
646
|
+
Wt,
|
|
645
647
|
O("span", {
|
|
646
648
|
style: V(`width:100%;font-size:${E(l)}px;`)
|
|
647
649
|
}, Y(b(ae)(
|
|
@@ -661,14 +663,14 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
661
663
|
shouldShow: l.proportion > e.value.style.chart.layout.labels.hideUnderProportion || P.value,
|
|
662
664
|
fontSize: E(l),
|
|
663
665
|
isZoom: P.value,
|
|
664
|
-
textColor: b(
|
|
666
|
+
textColor: b(Fe)(l.color)
|
|
665
667
|
})), void 0, !0)
|
|
666
668
|
])
|
|
667
|
-
], 8,
|
|
669
|
+
], 8, Vt))
|
|
668
670
|
]))), 256)),
|
|
669
671
|
_(t.$slots, "svg", q(j({ svg: W.value, isZoom: P.value, rect: F.value, config: e.value })), void 0, !0)
|
|
670
|
-
], 14,
|
|
671
|
-
t.$slots.watermark ? (m(), k("div",
|
|
672
|
+
], 14, Ft)) : B("", !0),
|
|
673
|
+
t.$slots.watermark ? (m(), k("div", Ht, [
|
|
672
674
|
_(t.$slots, "watermark", q(j({ isPrinting: b(de) || b(ve) })), void 0, !0)
|
|
673
675
|
])) : B("", !0),
|
|
674
676
|
c.value ? B("", !0) : (m(), X(gt, {
|
|
@@ -690,7 +692,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
690
692
|
e.value.style.chart.legend.show ? (m(), X(pt, {
|
|
691
693
|
key: `legend_${ie.value}`,
|
|
692
694
|
legendSet: Ce.value,
|
|
693
|
-
config:
|
|
695
|
+
config: Ue.value,
|
|
694
696
|
id: `treemap_legend_${h.value}`,
|
|
695
697
|
onClickMarker: o[1] || (o[1] = ({ legend: l }) => ke(l))
|
|
696
698
|
}, {
|
|
@@ -699,7 +701,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
699
701
|
onClick: (g) => ke(l),
|
|
700
702
|
style: V(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
701
703
|
}, [
|
|
702
|
-
|
|
704
|
+
ze(Y(l.name) + ": " + Y(b(ae)(
|
|
703
705
|
e.value.style.chart.layout.labels.formatter,
|
|
704
706
|
l.value,
|
|
705
707
|
b(K)({
|
|
@@ -710,8 +712,8 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
710
712
|
}),
|
|
711
713
|
{ datapoint: l }
|
|
712
714
|
)) + " ", 1),
|
|
713
|
-
f.value.includes(l.id) ? (m(), k("span",
|
|
714
|
-
], 12,
|
|
715
|
+
f.value.includes(l.id) ? (m(), k("span", Gt, " ( - % ) ")) : (m(), k("span", Ut, " (" + Y(isNaN(l.value / U.value) ? "-" : (l.value / U.value * 100).toFixed(e.value.style.chart.legend.roundingPercentage)) + "%) ", 1))
|
|
716
|
+
], 12, Et)
|
|
715
717
|
]),
|
|
716
718
|
_: 1
|
|
717
719
|
}, 8, ["legendSet", "config", "id"])) : _(t.$slots, "legend", {
|
|
@@ -719,7 +721,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
719
721
|
legend: Ce.value
|
|
720
722
|
}, void 0, !0)
|
|
721
723
|
], 512),
|
|
722
|
-
|
|
724
|
+
Oe(ft, {
|
|
723
725
|
show: D.value.showTooltip && v.value,
|
|
724
726
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
725
727
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -732,7 +734,7 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
732
734
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
733
735
|
parent: p.value,
|
|
734
736
|
content: S.value,
|
|
735
|
-
isCustom: b(
|
|
737
|
+
isCustom: b(Le)(e.value.style.chart.tooltip.customFormat)
|
|
736
738
|
}, {
|
|
737
739
|
"tooltip-before": T(() => [
|
|
738
740
|
_(t.$slots, "tooltip-before", q(j({ ...re.value })), void 0, !0)
|
|
@@ -772,19 +774,19 @@ const zt = (a) => (Qe("data-v-9e17b718"), a = a(), et(), a), It = ["id"], Pt = [
|
|
|
772
774
|
O("div", {
|
|
773
775
|
innerHTML: l,
|
|
774
776
|
style: { display: "flex", "align-items": "center" }
|
|
775
|
-
}, null, 8,
|
|
777
|
+
}, null, 8, Xt)
|
|
776
778
|
]),
|
|
777
779
|
td: T(({ td: l }) => [
|
|
778
|
-
|
|
780
|
+
ze(Y(l.name || l), 1)
|
|
779
781
|
]),
|
|
780
782
|
_: 1
|
|
781
783
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
782
784
|
]),
|
|
783
785
|
_: 1
|
|
784
786
|
}, 8, ["config"])) : B("", !0)
|
|
785
|
-
], 14,
|
|
787
|
+
], 14, Pt));
|
|
786
788
|
}
|
|
787
|
-
},
|
|
789
|
+
}, rl = /* @__PURE__ */ kt(qt, [["__scopeId", "data-v-f7f2df00"]]);
|
|
788
790
|
export {
|
|
789
|
-
|
|
791
|
+
rl as default
|
|
790
792
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D09qCApg.cjs"),ue=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-Bjrh7khe.cjs"),se=require("./usePrinter-DdsPm5a4.cjs"),$e=require("./Tooltip-CPATjuur.cjs"),ie=require("./Legend-Dhm9_peB.cjs"),Se=require("./vue-ui-skeleton-CAlTn_Cg.cjs"),Ve=require("./BaseIcon-dYWMubrH.cjs"),Te=require("./vue-ui-accordion-BAHX7KzB.cjs"),ce=require("./useNestedProp-Bwd7mK1Z.cjs"),Be=require("./PackageVersion-BkgJVmj1.cjs"),Ee=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Le=["id"],ze=["onClick"],Pe=["xmlns","viewBox"],De=["id"],Fe=["stop-color"],Me=["stop-color"],Ie=["x","y","width","height","fill","rx"],Oe=["x","y","width","height","fill","rx","stroke","stroke-width"],Re=["x2","y1","y2","stroke","stroke-width"],qe=["x1","x2","y1","y2","stroke","stroke-width"],He=["x","y","text-anchor","font-size","fill","font-weight"],Xe=["x","y","font-size","fill","font-weight"],Ae=["x","y","font-size","fill","font-weight"],Ue=["x","y","font-size","fill","font-weight"],je=["y","width","height","fill","onMouseenter"],Ge={key:4,class:"vue-data-ui-watermark"},We=["onClick"],Ye={style:"width:100%;padding-top: 36px;position:relative"},Ke={class:"vue-ui-data-table"},Je={key:0},Qe={style:{width:"100%"}},Ze=["data-cell"],et={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tt=["data-cell"],lt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},at=["data-cell"],ot={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nt=["data-cell"],rt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ut=["data-cell"],st={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},it=["data-cell"],ct={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},dt=["data-cell"],vt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ht={__name:"vue-ui-vertical-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(de,{expose:ve,emit:he}){const y=de;e.useCssVars(a=>({"3d035ab4":a.tdo}));const{vue_ui_vertical_bar:pe}=n.useConfig(),B=e.computed(()=>!!y.dataset&&y.dataset.length),_=e.ref(n.createUid()),ye=e.ref(null),P=e.ref(!1),D=e.ref(""),E=e.ref(0),ge=e.ref(null),R=e.ref(0),$=e.ref(null),q=e.ref(null),F=e.ref(null),H=e.ref(0),M=e.ref(0),t=e.computed({get:()=>X(),set:a=>a});function X(){const a=ce.useNestedProp({userConfig:y.config,defaultConfig:pe});return a.theme?{...ce.useNestedProp({userConfig:n.themes.vue_ui_vertical_bar[a.theme]||y.config,defaultConfig:a}),customPalette:n.themePalettes[a.theme]||n.palette}:a}e.watch(()=>y.config,a=>{t.value=X(),J(),H.value+=1,M.value+=1,s.value=t.value.style.chart.layout.bars.height,c.value=t.value.style.chart.layout.bars.gap},{deep:!0}),e.watch(()=>y.dataset,z,{deep:!0});const{isPrinting:A,isImaging:U,generatePdf:j,generateImage:G}=se.usePrinter({elementId:`vue-ui-vertical-bar_${_.value}`,fileName:t.value.style.chart.title.text||"vue-ui-vertical-bar"}),W=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),Y=e.ref(null),K=e.ref(!1),fe=e.computed(()=>t.value.table.responsiveBreakpoint),L=e.ref(null);e.onMounted(()=>{J()});function J(){if(n.objectIsEmpty(y.dataset)&&n.error({componentName:"VueUiVerticalBar",type:"dataset"}),E.value=y.dataset.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0),be(),t.value.responsive){const a=ue.throttle(()=>{const{width:o,height:l}=ue.useResponsive({chart:$.value,title:t.value.style.chart.title.text?q.value:null,legend:t.value.style.chart.legend.show?F.value:null});ee.value=o,s.value=l/E.value-c.value*2});L.value=new ResizeObserver(a),L.value.observe($.value.parentNode)}}e.onBeforeUnmount(()=>{L.value&&L.value.disconnect()});function be(){new ResizeObserver(o=>{o.forEach(l=>{K.value=l.contentRect.width<fe.value})}).observe(Y.value)}const p=e.ref({showTable:t.value.table.show,sortDesc:t.value.style.chart.layout.bars.sort==="desc",showTooltip:t.value.style.chart.tooltip.show}),Q=e.computed(()=>p.value.sortDesc),C=e.computed(()=>(y.dataset.forEach((a,o)=>{!a.value&&!a.children&&n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`value (index ${o})`}),a.children&&(n.objectIsEmpty(a.children)?n.error({componentName:"VueUiVerticalBar",type:"datasetAttributeEmpty",property:`children (index ${o})`}):a.children.forEach((l,r)=>{[null,void 0].includes(l.name)&&n.error({componentName:"VueUiVerticalBar",type:"datasetSerieAttribute",property:"name",key:"children",index:r})}))}),y.dataset.map((a,o)=>{const l=`vertical_parent_${o}_${_.value}`,r=a.children&&a.children.length>0,v=n.checkNaN(a.value?a.value:r?a.children.map(h=>h.value||0).reduce((h,m)=>h+m,0):0),i=v>=0?1:-1;return{...a,id:l,shape:"square",opacity:f.value.includes(l)?.5:1,value:Math.abs(v),sign:i,hasChildren:r,isChild:!1,segregate:()=>S(l),isSegregated:f.value.includes(l),color:n.convertColorToHex(a.color)||W.value[o]||n.palette[o]||n.palette[o%n.palette.length],children:!a.children||!a.children.length?[]:a.children.toSorted((h,m)=>Q.value?m.value-h.value:h.value-m.value).map((h,m)=>({...h,value:n.checkNaN(Math.abs(h.value)),sign:h.value>=0?1:-1,isChild:!0,parentId:l,parentName:a.name,parentValue:v,parentSign:i,id:`vertical_child_${o}_${m}_${_.value}`,childIndex:m,color:n.convertColorToHex(h.color)||n.convertColorToHex(a.color)||W.value[o]||n.palette[o]||n.palette[o%n.palette.length]})).map((h,m)=>({...h,isFirstChild:m===0,isLastChild:m===a.children.length-1}))}}).toSorted((a,o)=>Q.value?o.value-a.value:a.value-o.value))),Z=e.computed(()=>({cy:"vertical-bar-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),s=e.ref(t.value.style.chart.layout.bars.height),c=e.ref(t.value.style.chart.layout.bars.gap),me=e.computed(()=>(s.value+c.value)*E.value),ee=e.ref(512),d=e.computed(()=>({width:ee.value,height:me.value,padding:{top:12,left:128+t.value.style.chart.layout.bars.offsetX,right:64+t.value.style.chart.layout.bars.paddingRight,bottom:12}})),u=e.computed(()=>({fullHeight:d.value.padding.top+d.value.padding.bottom+d.value.height,top:d.value.padding.top,left:d.value.padding.left,right:d.value.width-d.value.padding.right,bottom:d.value.padding.top+d.value.height,width:d.value.width-(d.value.padding.left+d.value.padding.right)}));function z(){E.value=x.value.flatMap(a=>a.children&&a.children.length>0?a.children.length:1).reduce((a,o)=>a+o,0)}const f=e.ref([]);function S(a){f.value.includes(a)?f.value=f.value.filter(o=>o!==a):f.value.push(a),z(),he("selectLegend",x.value)}const x=e.computed(()=>C.value.filter(a=>!f.value.includes(a.id))),b=e.computed(()=>x.value.map(a=>Math.abs(a.value)).reduce((a,o)=>a+o,0));function te(a,o=!1,l=0){return o?n.dataLabel({v:n.checkNaN(Math.abs(a)/b.value*100),s:"%",r:l}):Math.abs(a)/b.value}const N=e.computed(()=>x.value.flatMap(a=>a.hasChildren?a.children:a)),w=e.computed(()=>N.value.map(a=>a.sign).includes(-1)),ke=e.computed(()=>Math.max(...x.value.flatMap(a=>a.children&&a.children.length?Math.max(...a.children.map(o=>o.value)):a.value)));function k(a){const o=a/ke.value;return u.value.width/(w.value?2:1)*o}function _e(a){return k(a)+u.value.left}function V(a,o){const l=x.value.find(i=>i.id===a.parentId),r=u.value.top+(c.value+s.value)*o,v=l.children.length*(c.value+s.value);return{y:r+v/2-t.value.style.chart.layout.bars.parentLabels.fontSize,name:l.name,value:[void 0,NaN,null].includes(l.value)?"":l.sign===1?l.value:-l.value,percentageToTotal:isNaN(l.value/b.value)?"":te(l.value,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),sign:l.sign}}function Ce(){return x.value}const I=e.ref(null),O=e.ref(null);function xe(a,o){O.value={datapoint:a,seriesIndex:o,series:C.value,config:t.value},P.value=!0,I.value=a.id;let l="";const r=a.isChild?a.parentName:a.name,v=a.isChild?a.name:"",i=t.value.style.chart.tooltip.customFormat;n.isFunction(i)&&n.functionReturnsString(()=>i({datapoint:a,series:C.value,config:t.value,seriesIndex:o}))?D.value=i({datapoint:a,series:C.value,config:t.value,seriesIndex:o}):(l+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
2
|
+
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${r}</div>
|
|
3
|
+
${v?`<div>${v}</div>`:""}
|
|
4
|
+
</div>`,t.value.style.chart.tooltip.showValue&&(l+=`<div>${t.value.translations.value}: <b>${n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,a.sign===1?a.value:-a.value,n.dataLabel({p:t.value.style.chart.tooltip.prefix,v:a.sign===1?a.value:-a.value,s:t.value.style.chart.tooltip.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}</b></div>`),t.value.style.chart.tooltip.showPercentage&&(l+=`<div>${t.value.translations.percentageToTotal} : <b>${n.dataLabel({v:Math.abs(a.value)/b.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`,a.isChild&&(l+=`<div>${t.value.translations.percentageToSerie}: <b>${n.dataLabel({v:Math.abs(a.value)/Math.abs(a.parentValue)*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`)),D.value=`<div style="text-align:left">${l}</div>`)}function le(a,o,l,r){if(!t.value.style.chart.layout.bars.dataLabels.value.show)return"";const v=n.applyDataLabel(t.value.style.chart.layout.bars.dataLabels.value.formatter,n.checkNaN(r===-1&&a>=0?-a:a),n.dataLabel({p:t.value.style.chart.layout.bars.dataLabels.value.prefix,v:n.checkNaN(r===-1&&a>=0?-a:a),s:t.value.style.chart.layout.bars.dataLabels.value.suffix,r:t.value.style.chart.layout.bars.dataLabels.value.roundingValue}),{datapoint:o,seriesIndex:l}),i=`(${te(a,!0,t.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;return`${v}${t.value.style.chart.layout.bars.dataLabels.percentage.show?` ${i}`:""}`}const g=e.computed(()=>{const a=[t.value.translations.parentName,t.value.translations.value,t.value.translations.percentageToTotal,t.value.translations.childName,t.value.translations.value,t.value.translations.percentageToSerie,t.value.translations.percentageToTotal],o=N.value.map(l=>l.isChild?l.isFirstChild?{color:l.color,parentName:l.parentName,parentValue:l.parentValue,percentageToTotal:l.parentValue/b.value,childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/b.value}:{color:"",parentName:"",parentValue:"",percentageToTotal:"",childName:l.name,childValue:l.sign===1?l.value:-l.value,childPercentageToParent:Math.abs(l.value)/Math.abs(l.parentValue),childPercentageToTotal:Math.abs(l.value)/b.value}:{color:l.color,parentName:l.name,parentValue:l.sign===1?l.value:-l.value,percentageToTotal:Math.abs(l.value)/b.value,childName:"",childValue:"",childPercentageToParent:"",childPercentageToTotal:""});return{head:a,body:o}});function ae(){const a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=g.value.head,l=g.value.body.map(i=>[i.parentName,i.parentValue,i.percentageToTotal,i.childName,i.childValue,i.childPercentageToParent,i.childPercentageToTotal]),r=a.concat([o]).concat(l),v=n.createCsvContent(r);n.downloadCsv({csvContent:v,title:t.value.style.chart.title.text||"vue-ui-vertical-bar"})}const T=e.ref(!1);function Ne(a){T.value=a,R.value+=1}function oe(){p.value.showTable=!p.value.showTable}function ne(){p.value.sortDesc=!p.value.sortDesc,z()}function re(){p.value.showTooltip=!p.value.showTooltip}return ve({getData:Ce,recalculateHeight:z,generatePdf:j,generateCsv:ae,generateImage:G,toggleTable:oe,toggleSort:ne,toggleTooltip:re}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-vertical-bar ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"verticalBarChart",ref:$,id:`vue-ui-vertical-bar_${_.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:q,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(we._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"vertical-bar-div-title",...t.value.style.chart.title},subtitle:{cy:"vertical-bar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&B.value?(e.openBlock(),e.createBlock(se.UserOptions,{ref_key:"details",ref:ye,key:`user_options_${R.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(A),uid:_.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasSort:t.value.userOptions.buttons.sort,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:T.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:$.value,position:t.value.userOptions.position,onToggleFullscreen:Ne,onGeneratePdf:e.unref(j),onGenerateCsv:ae,onGenerateImage:e.unref(G),onToggleTable:oe,onToggleSort:ne,onToggleTooltip:re},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,a.$slots.optionSort?{name:"optionSort",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionSort",{},void 0,!0)]),key:"6"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasSort","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(ie.Legend,{key:`legend_top_${M.value}`,legendSet:C.value,config:Z.value,onClickMarker:o[0]||(o[0]=({legend:l})=>S(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:v=>S(l.id),style:e.normalizeStyle(`opacity:${f.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,ze)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),B.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${u.value.fullHeight<=0?10:u.value.fullHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Be._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`vertical_bar_gradient_${_.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Fe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.03),100-t.value.style.chart.layout.bars.gradientIntensity)},null,8,Me)],8,De))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:k(l.value)<=0?1e-4:k(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(k(l.value)<=0?1e-4:k(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.underlayerColor,rx:t.value.style.chart.layout.bars.borderRadius,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Ie)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:e.unref(n.checkNaN)(w.value?u.value.left+u.value.width/2-(l.sign===1?0:k(l.value)<=0?1e-4:k(l.value)):u.value.left),y:u.value.top+(c.value+s.value)*r,width:e.unref(n.checkNaN)(k(l.value)<=0?1e-4:k(l.value)),height:s.value<=0?1e-4:s.value,fill:t.value.style.chart.layout.bars.useGradient?`url(#vertical_bar_gradient_${_.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.bars.fillOpacity),rx:t.value.style.chart.layout.bars.borderRadius,stroke:t.value.style.chart.layout.bars.useStroke?l.color:"none","stroke-width":t.value.style.chart.layout.bars.useStroke?t.value.style.chart.layout.bars.strokeWidth:0,class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Oe),(!l.isChild||l.isLastChild)&&t.value.style.chart.layout.separators.show&&r!==N.value.length-1?(e.openBlock(),e.createElementBlock("line",{key:0,x1:0,x2:u.value.left,y1:s.value+c.value/2+u.value.top+(c.value+s.value)*r,y2:s.value+c.value/2+u.value.top+(c.value+s.value)*r,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,Re)):e.createCommentVNode("",!0),w.value&&t.value.style.chart.layout.separators.show?(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.left+u.value.width/2,x2:u.value.left+u.value.width/2,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.chart.layout.separators.color,"stroke-width":t.value.style.chart.layout.separators.strokeWidth,"stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:w.value?u.value.left+u.value.width/2+(l.sign===1?-12:12)+(l.sign===1?-t.value.style.chart.layout.bars.dataLabels.offsetX:t.value.style.chart.layout.bars.dataLabels.offsetX):_e(l.value)+3+t.value.style.chart.layout.bars.dataLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.dataLabels.fontSize/2,"text-anchor":!w.value||l.sign===-1?"start":"end","font-size":t.value.style.chart.layout.bars.dataLabels.fontSize,fill:t.value.style.chart.layout.bars.dataLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal"},e.toDisplayString(le(l.value,l,r,l.sign)),9,He),(l.isChild||!l.hasChildren)&&t.value.style.chart.layout.bars.nameLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"end",x:u.value.left-3+t.value.style.chart.layout.bars.nameLabels.offsetX,y:u.value.top+(c.value+s.value)*r+s.value/2+t.value.style.chart.layout.bars.nameLabels.fontSize/2,"font-size":t.value.style.chart.layout.bars.nameLabels.fontSize,fill:t.value.style.chart.layout.bars.nameLabels.color,"font-weight":t.value.style.chart.layout.bars.nameLabels.bold?"bold":"normal"},e.toDisplayString(l.name),9,Xe)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:V(l,r).y,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.parentLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(V(l,r).name),9,Ae)):e.createCommentVNode("",!0),l.isChild&&l.childIndex===0&&t.value.style.chart.layout.bars.parentLabels.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:3+t.value.style.chart.layout.bars.parentLabels.offsetX,y:V(l,r).y+t.value.style.chart.layout.bars.parentLabels.fontSize+6,"font-size":t.value.style.chart.layout.bars.parentLabels.fontSize,fill:t.value.style.chart.layout.bars.parentLabels.color,"font-weight":t.value.style.chart.layout.bars.dataLabels.bold?"bold":"normal","text-anchor":"start"},e.toDisplayString(le(V(l,r).value),V(l,r),r,l.parentSign||l.sign),9,Ue)):e.createCommentVNode("",!0),e.createElementVNode("rect",{"data-cy-trap":"",x:0,y:u.value.top+(c.value+s.value)*r-c.value/2,width:d.value.width<=0?1e-4:d.value.width,height:s.value+c.value<=0?1e-4:s.value+c.value,fill:I.value===l.id?e.unref(n.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity):"transparent",onMouseenter:v=>xe(l,r),onMouseleave:o[1]||(o[1]=v=>{ge.value=null,P.value=!1,I.value=null})},null,40,je)]))),256)),e.renderSlot(a.$slots,"svg",{svg:d.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ge,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Se.default,{key:5,config:{type:"verticalBar",style:{backgroundColor:t.value.style.chart.backgroundColor,verticalBar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),t.value.style.chart.legend.show&&t.value.style.chart.legend.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"chartLegend",ref:F},[(e.openBlock(),e.createBlock(ie.Legend,{key:`legend_bottom_${M.value}`,legendSet:C.value,config:Z.value,onClickMarker:o[2]||(o[2]=({legend:l})=>S(l.id))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:v=>S(l.id),style:e.normalizeStyle(`opacity:${f.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.bars.dataLabels.value.formatter,l.value,e.unref(n.dataLabel)({p:t.value.style.chart.legend.prefix,v:l.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:r})),13,We)]),_:1},8,["legendSet","config"]))],512)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"legend",{legend:C.value},void 0,!0),e.createVNode($e._sfc_main,{show:p.value.showTooltip&&P.value&&f.value.length<y.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:$.value,content:D.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),B.value?(e.openBlock(),e.createBlock(Te.default,{key:7,hideDetails:"",config:{open:p.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:Y,class:"vue-ui-vertical-bar-table"},[e.createElementVNode("div",Ye,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:o[3]||(o[3]=l=>p.value.showTable=!1),onKeypress:o[4]||(o[4]=e.withKeys(l=>p.value.showTable=!1,["enter"]))},[e.createVNode(Ve.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%","container-type":"inline-size"},class:e.normalizeClass({"vue-ui-responsive":K.value})},[e.createElementVNode("table",Ke,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.title.text)+" ",1),t.value.style.chart.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Je,e.toDisplayString(t.value.style.chart.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},[e.createElementVNode("div",Qe,e.toDisplayString(l),1)],4))),256))],4),e.createElementVNode("tr",null,[e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"∑ "+e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(isNaN(b.value)?"":b.value.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),5),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)},"100%",4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4),e.createElementVNode("th",{style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color};outline:${t.value.table.th.outline}`)},null,4)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.body,(l,r)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":r%2===0,"vue-ui-data-table__tbody__row-odd":r%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline};font-variant-numeric: tabular-nums;`),"data-cell":g.value.head[0]??""},[e.createElementVNode("div",et,[l.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`color:${l.color};margin-right:3px`)},"⬤",4)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(l.parentName),1)])],12,Ze),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[1]??""},[e.createElementVNode("div",lt,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.parentValue)?"":l.parentValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,tt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[2]??""},[e.createElementVNode("div",ot,e.toDisplayString(["",NaN,void 0].includes(l.percentageToTotal)?"":`${(l.percentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,at),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[3]??""},[e.createElementVNode("div",rt,e.toDisplayString(l.childName),1)],12,nt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[4]??""},[e.createElementVNode("div",st,e.toDisplayString(t.value.table.td.prefix)+e.toDisplayString(["",NaN,void 0].includes(l.childValue)?"":l.childValue.toFixed(t.value.table.td.roundingValue))+e.toDisplayString(t.value.table.td.suffix),1)],12,ut),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[5]??""},[e.createElementVNode("div",ct,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToParent)?"":`${(l.childPercentageToParent*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,it),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":g.value.head[6]??""},[e.createElementVNode("div",vt,e.toDisplayString(["",NaN,void 0].includes(l.childPercentageToTotal)?"":`${(l.childPercentageToTotal*100).toFixed(t.value.table.td.roundingPercentage)}%`),1)],12,dt)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Le))}},pt=Ee._export_sfc(ht,[["__scopeId","data-v-008d2191"]]);exports.default=pt;
|