vue-data-ui 3.0.23 → 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-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
- package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
- package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
- package/dist/DataTable-BAf4Obr9.js +140 -0
- package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
- package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
- package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
- package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
- package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
- package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
- package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
- package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
- package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
- package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
- package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
- package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
- package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
- package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
- package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
- package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
- package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
- package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
- package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
- package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
- package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
- package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
- package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
- package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
- package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
- package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
- package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
- package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
- package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
- package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
- package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
- package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
- package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
- package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
- package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
- package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
- package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
- package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
- package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
- package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
- package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
- package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
- package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
- package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
- package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
- package/dist/vue-ui-radar-Br4K80I9.js +858 -0
- package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
- package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
- package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
- package/dist/vue-ui-rings-DEru-cWN.js +785 -0
- package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
- package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
- package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
- package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
- package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
- package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
- package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
- package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
- package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
- package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
- package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
- package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
- package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
- package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
- package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
- package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
- package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
- package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
- package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
- package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-nO6ydJO2.js +0 -133
- package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
- package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
- package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
- package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
- package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
- package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
- package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
- package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
- package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
- package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
- package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
- package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
- package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
- package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
|
@@ -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 It = ["id"], Rt = {
|
|
|
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 It = ["id"], Rt = {
|
|
|
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 It = ["id"], Rt = {
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
})
|
|
161
|
-
}), { userOptionsVisible:
|
|
162
|
-
function
|
|
163
|
-
const l =
|
|
164
|
-
userConfig:
|
|
165
|
-
defaultConfig:
|
|
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({
|
|
165
|
+
userConfig: j.config,
|
|
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
|
-
|
|
186
|
+
ye(e, () => {
|
|
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,
|
|
@@ -200,82 +201,82 @@ const It = ["id"], Rt = {
|
|
|
200
201
|
branchSize: 32,
|
|
201
202
|
branchStart: 128
|
|
202
203
|
}), T = k(() => ({
|
|
203
|
-
left:
|
|
204
|
-
top:
|
|
205
|
-
right:
|
|
206
|
-
bottom:
|
|
207
|
-
width:
|
|
208
|
-
height:
|
|
209
|
-
seedX:
|
|
210
|
-
})),
|
|
211
|
-
|
|
204
|
+
left: i.value.padding.left,
|
|
205
|
+
top: i.value.padding.top,
|
|
206
|
+
right: i.value.width - i.value.padding.right,
|
|
207
|
+
bottom: i.value.height - i.value.padding.bottom,
|
|
208
|
+
width: i.value.width - (i.value.padding.left + i.value.padding.right),
|
|
209
|
+
height: i.value.height - (i.value.padding.top + i.value.padding.bottom),
|
|
210
|
+
seedX: i.value.padding.left + 64
|
|
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
|
-
index:
|
|
220
|
-
debug:
|
|
220
|
+
index: r,
|
|
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
|
-
index: `${
|
|
232
|
-
debug:
|
|
232
|
+
index: `${r} - ${s}`,
|
|
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
|
-
}).forEach((
|
|
239
|
-
|
|
239
|
+
}).forEach((f) => {
|
|
240
|
+
se({
|
|
240
241
|
componentName: "VueUiChestnut",
|
|
241
242
|
type: "datasetSerieAttribute",
|
|
242
|
-
property:
|
|
243
|
-
index: `${
|
|
244
|
-
debug:
|
|
243
|
+
property: f,
|
|
244
|
+
index: `${r} - ${s} - ${b}`,
|
|
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
|
-
id: l.id || `root_${
|
|
254
|
+
color: pe(l.color) || ie.value[r] || R[r] || R[r % R.length],
|
|
255
|
+
id: l.id || `root_${r}_${C.value}`,
|
|
255
256
|
type: "root",
|
|
256
257
|
total: t,
|
|
257
|
-
rootIndex:
|
|
258
|
+
rootIndex: r,
|
|
258
259
|
branches: (l.branches || []).map((s, p) => ({
|
|
259
260
|
...s,
|
|
260
261
|
rootName: l.name,
|
|
261
|
-
rootIndex:
|
|
262
|
-
color:
|
|
262
|
+
rootIndex: r,
|
|
263
|
+
color: pe(l.color) || ie.value[r] || R[r] || R[r % R.length],
|
|
263
264
|
value: s.value >= 0 ? s.value : 0,
|
|
264
|
-
id: s.id || `branch_${
|
|
265
|
+
id: s.id || `branch_${r}_${p}_${C.value}`,
|
|
265
266
|
proportionToRoot: s.value / t,
|
|
266
267
|
type: "branch",
|
|
267
|
-
breakdown: (s.breakdown || []).map((b,
|
|
268
|
+
breakdown: (s.breakdown || []).map((b, f) => ({
|
|
268
269
|
table: {
|
|
269
270
|
rootName: l.name,
|
|
270
271
|
rootValue: t,
|
|
271
|
-
rootToTotal: t /
|
|
272
|
+
rootToTotal: t / B.value,
|
|
272
273
|
branchName: s.name,
|
|
273
274
|
branchValue: s.value,
|
|
274
|
-
branchToTotal: s.value /
|
|
275
|
+
branchToTotal: s.value / B.value,
|
|
275
276
|
branchToRoot: s.value / t,
|
|
276
277
|
nutName: b.name,
|
|
277
278
|
nutValue: b.value,
|
|
278
|
-
nutToTotal: b.value /
|
|
279
|
+
nutToTotal: b.value / B.value,
|
|
279
280
|
nutToRoot: b.value / t,
|
|
280
281
|
nutToBranch: b.value / s.value
|
|
281
282
|
},
|
|
@@ -286,92 +287,82 @@ const It = ["id"], Rt = {
|
|
|
286
287
|
branchTotal: s.value >= 0 ? s.value : 0,
|
|
287
288
|
proportionToBranch: b.value / s.value,
|
|
288
289
|
proportionToRoot: b.value / t,
|
|
289
|
-
proportionToTree: b.value /
|
|
290
|
-
rootIndex:
|
|
291
|
-
id: b.id || `nut_${
|
|
292
|
-
color:
|
|
290
|
+
proportionToTree: b.value / B.value,
|
|
291
|
+
rootIndex: r,
|
|
292
|
+
id: b.id || `nut_${r}_${p}_${f}_${C.value}`,
|
|
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
|
|
302
|
-
const t = T.value.height / N.value.length / 2, s = l.total /
|
|
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
306
|
x: T.value.seedX,
|
|
306
|
-
y: T.value.top + T.value.height / N.value.length * (
|
|
307
|
-
r: s <
|
|
307
|
+
y: T.value.top + T.value.height / N.value.length * (r + 1) - (T.value.height / N.value.length / 2 + i.value.gap / 2),
|
|
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:
|
|
312
|
-
y2:
|
|
313
|
-
x1:
|
|
314
|
-
x2: 384 * l.value /
|
|
312
|
+
y1: r * i.value.branchSize + T.value.top + r * i.value.gap,
|
|
313
|
+
y2: r * i.value.branchSize + i.value.branchSize,
|
|
314
|
+
x1: Ne.value,
|
|
315
|
+
x2: 384 * l.value / tt.value * lt.value + Ne.value
|
|
315
316
|
})));
|
|
316
|
-
function
|
|
317
|
-
const
|
|
318
|
-
return { x:
|
|
317
|
+
function ot(l) {
|
|
318
|
+
const r = D.value.find((t) => t.rootIndex === l.rootIndex);
|
|
319
|
+
return { x: r.x, y: r.y, r: r.r };
|
|
319
320
|
}
|
|
320
|
-
const d = z(null),
|
|
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,
|
|
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
|
-
l.y1 +
|
|
333
|
+
l.y1 + i.value.branchSize / 2,
|
|
333
334
|
80,
|
|
334
335
|
80
|
|
335
|
-
),
|
|
336
|
+
), W("selectNut", l.breakdown);
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
339
|
function G() {
|
|
339
|
-
d.value = null,
|
|
340
|
+
d.value = null, M.value = null, W("selectNut", null);
|
|
340
341
|
}
|
|
341
342
|
function ce(l) {
|
|
342
|
-
x.value && x.value.id === l.id ? (x.value = null, $(),
|
|
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
|
-
L.value && L.value.id === l.id ? ($(),
|
|
345
|
+
function Fe(l) {
|
|
346
|
+
L.value && L.value.id === l.id ? ($(), W("selectRoot", null)) : ($(), L.value = l, W("selectRoot", l));
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function ut() {
|
|
348
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((i) => {
|
|
357
|
-
Ce.value = i.contentRect.width < We.value;
|
|
358
|
-
});
|
|
359
|
-
}), ie.value && q.value.observe(ie.value);
|
|
360
|
-
}
|
|
361
|
-
dt(() => {
|
|
362
|
-
ze();
|
|
363
|
-
}), vt(() => {
|
|
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
|
-
|
|
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 = [
|
|
@@ -387,214 +378,248 @@ const It = ["id"], Rt = {
|
|
|
387
378
|
e.value.table.th.translations.nutToBranch,
|
|
388
379
|
e.value.table.th.translations.nutToRoot,
|
|
389
380
|
e.value.table.th.translations.nutToTotal
|
|
390
|
-
],
|
|
391
|
-
return { head: l, body:
|
|
381
|
+
], r = N.value.flatMap((t, s) => t.branches.flatMap((p, b) => p.breakdown.flatMap((f, m) => f.table)));
|
|
382
|
+
return { head: l, body: r };
|
|
392
383
|
});
|
|
393
|
-
function
|
|
394
|
-
|
|
395
|
-
const
|
|
396
|
-
v.value.body[m - 1] && v.value.body[m - 1].rootName ===
|
|
397
|
-
v.value.body[m - 1] && v.value.body[m - 1].rootName ===
|
|
398
|
-
v.value.body[m - 1] && v.value.body[m - 1].rootName ===
|
|
399
|
-
v.value.body[m - 1] && v.value.body[m - 1].branchName ===
|
|
400
|
-
v.value.body[m - 1] && v.value.body[m - 1].branchName ===
|
|
401
|
-
v.value.body[m - 1] && v.value.body[m - 1].branchName ===
|
|
402
|
-
v.value.body[m - 1] && v.value.body[m - 1].branchName ===
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
]), p =
|
|
409
|
-
l ? l(b) :
|
|
384
|
+
function de(l = null) {
|
|
385
|
+
he(() => {
|
|
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) => [
|
|
387
|
+
v.value.body[m - 1] && v.value.body[m - 1].rootName === f.rootName ? "" : f.rootName,
|
|
388
|
+
v.value.body[m - 1] && v.value.body[m - 1].rootName === f.rootName ? "" : f.rootValue,
|
|
389
|
+
v.value.body[m - 1] && v.value.body[m - 1].rootName === f.rootName ? "" : f.rootToTotal,
|
|
390
|
+
v.value.body[m - 1] && v.value.body[m - 1].branchName === f.branchName ? "" : f.branchName,
|
|
391
|
+
v.value.body[m - 1] && v.value.body[m - 1].branchName === f.branchName ? "" : f.branchValue,
|
|
392
|
+
v.value.body[m - 1] && v.value.body[m - 1].branchName === f.branchName ? "" : f.branchToRoot,
|
|
393
|
+
v.value.body[m - 1] && v.value.body[m - 1].branchName === f.branchName ? "" : f.branchToTotal,
|
|
394
|
+
f.nutName,
|
|
395
|
+
f.nutValue,
|
|
396
|
+
f.nutToBranch,
|
|
397
|
+
f.nutToRoot,
|
|
398
|
+
f.nutToTotal
|
|
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
|
|
417
|
-
|
|
407
|
+
function Pe() {
|
|
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
|
|
424
|
-
if (!
|
|
425
|
-
const { width:
|
|
414
|
+
async function nt({ scale: l = 2 } = {}) {
|
|
415
|
+
if (!U.value) return;
|
|
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,
|
|
429
420
|
title: e.value.style.chart.layout.title.text,
|
|
430
|
-
width:
|
|
421
|
+
width: r,
|
|
431
422
|
height: t,
|
|
432
423
|
aspectRatio: s
|
|
433
424
|
};
|
|
434
425
|
}
|
|
435
|
-
function
|
|
436
|
-
const
|
|
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
|
-
`C ${t - m},${s} ${t - m},${s} ${b},${
|
|
440
|
-
`C ${b},${
|
|
430
|
+
`C ${t - m},${s} ${t - m},${s} ${b},${f}`,
|
|
431
|
+
`C ${b},${f} ${t - m},${s + p} ${t},${s + p}`,
|
|
441
432
|
"Z"
|
|
442
433
|
].join(" ");
|
|
443
434
|
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
435
|
+
const te = k(() => {
|
|
436
|
+
const l = e.value.table.useDialog && !e.value.table.show, r = V.value.showTable;
|
|
437
|
+
return {
|
|
438
|
+
component: l ? Ye : Ge,
|
|
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}` : ""}`,
|
|
440
|
+
props: l ? {
|
|
441
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
442
|
+
color: e.value.table.th.color,
|
|
443
|
+
headerColor: e.value.table.th.color,
|
|
444
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
445
|
+
isFullscreen: q.value,
|
|
446
|
+
fullscreenParent: U.value,
|
|
447
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
448
|
+
} : {
|
|
449
|
+
hideDetails: !0,
|
|
450
|
+
config: {
|
|
451
|
+
open: r,
|
|
452
|
+
maxHeight: 1e4,
|
|
453
|
+
body: {
|
|
454
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
455
|
+
color: e.value.style.chart.color
|
|
456
|
+
},
|
|
457
|
+
head: {
|
|
458
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
459
|
+
color: e.value.style.chart.color
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
});
|
|
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
|
|
478
|
+
}), (l, r) => (a(), o("div", {
|
|
479
|
+
class: w(`vue-ui-chestnut ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
455
480
|
ref_key: "chestnutChart",
|
|
456
|
-
ref:
|
|
481
|
+
ref: U,
|
|
457
482
|
id: `vue-ui-chestnut_${C.value}`,
|
|
458
483
|
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
459
|
-
onMouseenter:
|
|
460
|
-
onMouseleave:
|
|
484
|
+
onMouseenter: r[4] || (r[4] = () => u(ke)(!0)),
|
|
485
|
+
onMouseleave: r[5] || (r[5] = () => u(ke)(!1))
|
|
461
486
|
}, [
|
|
462
|
-
e.value.userOptions.buttons.annotator ? (a(),
|
|
487
|
+
e.value.userOptions.buttons.annotator ? (a(), le(u(Ee), {
|
|
463
488
|
key: 0,
|
|
464
|
-
svgRef:
|
|
489
|
+
svgRef: u(Ce),
|
|
465
490
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
466
491
|
color: e.value.style.chart.color,
|
|
467
|
-
active:
|
|
468
|
-
onClose:
|
|
469
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
470
|
-
|
|
471
|
-
e.value.userOptions.show &&
|
|
492
|
+
active: ee.value,
|
|
493
|
+
onClose: ve
|
|
494
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
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), {
|
|
472
497
|
ref_key: "details",
|
|
473
|
-
ref:
|
|
474
|
-
key: `user_options_${
|
|
498
|
+
ref: He,
|
|
499
|
+
key: `user_options_${xe.value}`,
|
|
475
500
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
476
501
|
color: e.value.style.chart.color,
|
|
477
|
-
isImaging:
|
|
478
|
-
isPrinting:
|
|
502
|
+
isImaging: u(Te),
|
|
503
|
+
isPrinting: u($e),
|
|
479
504
|
uid: C.value,
|
|
480
505
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
481
506
|
hasImg: e.value.userOptions.buttons.img,
|
|
482
507
|
hasXls: e.value.userOptions.buttons.csv,
|
|
483
508
|
hasTable: e.value.userOptions.buttons.table,
|
|
484
509
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
485
|
-
isFullscreen:
|
|
510
|
+
isFullscreen: q.value,
|
|
486
511
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
487
|
-
chartElement:
|
|
512
|
+
chartElement: U.value,
|
|
488
513
|
position: e.value.userOptions.position,
|
|
489
514
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
490
|
-
isAnnotation:
|
|
515
|
+
isAnnotation: ee.value,
|
|
491
516
|
callbacks: e.value.userOptions.callbacks,
|
|
492
517
|
printScale: e.value.userOptions.print.scale,
|
|
493
|
-
onToggleFullscreen:
|
|
494
|
-
onGeneratePdf:
|
|
495
|
-
onGenerateCsv:
|
|
496
|
-
onGenerateImage:
|
|
497
|
-
onToggleTable:
|
|
498
|
-
onToggleAnnotator:
|
|
518
|
+
onToggleFullscreen: Ie,
|
|
519
|
+
onGeneratePdf: u(ze),
|
|
520
|
+
onGenerateCsv: de,
|
|
521
|
+
onGenerateImage: u(Ae),
|
|
522
|
+
onToggleTable: Pe,
|
|
523
|
+
onToggleAnnotator: ve,
|
|
499
524
|
style: y({
|
|
500
|
-
visibility:
|
|
525
|
+
visibility: u(we) ? u(ne) ? "visible" : "hidden" : "visible"
|
|
501
526
|
})
|
|
502
|
-
},
|
|
527
|
+
}, Re({ _: 2 }, [
|
|
503
528
|
l.$slots.menuIcon ? {
|
|
504
529
|
name: "menuIcon",
|
|
505
|
-
fn:
|
|
506
|
-
F(l.$slots, "menuIcon",
|
|
530
|
+
fn: P(({ isOpen: t, color: s }) => [
|
|
531
|
+
F(l.$slots, "menuIcon", ae(oe({ isOpen: t, color: s })), void 0, !0)
|
|
507
532
|
]),
|
|
508
533
|
key: "0"
|
|
509
534
|
} : void 0,
|
|
510
535
|
l.$slots.optionPdf ? {
|
|
511
536
|
name: "optionPdf",
|
|
512
|
-
fn:
|
|
537
|
+
fn: P(() => [
|
|
513
538
|
F(l.$slots, "optionPdf", {}, void 0, !0)
|
|
514
539
|
]),
|
|
515
540
|
key: "1"
|
|
516
541
|
} : void 0,
|
|
517
542
|
l.$slots.optionCsv ? {
|
|
518
543
|
name: "optionCsv",
|
|
519
|
-
fn:
|
|
544
|
+
fn: P(() => [
|
|
520
545
|
F(l.$slots, "optionCsv", {}, void 0, !0)
|
|
521
546
|
]),
|
|
522
547
|
key: "2"
|
|
523
548
|
} : void 0,
|
|
524
549
|
l.$slots.optionImg ? {
|
|
525
550
|
name: "optionImg",
|
|
526
|
-
fn:
|
|
551
|
+
fn: P(() => [
|
|
527
552
|
F(l.$slots, "optionImg", {}, void 0, !0)
|
|
528
553
|
]),
|
|
529
554
|
key: "3"
|
|
530
555
|
} : void 0,
|
|
531
556
|
l.$slots.optionTable ? {
|
|
532
557
|
name: "optionTable",
|
|
533
|
-
fn:
|
|
558
|
+
fn: P(() => [
|
|
534
559
|
F(l.$slots, "optionTable", {}, void 0, !0)
|
|
535
560
|
]),
|
|
536
561
|
key: "4"
|
|
537
562
|
} : void 0,
|
|
538
563
|
l.$slots.optionFullscreen ? {
|
|
539
564
|
name: "optionFullscreen",
|
|
540
|
-
fn:
|
|
541
|
-
F(l.$slots, "optionFullscreen",
|
|
565
|
+
fn: P(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
566
|
+
F(l.$slots, "optionFullscreen", ae(oe({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
542
567
|
]),
|
|
543
568
|
key: "5"
|
|
544
569
|
} : void 0,
|
|
545
570
|
l.$slots.optionAnnotator ? {
|
|
546
571
|
name: "optionAnnotator",
|
|
547
|
-
fn:
|
|
548
|
-
F(l.$slots, "optionAnnotator",
|
|
572
|
+
fn: P(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
573
|
+
F(l.$slots, "optionAnnotator", ae(oe({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
549
574
|
]),
|
|
550
575
|
key: "6"
|
|
551
576
|
} : void 0
|
|
552
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
553
|
-
|
|
577
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
578
|
+
i.value.height > 0 ? (a(), o("svg", {
|
|
554
579
|
key: 3,
|
|
555
580
|
ref_key: "svgRef",
|
|
556
|
-
ref:
|
|
557
|
-
xmlns:
|
|
558
|
-
class: w({ "vue-data-ui-fullscreen--on":
|
|
559
|
-
viewBox: `0 0 ${
|
|
581
|
+
ref: Ce,
|
|
582
|
+
xmlns: u(wt),
|
|
583
|
+
class: w({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
|
|
584
|
+
viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
|
|
560
585
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
561
586
|
}, [
|
|
562
|
-
|
|
587
|
+
fe(u(We)),
|
|
563
588
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
564
589
|
key: 0,
|
|
565
590
|
x: 0,
|
|
566
591
|
y: 0,
|
|
567
|
-
width:
|
|
568
|
-
height:
|
|
592
|
+
width: i.value.width <= 0 ? 10 : i.value.width,
|
|
593
|
+
height: i.value.height <= 0 ? 10 : i.value.height,
|
|
569
594
|
style: {
|
|
570
595
|
pointerEvents: "none"
|
|
571
596
|
}
|
|
572
597
|
}, [
|
|
573
598
|
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
574
|
-
], 8,
|
|
575
|
-
d.value ?
|
|
599
|
+
], 8, Bt)) : h("", !0),
|
|
600
|
+
d.value ? h("", !0) : (a(), o("g", Mt, [
|
|
576
601
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
577
602
|
key: 0,
|
|
578
603
|
"text-anchor": "middle",
|
|
579
604
|
fill: e.value.style.chart.layout.title.color,
|
|
580
605
|
"font-weight": e.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
581
606
|
"font-size": e.value.style.chart.layout.title.fontSize,
|
|
582
|
-
x:
|
|
607
|
+
x: i.value.width / 2,
|
|
583
608
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
584
609
|
onClick: $
|
|
585
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
610
|
+
}, c(e.value.style.chart.layout.title.text), 9, jt)) : h("", !0),
|
|
586
611
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
587
612
|
key: 1,
|
|
588
613
|
"text-anchor": "middle",
|
|
589
614
|
fill: e.value.style.chart.layout.title.subtitle.color,
|
|
590
615
|
"font-weight": e.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
591
616
|
"font-size": e.value.style.chart.layout.title.subtitle.fontSize,
|
|
592
|
-
x:
|
|
617
|
+
x: i.value.width / 2,
|
|
593
618
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
594
619
|
onClick: $
|
|
595
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
620
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, Dt)) : h("", !0)
|
|
596
621
|
])),
|
|
597
|
-
|
|
622
|
+
n("defs", null, [
|
|
598
623
|
(a(!0), o(g, null, _(N.value, (t, s) => (a(), o("radialGradient", {
|
|
599
624
|
cx: "50%",
|
|
600
625
|
cy: "50%",
|
|
@@ -603,15 +628,15 @@ const It = ["id"], Rt = {
|
|
|
603
628
|
fy: "50%",
|
|
604
629
|
id: `root_gradient_${C.value}_${t.rootIndex}`
|
|
605
630
|
}, [
|
|
606
|
-
|
|
631
|
+
n("stop", {
|
|
607
632
|
offset: "0%",
|
|
608
|
-
"stop-color":
|
|
609
|
-
}, null, 8,
|
|
610
|
-
|
|
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", {
|
|
611
636
|
offset: "100%",
|
|
612
637
|
"stop-color": t.color
|
|
613
638
|
}, null, 8, Et)
|
|
614
|
-
], 8,
|
|
639
|
+
], 8, Xt))), 256)),
|
|
615
640
|
(a(!0), o(g, null, _(N.value, (t) => (a(), o("linearGradient", {
|
|
616
641
|
x1: "0%",
|
|
617
642
|
y1: "0%",
|
|
@@ -619,16 +644,16 @@ const It = ["id"], Rt = {
|
|
|
619
644
|
y2: "0%",
|
|
620
645
|
id: `branch_gradient_${C.value}_${t.rootIndex}`
|
|
621
646
|
}, [
|
|
622
|
-
|
|
647
|
+
n("stop", {
|
|
623
648
|
offset: "0%",
|
|
624
649
|
"stop-color": t.color
|
|
625
|
-
}, null, 8,
|
|
626
|
-
|
|
650
|
+
}, null, 8, Wt),
|
|
651
|
+
n("stop", {
|
|
627
652
|
offset: "100%",
|
|
628
|
-
"stop-color":
|
|
629
|
-
}, null, 8,
|
|
630
|
-
], 8,
|
|
631
|
-
|
|
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", {
|
|
632
657
|
cx: "50%",
|
|
633
658
|
cy: "50%",
|
|
634
659
|
r: "50%",
|
|
@@ -636,20 +661,20 @@ const It = ["id"], Rt = {
|
|
|
636
661
|
fy: "50%",
|
|
637
662
|
id: `nutpick_${C.value}`
|
|
638
663
|
}, [
|
|
639
|
-
|
|
664
|
+
n("stop", {
|
|
640
665
|
offset: "0%",
|
|
641
|
-
"stop-color":
|
|
642
|
-
}, null, 8, qt),
|
|
643
|
-
u("stop", {
|
|
644
|
-
offset: "80%",
|
|
645
|
-
"stop-color": n(A)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
666
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
646
667
|
}, null, 8, Ht),
|
|
647
|
-
|
|
668
|
+
n("stop", {
|
|
669
|
+
offset: "80%",
|
|
670
|
+
"stop-color": u(A)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
671
|
+
}, null, 8, Kt),
|
|
672
|
+
n("stop", {
|
|
648
673
|
offset: "100%",
|
|
649
|
-
"stop-color":
|
|
650
|
-
}, null, 8,
|
|
651
|
-
], 8,
|
|
652
|
-
|
|
674
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
675
|
+
}, null, 8, Zt)
|
|
676
|
+
], 8, qt),
|
|
677
|
+
n("radialGradient", {
|
|
653
678
|
cx: "50%",
|
|
654
679
|
cy: "50%",
|
|
655
680
|
r: "50%",
|
|
@@ -657,20 +682,20 @@ const It = ["id"], Rt = {
|
|
|
657
682
|
fy: "50%",
|
|
658
683
|
id: `nut_${C.value}`
|
|
659
684
|
}, [
|
|
660
|
-
|
|
685
|
+
n("stop", {
|
|
661
686
|
offset: "0%",
|
|
662
|
-
"stop-color":
|
|
663
|
-
}, null, 8,
|
|
664
|
-
|
|
687
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
688
|
+
}, null, 8, Qt),
|
|
689
|
+
n("stop", {
|
|
665
690
|
offset: "80%",
|
|
666
|
-
"stop-color":
|
|
667
|
-
}, null, 8,
|
|
668
|
-
|
|
691
|
+
"stop-color": u(A)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
692
|
+
}, null, 8, el),
|
|
693
|
+
n("stop", {
|
|
669
694
|
offset: "100%",
|
|
670
|
-
"stop-color":
|
|
671
|
-
}, null, 8,
|
|
672
|
-
], 8,
|
|
673
|
-
|
|
695
|
+
"stop-color": u(A)("#FFFFFF", 0)
|
|
696
|
+
}, null, 8, tl)
|
|
697
|
+
], 8, Jt),
|
|
698
|
+
n("radialGradient", {
|
|
674
699
|
cx: "50%",
|
|
675
700
|
cy: "50%",
|
|
676
701
|
r: "50%",
|
|
@@ -678,22 +703,22 @@ const It = ["id"], Rt = {
|
|
|
678
703
|
fy: "50%",
|
|
679
704
|
id: `nut_underlayer_${C.value}`
|
|
680
705
|
}, [
|
|
681
|
-
|
|
706
|
+
n("stop", {
|
|
682
707
|
offset: "0%",
|
|
683
|
-
"stop-color":
|
|
684
|
-
}, null, 8,
|
|
685
|
-
|
|
708
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 100)
|
|
709
|
+
}, null, 8, al),
|
|
710
|
+
n("stop", {
|
|
686
711
|
offset: "80%",
|
|
687
|
-
"stop-color":
|
|
688
|
-
}, null, 8,
|
|
689
|
-
|
|
712
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 60)
|
|
713
|
+
}, null, 8, ol),
|
|
714
|
+
n("stop", {
|
|
690
715
|
offset: "100%",
|
|
691
|
-
"stop-color":
|
|
692
|
-
}, null, 8,
|
|
693
|
-
], 8,
|
|
716
|
+
"stop-color": u(A)(e.value.style.chart.backgroundColor, 0)
|
|
717
|
+
}, null, 8, sl)
|
|
718
|
+
], 8, ll)
|
|
694
719
|
]),
|
|
695
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
696
|
-
|
|
720
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", ul, [
|
|
721
|
+
n("text", {
|
|
697
722
|
x: T.value.seedX,
|
|
698
723
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
699
724
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -701,8 +726,8 @@ const It = ["id"], Rt = {
|
|
|
701
726
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
702
727
|
"text-anchor": "middle",
|
|
703
728
|
onClick: $
|
|
704
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
705
|
-
|
|
729
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, nl),
|
|
730
|
+
n("text", {
|
|
706
731
|
x: T.value.seedX,
|
|
707
732
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
708
733
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -710,51 +735,51 @@ const It = ["id"], Rt = {
|
|
|
710
735
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
711
736
|
"text-anchor": "middle",
|
|
712
737
|
onClick: $
|
|
713
|
-
}, c(
|
|
738
|
+
}, c(u(E)(
|
|
714
739
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
715
|
-
|
|
716
|
-
|
|
740
|
+
B.value,
|
|
741
|
+
u(S)({
|
|
717
742
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
718
|
-
v:
|
|
743
|
+
v: B.value,
|
|
719
744
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
720
745
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
721
746
|
})
|
|
722
|
-
)), 9,
|
|
723
|
-
])) :
|
|
724
|
-
(a(!0), o(g, null, _(
|
|
725
|
-
|
|
726
|
-
|
|
747
|
+
)), 9, rl)
|
|
748
|
+
])) : h("", !0),
|
|
749
|
+
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
750
|
+
n("defs", null, [
|
|
751
|
+
n("linearGradient", {
|
|
727
752
|
id: `link_grad_${t.id}`
|
|
728
753
|
}, [
|
|
729
|
-
|
|
754
|
+
n("stop", {
|
|
730
755
|
offset: "0%",
|
|
731
756
|
"stop-color": t.color
|
|
732
|
-
}, null, 8,
|
|
733
|
-
|
|
757
|
+
}, null, 8, cl),
|
|
758
|
+
n("stop", {
|
|
734
759
|
offset: "100%",
|
|
735
|
-
"stop-color":
|
|
736
|
-
}, null, 8,
|
|
737
|
-
], 8,
|
|
760
|
+
"stop-color": u(A)(t.color, e.value.style.chart.layout.links.opacity)
|
|
761
|
+
}, null, 8, dl)
|
|
762
|
+
], 8, il)
|
|
738
763
|
]),
|
|
739
|
-
|
|
740
|
-
d:
|
|
741
|
-
stroke:
|
|
764
|
+
n("path", {
|
|
765
|
+
d: rt(t),
|
|
766
|
+
stroke: u(A)(t.color, e.value.style.chart.layout.links.opacity),
|
|
742
767
|
fill: `url(#link_grad_${t.id})`,
|
|
743
768
|
"stroke-linecap": "round",
|
|
744
769
|
"stroke-linejoin": "round",
|
|
745
770
|
style: y(`opacity:${I(t) ? 1 : 0}`),
|
|
746
771
|
onClick: $
|
|
747
|
-
}, null, 12,
|
|
772
|
+
}, null, 12, vl)
|
|
748
773
|
]))), 256)),
|
|
749
|
-
(a(!0), o(g, null, _(
|
|
774
|
+
(a(!0), o(g, null, _(D.value, (t) => (a(), o("circle", {
|
|
750
775
|
cx: t.x,
|
|
751
776
|
cy: t.y,
|
|
752
777
|
r: t.r,
|
|
753
778
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
754
779
|
stroke: "none",
|
|
755
780
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`)
|
|
756
|
-
}, null, 12,
|
|
757
|
-
(a(!0), o(g, null, _(
|
|
781
|
+
}, null, 12, yl))), 256)),
|
|
782
|
+
(a(!0), o(g, null, _(D.value, (t, s) => (a(), o("circle", {
|
|
758
783
|
cx: t.x,
|
|
759
784
|
cy: t.y,
|
|
760
785
|
r: t.r,
|
|
@@ -762,32 +787,32 @@ const It = ["id"], Rt = {
|
|
|
762
787
|
stroke: e.value.style.chart.layout.roots.stroke,
|
|
763
788
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
764
789
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
765
|
-
onClick: (p) =>
|
|
766
|
-
}, null, 12,
|
|
767
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
768
|
-
(a(!0), o(g, null, _(
|
|
790
|
+
onClick: (p) => Fe(t)
|
|
791
|
+
}, null, 12, hl))), 256)),
|
|
792
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", fl, [
|
|
793
|
+
(a(!0), o(g, null, _(D.value, (t, s) => (a(), o("text", {
|
|
769
794
|
x: t.x,
|
|
770
795
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
771
796
|
"text-anchor": "middle",
|
|
772
797
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
773
|
-
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,
|
|
774
799
|
"font-weight": "bold",
|
|
775
800
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
776
|
-
onClick: (p) =>
|
|
777
|
-
}, c(
|
|
801
|
+
onClick: (p) => Fe(t)
|
|
802
|
+
}, c(u(E)(
|
|
778
803
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
779
804
|
t.total,
|
|
780
|
-
|
|
805
|
+
u(S)({
|
|
781
806
|
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
782
807
|
v: t.total,
|
|
783
808
|
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
784
809
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
785
810
|
}),
|
|
786
811
|
{ datapoint: t }
|
|
787
|
-
)), 13,
|
|
788
|
-
(a(!0), o(g, null, _(
|
|
789
|
-
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g",
|
|
790
|
-
|
|
812
|
+
)), 13, bl))), 256)),
|
|
813
|
+
(a(!0), o(g, null, _(D.value, (t) => (a(), o("g", null, [
|
|
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", {
|
|
791
816
|
x: t.x,
|
|
792
817
|
y: t.y + t.r + 24,
|
|
793
818
|
"text-anchor": "middle",
|
|
@@ -795,25 +820,25 @@ const It = ["id"], Rt = {
|
|
|
795
820
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
796
821
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
797
822
|
onClick: $
|
|
798
|
-
}, c(t.name), 9,
|
|
799
|
-
])) :
|
|
823
|
+
}, c(t.name), 9, gl)
|
|
824
|
+
])) : h("", !0)
|
|
800
825
|
]))), 256))
|
|
801
|
-
])) :
|
|
802
|
-
(a(!0), o(g, null, _(
|
|
826
|
+
])) : h("", !0),
|
|
827
|
+
(a(!0), o(g, null, _(X.value, (t) => (a(), o("rect", {
|
|
803
828
|
x: t.x1,
|
|
804
829
|
y: t.y1,
|
|
805
|
-
height:
|
|
830
|
+
height: i.value.branchSize,
|
|
806
831
|
width: t.x2 - t.x1,
|
|
807
832
|
fill: e.value.style.chart.layout.branches.underlayerColor,
|
|
808
833
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
809
834
|
stroke: "none",
|
|
810
835
|
style: y(`opacity:${I(t) ? 1 : 0.05}`),
|
|
811
836
|
onClick: (s) => ce(t)
|
|
812
|
-
}, null, 12,
|
|
813
|
-
(a(!0), o(g, null, _(
|
|
837
|
+
}, null, 12, _l))), 256)),
|
|
838
|
+
(a(!0), o(g, null, _(X.value, (t, s) => (a(), o("rect", {
|
|
814
839
|
x: t.x1,
|
|
815
840
|
y: t.y1,
|
|
816
|
-
height:
|
|
841
|
+
height: i.value.branchSize,
|
|
817
842
|
width: t.x2 - t.x1,
|
|
818
843
|
fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${C.value}_${t.rootIndex})` : t.color,
|
|
819
844
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
@@ -821,103 +846,103 @@ const It = ["id"], Rt = {
|
|
|
821
846
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
822
847
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
823
848
|
onClick: (p) => ce(t)
|
|
824
|
-
}, null, 12,
|
|
825
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
826
|
-
(a(!0), o(g, null, _(
|
|
849
|
+
}, null, 12, xl))), 256)),
|
|
850
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", ml, [
|
|
851
|
+
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
827
852
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
828
853
|
key: 0,
|
|
829
854
|
x: t.x1 + 6,
|
|
830
|
-
y: t.y1 +
|
|
855
|
+
y: t.y1 + i.value.branchSize / 1.5,
|
|
831
856
|
"text-anchor": "start",
|
|
832
|
-
fill:
|
|
857
|
+
fill: u(Ve)(t.color),
|
|
833
858
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
834
859
|
"font-weight": "bold",
|
|
835
860
|
style: y(`cursor:pointer; opacity:${I(t) ? 1 : 0.05}`),
|
|
836
861
|
onClick: (s) => ce(t)
|
|
837
|
-
}, c(
|
|
862
|
+
}, c(u(E)(
|
|
838
863
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
839
864
|
t.value,
|
|
840
|
-
|
|
865
|
+
u(S)({
|
|
841
866
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
842
867
|
v: t.value,
|
|
843
868
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
844
869
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
845
870
|
}),
|
|
846
871
|
{ datapoint: t }
|
|
847
|
-
)), 13,
|
|
872
|
+
)), 13, kl)) : h("", !0)
|
|
848
873
|
]))), 256))
|
|
849
|
-
])) :
|
|
850
|
-
(a(!0), o(g, null, _(
|
|
851
|
-
(a(!0), o(g, null, _(
|
|
874
|
+
])) : h("", !0),
|
|
875
|
+
(a(!0), o(g, null, _(X.value, (t, s) => (a(), o("g", null, [
|
|
876
|
+
(a(!0), o(g, null, _(u(Be)(
|
|
852
877
|
{ series: t.breakdown, base: 1 },
|
|
853
878
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
854
|
-
t.y1 +
|
|
855
|
-
|
|
856
|
-
|
|
879
|
+
t.y1 + i.value.branchSize / 2,
|
|
880
|
+
i.value.branchSize / 3,
|
|
881
|
+
i.value.branchSize / 3
|
|
857
882
|
), (p, b) => (a(), o("path", {
|
|
858
883
|
d: p.path,
|
|
859
884
|
stroke: p.color,
|
|
860
885
|
"stroke-width": 10,
|
|
861
886
|
fill: "none",
|
|
862
887
|
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
863
|
-
}, null, 12,
|
|
864
|
-
|
|
888
|
+
}, null, 12, wl))), 256)),
|
|
889
|
+
n("circle", {
|
|
865
890
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${C.value})` : "transparent",
|
|
866
891
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
867
|
-
cy: t.y1 +
|
|
868
|
-
r:
|
|
869
|
-
onClick: (p) =>
|
|
892
|
+
cy: t.y1 + i.value.branchSize / 2,
|
|
893
|
+
r: i.value.branchSize / 2 + 2,
|
|
894
|
+
onClick: (p) => st(t),
|
|
870
895
|
style: y(`cursor:pointer;opacity:${I(t) ? 1 : 0.1}`)
|
|
871
|
-
}, null, 12,
|
|
896
|
+
}, null, 12, Cl)
|
|
872
897
|
]))), 256)),
|
|
873
|
-
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g",
|
|
874
|
-
(a(!0), o(g, null, _(
|
|
875
|
-
x: t.x2 +
|
|
876
|
-
y: t.y1 +
|
|
898
|
+
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", $l, [
|
|
899
|
+
(a(!0), o(g, null, _(X.value, (t) => (a(), o("text", {
|
|
900
|
+
x: t.x2 + i.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
901
|
+
y: t.y1 + i.value.branchSize / 2 + 5,
|
|
877
902
|
"font-size": e.value.style.chart.layout.branches.labels.fontSize,
|
|
878
903
|
"font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
879
904
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
880
905
|
"text-anchor": "start",
|
|
881
906
|
style: y(`opacity:${I(t) ? 1 : 0.1}`)
|
|
882
|
-
}, c(t.name), 13,
|
|
883
|
-
])) :
|
|
884
|
-
|
|
885
|
-
x1: 256 +
|
|
886
|
-
x2: 256 +
|
|
907
|
+
}, c(t.name), 13, Tl))), 256))
|
|
908
|
+
])) : h("", !0),
|
|
909
|
+
n("line", {
|
|
910
|
+
x1: 256 + i.value.padding.left,
|
|
911
|
+
x2: 256 + i.value.padding.left,
|
|
887
912
|
y1: T.value.top,
|
|
888
913
|
y2: T.value.bottom,
|
|
889
914
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
890
915
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
891
|
-
}, null, 8,
|
|
916
|
+
}, null, 8, zl),
|
|
892
917
|
!d.value && !x.value ? (a(), o("foreignObject", {
|
|
893
918
|
key: 6,
|
|
894
919
|
x: 0,
|
|
895
920
|
y: T.value.bottom,
|
|
896
|
-
height:
|
|
897
|
-
width:
|
|
921
|
+
height: i.value.height - T.value.bottom,
|
|
922
|
+
width: i.value.width,
|
|
898
923
|
style: { overflow: "visible" },
|
|
899
924
|
onClick: $
|
|
900
925
|
}, [
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
(a(!0), o(g, null, _(
|
|
926
|
+
n("div", Sl, [
|
|
927
|
+
n("div", Nl, [
|
|
928
|
+
(a(!0), o(g, null, _(D.value, (t) => (a(), o("div", {
|
|
904
929
|
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
905
930
|
}, [
|
|
906
|
-
(a(), o("svg",
|
|
907
|
-
|
|
931
|
+
(a(), o("svg", Fl, [
|
|
932
|
+
n("circle", {
|
|
908
933
|
cx: "10",
|
|
909
934
|
cy: "10",
|
|
910
935
|
r: "10",
|
|
911
936
|
fill: t.color,
|
|
912
937
|
stroke: "none"
|
|
913
|
-
}, null, 8,
|
|
938
|
+
}, null, 8, Ll)
|
|
914
939
|
])),
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
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)(
|
|
918
943
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
919
944
|
t.total,
|
|
920
|
-
|
|
945
|
+
u(S)({
|
|
921
946
|
p: e.value.style.chart.layout.legend.prefix,
|
|
922
947
|
v: t.total,
|
|
923
948
|
s: e.value.style.chart.layout.legend.suffix,
|
|
@@ -925,8 +950,8 @@ const It = ["id"], Rt = {
|
|
|
925
950
|
}),
|
|
926
951
|
{ datapoint: t }
|
|
927
952
|
)), 1),
|
|
928
|
-
|
|
929
|
-
v: t.total /
|
|
953
|
+
Z(" (" + c(u(S)({
|
|
954
|
+
v: t.total / B.value * 100,
|
|
930
955
|
s: "%",
|
|
931
956
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
932
957
|
})) + ") ", 1)
|
|
@@ -934,56 +959,56 @@ const It = ["id"], Rt = {
|
|
|
934
959
|
], 4))), 256))
|
|
935
960
|
])
|
|
936
961
|
])
|
|
937
|
-
], 8,
|
|
938
|
-
d.value &&
|
|
962
|
+
], 8, Al)) : h("", !0),
|
|
963
|
+
d.value && M.value ? (a(), o("g", Il, [
|
|
939
964
|
(a(), o("foreignObject", {
|
|
940
965
|
x: 0,
|
|
941
|
-
y:
|
|
942
|
-
height:
|
|
943
|
-
width:
|
|
966
|
+
y: ut(),
|
|
967
|
+
height: i.value.height - T.value.bottom,
|
|
968
|
+
width: i.value.width,
|
|
944
969
|
style: { overflow: "visible" },
|
|
945
970
|
onClick: $
|
|
946
971
|
}, [
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
972
|
+
n("div", Rl, [
|
|
973
|
+
n("b", null, c(d.value.name), 1),
|
|
974
|
+
n("div", Ol, [
|
|
950
975
|
(a(!0), o(g, null, _(d.value.breakdown, (t, s) => (a(), o("div", {
|
|
951
976
|
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
952
977
|
}, [
|
|
953
|
-
(a(), o("svg",
|
|
954
|
-
|
|
978
|
+
(a(), o("svg", Vl, [
|
|
979
|
+
n("circle", {
|
|
955
980
|
cx: "10",
|
|
956
981
|
cy: "10",
|
|
957
982
|
r: "10",
|
|
958
983
|
fill: t.color,
|
|
959
984
|
stroke: "none"
|
|
960
|
-
}, null, 8,
|
|
985
|
+
}, null, 8, Bl)
|
|
961
986
|
])),
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
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)
|
|
966
991
|
])
|
|
967
992
|
], 4))), 256))
|
|
968
993
|
])
|
|
969
994
|
])
|
|
970
|
-
], 8,
|
|
971
|
-
|
|
995
|
+
], 8, Pl)),
|
|
996
|
+
n("circle", {
|
|
972
997
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
973
|
-
cy: d.value.y1 +
|
|
998
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
974
999
|
r: 256,
|
|
975
1000
|
fill: `url(#nut_underlayer_${C.value})`,
|
|
976
1001
|
onClick: G,
|
|
977
1002
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
978
|
-
}, null, 10,
|
|
979
|
-
(a(!0), o(g, null, _(
|
|
1003
|
+
}, null, 10, Ml),
|
|
1004
|
+
(a(!0), o(g, null, _(M.value, (t) => (a(), o("g", null, [
|
|
980
1005
|
Y(t) ? (a(), o("path", {
|
|
981
1006
|
key: 0,
|
|
982
|
-
d:
|
|
1007
|
+
d: u(Ct)(
|
|
983
1008
|
t,
|
|
984
1009
|
{
|
|
985
1010
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
986
|
-
y: d.value.y1 +
|
|
1011
|
+
y: d.value.y1 + i.value.branchSize / 2
|
|
987
1012
|
},
|
|
988
1013
|
16,
|
|
989
1014
|
16,
|
|
@@ -997,41 +1022,41 @@ const It = ["id"], Rt = {
|
|
|
997
1022
|
"stroke-linejoin": "round",
|
|
998
1023
|
fill: "none",
|
|
999
1024
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1000
|
-
}, null, 10,
|
|
1025
|
+
}, null, 10, jl)) : h("", !0)
|
|
1001
1026
|
]))), 256)),
|
|
1002
|
-
|
|
1027
|
+
n("circle", {
|
|
1003
1028
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1004
|
-
cy: d.value.y1 +
|
|
1029
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1005
1030
|
r: 118,
|
|
1006
1031
|
fill: e.value.style.chart.backgroundColor,
|
|
1007
1032
|
onClick: G,
|
|
1008
1033
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1009
|
-
}, null, 10,
|
|
1010
|
-
(a(!0), o(g, null, _(
|
|
1034
|
+
}, null, 10, Dl),
|
|
1035
|
+
(a(!0), o(g, null, _(M.value, (t) => (a(), o("path", {
|
|
1011
1036
|
d: t.path,
|
|
1012
1037
|
stroke: t.color,
|
|
1013
1038
|
"stroke-width": 64,
|
|
1014
1039
|
fill: "none",
|
|
1015
1040
|
onClick: G,
|
|
1016
1041
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1017
|
-
}, null, 10,
|
|
1018
|
-
|
|
1042
|
+
}, null, 10, Xl))), 256)),
|
|
1043
|
+
n("circle", {
|
|
1019
1044
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1020
|
-
cy: d.value.y1 +
|
|
1045
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1021
1046
|
r: 110,
|
|
1022
1047
|
fill: `url(#nutpick_${C.value})`,
|
|
1023
1048
|
onClick: G,
|
|
1024
1049
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1025
|
-
}, null, 10,
|
|
1026
|
-
|
|
1050
|
+
}, null, 10, Gl),
|
|
1051
|
+
n("circle", {
|
|
1027
1052
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1028
|
-
cy: d.value.y1 +
|
|
1053
|
+
cy: d.value.y1 + i.value.branchSize / 2,
|
|
1029
1054
|
r: 64,
|
|
1030
1055
|
fill: e.value.style.chart.backgroundColor,
|
|
1031
1056
|
onClick: G,
|
|
1032
1057
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1033
1058
|
}, null, 10, El),
|
|
1034
|
-
|
|
1059
|
+
n("text", {
|
|
1035
1060
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1036
1061
|
y: d.value.y1 + 8,
|
|
1037
1062
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
@@ -1040,8 +1065,8 @@ const It = ["id"], Rt = {
|
|
|
1040
1065
|
"text-anchor": "middle",
|
|
1041
1066
|
onClick: G,
|
|
1042
1067
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1043
|
-
}, c(e.value.translations.total), 11,
|
|
1044
|
-
|
|
1068
|
+
}, c(e.value.translations.total), 11, Ul),
|
|
1069
|
+
n("text", {
|
|
1045
1070
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
1046
1071
|
y: d.value.y1 + 36,
|
|
1047
1072
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
@@ -1050,201 +1075,195 @@ const It = ["id"], Rt = {
|
|
|
1050
1075
|
"text-anchor": "middle",
|
|
1051
1076
|
onClick: G,
|
|
1052
1077
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1053
|
-
}, c(
|
|
1078
|
+
}, c(u(E)(
|
|
1054
1079
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1055
1080
|
d.value.value,
|
|
1056
|
-
|
|
1081
|
+
u(S)({
|
|
1057
1082
|
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1058
1083
|
v: d.value.value,
|
|
1059
1084
|
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1060
1085
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1061
1086
|
}),
|
|
1062
1087
|
{ datapoint: d.value }
|
|
1063
|
-
)), 11,
|
|
1064
|
-
(a(!0), o(g, null, _(
|
|
1088
|
+
)), 11, Wl),
|
|
1089
|
+
(a(!0), o(g, null, _(M.value, (t, s) => (a(), o("g", null, [
|
|
1065
1090
|
Y(t) ? (a(), o("text", {
|
|
1066
1091
|
key: 0,
|
|
1067
|
-
x:
|
|
1068
|
-
"text-anchor":
|
|
1069
|
-
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,
|
|
1070
1095
|
fill: t.color,
|
|
1071
1096
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1072
1097
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1073
1098
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1074
|
-
}, " ⬤ ", 14,
|
|
1099
|
+
}, " ⬤ ", 14, Yl)) : h("", !0),
|
|
1075
1100
|
Y(t) ? (a(), o("text", {
|
|
1076
1101
|
key: 1,
|
|
1077
|
-
x:
|
|
1078
|
-
"text-anchor":
|
|
1079
|
-
y:
|
|
1102
|
+
x: u(O)(t, !0).x,
|
|
1103
|
+
"text-anchor": u(O)(t, !0).anchor,
|
|
1104
|
+
y: u(J)(t),
|
|
1080
1105
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1081
1106
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1082
1107
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1083
1108
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1084
|
-
}, c(d.value.breakdown[s].name), 15,
|
|
1109
|
+
}, c(d.value.breakdown[s].name), 15, ql)) : h("", !0)
|
|
1085
1110
|
]))), 256)),
|
|
1086
|
-
(a(!0), o(g, null, _(
|
|
1111
|
+
(a(!0), o(g, null, _(M.value, (t, s) => (a(), o("g", null, [
|
|
1087
1112
|
Y(t) ? (a(), o("text", {
|
|
1088
1113
|
key: 0,
|
|
1089
|
-
x:
|
|
1090
|
-
"text-anchor":
|
|
1091
|
-
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,
|
|
1092
1117
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1093
1118
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1094
1119
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1095
1120
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1096
|
-
}, c(
|
|
1121
|
+
}, c(u(S)({
|
|
1097
1122
|
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
1098
1123
|
s: "%",
|
|
1099
1124
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1100
|
-
})) + " " + 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)(
|
|
1101
1126
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
1102
1127
|
d.value.breakdown[s].value,
|
|
1103
|
-
|
|
1128
|
+
u(S)({
|
|
1104
1129
|
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1105
1130
|
v: d.value.breakdown[s].value,
|
|
1106
1131
|
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1107
1132
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
1108
1133
|
}),
|
|
1109
|
-
{ datapoint:
|
|
1110
|
-
)), 15,
|
|
1134
|
+
{ datapoint: M.value, seriesIndex: s }
|
|
1135
|
+
)), 15, Hl)) : h("", !0),
|
|
1111
1136
|
Y(t) ? (a(), o("text", {
|
|
1112
1137
|
key: 1,
|
|
1113
|
-
x:
|
|
1114
|
-
"text-anchor":
|
|
1115
|
-
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,
|
|
1116
1141
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1117
1142
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1118
1143
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1119
1144
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1120
|
-
}, c(
|
|
1145
|
+
}, c(u(S)({
|
|
1121
1146
|
v: d.value.breakdown[s].proportionToRoot * 100,
|
|
1122
1147
|
s: "%",
|
|
1123
1148
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1124
|
-
})) + " " + 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),
|
|
1125
1150
|
Y(t) ? (a(), o("text", {
|
|
1126
1151
|
key: 2,
|
|
1127
|
-
x:
|
|
1128
|
-
"text-anchor":
|
|
1129
|
-
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,
|
|
1130
1155
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1131
1156
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1132
1157
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1133
1158
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1134
|
-
}, c(
|
|
1159
|
+
}, c(u(S)({
|
|
1135
1160
|
v: d.value.breakdown[s].proportionToTree * 100,
|
|
1136
1161
|
s: "%",
|
|
1137
1162
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1138
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
1163
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, Zl)) : h("", !0)
|
|
1139
1164
|
]))), 256))
|
|
1140
|
-
])) :
|
|
1141
|
-
(a(!0), o(g, null, _(
|
|
1165
|
+
])) : h("", !0),
|
|
1166
|
+
(a(!0), o(g, null, _(X.value, (t) => (a(), o("g", null, [
|
|
1142
1167
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1143
1168
|
key: 0,
|
|
1144
1169
|
x: t.x1 + 6,
|
|
1145
|
-
y: t.y1 +
|
|
1170
|
+
y: t.y1 + i.value.branchSize + 24,
|
|
1146
1171
|
"font-weight": "bold",
|
|
1147
1172
|
"text-anchor": "start",
|
|
1148
1173
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1149
1174
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1150
1175
|
onClick: $
|
|
1151
|
-
}, c(t.name) + ": " + c(
|
|
1176
|
+
}, c(t.name) + ": " + c(u(E)(
|
|
1152
1177
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
1153
1178
|
t.value,
|
|
1154
|
-
|
|
1179
|
+
u(S)({
|
|
1155
1180
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1156
1181
|
v: t.value,
|
|
1157
1182
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1158
1183
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1159
1184
|
}),
|
|
1160
1185
|
{ datapoint: t }
|
|
1161
|
-
)), 9,
|
|
1186
|
+
)), 9, Jl)) : h("", !0),
|
|
1162
1187
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1163
1188
|
key: 1,
|
|
1164
1189
|
x: t.x1 + 6,
|
|
1165
|
-
y: t.y1 +
|
|
1190
|
+
y: t.y1 + i.value.branchSize + 48,
|
|
1166
1191
|
"text-anchor": "start",
|
|
1167
1192
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1168
1193
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1169
1194
|
onClick: $
|
|
1170
|
-
}, c(
|
|
1195
|
+
}, c(u(S)({
|
|
1171
1196
|
v: t.proportionToRoot * 100,
|
|
1172
1197
|
s: "%",
|
|
1173
1198
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1174
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1199
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, Ql)) : h("", !0),
|
|
1175
1200
|
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1176
1201
|
key: 2,
|
|
1177
1202
|
x: t.x1 + 6,
|
|
1178
|
-
y: t.y1 +
|
|
1203
|
+
y: t.y1 + i.value.branchSize + 72,
|
|
1179
1204
|
"text-anchor": "start",
|
|
1180
1205
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1181
1206
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1182
1207
|
onClick: $
|
|
1183
|
-
}, c(
|
|
1184
|
-
v: t.value /
|
|
1208
|
+
}, c(u(S)({
|
|
1209
|
+
v: t.value / B.value * 100,
|
|
1185
1210
|
s: "%",
|
|
1186
1211
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1187
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1212
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, ea)) : h("", !0)
|
|
1188
1213
|
]))), 256)),
|
|
1189
|
-
F(l.$slots, "svg", { svg:
|
|
1190
|
-
], 14,
|
|
1191
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1192
|
-
F(l.$slots, "watermark",
|
|
1193
|
-
])) :
|
|
1214
|
+
F(l.$slots, "svg", { svg: i.value }, void 0, !0)
|
|
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)
|
|
1218
|
+
])) : h("", !0),
|
|
1194
1219
|
F(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1195
|
-
l.$slots.source ? (a(), o("div",
|
|
1220
|
+
l.$slots.source ? (a(), o("div", la, [
|
|
1196
1221
|
F(l.$slots, "source", {}, void 0, !0)
|
|
1197
|
-
], 512)) :
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1206
|
-
color: e.value.style.chart.color
|
|
1207
|
-
},
|
|
1208
|
-
head: {
|
|
1209
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1210
|
-
color: e.value.style.chart.color
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}, {
|
|
1214
|
-
content: B(() => [
|
|
1215
|
-
u("div", {
|
|
1222
|
+
], 512)) : h("", !0),
|
|
1223
|
+
_e.value ? (a(), le(yt(te.value.component), ht({ key: 6 }, te.value.props, {
|
|
1224
|
+
ref_key: "tableUnit",
|
|
1225
|
+
ref: K,
|
|
1226
|
+
onClose: r[3] || (r[3] = (t) => V.value.showTable = !1)
|
|
1227
|
+
}), Re({
|
|
1228
|
+
content: P(() => [
|
|
1229
|
+
n("div", {
|
|
1216
1230
|
ref_key: "tableContainer",
|
|
1217
|
-
ref:
|
|
1218
|
-
class: "vue-ui-chestnut-table"
|
|
1231
|
+
ref: Se,
|
|
1232
|
+
class: "vue-ui-chestnut-table",
|
|
1233
|
+
style: y(`${e.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1219
1234
|
}, [
|
|
1220
|
-
|
|
1221
|
-
|
|
1235
|
+
n("div", {
|
|
1236
|
+
style: y(`${e.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`)
|
|
1237
|
+
}, [
|
|
1238
|
+
e.value.table.useDialog ? h("", !0) : (a(), o("div", {
|
|
1239
|
+
key: 0,
|
|
1222
1240
|
role: "button",
|
|
1223
1241
|
tabindex: "0",
|
|
1224
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};`),
|
|
1225
|
-
onClick:
|
|
1226
|
-
onKeypress:
|
|
1243
|
+
onClick: r[1] || (r[1] = (t) => V.value.showTable = !1),
|
|
1244
|
+
onKeypress: r[2] || (r[2] = ft((t) => V.value.showTable = !1, ["enter"]))
|
|
1227
1245
|
}, [
|
|
1228
|
-
|
|
1246
|
+
fe(u(ge), {
|
|
1229
1247
|
name: "close",
|
|
1230
1248
|
stroke: e.value.table.th.color,
|
|
1231
1249
|
"stroke-width": 2
|
|
1232
1250
|
}, null, 8, ["stroke"])
|
|
1233
|
-
], 36),
|
|
1234
|
-
|
|
1251
|
+
], 36)),
|
|
1252
|
+
n("div", {
|
|
1235
1253
|
style: { width: "100%" },
|
|
1236
|
-
class: w({ "vue-ui-responsive":
|
|
1254
|
+
class: w({ "vue-ui-responsive": u(it) })
|
|
1237
1255
|
}, [
|
|
1238
|
-
|
|
1239
|
-
|
|
1256
|
+
n("table", aa, [
|
|
1257
|
+
e.value.table.useDialog ? h("", !0) : (a(), o("caption", {
|
|
1258
|
+
key: 0,
|
|
1240
1259
|
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1241
1260
|
class: "vue-ui-data-table__caption"
|
|
1242
1261
|
}, [
|
|
1243
|
-
|
|
1244
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1245
|
-
], 4),
|
|
1246
|
-
|
|
1247
|
-
|
|
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)
|
|
1264
|
+
], 4)),
|
|
1265
|
+
n("thead", null, [
|
|
1266
|
+
n("tr", {
|
|
1248
1267
|
role: "row",
|
|
1249
1268
|
style: y(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1250
1269
|
}, [
|
|
@@ -1253,122 +1272,146 @@ const It = ["id"], Rt = {
|
|
|
1253
1272
|
}, c(t), 5))), 256))
|
|
1254
1273
|
], 4)
|
|
1255
1274
|
]),
|
|
1256
|
-
|
|
1275
|
+
n("tbody", null, [
|
|
1257
1276
|
(a(!0), o(g, null, _(v.value.body, (t, s) => (a(), o("tr", {
|
|
1258
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 }),
|
|
1259
1278
|
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1260
1279
|
}, [
|
|
1261
|
-
|
|
1280
|
+
n("td", {
|
|
1262
1281
|
class: "vue-ui-data-table__tbody__td",
|
|
1263
1282
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1264
1283
|
"data-cell": v.value.head[0]
|
|
1265
1284
|
}, [
|
|
1266
|
-
|
|
1267
|
-
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))
|
|
1268
1287
|
])
|
|
1269
|
-
], 12,
|
|
1270
|
-
|
|
1288
|
+
], 12, sa),
|
|
1289
|
+
n("td", {
|
|
1271
1290
|
class: "vue-ui-data-table__tbody__td",
|
|
1272
1291
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1273
1292
|
"data-cell": v.value.head[1]
|
|
1274
1293
|
}, [
|
|
1275
|
-
|
|
1276
|
-
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))
|
|
1277
1296
|
])
|
|
1278
|
-
], 12,
|
|
1279
|
-
|
|
1297
|
+
], 12, ia),
|
|
1298
|
+
n("td", {
|
|
1280
1299
|
class: "vue-ui-data-table__tbody__td",
|
|
1281
1300
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1282
1301
|
"data-cell": v.value.head[2]
|
|
1283
1302
|
}, [
|
|
1284
|
-
|
|
1285
|
-
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))
|
|
1286
1305
|
])
|
|
1287
|
-
], 12,
|
|
1288
|
-
|
|
1306
|
+
], 12, ya),
|
|
1307
|
+
n("td", {
|
|
1289
1308
|
class: "vue-ui-data-table__tbody__td",
|
|
1290
1309
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1291
1310
|
"data-cell": v.value.head[3]
|
|
1292
1311
|
}, [
|
|
1293
|
-
|
|
1294
|
-
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))
|
|
1295
1314
|
])
|
|
1296
|
-
], 12,
|
|
1297
|
-
|
|
1315
|
+
], 12, pa),
|
|
1316
|
+
n("td", {
|
|
1298
1317
|
class: "vue-ui-data-table__tbody__td",
|
|
1299
1318
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1300
1319
|
"data-cell": v.value.head[4]
|
|
1301
1320
|
}, [
|
|
1302
|
-
|
|
1303
|
-
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))
|
|
1304
1323
|
])
|
|
1305
|
-
], 12,
|
|
1306
|
-
|
|
1324
|
+
], 12, ma),
|
|
1325
|
+
n("td", {
|
|
1307
1326
|
class: "vue-ui-data-table__tbody__td",
|
|
1308
1327
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1309
1328
|
"data-cell": v.value.head[5]
|
|
1310
1329
|
}, [
|
|
1311
|
-
|
|
1312
|
-
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))
|
|
1313
1332
|
])
|
|
1314
|
-
], 12,
|
|
1315
|
-
|
|
1333
|
+
], 12, $a),
|
|
1334
|
+
n("td", {
|
|
1316
1335
|
class: "vue-ui-data-table__tbody__td",
|
|
1317
1336
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1318
1337
|
"data-cell": v.value.head[6]
|
|
1319
1338
|
}, [
|
|
1320
|
-
|
|
1321
|
-
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))
|
|
1322
1341
|
])
|
|
1323
|
-
], 12,
|
|
1324
|
-
|
|
1342
|
+
], 12, Sa),
|
|
1343
|
+
n("td", {
|
|
1325
1344
|
class: "vue-ui-data-table__tbody__td",
|
|
1326
1345
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1327
1346
|
"data-cell": v.value.head[7]
|
|
1328
1347
|
}, [
|
|
1329
|
-
|
|
1330
|
-
], 12,
|
|
1331
|
-
|
|
1348
|
+
n("div", Pa, c(t.nutName), 1)
|
|
1349
|
+
], 12, Ia),
|
|
1350
|
+
n("td", {
|
|
1332
1351
|
class: "vue-ui-data-table__tbody__td",
|
|
1333
1352
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1334
1353
|
"data-cell": v.value.head[8]
|
|
1335
1354
|
}, [
|
|
1336
|
-
|
|
1355
|
+
n("div", Oa, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1337
1356
|
], 12, Ra),
|
|
1338
|
-
|
|
1357
|
+
n("td", {
|
|
1339
1358
|
class: "vue-ui-data-table__tbody__td",
|
|
1340
1359
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1341
1360
|
"data-cell": v.value.head[9]
|
|
1342
1361
|
}, [
|
|
1343
|
-
|
|
1344
|
-
], 12,
|
|
1345
|
-
|
|
1362
|
+
n("div", Ba, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1363
|
+
], 12, Va),
|
|
1364
|
+
n("td", {
|
|
1346
1365
|
class: "vue-ui-data-table__tbody__td",
|
|
1347
1366
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1348
1367
|
"data-cell": v.value.head[10]
|
|
1349
1368
|
}, [
|
|
1350
|
-
|
|
1351
|
-
], 12,
|
|
1352
|
-
|
|
1369
|
+
n("div", ja, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1370
|
+
], 12, Ma),
|
|
1371
|
+
n("td", {
|
|
1353
1372
|
class: "vue-ui-data-table__tbody__td",
|
|
1354
1373
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1355
1374
|
"data-cell": v.value.head[11]
|
|
1356
1375
|
}, [
|
|
1357
|
-
|
|
1358
|
-
], 12,
|
|
1376
|
+
n("div", Xa, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1377
|
+
], 12, Da)
|
|
1359
1378
|
], 6))), 256))
|
|
1360
1379
|
])
|
|
1361
1380
|
])
|
|
1362
1381
|
], 2)
|
|
1363
|
-
])
|
|
1364
|
-
],
|
|
1382
|
+
], 4)
|
|
1383
|
+
], 4)
|
|
1365
1384
|
]),
|
|
1366
|
-
_:
|
|
1367
|
-
},
|
|
1368
|
-
|
|
1369
|
-
|
|
1385
|
+
_: 2
|
|
1386
|
+
}, [
|
|
1387
|
+
e.value.table.useDialog ? {
|
|
1388
|
+
name: "title",
|
|
1389
|
+
fn: P(() => [
|
|
1390
|
+
Z(c(te.value.title), 1)
|
|
1391
|
+
]),
|
|
1392
|
+
key: "0"
|
|
1393
|
+
} : void 0,
|
|
1394
|
+
e.value.table.useDialog ? {
|
|
1395
|
+
name: "actions",
|
|
1396
|
+
fn: P(() => [
|
|
1397
|
+
n("button", {
|
|
1398
|
+
tabindex: "0",
|
|
1399
|
+
class: "vue-ui-user-options-button",
|
|
1400
|
+
onClick: r[0] || (r[0] = (t) => de(e.value.userOptions.callbacks.csv))
|
|
1401
|
+
}, [
|
|
1402
|
+
fe(u(ge), {
|
|
1403
|
+
name: "excel",
|
|
1404
|
+
stroke: te.value.props.color
|
|
1405
|
+
}, null, 8, ["stroke"])
|
|
1406
|
+
])
|
|
1407
|
+
]),
|
|
1408
|
+
key: "1"
|
|
1409
|
+
} : void 0
|
|
1410
|
+
]), 1040)) : h("", !0),
|
|
1411
|
+
u(me) ? (a(), le(At, { key: 7 })) : h("", !0)
|
|
1412
|
+
], 46, Rt));
|
|
1370
1413
|
}
|
|
1371
|
-
},
|
|
1414
|
+
}, eo = /* @__PURE__ */ Pt(Ga, [["__scopeId", "data-v-e363d8af"]]);
|
|
1372
1415
|
export {
|
|
1373
|
-
|
|
1416
|
+
eo as default
|
|
1374
1417
|
};
|