vue-data-ui 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DvG07exK.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-O7900pGp.js → BaseDraggableDialog-B2BQC0-h.js} +2 -2
- package/dist/{BaseIcon-DHtro8us.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{ColorPicker-CpWzNn4r.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/{DataTable-DJjA2_wf.js → DataTable-BAf4Obr9.js} +2 -2
- package/dist/{Legend-2-dC7DVb.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DHeE4Yuv.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-DU12WH3O.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-B7QEDgx4.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-Dj2Hl33H.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-D99HytqX.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-B-wL07rI.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-Dq2_Z9kR.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-Y219DXZO.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-BuGfCdAY.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-BhciAKaM.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-JOqdlnUs.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-CDQbCd41.js → index-BKQqb9lF.js} +1 -1
- package/dist/{pdf-Dd-LIJqz.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-BPEHGiYX.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-Bnl1YeUU.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DcNYz3cZ.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BNIFAeN-.js → vue-ui-3d-bar-DBeWmnvH.js} +6 -6
- package/dist/{vue-ui-accordion-Bf_LHFFX.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bz-l1afR.js → vue-ui-age-pyramid-rZFdUsgz.js} +6 -6
- package/dist/{vue-ui-annotator-BcfRH2BF.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-DK1aM9fX.js → vue-ui-bullet-DhJf9mvK.js} +7 -7
- package/dist/{vue-ui-candlestick-D6mMjvtu.js → vue-ui-candlestick-CGVtDKqZ.js} +7 -7
- package/dist/{vue-ui-carousel-table-Vp5f238W.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-BKc4v-lf.js → vue-ui-chestnut-BXnSxoXB.js} +398 -405
- package/dist/{vue-ui-chord-CquhRjf0.js → vue-ui-chord-DH_MwAKX.js} +8 -8
- package/dist/{vue-ui-circle-pack-D6zLgxa3.js → vue-ui-circle-pack-Cx_E1R63.js} +6 -6
- package/dist/{vue-ui-cursor-DIXb2S93.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DmiriAK7.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-CLAIo9gW.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-C8h_tCSO.js → vue-ui-donut-CsEtKJJD.js} +8 -8
- package/dist/{vue-ui-donut-evolution-C3r0YhKz.js → vue-ui-donut-evolution-DD7o-CxF.js} +8 -8
- package/dist/{vue-ui-dumbbell-D-t4M00E.js → vue-ui-dumbbell-DfPYl3fu.js} +7 -7
- package/dist/{vue-ui-flow-D7_D_UNm.js → vue-ui-flow-CSTTZHwg.js} +7 -7
- package/dist/{vue-ui-funnel-B0QOfZRz.js → vue-ui-funnel-C-NUZqIo.js} +6 -6
- package/dist/{vue-ui-galaxy-Ccw5uNes.js → vue-ui-galaxy-BwsZnU6T.js} +7 -7
- package/dist/{vue-ui-gauge-DvW7nFmK.js → vue-ui-gauge-D9MUneq0.js} +7 -7
- package/dist/{vue-ui-gizmo-WGQxvGPy.js → vue-ui-gizmo-Dnzs9wSf.js} +3 -3
- package/dist/{vue-ui-heatmap-BQkLujyp.js → vue-ui-heatmap-CYaQIhy8.js} +364 -373
- package/dist/{vue-ui-history-plot-eU33r_Ot.js → vue-ui-history-plot-DMTFzl-_.js} +7 -7
- package/dist/{vue-ui-kpi-CKg2i71M.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BmkGQsm_.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/{vue-ui-molecule-Dlu0hjSg.js → vue-ui-molecule-DaN5lroq.js} +5 -5
- package/dist/{vue-ui-mood-radar-DQaxfw9R.js → vue-ui-mood-radar-tM0mmZh8.js} +7 -7
- package/dist/{vue-ui-nested-donuts-Djj9Aw_i.js → vue-ui-nested-donuts-RB4r6beI.js} +7 -7
- package/dist/{vue-ui-onion-ZgsErXis.js → vue-ui-onion-CxDozHg3.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-B5fB22Jc.js → vue-ui-parallel-coordinate-plot-CK9nNExU.js} +8 -8
- package/dist/{vue-ui-quadrant-CMevCtXH.js → vue-ui-quadrant-C7tLJYn7.js} +8 -8
- package/dist/{vue-ui-quick-chart-DcparKSX.js → vue-ui-quick-chart-MUBAkrHb.js} +6 -6
- package/dist/{vue-ui-radar-DFbxoKCK.js → vue-ui-radar-Br4K80I9.js} +8 -8
- package/dist/{vue-ui-rating-ZUpxCWrk.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-eNKJY4Sx.js → vue-ui-relation-circle-CPQjAy1g.js} +7 -7
- package/dist/{vue-ui-ridgeline-D4shpQZd.js → vue-ui-ridgeline-C2M_Cjlh.js} +8 -8
- package/dist/{vue-ui-rings-TdTHMbsa.js → vue-ui-rings-DEru-cWN.js} +8 -8
- package/dist/{vue-ui-scatter-CVuV9ljU.js → vue-ui-scatter-CJKkiKle.js} +8 -8
- package/dist/{vue-ui-skeleton-CFxBU2-p.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-Har3B3aQ.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-FPk-XEwI.js → vue-ui-spark-trend-9BFkkC0u.js} +3 -3
- package/dist/{vue-ui-sparkbar-V3eJ0w0t.js → vue-ui-sparkbar-RYAThoA4.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DKTGkWnJ.js → vue-ui-sparkgauge-DkPlmgMF.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DJsgFwHs.js → vue-ui-sparkhistogram-6EkCyYRF.js} +4 -4
- package/dist/{vue-ui-sparkline-Dmrm5SL5.js → vue-ui-sparkline-Bl3nj8zd.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B0Pl7VMI.js → vue-ui-sparkstackbar-B88lA7iy.js} +3 -3
- package/dist/{vue-ui-stackbar-CNsgBPhj.js → vue-ui-stackbar-Csj7NhT6.js} +9 -9
- package/dist/{vue-ui-strip-plot-CYAWwYOM.js → vue-ui-strip-plot-yY9NsUUI.js} +7 -7
- package/dist/{vue-ui-table-Dn6H98rP.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-COI9LRqC.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B7Gg5FfJ.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-Bgynq5El.js → vue-ui-thermometer-C3fKamV-.js} +7 -7
- package/dist/{vue-ui-timer-CXng51v5.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-Cy1U3hO1.js → vue-ui-tiremarks-BB-KAkF7.js} +6 -6
- package/dist/{vue-ui-treemap-BsvIvRmE.js → vue-ui-treemap-GrXkD_3Z.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DHqWeDIf.js → vue-ui-vertical-bar-Mmz6u4aX.js} +188 -193
- package/dist/{vue-ui-waffle-D1Mscj3N.js → vue-ui-waffle-DzPVRUOA.js} +8 -8
- package/dist/{vue-ui-wheel-DpV-N5tF.js → vue-ui-wheel-idRCvS5t.js} +6 -6
- package/dist/{vue-ui-word-cloud-MaNQ3Kdk.js → vue-ui-word-cloud-B2641uNP.js} +6 -6
- package/dist/{vue-ui-world-DYz6zw3x.js → vue-ui-world-D6s5Eph8.js} +6 -6
- package/dist/{vue-ui-xy-B1nqNbzw.js → vue-ui-xy-BKTGSvfU.js} +10 -10
- package/dist/{vue-ui-xy-canvas-D4wd-Asd.js → vue-ui-xy-canvas-BOQyxVRl.js} +10 -10
- package/package.json +1 -1
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { useCssVars as ct, defineAsyncComponent as H, computed as k, ref as z, toRefs as dt, watch as ye, onMounted as vt, nextTick as he, createElementBlock as o, openBlock as a, unref as u, normalizeStyle as y, normalizeClass as w, createBlock as le, createCommentVNode as h, renderSlot as F, createSlots as Re, withCtx as P, normalizeProps as ae, guardReactiveProps as oe, createVNode as fe, createElementVNode as n, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as Z, resolveDynamicComponent as yt, mergeProps as ht, withKeys as ft } from "vue";
|
|
2
|
+
import { u as bt, c as pt, t as gt, a as _t, p as R, b as xt, d as mt, g as be, f as se, e as pe, o as kt, X as wt, s as A, x as Oe, k as E, i as S, F as Ve, m as Be, n as Ct, q as J, r as O, v as $t, w as Tt } from "./index-BKQqb9lF.js";
|
|
3
|
+
import { u as zt, B as At } from "./BaseScanner-BgWxam9d.js";
|
|
4
|
+
import { u as St } from "./usePrinter-BzuXiubT.js";
|
|
5
|
+
import { u as Me } from "./useNestedProp-aBOhgs4U.js";
|
|
6
|
+
import { u as Nt } from "./useTableResponsive-Cbx-ACcP.js";
|
|
7
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Lt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import It from "./img-gBDz7xQQ.js";
|
|
10
|
+
import { _ as Pt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Rt = ["id"], Ot = {
|
|
11
12
|
key: 1,
|
|
12
13
|
ref: "noTitle",
|
|
13
14
|
class: "vue-data-ui-no-title-space",
|
|
14
15
|
style: "height:36px; width: 100%;background:transparent"
|
|
15
|
-
},
|
|
16
|
+
}, Vt = ["xmlns", "viewBox"], Bt = ["width", "height"], Mt = { key: 1 }, jt = ["fill", "font-weight", "font-size", "x", "y"], Dt = ["fill", "font-weight", "font-size", "x", "y"], Xt = ["id"], Gt = ["stop-color"], Et = ["stop-color"], Ut = ["id"], Wt = ["stop-color"], Yt = ["stop-color"], qt = ["id"], Ht = ["stop-color"], Kt = ["stop-color"], Zt = ["stop-color"], Jt = ["id"], Qt = ["stop-color"], el = ["stop-color"], tl = ["stop-color"], ll = ["id"], al = ["stop-color"], ol = ["stop-color"], sl = ["stop-color"], ul = { key: 2 }, nl = ["x", "y", "font-size", "font-weight", "fill"], rl = ["x", "y", "font-size", "font-weight", "fill"], il = ["id"], cl = ["stop-color"], dl = ["stop-color"], vl = ["d", "stroke", "fill"], yl = ["cx", "cy", "r", "fill"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], fl = { key: 3 }, bl = ["x", "y", "font-size", "fill", "onClick"], pl = { key: 0 }, gl = ["x", "y", "fill", "font-size", "font-weight"], _l = ["x", "y", "height", "width", "fill", "rx", "onClick"], xl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], ml = { key: 4 }, kl = ["x", "y", "fill", "font-size", "onClick"], wl = ["d", "stroke"], Cl = ["fill", "cx", "cy", "r", "onClick"], $l = { key: 5 }, Tl = ["x", "y", "font-size", "font-weight", "fill"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Al = ["y", "height", "width"], Sl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Nl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Fl = {
|
|
16
17
|
viewBox: "0 0 20 20",
|
|
17
18
|
height: "16",
|
|
18
19
|
width: "16"
|
|
19
|
-
},
|
|
20
|
+
}, Ll = ["fill"], Il = { key: 7 }, Pl = ["y", "height", "width"], Rl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Ol = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Vl = {
|
|
20
21
|
viewBox: "0 0 20 20",
|
|
21
22
|
height: "16",
|
|
22
23
|
width: "16"
|
|
23
|
-
},
|
|
24
|
+
}, Bl = ["fill"], Ml = ["cx", "cy", "fill"], jl = ["d", "stroke"], Dl = ["cx", "cy", "fill"], Xl = ["d", "stroke"], Gl = ["cx", "cy", "fill"], El = ["cx", "cy", "fill"], Ul = ["x", "y", "fill", "font-size", "font-weight"], Wl = ["x", "y", "fill", "font-size", "font-weight"], Yl = ["x", "text-anchor", "y", "fill", "font-size"], ql = ["x", "text-anchor", "y", "fill", "font-size"], Hl = ["x", "text-anchor", "y", "fill", "font-size"], Kl = ["x", "text-anchor", "y", "fill", "font-size"], Zl = ["x", "text-anchor", "y", "fill", "font-size"], Jl = ["x", "y", "font-size", "fill"], Ql = ["x", "y", "font-size", "fill"], ea = ["x", "y", "font-size", "fill"], ta = {
|
|
24
25
|
key: 4,
|
|
25
26
|
class: "vue-data-ui-watermark"
|
|
26
|
-
},
|
|
27
|
+
}, la = {
|
|
27
28
|
key: 5,
|
|
28
29
|
ref: "source",
|
|
29
30
|
dir: "auto"
|
|
30
|
-
},
|
|
31
|
+
}, aa = { class: "vue-ui-data-table" }, oa = { key: 0 }, sa = ["data-cell"], ua = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, na = { key: 0 }, ra = { key: 1 }, ia = ["data-cell"], ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, da = { key: 0 }, va = { key: 1 }, ya = ["data-cell"], ha = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, fa = { key: 0 }, ba = { key: 1 }, pa = ["data-cell"], ga = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, _a = { key: 0 }, xa = { key: 1 }, ma = ["data-cell"], ka = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wa = { key: 0 }, Ca = { key: 1 }, $a = ["data-cell"], Ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, za = { key: 0 }, Aa = { key: 1 }, Sa = ["data-cell"], Na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fa = { key: 0 }, La = { key: 1 }, Ia = ["data-cell"], Pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ra = ["data-cell"], Oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Va = ["data-cell"], Ba = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ma = ["data-cell"], ja = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Da = ["data-cell"], Xa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ga = {
|
|
31
32
|
__name: "vue-ui-chestnut",
|
|
32
33
|
props: {
|
|
33
34
|
config: {
|
|
@@ -44,14 +45,14 @@ const Bt = ["id"], Mt = {
|
|
|
44
45
|
}
|
|
45
46
|
},
|
|
46
47
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
47
|
-
setup(
|
|
48
|
-
|
|
49
|
-
"
|
|
48
|
+
setup(je, { expose: De, emit: Xe }) {
|
|
49
|
+
ct((l) => ({
|
|
50
|
+
"2b7313b6": l.tdo
|
|
50
51
|
}));
|
|
51
|
-
const
|
|
52
|
-
...
|
|
52
|
+
const ge = H(() => import("./BaseIcon-DLesaZpW.js")), Ge = H(() => import("./vue-ui-accordion-B5QeV3BK.js")), Ee = H(() => import("./PenAndPaper-B6OvfyHH.js")), Ue = H(() => import("./UserOptions-CsDlFB0L.js")), We = H(() => import("./PackageVersion-Cv_ypT0N.js")), Ye = H(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_chestnut: qe } = bt(), j = je, _e = k(() => !!j.dataset && j.dataset.length), C = z(pt()), U = z(null), He = z(null), xe = z(0), K = z(null), e = z(re()), { loading: me, FINAL_DATASET: ue } = zt({
|
|
53
|
+
...dt(j),
|
|
53
54
|
FINAL_CONFIG: e,
|
|
54
|
-
prepareConfig:
|
|
55
|
+
prepareConfig: re,
|
|
55
56
|
skeletonDataset: [
|
|
56
57
|
{
|
|
57
58
|
name: "_",
|
|
@@ -130,7 +131,7 @@ const Bt = ["id"], Mt = {
|
|
|
130
131
|
]
|
|
131
132
|
}
|
|
132
133
|
],
|
|
133
|
-
skeletonConfig:
|
|
134
|
+
skeletonConfig: gt({
|
|
134
135
|
defaultConfig: e.value,
|
|
135
136
|
userConfig: {
|
|
136
137
|
userOptions: { show: !1 },
|
|
@@ -158,36 +159,36 @@ const Bt = ["id"], Mt = {
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
})
|
|
161
|
-
}), { userOptionsVisible:
|
|
162
|
-
function
|
|
163
|
-
const l =
|
|
162
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: ke, keepUserOptionState: we } = Ft({ config: e.value }), { svgRef: Ce } = Lt({ config: e.value.style.chart.layout.title });
|
|
163
|
+
function re() {
|
|
164
|
+
const l = Me({
|
|
164
165
|
userConfig: j.config,
|
|
165
|
-
defaultConfig:
|
|
166
|
+
defaultConfig: qe
|
|
166
167
|
});
|
|
167
168
|
return l.theme ? {
|
|
168
|
-
...
|
|
169
|
-
userConfig:
|
|
169
|
+
...Me({
|
|
170
|
+
userConfig: xt.vue_ui_chestnut[l.theme] || j.config,
|
|
170
171
|
defaultConfig: l
|
|
171
172
|
}),
|
|
172
|
-
customPalette:
|
|
173
|
+
customPalette: _t[l.theme] || R
|
|
173
174
|
} : l;
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
-
e.value =
|
|
176
|
+
ye(() => j.config, (l) => {
|
|
177
|
+
e.value = re(), ne.value = !e.value.userOptions.showOnChartHover, V.value.showTable = e.value.table.show, Le();
|
|
177
178
|
}, { deep: !0 });
|
|
178
|
-
const { isPrinting:
|
|
179
|
+
const { isPrinting: $e, isImaging: Te, generatePdf: ze, generateImage: Ae } = St({
|
|
179
180
|
elementId: `vue-ui-chestnut_${C.value}`,
|
|
180
181
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
181
182
|
options: e.value.userOptions.print
|
|
182
|
-
}),
|
|
183
|
+
}), Ke = k(() => e.value.userOptions.show), ie = k(() => mt(e.value.customPalette)), V = z({
|
|
183
184
|
showTable: e.value.table.show
|
|
184
185
|
});
|
|
185
|
-
|
|
186
|
+
ye(e, () => {
|
|
186
187
|
V.value = {
|
|
187
188
|
showTable: e.value.table.show
|
|
188
189
|
};
|
|
189
190
|
}, { immediate: !0 });
|
|
190
|
-
const
|
|
191
|
+
const Se = z(null), Ze = k(() => e.value.table.responsiveBreakpoint), i = z({
|
|
191
192
|
gap: 6,
|
|
192
193
|
padding: {
|
|
193
194
|
top: 102,
|
|
@@ -199,7 +200,7 @@ const Bt = ["id"], Mt = {
|
|
|
199
200
|
height: 0,
|
|
200
201
|
branchSize: 32,
|
|
201
202
|
branchStart: 128
|
|
202
|
-
}),
|
|
203
|
+
}), T = k(() => ({
|
|
203
204
|
left: i.value.padding.left,
|
|
204
205
|
top: i.value.padding.top,
|
|
205
206
|
right: i.value.width - i.value.padding.right,
|
|
@@ -207,50 +208,50 @@ const Bt = ["id"], Mt = {
|
|
|
207
208
|
width: i.value.width - (i.value.padding.left + i.value.padding.right),
|
|
208
209
|
height: i.value.height - (i.value.padding.top + i.value.padding.bottom),
|
|
209
210
|
seedX: i.value.padding.left + 64
|
|
210
|
-
})), B = k(() =>
|
|
211
|
-
|
|
211
|
+
})), B = k(() => ue.value.flatMap((l) => (l.branches || []).map((r) => r.value || 0)).reduce((l, r) => l + r, 0)), N = k(() => (ue.value.forEach((l, r) => {
|
|
212
|
+
be({
|
|
212
213
|
datasetObject: l,
|
|
213
214
|
requiredAttributes: ["name", "branches"]
|
|
214
215
|
}).forEach((t) => {
|
|
215
|
-
|
|
216
|
+
se({
|
|
216
217
|
componentName: "VueUiChestnut",
|
|
217
218
|
type: "datasetSerieAttribute",
|
|
218
219
|
property: t,
|
|
219
220
|
index: r,
|
|
220
|
-
debug:
|
|
221
|
+
debug: Q.value
|
|
221
222
|
});
|
|
222
223
|
}), l.branches && l.branches.forEach((t, s) => {
|
|
223
|
-
|
|
224
|
+
be({
|
|
224
225
|
datasetObject: t,
|
|
225
226
|
requiredAttributes: ["name", "value"]
|
|
226
227
|
}).forEach((p) => {
|
|
227
|
-
|
|
228
|
+
se({
|
|
228
229
|
componentName: "VueUiChestnut",
|
|
229
230
|
type: "datasetSerieAttribute",
|
|
230
231
|
property: p,
|
|
231
232
|
index: `${r} - ${s}`,
|
|
232
|
-
debug:
|
|
233
|
+
debug: Q.value
|
|
233
234
|
});
|
|
234
235
|
}), t.breakdown && t.breakdown.forEach((p, b) => {
|
|
235
|
-
|
|
236
|
+
be({
|
|
236
237
|
datasetObject: p,
|
|
237
238
|
requiredAttributes: ["name", "value"]
|
|
238
239
|
}).forEach((f) => {
|
|
239
|
-
|
|
240
|
+
se({
|
|
240
241
|
componentName: "VueUiChestnut",
|
|
241
242
|
type: "datasetSerieAttribute",
|
|
242
243
|
property: f,
|
|
243
244
|
index: `${r} - ${s} - ${b}`,
|
|
244
|
-
debug:
|
|
245
|
+
debug: Q.value
|
|
245
246
|
});
|
|
246
247
|
});
|
|
247
248
|
});
|
|
248
249
|
});
|
|
249
|
-
}),
|
|
250
|
+
}), ue.value.map((l, r) => {
|
|
250
251
|
const t = (l.branches || []).map((s) => s.value || 0).reduce((s, p) => s + p, 0);
|
|
251
252
|
return {
|
|
252
253
|
...l,
|
|
253
|
-
color:
|
|
254
|
+
color: pe(l.color) || ie.value[r] || R[r] || R[r % R.length],
|
|
254
255
|
id: l.id || `root_${r}_${C.value}`,
|
|
255
256
|
type: "root",
|
|
256
257
|
total: t,
|
|
@@ -259,7 +260,7 @@ const Bt = ["id"], Mt = {
|
|
|
259
260
|
...s,
|
|
260
261
|
rootName: l.name,
|
|
261
262
|
rootIndex: r,
|
|
262
|
-
color:
|
|
263
|
+
color: pe(l.color) || ie.value[r] || R[r] || R[r % R.length],
|
|
263
264
|
value: s.value >= 0 ? s.value : 0,
|
|
264
265
|
id: s.id || `branch_${r}_${p}_${C.value}`,
|
|
265
266
|
proportionToRoot: s.value / t,
|
|
@@ -289,44 +290,44 @@ const Bt = ["id"], Mt = {
|
|
|
289
290
|
proportionToTree: b.value / B.value,
|
|
290
291
|
rootIndex: r,
|
|
291
292
|
id: b.id || `nut_${r}_${p}_${f}_${C.value}`,
|
|
292
|
-
color:
|
|
293
|
+
color: pe(b.color) || ie.value[f] || R[f] || R[f % R.length],
|
|
293
294
|
value: b.value >= 0 ? b.value : 0
|
|
294
295
|
}))
|
|
295
296
|
}))
|
|
296
297
|
};
|
|
297
298
|
})));
|
|
298
|
-
function
|
|
299
|
+
function Je() {
|
|
299
300
|
return N.value;
|
|
300
301
|
}
|
|
301
|
-
const W =
|
|
302
|
-
const t =
|
|
302
|
+
const W = Xe, Qe = k(() => N.value.flatMap((l) => l.branches).length), et = k(() => Math.max(...N.value.map((l) => l.branches.map((r) => r.value).reduce((r, t) => r + t, 0)))), tt = k(() => Math.max(...N.value.flatMap((l) => l.branches.map((r) => r.value)))), Ne = k(() => 256 + i.value.padding.left), D = k(() => N.value.sort((l, r) => r.total - l.total).map((l, r) => {
|
|
303
|
+
const t = T.value.height / N.value.length / 2, s = l.total / et.value * (t > 64 ? 64 : t);
|
|
303
304
|
return {
|
|
304
305
|
...l,
|
|
305
|
-
x:
|
|
306
|
-
y:
|
|
306
|
+
x: T.value.seedX,
|
|
307
|
+
y: T.value.top + T.value.height / N.value.length * (r + 1) - (T.value.height / N.value.length / 2 + i.value.gap / 2),
|
|
307
308
|
r: s < i.value.branchSize / 2 ? i.value.branchSize / 2 : s
|
|
308
309
|
};
|
|
309
|
-
})),
|
|
310
|
+
})), lt = k(() => e.value.style.chart.layout.branches.widthRatio <= 0 ? 0.1 : e.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : e.value.style.chart.layout.branches.widthRatio), at = k(() => D.value.flatMap((l) => l.branches)), X = k(() => at.value.sort((l, r) => r.value - l.value).map((l, r) => ({
|
|
310
311
|
...l,
|
|
311
|
-
y1: r * i.value.branchSize +
|
|
312
|
+
y1: r * i.value.branchSize + T.value.top + r * i.value.gap,
|
|
312
313
|
y2: r * i.value.branchSize + i.value.branchSize,
|
|
313
|
-
x1:
|
|
314
|
-
x2: 384 * l.value /
|
|
314
|
+
x1: Ne.value,
|
|
315
|
+
x2: 384 * l.value / tt.value * lt.value + Ne.value
|
|
315
316
|
})));
|
|
316
|
-
function
|
|
317
|
+
function ot(l) {
|
|
317
318
|
const r = D.value.find((t) => t.rootIndex === l.rootIndex);
|
|
318
319
|
return { x: r.x, y: r.y, r: r.r };
|
|
319
320
|
}
|
|
320
|
-
const d =
|
|
321
|
+
const d = z(null), M = z(null), x = z(null), L = z(null);
|
|
321
322
|
function $() {
|
|
322
323
|
d.value = null, x.value = null, L.value = null;
|
|
323
324
|
}
|
|
324
325
|
function I(l) {
|
|
325
326
|
return L.value ? L.value === null ? !0 : l.type === "root" ? l.id === L.value.id : l.rootIndex === L.value.rootIndex : d.value === null && x.value === null ? !0 : l.type === "nut" ? d.value.id === l.id : l.type === "branch" ? x.value.id === l.id : l.type === "root" ? x.value && x.value.rootIndex === l.rootIndex || d.value && d.value.rootIndex === l.rootIndex : !1;
|
|
326
327
|
}
|
|
327
|
-
function
|
|
328
|
-
$(),
|
|
329
|
-
d.value = l, x.value = l, M.value =
|
|
328
|
+
function st(l) {
|
|
329
|
+
$(), he(() => {
|
|
330
|
+
d.value = l, x.value = l, M.value = Be(
|
|
330
331
|
{ series: l.breakdown },
|
|
331
332
|
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
332
333
|
l.y1 + i.value.branchSize / 2,
|
|
@@ -335,43 +336,33 @@ const Bt = ["id"], Mt = {
|
|
|
335
336
|
), W("selectNut", l.breakdown);
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
|
-
function
|
|
339
|
+
function G() {
|
|
339
340
|
d.value = null, M.value = null, W("selectNut", null);
|
|
340
341
|
}
|
|
341
|
-
function
|
|
342
|
+
function ce(l) {
|
|
342
343
|
x.value && x.value.id === l.id ? (x.value = null, $(), W("selectBranch", null)) : ($(), x.value = l, W("selectBranch", l));
|
|
343
344
|
}
|
|
344
|
-
function
|
|
345
|
+
function Fe(l) {
|
|
345
346
|
L.value && L.value.id === l.id ? ($(), W("selectRoot", null)) : ($(), L.value = l, W("selectRoot", l));
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
348
|
+
function ut() {
|
|
349
|
+
return T.value.bottom - (d.value.y1 + 180) < 0 ? 0 : T.value.bottom;
|
|
349
350
|
}
|
|
350
351
|
function Y(l) {
|
|
351
352
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
352
353
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
q.value && q.value.disconnect(), q.value = new ResizeObserver((l) => {
|
|
356
|
-
l.forEach((r) => {
|
|
357
|
-
Ne.value = r.contentRect.width < Qe.value;
|
|
358
|
-
});
|
|
359
|
-
}), de.value && q.value.observe(de.value);
|
|
360
|
-
}
|
|
361
|
-
ft(() => {
|
|
362
|
-
Ie();
|
|
363
|
-
}), bt(() => {
|
|
364
|
-
q.value && q.value.disconnect();
|
|
354
|
+
vt(() => {
|
|
355
|
+
Le();
|
|
365
356
|
});
|
|
366
|
-
const
|
|
367
|
-
function
|
|
368
|
-
|
|
357
|
+
const Q = k(() => e.value.debug);
|
|
358
|
+
function Le() {
|
|
359
|
+
kt(j.dataset) && se({
|
|
369
360
|
componentName: "VueUiChestnut",
|
|
370
361
|
type: "dataset",
|
|
371
|
-
debug:
|
|
362
|
+
debug: Q.value
|
|
372
363
|
});
|
|
373
|
-
const l =
|
|
374
|
-
i.value.height = l
|
|
364
|
+
const l = Qe.value * (i.value.branchSize + i.value.gap) + i.value.padding.top + i.value.padding.bottom;
|
|
365
|
+
i.value.height = l;
|
|
375
366
|
}
|
|
376
367
|
const v = k(() => {
|
|
377
368
|
const l = [
|
|
@@ -390,8 +381,8 @@ const Bt = ["id"], Mt = {
|
|
|
390
381
|
], r = N.value.flatMap((t, s) => t.branches.flatMap((p, b) => p.breakdown.flatMap((f, m) => f.table)));
|
|
391
382
|
return { head: l, body: r };
|
|
392
383
|
});
|
|
393
|
-
function
|
|
394
|
-
|
|
384
|
+
function de(l = null) {
|
|
385
|
+
he(() => {
|
|
395
386
|
const r = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", B.value], [""]], t = v.value.head, s = v.value.body.map((f, m) => [
|
|
396
387
|
v.value.body[m - 1] && v.value.body[m - 1].rootName === f.rootName ? "" : f.rootName,
|
|
397
388
|
v.value.body[m - 1] && v.value.body[m - 1].rootName === f.rootName ? "" : f.rootValue,
|
|
@@ -405,24 +396,24 @@ const Bt = ["id"], Mt = {
|
|
|
405
396
|
f.nutToBranch,
|
|
406
397
|
f.nutToRoot,
|
|
407
398
|
f.nutToTotal
|
|
408
|
-
]), p = r.concat([t]).concat(s), b =
|
|
409
|
-
l ? l(b) :
|
|
399
|
+
]), p = r.concat([t]).concat(s), b = $t(p);
|
|
400
|
+
l ? l(b) : Tt({ csvContent: b, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
410
401
|
});
|
|
411
402
|
}
|
|
412
|
-
const
|
|
413
|
-
function
|
|
414
|
-
|
|
403
|
+
const q = z(!1);
|
|
404
|
+
function Ie(l) {
|
|
405
|
+
q.value = l, xe.value += 1;
|
|
415
406
|
}
|
|
416
|
-
function
|
|
407
|
+
function Pe() {
|
|
417
408
|
V.value.showTable = !V.value.showTable;
|
|
418
409
|
}
|
|
419
|
-
const
|
|
420
|
-
function
|
|
421
|
-
|
|
410
|
+
const ee = z(!1);
|
|
411
|
+
function ve() {
|
|
412
|
+
ee.value = !ee.value;
|
|
422
413
|
}
|
|
423
|
-
async function
|
|
414
|
+
async function nt({ scale: l = 2 } = {}) {
|
|
424
415
|
if (!U.value) return;
|
|
425
|
-
const { width: r, height: t } = U.value.getBoundingClientRect(), s = r / t, { imageUri: p, base64: b } = await
|
|
416
|
+
const { width: r, height: t } = U.value.getBoundingClientRect(), s = r / t, { imageUri: p, base64: b } = await It({ domElement: U.value, base64: !0, img: !0, scale: l });
|
|
426
417
|
return {
|
|
427
418
|
imageUri: p,
|
|
428
419
|
base64: b,
|
|
@@ -432,8 +423,8 @@ const Bt = ["id"], Mt = {
|
|
|
432
423
|
aspectRatio: s
|
|
433
424
|
};
|
|
434
425
|
}
|
|
435
|
-
function
|
|
436
|
-
const r =
|
|
426
|
+
function rt(l) {
|
|
427
|
+
const r = ot(l), t = l.x1, s = l.y1, p = i.value.branchSize, b = r.x + r.r / 2, f = r.y, m = 20;
|
|
437
428
|
return [
|
|
438
429
|
`M ${t},${s}`,
|
|
439
430
|
`C ${t - m},${s} ${t - m},${s} ${b},${f}`,
|
|
@@ -441,17 +432,17 @@ const Bt = ["id"], Mt = {
|
|
|
441
432
|
"Z"
|
|
442
433
|
].join(" ");
|
|
443
434
|
}
|
|
444
|
-
const
|
|
435
|
+
const te = k(() => {
|
|
445
436
|
const l = e.value.table.useDialog && !e.value.table.show, r = V.value.showTable;
|
|
446
437
|
return {
|
|
447
|
-
component: l ?
|
|
438
|
+
component: l ? Ye : Ge,
|
|
448
439
|
title: `${e.value.style.chart.layout.title.text}${e.value.style.chart.layout.title.subtitle.text ? `: ${e.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
449
440
|
props: l ? {
|
|
450
441
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
451
442
|
color: e.value.table.th.color,
|
|
452
443
|
headerColor: e.value.table.th.color,
|
|
453
444
|
headerBg: e.value.table.th.backgroundColor,
|
|
454
|
-
isFullscreen:
|
|
445
|
+
isFullscreen: q.value,
|
|
455
446
|
fullscreenParent: U.value,
|
|
456
447
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
457
448
|
} : {
|
|
@@ -471,71 +462,73 @@ const Bt = ["id"], Mt = {
|
|
|
471
462
|
}
|
|
472
463
|
};
|
|
473
464
|
});
|
|
474
|
-
|
|
475
|
-
e.value.table.show || (l && e.value.table.useDialog &&
|
|
476
|
-
})
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
465
|
+
ye(() => V.value.showTable, async (l) => {
|
|
466
|
+
e.value.table.show || (l && e.value.table.useDialog && K.value ? (await he(), K.value.open()) : "close" in K.value && K.value.close());
|
|
467
|
+
});
|
|
468
|
+
const { isResponsive: it } = Nt(Se, Ze);
|
|
469
|
+
return De({
|
|
470
|
+
getData: Je,
|
|
471
|
+
getImage: nt,
|
|
472
|
+
generatePdf: ze,
|
|
473
|
+
generateCsv: de,
|
|
474
|
+
generateImage: Ae,
|
|
475
|
+
toggleTable: Pe,
|
|
476
|
+
toggleAnnotator: ve,
|
|
477
|
+
toggleFullscreen: Ie
|
|
485
478
|
}), (l, r) => (a(), o("div", {
|
|
486
|
-
class: w(`vue-ui-chestnut ${
|
|
479
|
+
class: w(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
487
480
|
ref_key: "chestnutChart",
|
|
488
481
|
ref: U,
|
|
489
482
|
id: `vue-ui-chestnut_${C.value}`,
|
|
490
483
|
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
491
|
-
onMouseenter: r[4] || (r[4] = () =>
|
|
492
|
-
onMouseleave: r[5] || (r[5] = () =>
|
|
484
|
+
onMouseenter: r[4] || (r[4] = () => u(ke)(!0)),
|
|
485
|
+
onMouseleave: r[5] || (r[5] = () => u(ke)(!1))
|
|
493
486
|
}, [
|
|
494
|
-
e.value.userOptions.buttons.annotator ? (a(),
|
|
487
|
+
e.value.userOptions.buttons.annotator ? (a(), le(u(Ee), {
|
|
495
488
|
key: 0,
|
|
496
|
-
svgRef:
|
|
489
|
+
svgRef: u(Ce),
|
|
497
490
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
498
491
|
color: e.value.style.chart.color,
|
|
499
|
-
active:
|
|
500
|
-
onClose:
|
|
492
|
+
active: ee.value,
|
|
493
|
+
onClose: ve
|
|
501
494
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
502
|
-
|
|
503
|
-
e.value.userOptions.show &&
|
|
495
|
+
Ke.value ? (a(), o("div", Ot, null, 512)) : h("", !0),
|
|
496
|
+
e.value.userOptions.show && _e.value && (u(we) || u(ne)) ? (a(), le(u(Ue), {
|
|
504
497
|
ref_key: "details",
|
|
505
|
-
ref:
|
|
506
|
-
key: `user_options_${
|
|
498
|
+
ref: He,
|
|
499
|
+
key: `user_options_${xe.value}`,
|
|
507
500
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
508
501
|
color: e.value.style.chart.color,
|
|
509
|
-
isImaging:
|
|
510
|
-
isPrinting:
|
|
502
|
+
isImaging: u(Te),
|
|
503
|
+
isPrinting: u($e),
|
|
511
504
|
uid: C.value,
|
|
512
505
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
513
506
|
hasImg: e.value.userOptions.buttons.img,
|
|
514
507
|
hasXls: e.value.userOptions.buttons.csv,
|
|
515
508
|
hasTable: e.value.userOptions.buttons.table,
|
|
516
509
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
517
|
-
isFullscreen:
|
|
510
|
+
isFullscreen: q.value,
|
|
518
511
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
519
512
|
chartElement: U.value,
|
|
520
513
|
position: e.value.userOptions.position,
|
|
521
514
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
522
|
-
isAnnotation:
|
|
515
|
+
isAnnotation: ee.value,
|
|
523
516
|
callbacks: e.value.userOptions.callbacks,
|
|
524
517
|
printScale: e.value.userOptions.print.scale,
|
|
525
|
-
onToggleFullscreen:
|
|
526
|
-
onGeneratePdf:
|
|
527
|
-
onGenerateCsv:
|
|
528
|
-
onGenerateImage:
|
|
529
|
-
onToggleTable:
|
|
530
|
-
onToggleAnnotator:
|
|
518
|
+
onToggleFullscreen: Ie,
|
|
519
|
+
onGeneratePdf: u(ze),
|
|
520
|
+
onGenerateCsv: de,
|
|
521
|
+
onGenerateImage: u(Ae),
|
|
522
|
+
onToggleTable: Pe,
|
|
523
|
+
onToggleAnnotator: ve,
|
|
531
524
|
style: y({
|
|
532
|
-
visibility:
|
|
525
|
+
visibility: u(we) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
533
526
|
})
|
|
534
|
-
},
|
|
527
|
+
}, Re({ _: 2 }, [
|
|
535
528
|
l.$slots.menuIcon ? {
|
|
536
529
|
name: "menuIcon",
|
|
537
530
|
fn: P(({ isOpen: t, color: s }) => [
|
|
538
|
-
F(l.$slots, "menuIcon", oe(
|
|
531
|
+
F(l.$slots, "menuIcon", ae(oe({ isOpen: t, color: s })), void 0, !0)
|
|
539
532
|
]),
|
|
540
533
|
key: "0"
|
|
541
534
|
} : void 0,
|
|
@@ -570,14 +563,14 @@ const Bt = ["id"], Mt = {
|
|
|
570
563
|
l.$slots.optionFullscreen ? {
|
|
571
564
|
name: "optionFullscreen",
|
|
572
565
|
fn: P(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
573
|
-
F(l.$slots, "optionFullscreen", oe(
|
|
566
|
+
F(l.$slots, "optionFullscreen", ae(oe({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
574
567
|
]),
|
|
575
568
|
key: "5"
|
|
576
569
|
} : void 0,
|
|
577
570
|
l.$slots.optionAnnotator ? {
|
|
578
571
|
name: "optionAnnotator",
|
|
579
572
|
fn: P(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
580
|
-
F(l.$slots, "optionAnnotator", oe(
|
|
573
|
+
F(l.$slots, "optionAnnotator", ae(oe({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
581
574
|
]),
|
|
582
575
|
key: "6"
|
|
583
576
|
} : void 0
|
|
@@ -585,13 +578,13 @@ const Bt = ["id"], Mt = {
|
|
|
585
578
|
i.value.height > 0 ? (a(), o("svg", {
|
|
586
579
|
key: 3,
|
|
587
580
|
ref_key: "svgRef",
|
|
588
|
-
ref:
|
|
589
|
-
xmlns:
|
|
590
|
-
class: w({ "vue-data-ui-fullscreen--on":
|
|
581
|
+
ref: Ce,
|
|
582
|
+
xmlns: u(wt),
|
|
583
|
+
class: w({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
591
584
|
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
592
585
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
593
586
|
}, [
|
|
594
|
-
|
|
587
|
+
fe(u(We)),
|
|
595
588
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
596
589
|
key: 0,
|
|
597
590
|
x: 0,
|
|
@@ -603,8 +596,8 @@ const Bt = ["id"], Mt = {
|
|
|
603
596
|
}
|
|
604
597
|
}, [
|
|
605
598
|
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
606
|
-
], 8,
|
|
607
|
-
d.value ? h("", !0) : (a(), o("g",
|
|
599
|
+
], 8, Bt)) : h("", !0),
|
|
600
|
+
d.value ? h("", !0) : (a(), o("g", Mt, [
|
|
608
601
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
609
602
|
key: 0,
|
|
610
603
|
"text-anchor": "middle",
|
|
@@ -614,7 +607,7 @@ const Bt = ["id"], Mt = {
|
|
|
614
607
|
x: i.value.width / 2,
|
|
615
608
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
616
609
|
onClick: $
|
|
617
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
610
|
+
}, c(e.value.style.chart.layout.title.text), 9, jt)) : h("", !0),
|
|
618
611
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
619
612
|
key: 1,
|
|
620
613
|
"text-anchor": "middle",
|
|
@@ -624,9 +617,9 @@ const Bt = ["id"], Mt = {
|
|
|
624
617
|
x: i.value.width / 2,
|
|
625
618
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
626
619
|
onClick: $
|
|
627
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
620
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, Dt)) : h("", !0)
|
|
628
621
|
])),
|
|
629
|
-
|
|
622
|
+
n("defs", null, [
|
|
630
623
|
(a(!0), o(g, null, _(N.value, (t, s) => (a(), o("radialGradient", {
|
|
631
624
|
cx: "50%",
|
|
632
625
|
cy: "50%",
|
|
@@ -635,15 +628,15 @@ const Bt = ["id"], Mt = {
|
|
|
635
628
|
fy: "50%",
|
|
636
629
|
id: `root_gradient_${C.value}_${t.rootIndex}`
|
|
637
630
|
}, [
|
|
638
|
-
|
|
631
|
+
n("stop", {
|
|
639
632
|
offset: "0%",
|
|
640
|
-
"stop-color":
|
|
641
|
-
}, null, 8,
|
|
642
|
-
|
|
633
|
+
"stop-color": u(A)(u(Oe)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
634
|
+
}, null, 8, Gt),
|
|
635
|
+
n("stop", {
|
|
643
636
|
offset: "100%",
|
|
644
637
|
"stop-color": t.color
|
|
645
|
-
}, null, 8,
|
|
646
|
-
], 8,
|
|
638
|
+
}, null, 8, Et)
|
|
639
|
+
], 8, Xt))), 256)),
|
|
647
640
|
(a(!0), o(g, null, _(N.value, (t) => (a(), o("linearGradient", {
|
|
648
641
|
x1: "0%",
|
|
649
642
|
y1: "0%",
|
|
@@ -651,16 +644,16 @@ const Bt = ["id"], Mt = {
|
|
|
651
644
|
y2: "0%",
|
|
652
645
|
id: `branch_gradient_${C.value}_${t.rootIndex}`
|
|
653
646
|
}, [
|
|
654
|
-
|
|
647
|
+
n("stop", {
|
|
655
648
|
offset: "0%",
|
|
656
649
|
"stop-color": t.color
|
|
657
|
-
}, null, 8,
|
|
658
|
-
|
|
650
|
+
}, null, 8, Wt),
|
|
651
|
+
n("stop", {
|
|
659
652
|
offset: "100%",
|
|
660
|
-
"stop-color":
|
|
661
|
-
}, null, 8,
|
|
662
|
-
], 8,
|
|
663
|
-
|
|
653
|
+
"stop-color": u(A)(u(Oe)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
654
|
+
}, null, 8, Yt)
|
|
655
|
+
], 8, Ut))), 256)),
|
|
656
|
+
n("radialGradient", {
|
|
664
657
|
cx: "50%",
|
|
665
658
|
cy: "50%",
|
|
666
659
|
r: "50%",
|
|
@@ -668,20 +661,20 @@ const Bt = ["id"], Mt = {
|
|
|
668
661
|
fy: "50%",
|
|
669
662
|
id: `nutpick_${C.value}`
|
|
670
663
|
}, [
|
|
671
|
-
|
|
664
|
+
n("stop", {
|
|
672
665
|
offset: "0%",
|
|
673
|
-
"stop-color":
|
|
674
|
-
}, null, 8,
|
|
675
|
-
|
|
666
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
667
|
+
}, null, 8, Ht),
|
|
668
|
+
n("stop", {
|
|
676
669
|
offset: "80%",
|
|
677
|
-
"stop-color":
|
|
678
|
-
}, null, 8,
|
|
679
|
-
|
|
670
|
+
"stop-color": u(A)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
671
|
+
}, null, 8, Kt),
|
|
672
|
+
n("stop", {
|
|
680
673
|
offset: "100%",
|
|
681
|
-
"stop-color":
|
|
682
|
-
}, null, 8,
|
|
683
|
-
], 8,
|
|
684
|
-
|
|
674
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
675
|
+
}, null, 8, Zt)
|
|
676
|
+
], 8, qt),
|
|
677
|
+
n("radialGradient", {
|
|
685
678
|
cx: "50%",
|
|
686
679
|
cy: "50%",
|
|
687
680
|
r: "50%",
|
|
@@ -689,20 +682,20 @@ const Bt = ["id"], Mt = {
|
|
|
689
682
|
fy: "50%",
|
|
690
683
|
id: `nut_${C.value}`
|
|
691
684
|
}, [
|
|
692
|
-
|
|
685
|
+
n("stop", {
|
|
693
686
|
offset: "0%",
|
|
694
|
-
"stop-color":
|
|
695
|
-
}, null, 8,
|
|
696
|
-
|
|
687
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
688
|
+
}, null, 8, Qt),
|
|
689
|
+
n("stop", {
|
|
697
690
|
offset: "80%",
|
|
698
|
-
"stop-color":
|
|
699
|
-
}, null, 8,
|
|
700
|
-
|
|
691
|
+
"stop-color": u(A)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
692
|
+
}, null, 8, el),
|
|
693
|
+
n("stop", {
|
|
701
694
|
offset: "100%",
|
|
702
|
-
"stop-color":
|
|
703
|
-
}, null, 8,
|
|
704
|
-
], 8,
|
|
705
|
-
|
|
695
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
696
|
+
}, null, 8, tl)
|
|
697
|
+
], 8, Jt),
|
|
698
|
+
n("radialGradient", {
|
|
706
699
|
cx: "50%",
|
|
707
700
|
cy: "50%",
|
|
708
701
|
r: "50%",
|
|
@@ -710,73 +703,73 @@ const Bt = ["id"], Mt = {
|
|
|
710
703
|
fy: "50%",
|
|
711
704
|
id: `nut_underlayer_${C.value}`
|
|
712
705
|
}, [
|
|
713
|
-
|
|
706
|
+
n("stop", {
|
|
714
707
|
offset: "0%",
|
|
715
|
-
"stop-color":
|
|
716
|
-
}, null, 8,
|
|
717
|
-
|
|
708
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 100)
|
|
709
|
+
}, null, 8, al),
|
|
710
|
+
n("stop", {
|
|
718
711
|
offset: "80%",
|
|
719
|
-
"stop-color":
|
|
720
|
-
}, null, 8,
|
|
721
|
-
|
|
712
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 60)
|
|
713
|
+
}, null, 8, ol),
|
|
714
|
+
n("stop", {
|
|
722
715
|
offset: "100%",
|
|
723
|
-
"stop-color":
|
|
724
|
-
}, null, 8,
|
|
725
|
-
], 8,
|
|
716
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 0)
|
|
717
|
+
}, null, 8, sl)
|
|
718
|
+
], 8, ll)
|
|
726
719
|
]),
|
|
727
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
728
|
-
|
|
729
|
-
x:
|
|
720
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", ul, [
|
|
721
|
+
n("text", {
|
|
722
|
+
x: T.value.seedX,
|
|
730
723
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
731
724
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
732
725
|
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
733
726
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
734
727
|
"text-anchor": "middle",
|
|
735
728
|
onClick: $
|
|
736
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
737
|
-
|
|
738
|
-
x:
|
|
729
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, nl),
|
|
730
|
+
n("text", {
|
|
731
|
+
x: T.value.seedX,
|
|
739
732
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
740
733
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
741
734
|
"font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
742
735
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
743
736
|
"text-anchor": "middle",
|
|
744
737
|
onClick: $
|
|
745
|
-
}, c(
|
|
738
|
+
}, c(u(E)(
|
|
746
739
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
747
740
|
B.value,
|
|
748
|
-
|
|
741
|
+
u(S)({
|
|
749
742
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
750
743
|
v: B.value,
|
|
751
744
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
752
745
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
753
746
|
})
|
|
754
|
-
)), 9,
|
|
747
|
+
)), 9, rl)
|
|
755
748
|
])) : h("", !0),
|
|
756
749
|
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
757
|
-
|
|
758
|
-
|
|
750
|
+
n("defs", null, [
|
|
751
|
+
n("linearGradient", {
|
|
759
752
|
id: `link_grad_${t.id}`
|
|
760
753
|
}, [
|
|
761
|
-
|
|
754
|
+
n("stop", {
|
|
762
755
|
offset: "0%",
|
|
763
756
|
"stop-color": t.color
|
|
764
|
-
}, null, 8,
|
|
765
|
-
|
|
757
|
+
}, null, 8, cl),
|
|
758
|
+
n("stop", {
|
|
766
759
|
offset: "100%",
|
|
767
|
-
"stop-color":
|
|
768
|
-
}, null, 8,
|
|
769
|
-
], 8,
|
|
760
|
+
"stop-color": u(A)(t.color, e.value.style.chart.layout.links.opacity)
|
|
761
|
+
}, null, 8, dl)
|
|
762
|
+
], 8, il)
|
|
770
763
|
]),
|
|
771
|
-
|
|
772
|
-
d:
|
|
773
|
-
stroke:
|
|
764
|
+
n("path", {
|
|
765
|
+
d: rt(t),
|
|
766
|
+
stroke: u(A)(t.color, e.value.style.chart.layout.links.opacity),
|
|
774
767
|
fill: `url(#link_grad_${t.id})`,
|
|
775
768
|
"stroke-linecap": "round",
|
|
776
769
|
"stroke-linejoin": "round",
|
|
777
770
|
style: y(`opacity:${I(t) ? 1 : 0}`),
|
|
778
771
|
onClick: $
|
|
779
|
-
}, null, 12,
|
|
772
|
+
}, null, 12, vl)
|
|
780
773
|
]))), 256)),
|
|
781
774
|
(a(!0), o(g, null, _(D.value, (t) => (a(), o("circle", {
|
|
782
775
|
cx: t.x,
|
|
@@ -785,7 +778,7 @@ const Bt = ["id"], Mt = {
|
|
|
785
778
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
786
779
|
stroke: "none",
|
|
787
780
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`)
|
|
788
|
-
}, null, 12,
|
|
781
|
+
}, null, 12, yl))), 256)),
|
|
789
782
|
(a(!0), o(g, null, _(D.value, (t, s) => (a(), o("circle", {
|
|
790
783
|
cx: t.x,
|
|
791
784
|
cy: t.y,
|
|
@@ -794,32 +787,32 @@ const Bt = ["id"], Mt = {
|
|
|
794
787
|
stroke: e.value.style.chart.layout.roots.stroke,
|
|
795
788
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
796
789
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
797
|
-
onClick: (p) =>
|
|
798
|
-
}, null, 12,
|
|
799
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
790
|
+
onClick: (p) => Fe(t)
|
|
791
|
+
}, null, 12, hl))), 256)),
|
|
792
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", fl, [
|
|
800
793
|
(a(!0), o(g, null, _(D.value, (t, s) => (a(), o("text", {
|
|
801
794
|
x: t.x,
|
|
802
795
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
803
796
|
"text-anchor": "middle",
|
|
804
797
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
805
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ?
|
|
798
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? u(Ve)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
806
799
|
"font-weight": "bold",
|
|
807
800
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
808
|
-
onClick: (p) =>
|
|
809
|
-
}, c(
|
|
801
|
+
onClick: (p) => Fe(t)
|
|
802
|
+
}, c(u(E)(
|
|
810
803
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
811
804
|
t.total,
|
|
812
|
-
|
|
805
|
+
u(S)({
|
|
813
806
|
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
814
807
|
v: t.total,
|
|
815
808
|
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
816
809
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
817
810
|
}),
|
|
818
811
|
{ datapoint: t }
|
|
819
|
-
)), 13,
|
|
812
|
+
)), 13, bl))), 256)),
|
|
820
813
|
(a(!0), o(g, null, _(D.value, (t) => (a(), o("g", null, [
|
|
821
|
-
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g",
|
|
822
|
-
|
|
814
|
+
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g", pl, [
|
|
815
|
+
n("text", {
|
|
823
816
|
x: t.x,
|
|
824
817
|
y: t.y + t.r + 24,
|
|
825
818
|
"text-anchor": "middle",
|
|
@@ -827,7 +820,7 @@ const Bt = ["id"], Mt = {
|
|
|
827
820
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
828
821
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
829
822
|
onClick: $
|
|
830
|
-
}, c(t.name), 9,
|
|
823
|
+
}, c(t.name), 9, gl)
|
|
831
824
|
])) : h("", !0)
|
|
832
825
|
]))), 256))
|
|
833
826
|
])) : h("", !0),
|
|
@@ -840,8 +833,8 @@ const Bt = ["id"], Mt = {
|
|
|
840
833
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
841
834
|
stroke: "none",
|
|
842
835
|
style: y(`opacity:${I(t) ? 1 : 0.05}`),
|
|
843
|
-
onClick: (s) =>
|
|
844
|
-
}, null, 12,
|
|
836
|
+
onClick: (s) => ce(t)
|
|
837
|
+
}, null, 12, _l))), 256)),
|
|
845
838
|
(a(!0), o(g, null, _(X.value, (t, s) => (a(), o("rect", {
|
|
846
839
|
x: t.x1,
|
|
847
840
|
y: t.y1,
|
|
@@ -852,35 +845,35 @@ const Bt = ["id"], Mt = {
|
|
|
852
845
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
853
846
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
854
847
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
855
|
-
onClick: (p) =>
|
|
856
|
-
}, null, 12,
|
|
857
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
848
|
+
onClick: (p) => ce(t)
|
|
849
|
+
}, null, 12, xl))), 256)),
|
|
850
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", ml, [
|
|
858
851
|
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
859
852
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
860
853
|
key: 0,
|
|
861
854
|
x: t.x1 + 6,
|
|
862
855
|
y: t.y1 + i.value.branchSize / 1.5,
|
|
863
856
|
"text-anchor": "start",
|
|
864
|
-
fill:
|
|
857
|
+
fill: u(Ve)(t.color),
|
|
865
858
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
866
859
|
"font-weight": "bold",
|
|
867
860
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
868
|
-
onClick: (s) =>
|
|
869
|
-
}, c(
|
|
861
|
+
onClick: (s) => ce(t)
|
|
862
|
+
}, c(u(E)(
|
|
870
863
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
871
864
|
t.value,
|
|
872
|
-
|
|
865
|
+
u(S)({
|
|
873
866
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
874
867
|
v: t.value,
|
|
875
868
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
876
869
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
877
870
|
}),
|
|
878
871
|
{ datapoint: t }
|
|
879
|
-
)), 13,
|
|
872
|
+
)), 13, kl)) : h("", !0)
|
|
880
873
|
]))), 256))
|
|
881
874
|
])) : h("", !0),
|
|
882
875
|
(a(!0), o(g, null, _(X.value, (t, s) => (a(), o("g", null, [
|
|
883
|
-
(a(!0), o(g, null, _(
|
|
876
|
+
(a(!0), o(g, null, _(u(Be)(
|
|
884
877
|
{ series: t.breakdown, base: 1 },
|
|
885
878
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
886
879
|
t.y1 + i.value.branchSize / 2,
|
|
@@ -892,17 +885,17 @@ const Bt = ["id"], Mt = {
|
|
|
892
885
|
"stroke-width": 10,
|
|
893
886
|
fill: "none",
|
|
894
887
|
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
895
|
-
}, null, 12,
|
|
896
|
-
|
|
888
|
+
}, null, 12, wl))), 256)),
|
|
889
|
+
n("circle", {
|
|
897
890
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${C.value})` : "transparent",
|
|
898
891
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
899
892
|
cy: t.y1 + i.value.branchSize / 2,
|
|
900
893
|
r: i.value.branchSize / 2 + 2,
|
|
901
|
-
onClick: (p) =>
|
|
894
|
+
onClick: (p) => st(t),
|
|
902
895
|
style: y(`cursor:pointer;opacity:${I(t) ? 1 : 0.1}`)
|
|
903
|
-
}, null, 12,
|
|
896
|
+
}, null, 12, Cl)
|
|
904
897
|
]))), 256)),
|
|
905
|
-
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g",
|
|
898
|
+
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", $l, [
|
|
906
899
|
(a(!0), o(g, null, _(X.value, (t) => (a(), o("text", {
|
|
907
900
|
x: t.x2 + i.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
908
901
|
y: t.y1 + i.value.branchSize / 2 + 5,
|
|
@@ -911,45 +904,45 @@ const Bt = ["id"], Mt = {
|
|
|
911
904
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
912
905
|
"text-anchor": "start",
|
|
913
906
|
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
914
|
-
}, c(t.name), 13,
|
|
907
|
+
}, c(t.name), 13, Tl))), 256))
|
|
915
908
|
])) : h("", !0),
|
|
916
|
-
|
|
909
|
+
n("line", {
|
|
917
910
|
x1: 256 + i.value.padding.left,
|
|
918
911
|
x2: 256 + i.value.padding.left,
|
|
919
|
-
y1:
|
|
920
|
-
y2:
|
|
912
|
+
y1: T.value.top,
|
|
913
|
+
y2: T.value.bottom,
|
|
921
914
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
922
915
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
923
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, zl),
|
|
924
917
|
!d.value && !x.value ? (a(), o("foreignObject", {
|
|
925
918
|
key: 6,
|
|
926
919
|
x: 0,
|
|
927
|
-
y:
|
|
928
|
-
height: i.value.height -
|
|
920
|
+
y: T.value.bottom,
|
|
921
|
+
height: i.value.height - T.value.bottom,
|
|
929
922
|
width: i.value.width,
|
|
930
923
|
style: { overflow: "visible" },
|
|
931
924
|
onClick: $
|
|
932
925
|
}, [
|
|
933
|
-
|
|
934
|
-
|
|
926
|
+
n("div", Sl, [
|
|
927
|
+
n("div", Nl, [
|
|
935
928
|
(a(!0), o(g, null, _(D.value, (t) => (a(), o("div", {
|
|
936
929
|
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
937
930
|
}, [
|
|
938
|
-
(a(), o("svg",
|
|
939
|
-
|
|
931
|
+
(a(), o("svg", Fl, [
|
|
932
|
+
n("circle", {
|
|
940
933
|
cx: "10",
|
|
941
934
|
cy: "10",
|
|
942
935
|
r: "10",
|
|
943
936
|
fill: t.color,
|
|
944
937
|
stroke: "none"
|
|
945
|
-
}, null, 8,
|
|
938
|
+
}, null, 8, Ll)
|
|
946
939
|
])),
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
940
|
+
u(me) ? h("", !0) : (a(), o(g, { key: 0 }, [
|
|
941
|
+
n("span", null, c(t.name) + ":", 1),
|
|
942
|
+
n("b", null, c(u(E)(
|
|
950
943
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
951
944
|
t.total,
|
|
952
|
-
|
|
945
|
+
u(S)({
|
|
953
946
|
p: e.value.style.chart.layout.legend.prefix,
|
|
954
947
|
v: t.total,
|
|
955
948
|
s: e.value.style.chart.layout.legend.suffix,
|
|
@@ -957,7 +950,7 @@ const Bt = ["id"], Mt = {
|
|
|
957
950
|
}),
|
|
958
951
|
{ datapoint: t }
|
|
959
952
|
)), 1),
|
|
960
|
-
|
|
953
|
+
Z(" (" + c(u(S)({
|
|
961
954
|
v: t.total / B.value * 100,
|
|
962
955
|
s: "%",
|
|
963
956
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
@@ -966,52 +959,52 @@ const Bt = ["id"], Mt = {
|
|
|
966
959
|
], 4))), 256))
|
|
967
960
|
])
|
|
968
961
|
])
|
|
969
|
-
], 8,
|
|
970
|
-
d.value && M.value ? (a(), o("g",
|
|
962
|
+
], 8, Al)) : h("", !0),
|
|
963
|
+
d.value && M.value ? (a(), o("g", Il, [
|
|
971
964
|
(a(), o("foreignObject", {
|
|
972
965
|
x: 0,
|
|
973
|
-
y:
|
|
974
|
-
height: i.value.height -
|
|
966
|
+
y: ut(),
|
|
967
|
+
height: i.value.height - T.value.bottom,
|
|
975
968
|
width: i.value.width,
|
|
976
969
|
style: { overflow: "visible" },
|
|
977
970
|
onClick: $
|
|
978
971
|
}, [
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
972
|
+
n("div", Rl, [
|
|
973
|
+
n("b", null, c(d.value.name), 1),
|
|
974
|
+
n("div", Ol, [
|
|
982
975
|
(a(!0), o(g, null, _(d.value.breakdown, (t, s) => (a(), o("div", {
|
|
983
976
|
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
984
977
|
}, [
|
|
985
|
-
(a(), o("svg",
|
|
986
|
-
|
|
978
|
+
(a(), o("svg", Vl, [
|
|
979
|
+
n("circle", {
|
|
987
980
|
cx: "10",
|
|
988
981
|
cy: "10",
|
|
989
982
|
r: "10",
|
|
990
983
|
fill: t.color,
|
|
991
984
|
stroke: "none"
|
|
992
|
-
}, null, 8,
|
|
985
|
+
}, null, 8, Bl)
|
|
993
986
|
])),
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
987
|
+
n("span", null, [
|
|
988
|
+
Z(c(t.name) + ": ", 1),
|
|
989
|
+
n("b", null, c(e.value.style.chart.layout.legend.prefix) + " " + c(t.value.toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + c(e.value.style.chart.layout.legend.suffix), 1),
|
|
990
|
+
Z(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
998
991
|
])
|
|
999
992
|
], 4))), 256))
|
|
1000
993
|
])
|
|
1001
994
|
])
|
|
1002
|
-
], 8,
|
|
1003
|
-
|
|
995
|
+
], 8, Pl)),
|
|
996
|
+
n("circle", {
|
|
1004
997
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1005
998
|
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1006
999
|
r: 256,
|
|
1007
1000
|
fill: `url(#nut_underlayer_${C.value})`,
|
|
1008
|
-
onClick:
|
|
1001
|
+
onClick: G,
|
|
1009
1002
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1010
|
-
}, null, 10,
|
|
1003
|
+
}, null, 10, Ml),
|
|
1011
1004
|
(a(!0), o(g, null, _(M.value, (t) => (a(), o("g", null, [
|
|
1012
1005
|
Y(t) ? (a(), o("path", {
|
|
1013
1006
|
key: 0,
|
|
1014
|
-
d:
|
|
1007
|
+
d: u(Ct)(
|
|
1015
1008
|
t,
|
|
1016
1009
|
{
|
|
1017
1010
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -1029,145 +1022,145 @@ const Bt = ["id"], Mt = {
|
|
|
1029
1022
|
"stroke-linejoin": "round",
|
|
1030
1023
|
fill: "none",
|
|
1031
1024
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1032
|
-
}, null, 10,
|
|
1025
|
+
}, null, 10, jl)) : h("", !0)
|
|
1033
1026
|
]))), 256)),
|
|
1034
|
-
|
|
1027
|
+
n("circle", {
|
|
1035
1028
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1036
1029
|
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1037
1030
|
r: 118,
|
|
1038
1031
|
fill: e.value.style.chart.backgroundColor,
|
|
1039
|
-
onClick:
|
|
1032
|
+
onClick: G,
|
|
1040
1033
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1041
|
-
}, null, 10,
|
|
1034
|
+
}, null, 10, Dl),
|
|
1042
1035
|
(a(!0), o(g, null, _(M.value, (t) => (a(), o("path", {
|
|
1043
1036
|
d: t.path,
|
|
1044
1037
|
stroke: t.color,
|
|
1045
1038
|
"stroke-width": 64,
|
|
1046
1039
|
fill: "none",
|
|
1047
|
-
onClick:
|
|
1040
|
+
onClick: G,
|
|
1048
1041
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1049
|
-
}, null, 10,
|
|
1050
|
-
|
|
1042
|
+
}, null, 10, Xl))), 256)),
|
|
1043
|
+
n("circle", {
|
|
1051
1044
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1052
1045
|
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1053
1046
|
r: 110,
|
|
1054
1047
|
fill: `url(#nutpick_${C.value})`,
|
|
1055
|
-
onClick:
|
|
1048
|
+
onClick: G,
|
|
1056
1049
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1057
|
-
}, null, 10,
|
|
1058
|
-
|
|
1050
|
+
}, null, 10, Gl),
|
|
1051
|
+
n("circle", {
|
|
1059
1052
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1060
1053
|
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1061
1054
|
r: 64,
|
|
1062
1055
|
fill: e.value.style.chart.backgroundColor,
|
|
1063
|
-
onClick:
|
|
1056
|
+
onClick: G,
|
|
1064
1057
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1065
|
-
}, null, 10,
|
|
1066
|
-
|
|
1058
|
+
}, null, 10, El),
|
|
1059
|
+
n("text", {
|
|
1067
1060
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1068
1061
|
y: d.value.y1 + 8,
|
|
1069
1062
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
1070
1063
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1071
1064
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1072
1065
|
"text-anchor": "middle",
|
|
1073
|
-
onClick:
|
|
1066
|
+
onClick: G,
|
|
1074
1067
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1075
|
-
}, c(e.value.translations.total), 11,
|
|
1076
|
-
|
|
1068
|
+
}, c(e.value.translations.total), 11, Ul),
|
|
1069
|
+
n("text", {
|
|
1077
1070
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1078
1071
|
y: d.value.y1 + 36,
|
|
1079
1072
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
1080
1073
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1081
1074
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1082
1075
|
"text-anchor": "middle",
|
|
1083
|
-
onClick:
|
|
1076
|
+
onClick: G,
|
|
1084
1077
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1085
|
-
}, c(
|
|
1078
|
+
}, c(u(E)(
|
|
1086
1079
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1087
1080
|
d.value.value,
|
|
1088
|
-
|
|
1081
|
+
u(S)({
|
|
1089
1082
|
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1090
1083
|
v: d.value.value,
|
|
1091
1084
|
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1092
1085
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1093
1086
|
}),
|
|
1094
1087
|
{ datapoint: d.value }
|
|
1095
|
-
)), 11,
|
|
1088
|
+
)), 11, Wl),
|
|
1096
1089
|
(a(!0), o(g, null, _(M.value, (t, s) => (a(), o("g", null, [
|
|
1097
1090
|
Y(t) ? (a(), o("text", {
|
|
1098
1091
|
key: 0,
|
|
1099
|
-
x:
|
|
1100
|
-
"text-anchor":
|
|
1101
|
-
y:
|
|
1092
|
+
x: u(O)(t).x,
|
|
1093
|
+
"text-anchor": u(O)(t).anchor,
|
|
1094
|
+
y: u(J)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1102
1095
|
fill: t.color,
|
|
1103
1096
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1104
1097
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1105
1098
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1106
|
-
}, " ⬤ ", 14,
|
|
1099
|
+
}, " ⬤ ", 14, Yl)) : h("", !0),
|
|
1107
1100
|
Y(t) ? (a(), o("text", {
|
|
1108
1101
|
key: 1,
|
|
1109
|
-
x:
|
|
1110
|
-
"text-anchor":
|
|
1111
|
-
y:
|
|
1102
|
+
x: u(O)(t, !0).x,
|
|
1103
|
+
"text-anchor": u(O)(t, !0).anchor,
|
|
1104
|
+
y: u(J)(t),
|
|
1112
1105
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1113
1106
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1114
1107
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1115
1108
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1116
|
-
}, c(d.value.breakdown[s].name), 15,
|
|
1109
|
+
}, c(d.value.breakdown[s].name), 15, ql)) : h("", !0)
|
|
1117
1110
|
]))), 256)),
|
|
1118
1111
|
(a(!0), o(g, null, _(M.value, (t, s) => (a(), o("g", null, [
|
|
1119
1112
|
Y(t) ? (a(), o("text", {
|
|
1120
1113
|
key: 0,
|
|
1121
|
-
x:
|
|
1122
|
-
"text-anchor":
|
|
1123
|
-
y:
|
|
1114
|
+
x: u(O)(t, !0).x,
|
|
1115
|
+
"text-anchor": u(O)(t).anchor,
|
|
1116
|
+
y: u(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1124
1117
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1125
1118
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1126
1119
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1127
1120
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1128
|
-
}, c(
|
|
1121
|
+
}, c(u(S)({
|
|
1129
1122
|
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
1130
1123
|
s: "%",
|
|
1131
1124
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1132
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(
|
|
1125
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(u(E)(
|
|
1133
1126
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1134
1127
|
d.value.breakdown[s].value,
|
|
1135
|
-
|
|
1128
|
+
u(S)({
|
|
1136
1129
|
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1137
1130
|
v: d.value.breakdown[s].value,
|
|
1138
1131
|
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1139
1132
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1140
1133
|
}),
|
|
1141
1134
|
{ datapoint: M.value, seriesIndex: s }
|
|
1142
|
-
)), 15,
|
|
1135
|
+
)), 15, Hl)) : h("", !0),
|
|
1143
1136
|
Y(t) ? (a(), o("text", {
|
|
1144
1137
|
key: 1,
|
|
1145
|
-
x:
|
|
1146
|
-
"text-anchor":
|
|
1147
|
-
y:
|
|
1138
|
+
x: u(O)(t, !0).x,
|
|
1139
|
+
"text-anchor": u(O)(t).anchor,
|
|
1140
|
+
y: u(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1148
1141
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1149
1142
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1150
1143
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1151
1144
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1152
|
-
}, c(
|
|
1145
|
+
}, c(u(S)({
|
|
1153
1146
|
v: d.value.breakdown[s].proportionToRoot * 100,
|
|
1154
1147
|
s: "%",
|
|
1155
1148
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1156
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15,
|
|
1149
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15, Kl)) : h("", !0),
|
|
1157
1150
|
Y(t) ? (a(), o("text", {
|
|
1158
1151
|
key: 2,
|
|
1159
|
-
x:
|
|
1160
|
-
"text-anchor":
|
|
1161
|
-
y:
|
|
1152
|
+
x: u(O)(t, !0).x,
|
|
1153
|
+
"text-anchor": u(O)(t).anchor,
|
|
1154
|
+
y: u(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1162
1155
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1163
1156
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1164
1157
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1165
1158
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1166
|
-
}, c(
|
|
1159
|
+
}, c(u(S)({
|
|
1167
1160
|
v: d.value.breakdown[s].proportionToTree * 100,
|
|
1168
1161
|
s: "%",
|
|
1169
1162
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1170
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
1163
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, Zl)) : h("", !0)
|
|
1171
1164
|
]))), 256))
|
|
1172
1165
|
])) : h("", !0),
|
|
1173
1166
|
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
@@ -1180,17 +1173,17 @@ const Bt = ["id"], Mt = {
|
|
|
1180
1173
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1181
1174
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1182
1175
|
onClick: $
|
|
1183
|
-
}, c(t.name) + ": " + c(
|
|
1176
|
+
}, c(t.name) + ": " + c(u(E)(
|
|
1184
1177
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
1185
1178
|
t.value,
|
|
1186
|
-
|
|
1179
|
+
u(S)({
|
|
1187
1180
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1188
1181
|
v: t.value,
|
|
1189
1182
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1190
1183
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1191
1184
|
}),
|
|
1192
1185
|
{ datapoint: t }
|
|
1193
|
-
)), 9,
|
|
1186
|
+
)), 9, Jl)) : h("", !0),
|
|
1194
1187
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1195
1188
|
key: 1,
|
|
1196
1189
|
x: t.x1 + 6,
|
|
@@ -1199,11 +1192,11 @@ const Bt = ["id"], Mt = {
|
|
|
1199
1192
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1200
1193
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1201
1194
|
onClick: $
|
|
1202
|
-
}, c(
|
|
1195
|
+
}, c(u(S)({
|
|
1203
1196
|
v: t.proportionToRoot * 100,
|
|
1204
1197
|
s: "%",
|
|
1205
1198
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1206
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1199
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, Ql)) : h("", !0),
|
|
1207
1200
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1208
1201
|
key: 2,
|
|
1209
1202
|
x: t.x1 + 6,
|
|
@@ -1212,34 +1205,34 @@ const Bt = ["id"], Mt = {
|
|
|
1212
1205
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1213
1206
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1214
1207
|
onClick: $
|
|
1215
|
-
}, c(
|
|
1208
|
+
}, c(u(S)({
|
|
1216
1209
|
v: t.value / B.value * 100,
|
|
1217
1210
|
s: "%",
|
|
1218
1211
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1219
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1212
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, ea)) : h("", !0)
|
|
1220
1213
|
]))), 256)),
|
|
1221
1214
|
F(l.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
1222
|
-
], 14,
|
|
1223
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1224
|
-
F(l.$slots, "watermark", oe(
|
|
1215
|
+
], 14, Vt)) : h("", !0),
|
|
1216
|
+
l.$slots.watermark ? (a(), o("div", ta, [
|
|
1217
|
+
F(l.$slots, "watermark", ae(oe({ isPrinting: u($e) || u(Te) })), void 0, !0)
|
|
1225
1218
|
])) : h("", !0),
|
|
1226
1219
|
F(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1227
|
-
l.$slots.source ? (a(), o("div",
|
|
1220
|
+
l.$slots.source ? (a(), o("div", la, [
|
|
1228
1221
|
F(l.$slots, "source", {}, void 0, !0)
|
|
1229
1222
|
], 512)) : h("", !0),
|
|
1230
|
-
|
|
1223
|
+
_e.value ? (a(), le(yt(te.value.component), ht({ key: 6 }, te.value.props, {
|
|
1231
1224
|
ref_key: "tableUnit",
|
|
1232
|
-
ref:
|
|
1225
|
+
ref: K,
|
|
1233
1226
|
onClose: r[3] || (r[3] = (t) => V.value.showTable = !1)
|
|
1234
|
-
}),
|
|
1227
|
+
}), Re({
|
|
1235
1228
|
content: P(() => [
|
|
1236
|
-
|
|
1229
|
+
n("div", {
|
|
1237
1230
|
ref_key: "tableContainer",
|
|
1238
|
-
ref:
|
|
1231
|
+
ref: Se,
|
|
1239
1232
|
class: "vue-ui-chestnut-table",
|
|
1240
1233
|
style: y(`${e.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1241
1234
|
}, [
|
|
1242
|
-
|
|
1235
|
+
n("div", {
|
|
1243
1236
|
style: y(`${e.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`)
|
|
1244
1237
|
}, [
|
|
1245
1238
|
e.value.table.useDialog ? h("", !0) : (a(), o("div", {
|
|
@@ -1248,29 +1241,29 @@ const Bt = ["id"], Mt = {
|
|
|
1248
1241
|
tabindex: "0",
|
|
1249
1242
|
style: y(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
1250
1243
|
onClick: r[1] || (r[1] = (t) => V.value.showTable = !1),
|
|
1251
|
-
onKeypress: r[2] || (r[2] =
|
|
1244
|
+
onKeypress: r[2] || (r[2] = ft((t) => V.value.showTable = !1, ["enter"]))
|
|
1252
1245
|
}, [
|
|
1253
|
-
|
|
1246
|
+
fe(u(ge), {
|
|
1254
1247
|
name: "close",
|
|
1255
1248
|
stroke: e.value.table.th.color,
|
|
1256
1249
|
"stroke-width": 2
|
|
1257
1250
|
}, null, 8, ["stroke"])
|
|
1258
1251
|
], 36)),
|
|
1259
|
-
|
|
1252
|
+
n("div", {
|
|
1260
1253
|
style: { width: "100%" },
|
|
1261
|
-
class: w({ "vue-ui-responsive":
|
|
1254
|
+
class: w({ "vue-ui-responsive": u(it) })
|
|
1262
1255
|
}, [
|
|
1263
|
-
|
|
1256
|
+
n("table", aa, [
|
|
1264
1257
|
e.value.table.useDialog ? h("", !0) : (a(), o("caption", {
|
|
1265
1258
|
key: 0,
|
|
1266
1259
|
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1267
1260
|
class: "vue-ui-data-table__caption"
|
|
1268
1261
|
}, [
|
|
1269
|
-
|
|
1270
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1262
|
+
Z(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1263
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", oa, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1271
1264
|
], 4)),
|
|
1272
|
-
|
|
1273
|
-
|
|
1265
|
+
n("thead", null, [
|
|
1266
|
+
n("tr", {
|
|
1274
1267
|
role: "row",
|
|
1275
1268
|
style: y(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1276
1269
|
}, [
|
|
@@ -1279,109 +1272,109 @@ const Bt = ["id"], Mt = {
|
|
|
1279
1272
|
}, c(t), 5))), 256))
|
|
1280
1273
|
], 4)
|
|
1281
1274
|
]),
|
|
1282
|
-
|
|
1275
|
+
n("tbody", null, [
|
|
1283
1276
|
(a(!0), o(g, null, _(v.value.body, (t, s) => (a(), o("tr", {
|
|
1284
1277
|
class: w({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": s % 2 === 0, "vue-ui-data-table__tbody__row-odd": s % 2 !== 0 }),
|
|
1285
1278
|
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1286
1279
|
}, [
|
|
1287
|
-
|
|
1280
|
+
n("td", {
|
|
1288
1281
|
class: "vue-ui-data-table__tbody__td",
|
|
1289
1282
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1290
1283
|
"data-cell": v.value.head[0]
|
|
1291
1284
|
}, [
|
|
1292
|
-
|
|
1293
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1285
|
+
n("div", ua, [
|
|
1286
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", na)) : (a(), o("span", ra, c(t.rootName), 1))
|
|
1294
1287
|
])
|
|
1295
|
-
], 12,
|
|
1296
|
-
|
|
1288
|
+
], 12, sa),
|
|
1289
|
+
n("td", {
|
|
1297
1290
|
class: "vue-ui-data-table__tbody__td",
|
|
1298
1291
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1299
1292
|
"data-cell": v.value.head[1]
|
|
1300
1293
|
}, [
|
|
1301
|
-
|
|
1302
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1294
|
+
n("div", ca, [
|
|
1295
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", da)) : (a(), o("span", va, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1303
1296
|
])
|
|
1304
|
-
], 12,
|
|
1305
|
-
|
|
1297
|
+
], 12, ia),
|
|
1298
|
+
n("td", {
|
|
1306
1299
|
class: "vue-ui-data-table__tbody__td",
|
|
1307
1300
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1308
1301
|
"data-cell": v.value.head[2]
|
|
1309
1302
|
}, [
|
|
1310
|
-
|
|
1311
|
-
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span",
|
|
1303
|
+
n("div", ha, [
|
|
1304
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", fa)) : (a(), o("span", ba, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1312
1305
|
])
|
|
1313
|
-
], 12,
|
|
1314
|
-
|
|
1306
|
+
], 12, ya),
|
|
1307
|
+
n("td", {
|
|
1315
1308
|
class: "vue-ui-data-table__tbody__td",
|
|
1316
1309
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1317
1310
|
"data-cell": v.value.head[3]
|
|
1318
1311
|
}, [
|
|
1319
|
-
|
|
1320
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1312
|
+
n("div", ga, [
|
|
1313
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", _a)) : (a(), o("span", xa, c(t.branchName), 1))
|
|
1321
1314
|
])
|
|
1322
|
-
], 12,
|
|
1323
|
-
|
|
1315
|
+
], 12, pa),
|
|
1316
|
+
n("td", {
|
|
1324
1317
|
class: "vue-ui-data-table__tbody__td",
|
|
1325
1318
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1326
1319
|
"data-cell": v.value.head[4]
|
|
1327
1320
|
}, [
|
|
1328
|
-
|
|
1329
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1321
|
+
n("div", ka, [
|
|
1322
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", wa)) : (a(), o("span", Ca, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1330
1323
|
])
|
|
1331
|
-
], 12,
|
|
1332
|
-
|
|
1324
|
+
], 12, ma),
|
|
1325
|
+
n("td", {
|
|
1333
1326
|
class: "vue-ui-data-table__tbody__td",
|
|
1334
1327
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1335
1328
|
"data-cell": v.value.head[5]
|
|
1336
1329
|
}, [
|
|
1337
|
-
|
|
1338
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1330
|
+
n("div", Ta, [
|
|
1331
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", za)) : (a(), o("span", Aa, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1339
1332
|
])
|
|
1340
|
-
], 12,
|
|
1341
|
-
|
|
1333
|
+
], 12, $a),
|
|
1334
|
+
n("td", {
|
|
1342
1335
|
class: "vue-ui-data-table__tbody__td",
|
|
1343
1336
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1344
1337
|
"data-cell": v.value.head[6]
|
|
1345
1338
|
}, [
|
|
1346
|
-
|
|
1347
|
-
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span",
|
|
1339
|
+
n("div", Na, [
|
|
1340
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", Fa)) : (a(), o("span", La, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1348
1341
|
])
|
|
1349
|
-
], 12,
|
|
1350
|
-
|
|
1342
|
+
], 12, Sa),
|
|
1343
|
+
n("td", {
|
|
1351
1344
|
class: "vue-ui-data-table__tbody__td",
|
|
1352
1345
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1353
1346
|
"data-cell": v.value.head[7]
|
|
1354
1347
|
}, [
|
|
1355
|
-
|
|
1356
|
-
], 12,
|
|
1357
|
-
|
|
1348
|
+
n("div", Pa, c(t.nutName), 1)
|
|
1349
|
+
], 12, Ia),
|
|
1350
|
+
n("td", {
|
|
1358
1351
|
class: "vue-ui-data-table__tbody__td",
|
|
1359
1352
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1360
1353
|
"data-cell": v.value.head[8]
|
|
1361
1354
|
}, [
|
|
1362
|
-
|
|
1363
|
-
], 12,
|
|
1364
|
-
|
|
1355
|
+
n("div", Oa, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1356
|
+
], 12, Ra),
|
|
1357
|
+
n("td", {
|
|
1365
1358
|
class: "vue-ui-data-table__tbody__td",
|
|
1366
1359
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1367
1360
|
"data-cell": v.value.head[9]
|
|
1368
1361
|
}, [
|
|
1369
|
-
|
|
1370
|
-
], 12,
|
|
1371
|
-
|
|
1362
|
+
n("div", Ba, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1363
|
+
], 12, Va),
|
|
1364
|
+
n("td", {
|
|
1372
1365
|
class: "vue-ui-data-table__tbody__td",
|
|
1373
1366
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1374
1367
|
"data-cell": v.value.head[10]
|
|
1375
1368
|
}, [
|
|
1376
|
-
|
|
1377
|
-
], 12,
|
|
1378
|
-
|
|
1369
|
+
n("div", ja, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1370
|
+
], 12, Ma),
|
|
1371
|
+
n("td", {
|
|
1379
1372
|
class: "vue-ui-data-table__tbody__td",
|
|
1380
1373
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1381
1374
|
"data-cell": v.value.head[11]
|
|
1382
1375
|
}, [
|
|
1383
|
-
|
|
1384
|
-
], 12,
|
|
1376
|
+
n("div", Xa, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1377
|
+
], 12, Da)
|
|
1385
1378
|
], 6))), 256))
|
|
1386
1379
|
])
|
|
1387
1380
|
])
|
|
@@ -1394,31 +1387,31 @@ const Bt = ["id"], Mt = {
|
|
|
1394
1387
|
e.value.table.useDialog ? {
|
|
1395
1388
|
name: "title",
|
|
1396
1389
|
fn: P(() => [
|
|
1397
|
-
|
|
1390
|
+
Z(c(te.value.title), 1)
|
|
1398
1391
|
]),
|
|
1399
1392
|
key: "0"
|
|
1400
1393
|
} : void 0,
|
|
1401
1394
|
e.value.table.useDialog ? {
|
|
1402
1395
|
name: "actions",
|
|
1403
1396
|
fn: P(() => [
|
|
1404
|
-
|
|
1397
|
+
n("button", {
|
|
1405
1398
|
tabindex: "0",
|
|
1406
1399
|
class: "vue-ui-user-options-button",
|
|
1407
|
-
onClick: r[0] || (r[0] = (t) =>
|
|
1400
|
+
onClick: r[0] || (r[0] = (t) => de(e.value.userOptions.callbacks.csv))
|
|
1408
1401
|
}, [
|
|
1409
|
-
|
|
1402
|
+
fe(u(ge), {
|
|
1410
1403
|
name: "excel",
|
|
1411
|
-
stroke:
|
|
1404
|
+
stroke: te.value.props.color
|
|
1412
1405
|
}, null, 8, ["stroke"])
|
|
1413
1406
|
])
|
|
1414
1407
|
]),
|
|
1415
1408
|
key: "1"
|
|
1416
1409
|
} : void 0
|
|
1417
1410
|
]), 1040)) : h("", !0),
|
|
1418
|
-
|
|
1419
|
-
], 46,
|
|
1411
|
+
u(me) ? (a(), le(At, { key: 7 })) : h("", !0)
|
|
1412
|
+
], 46, Rt));
|
|
1420
1413
|
}
|
|
1421
|
-
},
|
|
1414
|
+
}, eo = /* @__PURE__ */ Pt(Ga, [["__scopeId", "data-v-e363d8af"]]);
|
|
1422
1415
|
export {
|
|
1423
|
-
|
|
1416
|
+
eo as default
|
|
1424
1417
|
};
|