vue-data-ui 3.0.0-next.0 → 3.0.0-next.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/README.md +92 -66
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
- package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
- package/dist/img-D3JvqNF8.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
- package/dist/pdf-DROWzopj.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1018 -166
- package/dist/types/vue-data-ui.d.ts +1018 -166
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
- package/dist/vue-data-ui-BzMRz9Un.js +314 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
- package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
- package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
- package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
- package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
- package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
- package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
- package/package.json +1 -1
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
|
@@ -1,31 +1,32 @@
|
|
|
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
|
|
8
|
-
|
|
1
|
+
import { useCssVars as ot, defineAsyncComponent as H, computed as m, ref as z, watch as st, shallowRef as ut, onMounted as nt, onBeforeUnmount as rt, createElementBlock as o, openBlock as a, unref as u, normalizeStyle as y, normalizeClass as k, createBlock as ee, createCommentVNode as h, renderSlot as F, createSlots as it, withCtx as A, normalizeProps as te, guardReactiveProps as le, createVNode as Ne, createElementVNode as n, toDisplayString as c, Fragment as p, renderList as g, createTextVNode as ae, withKeys as ct, nextTick as Fe } from "vue";
|
|
2
|
+
import { u as dt, c as vt, t as yt, p as O, a as ht, b as ft, g as de, e as oe, d as ve, o as bt, X as pt, s as I, w as Ie, i as G, f as S, F as Le, m as Pe, j as gt, k as Q, n as R, q as _t, r as xt } from "./index-BSa4GlHG.js";
|
|
3
|
+
import { u as Oe } from "./useNestedProp-uR74_CFG.js";
|
|
4
|
+
import { u as mt } from "./usePrinter-j3g1L2nh.js";
|
|
5
|
+
import { u as kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import $t from "./img-D3JvqNF8.js";
|
|
8
|
+
import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const Tt = ["id"], zt = {
|
|
9
10
|
key: 1,
|
|
10
11
|
ref: "noTitle",
|
|
11
12
|
class: "vue-data-ui-no-title-space",
|
|
12
13
|
style: "height:36px; width: 100%;background:transparent"
|
|
13
|
-
},
|
|
14
|
+
}, St = ["xmlns", "viewBox"], Nt = ["width", "height"], Ft = { key: 1 }, It = ["fill", "font-weight", "font-size", "x", "y"], Lt = ["fill", "font-weight", "font-size", "x", "y"], Pt = ["id"], Ot = ["stop-color"], Rt = ["stop-color"], Vt = ["id"], Bt = ["stop-color"], Mt = ["stop-color"], At = ["id"], jt = ["stop-color"], Xt = ["stop-color"], Et = ["stop-color"], Gt = ["id"], Ut = ["stop-color"], Dt = ["stop-color"], Yt = ["stop-color"], qt = ["id"], Ht = ["stop-color"], Wt = ["stop-color"], Kt = ["stop-color"], Jt = { key: 2 }, Qt = ["x", "y", "font-size", "font-weight", "fill"], Zt = ["x", "y", "font-size", "font-weight", "fill"], el = ["d", "stroke"], tl = ["cx", "cy", "r", "fill"], ll = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], al = { key: 3 }, ol = ["x", "y", "font-size", "fill", "onClick"], sl = { key: 0 }, ul = ["x", "y", "fill", "font-size", "font-weight"], nl = ["x", "y", "height", "width", "fill", "rx", "onClick"], rl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], il = { key: 4 }, cl = ["x", "y", "fill", "font-size", "onClick"], dl = ["d", "stroke"], vl = ["fill", "cx", "cy", "r", "onClick"], yl = { key: 5 }, hl = ["x", "y", "font-size", "font-weight", "fill"], fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["y", "height", "width"], pl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, gl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, _l = {
|
|
14
15
|
viewBox: "0 0 20 20",
|
|
15
16
|
height: "16",
|
|
16
17
|
width: "16"
|
|
17
|
-
},
|
|
18
|
+
}, xl = ["fill"], ml = { key: 7 }, kl = ["y", "height", "width"], wl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, $l = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Cl = {
|
|
18
19
|
viewBox: "0 0 20 20",
|
|
19
20
|
height: "16",
|
|
20
21
|
width: "16"
|
|
21
|
-
},
|
|
22
|
+
}, Tl = ["fill"], zl = ["cx", "cy", "fill"], Sl = ["d", "stroke"], Nl = ["cx", "cy", "fill"], Fl = ["d", "stroke"], Il = ["cx", "cy", "fill"], Ll = ["cx", "cy", "fill"], Pl = ["x", "y", "fill", "font-size", "font-weight"], Ol = ["x", "y", "fill", "font-size", "font-weight"], Rl = ["x", "text-anchor", "y", "fill", "font-size"], Vl = ["x", "text-anchor", "y", "fill", "font-size"], Bl = ["x", "text-anchor", "y", "fill", "font-size"], Ml = ["x", "text-anchor", "y", "fill", "font-size"], Al = ["x", "text-anchor", "y", "fill", "font-size"], jl = ["x", "y", "font-size", "fill"], Xl = ["x", "y", "font-size", "fill"], El = ["x", "y", "font-size", "fill"], Gl = {
|
|
22
23
|
key: 4,
|
|
23
24
|
class: "vue-data-ui-watermark"
|
|
24
|
-
},
|
|
25
|
+
}, Ul = {
|
|
25
26
|
key: 6,
|
|
26
27
|
ref: "source",
|
|
27
28
|
dir: "auto"
|
|
28
|
-
},
|
|
29
|
+
}, Dl = { style: { "padding-top": "36px", position: "relative" } }, Yl = { class: "vue-ui-data-table" }, ql = { key: 0 }, Hl = ["data-cell"], Wl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kl = { key: 0 }, Jl = { key: 1 }, Ql = ["data-cell"], Zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = { key: 0 }, ta = { key: 1 }, la = ["data-cell"], aa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oa = { key: 0 }, sa = { key: 1 }, ua = ["data-cell"], na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ra = { key: 0 }, ia = { key: 1 }, ca = ["data-cell"], da = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, va = { key: 0 }, ya = { key: 1 }, ha = ["data-cell"], fa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ba = { key: 0 }, pa = { key: 1 }, ga = ["data-cell"], _a = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, xa = { key: 0 }, ma = { key: 1 }, ka = ["data-cell"], wa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $a = ["data-cell"], Ca = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ta = ["data-cell"], za = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Sa = ["data-cell"], Na = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fa = ["data-cell"], Ia = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, La = {
|
|
29
30
|
__name: "vue-ui-chestnut",
|
|
30
31
|
props: {
|
|
31
32
|
config: {
|
|
@@ -42,37 +43,37 @@ const $t = ["id"], Ct = {
|
|
|
42
43
|
}
|
|
43
44
|
},
|
|
44
45
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
45
|
-
setup(
|
|
46
|
-
|
|
47
|
-
"
|
|
46
|
+
setup(Re, { expose: Ve, emit: Be }) {
|
|
47
|
+
ot((l) => ({
|
|
48
|
+
"3b99dd82": l.tdo
|
|
48
49
|
}));
|
|
49
|
-
const Me = H(() => import("./PenAndPaper-
|
|
50
|
+
const Me = H(() => import("./PenAndPaper-7o0xS-d4.js")), Ae = H(() => import("./vue-ui-accordion-DzF-SPaZ.js")), je = H(() => import("./vue-ui-skeleton-DY48gQ96.js")), Xe = H(() => import("./UserOptions-BEBaPSlU.js")), Ee = H(() => import("./PackageVersion-B0wGS6pw.js")), Ge = H(() => import("./BaseIcon-BAHAKjob.js")), { vue_ui_chestnut: Ue } = dt(), V = Re, W = m(() => !!V.dataset && V.dataset.length), w = z(vt()), K = z(null), De = z(null), ye = z(0), e = m({
|
|
50
51
|
get: () => pe(),
|
|
51
52
|
set: (l) => l
|
|
52
|
-
}), { userOptionsVisible:
|
|
53
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: he, keepUserOptionState: fe } = kt({ config: e.value }), { svgRef: be } = wt({ config: e.value.style.chart.layout.title });
|
|
53
54
|
function pe() {
|
|
54
|
-
const l =
|
|
55
|
-
userConfig:
|
|
56
|
-
defaultConfig:
|
|
55
|
+
const l = Oe({
|
|
56
|
+
userConfig: V.config,
|
|
57
|
+
defaultConfig: Ue
|
|
57
58
|
});
|
|
58
59
|
return l.theme ? {
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
60
|
+
...Oe({
|
|
61
|
+
userConfig: ht.vue_ui_chestnut[l.theme] || V.config,
|
|
61
62
|
defaultConfig: l
|
|
62
63
|
}),
|
|
63
|
-
customPalette:
|
|
64
|
+
customPalette: yt[l.theme] || O
|
|
64
65
|
} : l;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
e.value = pe(),
|
|
67
|
+
st(() => V.config, (l) => {
|
|
68
|
+
e.value = pe(), se.value = !e.value.userOptions.showOnChartHover, U.value.showTable = e.value.table.show, Ce();
|
|
68
69
|
}, { deep: !0 });
|
|
69
|
-
const { isPrinting: ge, isImaging: _e, generatePdf: xe, generateImage: me } =
|
|
70
|
+
const { isPrinting: ge, isImaging: _e, generatePdf: xe, generateImage: me } = mt({
|
|
70
71
|
elementId: `vue-ui-chestnut_${w.value}`,
|
|
71
72
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
72
73
|
options: e.value.userOptions.print
|
|
73
|
-
}),
|
|
74
|
+
}), Ye = m(() => e.value.userOptions.show), ue = m(() => ft(e.value.customPalette)), U = z({
|
|
74
75
|
showTable: e.value.table.show
|
|
75
|
-
}),
|
|
76
|
+
}), ne = z(null), ke = z(!1), qe = m(() => e.value.table.responsiveBreakpoint), r = z({
|
|
76
77
|
gap: 6,
|
|
77
78
|
padding: {
|
|
78
79
|
top: 102,
|
|
@@ -92,123 +93,123 @@ const $t = ["id"], Ct = {
|
|
|
92
93
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
93
94
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
94
95
|
seedX: r.value.padding.left + 64
|
|
95
|
-
})),
|
|
96
|
-
|
|
96
|
+
})), B = m(() => W.value ? V.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (V.dataset.forEach((l, i) => {
|
|
97
|
+
de({
|
|
97
98
|
datasetObject: l,
|
|
98
99
|
requiredAttributes: ["name", "branches"]
|
|
99
100
|
}).forEach((t) => {
|
|
100
|
-
|
|
101
|
+
oe({
|
|
101
102
|
componentName: "VueUiChestnut",
|
|
102
103
|
type: "datasetSerieAttribute",
|
|
103
104
|
property: t,
|
|
104
105
|
index: i
|
|
105
106
|
});
|
|
106
|
-
}), l.branches && l.branches.forEach((t,
|
|
107
|
-
|
|
107
|
+
}), l.branches && l.branches.forEach((t, s) => {
|
|
108
|
+
de({
|
|
108
109
|
datasetObject: t,
|
|
109
110
|
requiredAttributes: ["name", "value"]
|
|
110
111
|
}).forEach((b) => {
|
|
111
|
-
|
|
112
|
+
oe({
|
|
112
113
|
componentName: "VueUiChestnut",
|
|
113
114
|
type: "datasetSerieAttribute",
|
|
114
115
|
property: b,
|
|
115
|
-
index: `${i} - ${
|
|
116
|
+
index: `${i} - ${s}`
|
|
116
117
|
});
|
|
117
|
-
}), t.breakdown && t.breakdown.forEach((b,
|
|
118
|
-
|
|
118
|
+
}), t.breakdown && t.breakdown.forEach((b, _) => {
|
|
119
|
+
de({
|
|
119
120
|
datasetObject: b,
|
|
120
121
|
requiredAttributes: ["name", "value"]
|
|
121
122
|
}).forEach((f) => {
|
|
122
|
-
|
|
123
|
+
oe({
|
|
123
124
|
componentName: "VueUiChestnut",
|
|
124
125
|
type: "datasetSerieAttribute",
|
|
125
126
|
property: f,
|
|
126
|
-
index: `${i} - ${
|
|
127
|
+
index: `${i} - ${s} - ${_}`
|
|
127
128
|
});
|
|
128
129
|
});
|
|
129
130
|
});
|
|
130
131
|
});
|
|
131
|
-
}),
|
|
132
|
-
const t = (l.branches || []).map((
|
|
132
|
+
}), V.dataset.map((l, i) => {
|
|
133
|
+
const t = (l.branches || []).map((s) => s.value || 0).reduce((s, b) => s + b, 0);
|
|
133
134
|
return {
|
|
134
135
|
...l,
|
|
135
|
-
color:
|
|
136
|
+
color: ve(l.color) || ue.value[i] || O[i] || O[i % O.length],
|
|
136
137
|
id: l.id || `root_${i}_${w.value}`,
|
|
137
138
|
type: "root",
|
|
138
139
|
total: t,
|
|
139
140
|
rootIndex: i,
|
|
140
|
-
branches: (l.branches || []).map((
|
|
141
|
-
...
|
|
141
|
+
branches: (l.branches || []).map((s, b) => ({
|
|
142
|
+
...s,
|
|
142
143
|
rootName: l.name,
|
|
143
144
|
rootIndex: i,
|
|
144
|
-
color:
|
|
145
|
-
value:
|
|
146
|
-
id:
|
|
147
|
-
proportionToRoot:
|
|
145
|
+
color: ve(l.color) || ue.value[i] || O[i] || O[i % O.length],
|
|
146
|
+
value: s.value >= 0 ? s.value : 0,
|
|
147
|
+
id: s.id || `branch_${i}_${b}_${w.value}`,
|
|
148
|
+
proportionToRoot: s.value / t,
|
|
148
149
|
type: "branch",
|
|
149
|
-
breakdown: (
|
|
150
|
+
breakdown: (s.breakdown || []).map((_, f) => ({
|
|
150
151
|
table: {
|
|
151
152
|
rootName: l.name,
|
|
152
153
|
rootValue: t,
|
|
153
|
-
rootToTotal: t /
|
|
154
|
-
branchName:
|
|
155
|
-
branchValue:
|
|
156
|
-
branchToTotal:
|
|
157
|
-
branchToRoot:
|
|
158
|
-
nutName:
|
|
159
|
-
nutValue:
|
|
160
|
-
nutToTotal:
|
|
161
|
-
nutToRoot:
|
|
162
|
-
nutToBranch:
|
|
154
|
+
rootToTotal: t / B.value,
|
|
155
|
+
branchName: s.name,
|
|
156
|
+
branchValue: s.value,
|
|
157
|
+
branchToTotal: s.value / B.value,
|
|
158
|
+
branchToRoot: s.value / t,
|
|
159
|
+
nutName: _.name,
|
|
160
|
+
nutValue: _.value,
|
|
161
|
+
nutToTotal: _.value / B.value,
|
|
162
|
+
nutToRoot: _.value / t,
|
|
163
|
+
nutToBranch: _.value / s.value
|
|
163
164
|
},
|
|
164
|
-
...
|
|
165
|
+
..._,
|
|
165
166
|
type: "nut",
|
|
166
|
-
branchName:
|
|
167
|
+
branchName: s.name,
|
|
167
168
|
rootName: l.name,
|
|
168
|
-
branchTotal:
|
|
169
|
-
proportionToBranch:
|
|
170
|
-
proportionToRoot:
|
|
171
|
-
proportionToTree:
|
|
169
|
+
branchTotal: s.value >= 0 ? s.value : 0,
|
|
170
|
+
proportionToBranch: _.value / s.value,
|
|
171
|
+
proportionToRoot: _.value / t,
|
|
172
|
+
proportionToTree: _.value / B.value,
|
|
172
173
|
rootIndex: i,
|
|
173
|
-
id:
|
|
174
|
-
color:
|
|
175
|
-
value:
|
|
174
|
+
id: _.id || `nut_${i}_${b}_${f}_${w.value}`,
|
|
175
|
+
color: ve(_.color) || ue.value[f] || O[f] || O[f % O.length],
|
|
176
|
+
value: _.value >= 0 ? _.value : 0
|
|
176
177
|
}))
|
|
177
178
|
}))
|
|
178
179
|
};
|
|
179
180
|
})));
|
|
180
|
-
function
|
|
181
|
-
return
|
|
181
|
+
function He() {
|
|
182
|
+
return N.value;
|
|
182
183
|
}
|
|
183
|
-
const D =
|
|
184
|
-
const t = C.value.height /
|
|
184
|
+
const D = Be, We = m(() => N.value.flatMap((l) => l.branches).length), Ke = m(() => Math.max(...N.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), Je = m(() => Math.max(...N.value.flatMap((l) => l.branches.map((i) => i.value)))), we = m(() => 256 + r.value.padding.left), j = m(() => N.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
185
|
+
const t = C.value.height / N.value.length / 2, s = l.total / Ke.value * (t > 64 ? 64 : t);
|
|
185
186
|
return {
|
|
186
187
|
...l,
|
|
187
188
|
x: C.value.seedX,
|
|
188
|
-
y: C.value.top + C.value.height /
|
|
189
|
-
r:
|
|
189
|
+
y: C.value.top + C.value.height / N.value.length * (i + 1) - (C.value.height / N.value.length / 2 + r.value.gap / 2),
|
|
190
|
+
r: s < r.value.branchSize / 2 ? r.value.branchSize / 2 : s
|
|
190
191
|
};
|
|
191
|
-
})),
|
|
192
|
+
})), Qe = m(() => 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), Ze = m(() => j.value.flatMap((l) => l.branches)), X = m(() => Ze.value.sort((l, i) => i.value - l.value).map((l, i) => ({
|
|
192
193
|
...l,
|
|
193
194
|
y1: i * r.value.branchSize + C.value.top + i * r.value.gap,
|
|
194
195
|
y2: i * r.value.branchSize + r.value.branchSize,
|
|
195
196
|
x1: we.value,
|
|
196
|
-
x2: 384 * l.value /
|
|
197
|
+
x2: 384 * l.value / Je.value * Qe.value + we.value
|
|
197
198
|
})));
|
|
198
|
-
function
|
|
199
|
+
function re(l) {
|
|
199
200
|
const i = j.value.find((t) => t.rootIndex === l.rootIndex);
|
|
200
201
|
return { x: i.x, y: i.y, r: i.r };
|
|
201
202
|
}
|
|
202
|
-
const d = z(null),
|
|
203
|
+
const d = z(null), M = z(null), x = z(null), L = z(null);
|
|
203
204
|
function $() {
|
|
204
|
-
d.value = null,
|
|
205
|
+
d.value = null, x.value = null, L.value = null;
|
|
205
206
|
}
|
|
206
207
|
function P(l) {
|
|
207
|
-
return L.value ? L.value === null ? !0 : l.type === "root" ? l.id === L.value.id : l.rootIndex === L.value.rootIndex : d.value === null &&
|
|
208
|
+
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;
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
$(),
|
|
211
|
-
d.value = l,
|
|
210
|
+
function et(l) {
|
|
211
|
+
$(), Fe(() => {
|
|
212
|
+
d.value = l, x.value = l, M.value = Pe(
|
|
212
213
|
{ series: l.breakdown, base: 1 },
|
|
213
214
|
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
214
215
|
l.y1 + r.value.branchSize / 2,
|
|
@@ -218,40 +219,40 @@ const $t = ["id"], Ct = {
|
|
|
218
219
|
});
|
|
219
220
|
}
|
|
220
221
|
function E() {
|
|
221
|
-
d.value = null,
|
|
222
|
+
d.value = null, M.value = null, D("selectNut", null);
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
224
|
+
function ie(l) {
|
|
225
|
+
x.value && x.value.id === l.id ? (x.value = null, $(), D("selectBranch", null)) : ($(), x.value = l, D("selectBranch", l));
|
|
225
226
|
}
|
|
226
227
|
function $e(l) {
|
|
227
228
|
L.value && L.value.id === l.id ? ($(), D("selectRoot", null)) : ($(), L.value = l, D("selectRoot", l));
|
|
228
229
|
}
|
|
229
|
-
function
|
|
230
|
+
function tt() {
|
|
230
231
|
return C.value.bottom - (d.value.y1 + 180) < 0 ? 0 : C.value.bottom;
|
|
231
232
|
}
|
|
232
233
|
function Y(l) {
|
|
233
234
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
234
235
|
}
|
|
235
|
-
const q =
|
|
236
|
-
function
|
|
236
|
+
const q = ut(null);
|
|
237
|
+
function lt() {
|
|
237
238
|
q.value && q.value.disconnect(), q.value = new ResizeObserver((l) => {
|
|
238
239
|
l.forEach((i) => {
|
|
239
|
-
ke.value = i.contentRect.width <
|
|
240
|
+
ke.value = i.contentRect.width < qe.value;
|
|
240
241
|
});
|
|
241
|
-
}),
|
|
242
|
+
}), ne.value && q.value.observe(ne.value);
|
|
242
243
|
}
|
|
243
|
-
|
|
244
|
+
nt(() => {
|
|
244
245
|
Ce();
|
|
245
|
-
}),
|
|
246
|
+
}), rt(() => {
|
|
246
247
|
q.value && q.value.disconnect();
|
|
247
248
|
});
|
|
248
249
|
function Ce() {
|
|
249
|
-
|
|
250
|
+
bt(V.dataset) && oe({
|
|
250
251
|
componentName: "VueUiChestnut",
|
|
251
252
|
type: "dataset"
|
|
252
253
|
});
|
|
253
|
-
const l =
|
|
254
|
-
r.value.height = l,
|
|
254
|
+
const l = We.value * (r.value.branchSize + r.value.gap) + r.value.padding.top + r.value.padding.bottom;
|
|
255
|
+
r.value.height = l, lt();
|
|
255
256
|
}
|
|
256
257
|
const v = m(() => {
|
|
257
258
|
const l = [
|
|
@@ -267,12 +268,12 @@ const $t = ["id"], Ct = {
|
|
|
267
268
|
e.value.table.th.translations.nutToBranch,
|
|
268
269
|
e.value.table.th.translations.nutToRoot,
|
|
269
270
|
e.value.table.th.translations.nutToTotal
|
|
270
|
-
], i =
|
|
271
|
+
], i = N.value.flatMap((t, s) => t.branches.flatMap((b, _) => b.breakdown.flatMap((f, T) => f.table)));
|
|
271
272
|
return { head: l, body: i };
|
|
272
273
|
});
|
|
273
274
|
function Te(l = null) {
|
|
274
|
-
|
|
275
|
-
const i = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total",
|
|
275
|
+
Fe(() => {
|
|
276
|
+
const i = [[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, T) => [
|
|
276
277
|
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootName,
|
|
277
278
|
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootValue,
|
|
278
279
|
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootToTotal,
|
|
@@ -285,81 +286,96 @@ const $t = ["id"], Ct = {
|
|
|
285
286
|
f.nutToBranch,
|
|
286
287
|
f.nutToRoot,
|
|
287
288
|
f.nutToTotal
|
|
288
|
-
]), b = i.concat([t]).concat(
|
|
289
|
-
l ? l(
|
|
289
|
+
]), b = i.concat([t]).concat(s), _ = _t(b);
|
|
290
|
+
l ? l(_) : xt({ csvContent: _, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
290
291
|
});
|
|
291
292
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
294
|
-
|
|
293
|
+
const J = z(!1);
|
|
294
|
+
function ze(l) {
|
|
295
|
+
J.value = l, ye.value += 1;
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Se() {
|
|
297
298
|
U.value.showTable = !U.value.showTable;
|
|
298
299
|
}
|
|
299
|
-
const
|
|
300
|
-
function
|
|
301
|
-
|
|
300
|
+
const Z = z(!1);
|
|
301
|
+
function ce() {
|
|
302
|
+
Z.value = !Z.value;
|
|
302
303
|
}
|
|
303
|
-
|
|
304
|
-
|
|
304
|
+
async function at({ scale: l = 2 } = {}) {
|
|
305
|
+
if (!K.value) return;
|
|
306
|
+
const { width: i, height: t } = K.value.getBoundingClientRect(), s = i / t, { imageUri: b, base64: _ } = await $t({ domElement: K.value, base64: !0, img: !0, scale: l });
|
|
307
|
+
return {
|
|
308
|
+
imageUri: b,
|
|
309
|
+
base64: _,
|
|
310
|
+
title: e.value.style.chart.layout.title.text,
|
|
311
|
+
width: i,
|
|
312
|
+
height: t,
|
|
313
|
+
aspectRatio: s
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
return Ve({
|
|
317
|
+
getData: He,
|
|
318
|
+
getImage: at,
|
|
305
319
|
generatePdf: xe,
|
|
306
320
|
generateCsv: Te,
|
|
307
321
|
generateImage: me,
|
|
308
|
-
toggleTable:
|
|
309
|
-
toggleAnnotator:
|
|
322
|
+
toggleTable: Se,
|
|
323
|
+
toggleAnnotator: ce,
|
|
324
|
+
toggleFullscreen: ze
|
|
310
325
|
}), (l, i) => (a(), o("div", {
|
|
311
|
-
class: k(`vue-ui-chestnut ${
|
|
326
|
+
class: k(`vue-ui-chestnut ${J.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
312
327
|
ref_key: "chestnutChart",
|
|
313
|
-
ref:
|
|
328
|
+
ref: K,
|
|
314
329
|
id: `vue-ui-chestnut_${w.value}`,
|
|
315
330
|
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
316
|
-
onMouseenter: i[2] || (i[2] = () =>
|
|
317
|
-
onMouseleave: i[3] || (i[3] = () =>
|
|
331
|
+
onMouseenter: i[2] || (i[2] = () => u(he)(!0)),
|
|
332
|
+
onMouseleave: i[3] || (i[3] = () => u(he)(!1))
|
|
318
333
|
}, [
|
|
319
|
-
e.value.userOptions.buttons.annotator ? (a(),
|
|
334
|
+
e.value.userOptions.buttons.annotator ? (a(), ee(u(Me), {
|
|
320
335
|
key: 0,
|
|
321
|
-
svgRef:
|
|
336
|
+
svgRef: u(be),
|
|
322
337
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
323
338
|
color: e.value.style.chart.color,
|
|
324
|
-
active:
|
|
325
|
-
onClose:
|
|
339
|
+
active: Z.value,
|
|
340
|
+
onClose: ce
|
|
326
341
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
327
|
-
|
|
328
|
-
e.value.userOptions.show && W.value && (
|
|
342
|
+
Ye.value ? (a(), o("div", zt, null, 512)) : h("", !0),
|
|
343
|
+
e.value.userOptions.show && W.value && (u(fe) || u(se)) ? (a(), ee(u(Xe), {
|
|
329
344
|
ref_key: "details",
|
|
330
|
-
ref:
|
|
345
|
+
ref: De,
|
|
331
346
|
key: `user_options_${ye.value}`,
|
|
332
347
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
333
348
|
color: e.value.style.chart.color,
|
|
334
|
-
isImaging:
|
|
335
|
-
isPrinting:
|
|
349
|
+
isImaging: u(_e),
|
|
350
|
+
isPrinting: u(ge),
|
|
336
351
|
uid: w.value,
|
|
337
352
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
338
353
|
hasImg: e.value.userOptions.buttons.img,
|
|
339
354
|
hasXls: e.value.userOptions.buttons.csv,
|
|
340
355
|
hasTable: e.value.userOptions.buttons.table,
|
|
341
356
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
342
|
-
isFullscreen:
|
|
357
|
+
isFullscreen: J.value,
|
|
343
358
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
344
|
-
chartElement:
|
|
359
|
+
chartElement: K.value,
|
|
345
360
|
position: e.value.userOptions.position,
|
|
346
361
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
347
|
-
isAnnotation:
|
|
362
|
+
isAnnotation: Z.value,
|
|
348
363
|
callbacks: e.value.userOptions.callbacks,
|
|
349
|
-
|
|
350
|
-
|
|
364
|
+
printScale: e.value.userOptions.print.scale,
|
|
365
|
+
onToggleFullscreen: ze,
|
|
366
|
+
onGeneratePdf: u(xe),
|
|
351
367
|
onGenerateCsv: Te,
|
|
352
|
-
onGenerateImage:
|
|
353
|
-
onToggleTable:
|
|
354
|
-
onToggleAnnotator:
|
|
368
|
+
onGenerateImage: u(me),
|
|
369
|
+
onToggleTable: Se,
|
|
370
|
+
onToggleAnnotator: ce,
|
|
355
371
|
style: y({
|
|
356
|
-
visibility:
|
|
372
|
+
visibility: u(fe) ? u(se) ? "visible" : "hidden" : "visible"
|
|
357
373
|
})
|
|
358
|
-
},
|
|
374
|
+
}, it({ _: 2 }, [
|
|
359
375
|
l.$slots.menuIcon ? {
|
|
360
376
|
name: "menuIcon",
|
|
361
|
-
fn: A(({ isOpen: t, color:
|
|
362
|
-
F(l.$slots, "menuIcon",
|
|
377
|
+
fn: A(({ isOpen: t, color: s }) => [
|
|
378
|
+
F(l.$slots, "menuIcon", te(le({ isOpen: t, color: s })), void 0, !0)
|
|
363
379
|
]),
|
|
364
380
|
key: "0"
|
|
365
381
|
} : void 0,
|
|
@@ -393,29 +409,29 @@ const $t = ["id"], Ct = {
|
|
|
393
409
|
} : void 0,
|
|
394
410
|
l.$slots.optionFullscreen ? {
|
|
395
411
|
name: "optionFullscreen",
|
|
396
|
-
fn: A(({ toggleFullscreen: t, isFullscreen:
|
|
397
|
-
F(l.$slots, "optionFullscreen",
|
|
412
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
413
|
+
F(l.$slots, "optionFullscreen", te(le({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
398
414
|
]),
|
|
399
415
|
key: "5"
|
|
400
416
|
} : void 0,
|
|
401
417
|
l.$slots.optionAnnotator ? {
|
|
402
418
|
name: "optionAnnotator",
|
|
403
|
-
fn: A(({ toggleAnnotator: t, isAnnotator:
|
|
404
|
-
F(l.$slots, "optionAnnotator",
|
|
419
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
420
|
+
F(l.$slots, "optionAnnotator", te(le({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
405
421
|
]),
|
|
406
422
|
key: "6"
|
|
407
423
|
} : void 0
|
|
408
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
424
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
409
425
|
r.value.height > 0 && W.value ? (a(), o("svg", {
|
|
410
426
|
key: 3,
|
|
411
427
|
ref_key: "svgRef",
|
|
412
428
|
ref: be,
|
|
413
|
-
xmlns:
|
|
414
|
-
class: k({ "vue-data-ui-fullscreen--on":
|
|
429
|
+
xmlns: u(pt),
|
|
430
|
+
class: k({ "vue-data-ui-fullscreen--on": J.value, "vue-data-ui-fulscreen--off": !J.value }),
|
|
415
431
|
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
416
432
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
417
433
|
}, [
|
|
418
|
-
Ne(
|
|
434
|
+
Ne(u(Ee)),
|
|
419
435
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
420
436
|
key: 0,
|
|
421
437
|
x: 0,
|
|
@@ -427,8 +443,8 @@ const $t = ["id"], Ct = {
|
|
|
427
443
|
}
|
|
428
444
|
}, [
|
|
429
445
|
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
430
|
-
], 8,
|
|
431
|
-
d.value ? h("", !0) : (a(), o("g",
|
|
446
|
+
], 8, Nt)) : h("", !0),
|
|
447
|
+
d.value ? h("", !0) : (a(), o("g", Ft, [
|
|
432
448
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
433
449
|
key: 0,
|
|
434
450
|
"text-anchor": "middle",
|
|
@@ -438,7 +454,7 @@ const $t = ["id"], Ct = {
|
|
|
438
454
|
x: r.value.width / 2,
|
|
439
455
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
440
456
|
onClick: $
|
|
441
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
457
|
+
}, c(e.value.style.chart.layout.title.text), 9, It)) : h("", !0),
|
|
442
458
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
443
459
|
key: 1,
|
|
444
460
|
"text-anchor": "middle",
|
|
@@ -448,10 +464,10 @@ const $t = ["id"], Ct = {
|
|
|
448
464
|
x: r.value.width / 2,
|
|
449
465
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
450
466
|
onClick: $
|
|
451
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
467
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, Lt)) : h("", !0)
|
|
452
468
|
])),
|
|
453
|
-
|
|
454
|
-
(a(!0), o(p, null, g(
|
|
469
|
+
n("defs", null, [
|
|
470
|
+
(a(!0), o(p, null, g(N.value, (t, s) => (a(), o("radialGradient", {
|
|
455
471
|
cx: "50%",
|
|
456
472
|
cy: "50%",
|
|
457
473
|
r: "50%",
|
|
@@ -459,32 +475,32 @@ const $t = ["id"], Ct = {
|
|
|
459
475
|
fy: "50%",
|
|
460
476
|
id: `root_gradient_${w.value}_${t.rootIndex}`
|
|
461
477
|
}, [
|
|
462
|
-
|
|
478
|
+
n("stop", {
|
|
463
479
|
offset: "0%",
|
|
464
|
-
"stop-color":
|
|
465
|
-
}, null, 8,
|
|
466
|
-
|
|
480
|
+
"stop-color": u(I)(u(Ie)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
481
|
+
}, null, 8, Ot),
|
|
482
|
+
n("stop", {
|
|
467
483
|
offset: "100%",
|
|
468
484
|
"stop-color": t.color
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
471
|
-
(a(!0), o(p, null, g(
|
|
485
|
+
}, null, 8, Rt)
|
|
486
|
+
], 8, Pt))), 256)),
|
|
487
|
+
(a(!0), o(p, null, g(N.value, (t) => (a(), o("linearGradient", {
|
|
472
488
|
x1: "0%",
|
|
473
489
|
y1: "0%",
|
|
474
490
|
x2: "100%",
|
|
475
491
|
y2: "0%",
|
|
476
492
|
id: `branch_gradient_${w.value}_${t.rootIndex}`
|
|
477
493
|
}, [
|
|
478
|
-
|
|
494
|
+
n("stop", {
|
|
479
495
|
offset: "0%",
|
|
480
496
|
"stop-color": t.color
|
|
481
|
-
}, null, 8,
|
|
482
|
-
|
|
497
|
+
}, null, 8, Bt),
|
|
498
|
+
n("stop", {
|
|
483
499
|
offset: "100%",
|
|
484
|
-
"stop-color":
|
|
485
|
-
}, null, 8,
|
|
500
|
+
"stop-color": u(I)(u(Ie)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
501
|
+
}, null, 8, Mt)
|
|
486
502
|
], 8, Vt))), 256)),
|
|
487
|
-
|
|
503
|
+
n("radialGradient", {
|
|
488
504
|
cx: "50%",
|
|
489
505
|
cy: "50%",
|
|
490
506
|
r: "50%",
|
|
@@ -492,20 +508,20 @@ const $t = ["id"], Ct = {
|
|
|
492
508
|
fy: "50%",
|
|
493
509
|
id: `nutpick_${w.value}`
|
|
494
510
|
}, [
|
|
495
|
-
|
|
511
|
+
n("stop", {
|
|
496
512
|
offset: "0%",
|
|
497
|
-
"stop-color":
|
|
498
|
-
}, null, 8,
|
|
499
|
-
|
|
513
|
+
"stop-color": u(I)("#FFFFFF", 0)
|
|
514
|
+
}, null, 8, jt),
|
|
515
|
+
n("stop", {
|
|
500
516
|
offset: "80%",
|
|
501
|
-
"stop-color":
|
|
502
|
-
}, null, 8,
|
|
503
|
-
|
|
517
|
+
"stop-color": u(I)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
518
|
+
}, null, 8, Xt),
|
|
519
|
+
n("stop", {
|
|
504
520
|
offset: "100%",
|
|
505
|
-
"stop-color":
|
|
506
|
-
}, null, 8,
|
|
507
|
-
], 8,
|
|
508
|
-
|
|
521
|
+
"stop-color": u(I)("#FFFFFF", 0)
|
|
522
|
+
}, null, 8, Et)
|
|
523
|
+
], 8, At),
|
|
524
|
+
n("radialGradient", {
|
|
509
525
|
cx: "50%",
|
|
510
526
|
cy: "50%",
|
|
511
527
|
r: "50%",
|
|
@@ -513,20 +529,20 @@ const $t = ["id"], Ct = {
|
|
|
513
529
|
fy: "50%",
|
|
514
530
|
id: `nut_${w.value}`
|
|
515
531
|
}, [
|
|
516
|
-
|
|
532
|
+
n("stop", {
|
|
517
533
|
offset: "0%",
|
|
518
|
-
"stop-color":
|
|
519
|
-
}, null, 8,
|
|
520
|
-
|
|
534
|
+
"stop-color": u(I)("#FFFFFF", 0)
|
|
535
|
+
}, null, 8, Ut),
|
|
536
|
+
n("stop", {
|
|
521
537
|
offset: "80%",
|
|
522
|
-
"stop-color":
|
|
523
|
-
}, null, 8,
|
|
524
|
-
|
|
538
|
+
"stop-color": u(I)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
539
|
+
}, null, 8, Dt),
|
|
540
|
+
n("stop", {
|
|
525
541
|
offset: "100%",
|
|
526
|
-
"stop-color":
|
|
527
|
-
}, null, 8,
|
|
528
|
-
], 8,
|
|
529
|
-
|
|
542
|
+
"stop-color": u(I)("#FFFFFF", 0)
|
|
543
|
+
}, null, 8, Yt)
|
|
544
|
+
], 8, Gt),
|
|
545
|
+
n("radialGradient", {
|
|
530
546
|
cx: "50%",
|
|
531
547
|
cy: "50%",
|
|
532
548
|
r: "50%",
|
|
@@ -534,22 +550,22 @@ const $t = ["id"], Ct = {
|
|
|
534
550
|
fy: "50%",
|
|
535
551
|
id: `nut_underlayer_${w.value}`
|
|
536
552
|
}, [
|
|
537
|
-
|
|
553
|
+
n("stop", {
|
|
538
554
|
offset: "0%",
|
|
539
|
-
"stop-color":
|
|
540
|
-
}, null, 8,
|
|
541
|
-
|
|
555
|
+
"stop-color": u(I)(e.value.style.chart.backgroundColor, 100)
|
|
556
|
+
}, null, 8, Ht),
|
|
557
|
+
n("stop", {
|
|
542
558
|
offset: "80%",
|
|
543
|
-
"stop-color":
|
|
544
|
-
}, null, 8,
|
|
545
|
-
|
|
559
|
+
"stop-color": u(I)(e.value.style.chart.backgroundColor, 60)
|
|
560
|
+
}, null, 8, Wt),
|
|
561
|
+
n("stop", {
|
|
546
562
|
offset: "100%",
|
|
547
|
-
"stop-color":
|
|
548
|
-
}, null, 8,
|
|
549
|
-
], 8,
|
|
563
|
+
"stop-color": u(I)(e.value.style.chart.backgroundColor, 0)
|
|
564
|
+
}, null, 8, Kt)
|
|
565
|
+
], 8, qt)
|
|
550
566
|
]),
|
|
551
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
552
|
-
|
|
567
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Jt, [
|
|
568
|
+
n("text", {
|
|
553
569
|
x: C.value.seedX,
|
|
554
570
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
555
571
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -557,8 +573,8 @@ const $t = ["id"], Ct = {
|
|
|
557
573
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
558
574
|
"text-anchor": "middle",
|
|
559
575
|
onClick: $
|
|
560
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
561
|
-
|
|
576
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, Qt),
|
|
577
|
+
n("text", {
|
|
562
578
|
x: C.value.seedX,
|
|
563
579
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
564
580
|
"font-size": e.value.style.chart.layout.grandTotal.fontSize,
|
|
@@ -566,32 +582,32 @@ const $t = ["id"], Ct = {
|
|
|
566
582
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
567
583
|
"text-anchor": "middle",
|
|
568
584
|
onClick: $
|
|
569
|
-
}, c(
|
|
585
|
+
}, c(u(G)(
|
|
570
586
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
571
|
-
|
|
572
|
-
|
|
587
|
+
B.value,
|
|
588
|
+
u(S)({
|
|
573
589
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
574
|
-
v:
|
|
590
|
+
v: B.value,
|
|
575
591
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
576
592
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
577
593
|
})
|
|
578
|
-
)), 9,
|
|
594
|
+
)), 9, Zt)
|
|
579
595
|
])) : h("", !0),
|
|
580
596
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
581
|
-
(a(!0), o(p, null, g(r.value.branchSize, (
|
|
597
|
+
(a(!0), o(p, null, g(r.value.branchSize, (s, b) => (a(), o("path", {
|
|
582
598
|
d: `M
|
|
583
599
|
${t.x1},${t.y1 + b}
|
|
584
600
|
C${t.x1 - 20},${t.y1 + b}
|
|
585
601
|
${t.x1 - 80},${t.y1 + b}
|
|
586
|
-
${
|
|
602
|
+
${re(t).x + re(t).r / 2}, ${re(t).y}
|
|
587
603
|
`,
|
|
588
|
-
stroke:
|
|
604
|
+
stroke: u(I)(t.color, e.value.style.chart.layout.links.opacity),
|
|
589
605
|
fill: "none",
|
|
590
606
|
"stroke-width": "2",
|
|
591
607
|
"shape-rendering": "cirspEdges",
|
|
592
608
|
style: y(`opacity:${P(t) ? 1 : 0}`),
|
|
593
609
|
onClick: $
|
|
594
|
-
}, null, 12,
|
|
610
|
+
}, null, 12, el))), 256))
|
|
595
611
|
]))), 256)),
|
|
596
612
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("circle", {
|
|
597
613
|
cx: t.x,
|
|
@@ -600,8 +616,8 @@ const $t = ["id"], Ct = {
|
|
|
600
616
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
601
617
|
stroke: "none",
|
|
602
618
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`)
|
|
603
|
-
}, null, 12,
|
|
604
|
-
(a(!0), o(p, null, g(j.value, (t,
|
|
619
|
+
}, null, 12, tl))), 256)),
|
|
620
|
+
(a(!0), o(p, null, g(j.value, (t, s) => (a(), o("circle", {
|
|
605
621
|
cx: t.x,
|
|
606
622
|
cy: t.y,
|
|
607
623
|
r: t.r,
|
|
@@ -610,31 +626,31 @@ const $t = ["id"], Ct = {
|
|
|
610
626
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
611
627
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
612
628
|
onClick: (b) => $e(t)
|
|
613
|
-
}, null, 12,
|
|
614
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
615
|
-
(a(!0), o(p, null, g(j.value, (t,
|
|
629
|
+
}, null, 12, ll))), 256)),
|
|
630
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", al, [
|
|
631
|
+
(a(!0), o(p, null, g(j.value, (t, s) => (a(), o("text", {
|
|
616
632
|
x: t.x,
|
|
617
633
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
618
634
|
"text-anchor": "middle",
|
|
619
635
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
620
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ?
|
|
636
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? u(Le)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
621
637
|
"font-weight": "bold",
|
|
622
638
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
623
639
|
onClick: (b) => $e(t)
|
|
624
|
-
}, c(
|
|
640
|
+
}, c(u(G)(
|
|
625
641
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
626
642
|
t.total,
|
|
627
|
-
|
|
643
|
+
u(S)({
|
|
628
644
|
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
629
645
|
v: t.total,
|
|
630
646
|
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
631
647
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
632
648
|
}),
|
|
633
649
|
{ datapoint: t }
|
|
634
|
-
)), 13,
|
|
650
|
+
)), 13, ol))), 256)),
|
|
635
651
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("g", null, [
|
|
636
|
-
d.value && t.rootIndex === d.value.rootIndex ||
|
|
637
|
-
|
|
652
|
+
d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g", sl, [
|
|
653
|
+
n("text", {
|
|
638
654
|
x: t.x,
|
|
639
655
|
y: t.y + t.r + 24,
|
|
640
656
|
"text-anchor": "middle",
|
|
@@ -642,7 +658,7 @@ const $t = ["id"], Ct = {
|
|
|
642
658
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
643
659
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
644
660
|
onClick: $
|
|
645
|
-
}, c(t.name), 9,
|
|
661
|
+
}, c(t.name), 9, ul)
|
|
646
662
|
])) : h("", !0)
|
|
647
663
|
]))), 256))
|
|
648
664
|
])) : h("", !0),
|
|
@@ -655,9 +671,9 @@ const $t = ["id"], Ct = {
|
|
|
655
671
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
656
672
|
stroke: "none",
|
|
657
673
|
style: y(`opacity:${P(t) ? 1 : 0.05}`),
|
|
658
|
-
onClick: (
|
|
659
|
-
}, null, 12,
|
|
660
|
-
(a(!0), o(p, null, g(X.value, (t,
|
|
674
|
+
onClick: (s) => ie(t)
|
|
675
|
+
}, null, 12, nl))), 256)),
|
|
676
|
+
(a(!0), o(p, null, g(X.value, (t, s) => (a(), o("rect", {
|
|
661
677
|
x: t.x1,
|
|
662
678
|
y: t.y1,
|
|
663
679
|
height: r.value.branchSize,
|
|
@@ -667,57 +683,57 @@ const $t = ["id"], Ct = {
|
|
|
667
683
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
668
684
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
669
685
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
670
|
-
onClick: (b) =>
|
|
671
|
-
}, null, 12,
|
|
672
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
686
|
+
onClick: (b) => ie(t)
|
|
687
|
+
}, null, 12, rl))), 256)),
|
|
688
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", il, [
|
|
673
689
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
674
690
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
675
691
|
key: 0,
|
|
676
692
|
x: t.x1 + 6,
|
|
677
693
|
y: t.y1 + r.value.branchSize / 1.5,
|
|
678
694
|
"text-anchor": "start",
|
|
679
|
-
fill:
|
|
695
|
+
fill: u(Le)(t.color),
|
|
680
696
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
681
697
|
"font-weight": "bold",
|
|
682
698
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
683
|
-
onClick: (
|
|
684
|
-
}, c(
|
|
699
|
+
onClick: (s) => ie(t)
|
|
700
|
+
}, c(u(G)(
|
|
685
701
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
686
702
|
t.value,
|
|
687
|
-
|
|
703
|
+
u(S)({
|
|
688
704
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
689
705
|
v: t.value,
|
|
690
706
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
691
707
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
692
708
|
}),
|
|
693
709
|
{ datapoint: t }
|
|
694
|
-
)), 13,
|
|
710
|
+
)), 13, cl)) : h("", !0)
|
|
695
711
|
]))), 256))
|
|
696
712
|
])) : h("", !0),
|
|
697
|
-
(a(!0), o(p, null, g(X.value, (t,
|
|
698
|
-
(a(!0), o(p, null, g(
|
|
713
|
+
(a(!0), o(p, null, g(X.value, (t, s) => (a(), o("g", null, [
|
|
714
|
+
(a(!0), o(p, null, g(u(Pe)(
|
|
699
715
|
{ series: t.breakdown, base: 1 },
|
|
700
716
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
701
717
|
t.y1 + r.value.branchSize / 2,
|
|
702
718
|
r.value.branchSize / 3,
|
|
703
719
|
r.value.branchSize / 3
|
|
704
|
-
), (b,
|
|
720
|
+
), (b, _) => (a(), o("path", {
|
|
705
721
|
d: b.path,
|
|
706
722
|
stroke: b.color,
|
|
707
723
|
"stroke-width": 10,
|
|
708
724
|
fill: "none",
|
|
709
725
|
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
710
|
-
}, null, 12,
|
|
711
|
-
|
|
726
|
+
}, null, 12, dl))), 256)),
|
|
727
|
+
n("circle", {
|
|
712
728
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${w.value})` : "transparent",
|
|
713
729
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
714
730
|
cy: t.y1 + r.value.branchSize / 2,
|
|
715
731
|
r: r.value.branchSize / 2 + 2,
|
|
716
|
-
onClick: (b) =>
|
|
732
|
+
onClick: (b) => et(t),
|
|
717
733
|
style: y(`cursor:pointer;opacity:${P(t) ? 1 : 0.1}`)
|
|
718
|
-
}, null, 12,
|
|
734
|
+
}, null, 12, vl)
|
|
719
735
|
]))), 256)),
|
|
720
|
-
e.value.style.chart.layout.branches.labels.show && !
|
|
736
|
+
e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", yl, [
|
|
721
737
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("text", {
|
|
722
738
|
x: t.x2 + r.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
723
739
|
y: t.y1 + r.value.branchSize / 2 + 5,
|
|
@@ -726,17 +742,17 @@ const $t = ["id"], Ct = {
|
|
|
726
742
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
727
743
|
"text-anchor": "start",
|
|
728
744
|
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
729
|
-
}, c(t.name), 13,
|
|
745
|
+
}, c(t.name), 13, hl))), 256))
|
|
730
746
|
])) : h("", !0),
|
|
731
|
-
|
|
747
|
+
n("line", {
|
|
732
748
|
x1: 256 + r.value.padding.left,
|
|
733
749
|
x2: 256 + r.value.padding.left,
|
|
734
750
|
y1: C.value.top,
|
|
735
751
|
y2: C.value.bottom,
|
|
736
752
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
737
753
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
738
|
-
}, null, 8,
|
|
739
|
-
!d.value && !
|
|
754
|
+
}, null, 8, fl),
|
|
755
|
+
!d.value && !x.value ? (a(), o("foreignObject", {
|
|
740
756
|
key: 6,
|
|
741
757
|
x: 0,
|
|
742
758
|
y: C.value.bottom,
|
|
@@ -745,25 +761,25 @@ const $t = ["id"], Ct = {
|
|
|
745
761
|
style: { overflow: "visible" },
|
|
746
762
|
onClick: $
|
|
747
763
|
}, [
|
|
748
|
-
|
|
749
|
-
|
|
764
|
+
n("div", pl, [
|
|
765
|
+
n("div", gl, [
|
|
750
766
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("div", {
|
|
751
767
|
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
752
768
|
}, [
|
|
753
|
-
(a(), o("svg",
|
|
754
|
-
|
|
769
|
+
(a(), o("svg", _l, [
|
|
770
|
+
n("circle", {
|
|
755
771
|
cx: "10",
|
|
756
772
|
cy: "10",
|
|
757
773
|
r: "10",
|
|
758
774
|
fill: t.color,
|
|
759
775
|
stroke: "none"
|
|
760
|
-
}, null, 8,
|
|
776
|
+
}, null, 8, xl)
|
|
761
777
|
])),
|
|
762
|
-
|
|
763
|
-
|
|
778
|
+
n("span", null, c(t.name) + ":", 1),
|
|
779
|
+
n("b", null, c(u(G)(
|
|
764
780
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
765
781
|
t.total,
|
|
766
|
-
|
|
782
|
+
u(S)({
|
|
767
783
|
p: e.value.style.chart.layout.legend.prefix,
|
|
768
784
|
v: t.total,
|
|
769
785
|
s: e.value.style.chart.layout.legend.suffix,
|
|
@@ -771,60 +787,60 @@ const $t = ["id"], Ct = {
|
|
|
771
787
|
}),
|
|
772
788
|
{ datapoint: t }
|
|
773
789
|
)), 1),
|
|
774
|
-
|
|
775
|
-
v: t.total /
|
|
790
|
+
ae(" (" + c(u(S)({
|
|
791
|
+
v: t.total / B.value * 100,
|
|
776
792
|
s: "%",
|
|
777
793
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
778
794
|
})) + ") ", 1)
|
|
779
795
|
], 4))), 256))
|
|
780
796
|
])
|
|
781
797
|
])
|
|
782
|
-
], 8,
|
|
783
|
-
d.value &&
|
|
798
|
+
], 8, bl)) : h("", !0),
|
|
799
|
+
d.value && M.value ? (a(), o("g", ml, [
|
|
784
800
|
(a(), o("foreignObject", {
|
|
785
801
|
x: 0,
|
|
786
|
-
y:
|
|
802
|
+
y: tt(),
|
|
787
803
|
height: r.value.height - C.value.bottom,
|
|
788
804
|
width: r.value.width,
|
|
789
805
|
style: { overflow: "visible" },
|
|
790
806
|
onClick: $
|
|
791
807
|
}, [
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
(a(!0), o(p, null, g(d.value.breakdown, (t,
|
|
808
|
+
n("div", wl, [
|
|
809
|
+
n("b", null, c(d.value.name), 1),
|
|
810
|
+
n("div", $l, [
|
|
811
|
+
(a(!0), o(p, null, g(d.value.breakdown, (t, s) => (a(), o("div", {
|
|
796
812
|
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
797
813
|
}, [
|
|
798
|
-
(a(), o("svg",
|
|
799
|
-
|
|
814
|
+
(a(), o("svg", Cl, [
|
|
815
|
+
n("circle", {
|
|
800
816
|
cx: "10",
|
|
801
817
|
cy: "10",
|
|
802
818
|
r: "10",
|
|
803
819
|
fill: t.color,
|
|
804
820
|
stroke: "none"
|
|
805
|
-
}, null, 8,
|
|
821
|
+
}, null, 8, Tl)
|
|
806
822
|
])),
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
823
|
+
n("span", null, [
|
|
824
|
+
ae(c(t.name) + ": ", 1),
|
|
825
|
+
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),
|
|
826
|
+
ae(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
811
827
|
])
|
|
812
828
|
], 4))), 256))
|
|
813
829
|
])
|
|
814
830
|
])
|
|
815
|
-
], 8,
|
|
816
|
-
|
|
831
|
+
], 8, kl)),
|
|
832
|
+
n("circle", {
|
|
817
833
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
818
834
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
819
835
|
r: 256,
|
|
820
836
|
fill: `url(#nut_underlayer_${w.value})`,
|
|
821
837
|
onClick: E,
|
|
822
838
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
823
|
-
}, null, 10,
|
|
824
|
-
(a(!0), o(p, null, g(
|
|
839
|
+
}, null, 10, zl),
|
|
840
|
+
(a(!0), o(p, null, g(M.value, (t) => (a(), o("g", null, [
|
|
825
841
|
Y(t) ? (a(), o("path", {
|
|
826
842
|
key: 0,
|
|
827
|
-
d:
|
|
843
|
+
d: u(gt)(
|
|
828
844
|
t,
|
|
829
845
|
{
|
|
830
846
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -842,41 +858,41 @@ const $t = ["id"], Ct = {
|
|
|
842
858
|
"stroke-linejoin": "round",
|
|
843
859
|
fill: "none",
|
|
844
860
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
845
|
-
}, null, 10,
|
|
861
|
+
}, null, 10, Sl)) : h("", !0)
|
|
846
862
|
]))), 256)),
|
|
847
|
-
|
|
863
|
+
n("circle", {
|
|
848
864
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
849
865
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
850
866
|
r: 118,
|
|
851
867
|
fill: e.value.style.chart.backgroundColor,
|
|
852
868
|
onClick: E,
|
|
853
869
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
854
|
-
}, null, 10,
|
|
855
|
-
(a(!0), o(p, null, g(
|
|
870
|
+
}, null, 10, Nl),
|
|
871
|
+
(a(!0), o(p, null, g(M.value, (t) => (a(), o("path", {
|
|
856
872
|
d: t.path,
|
|
857
873
|
stroke: t.color,
|
|
858
874
|
"stroke-width": 64,
|
|
859
875
|
fill: "none",
|
|
860
876
|
onClick: E,
|
|
861
877
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
862
|
-
}, null, 10,
|
|
863
|
-
|
|
878
|
+
}, null, 10, Fl))), 256)),
|
|
879
|
+
n("circle", {
|
|
864
880
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
865
881
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
866
882
|
r: 110,
|
|
867
883
|
fill: `url(#nutpick_${w.value})`,
|
|
868
884
|
onClick: E,
|
|
869
885
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
870
|
-
}, null, 10,
|
|
871
|
-
|
|
886
|
+
}, null, 10, Il),
|
|
887
|
+
n("circle", {
|
|
872
888
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
873
889
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
874
890
|
r: 64,
|
|
875
891
|
fill: e.value.style.chart.backgroundColor,
|
|
876
892
|
onClick: E,
|
|
877
893
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
878
|
-
}, null, 10,
|
|
879
|
-
|
|
894
|
+
}, null, 10, Ll),
|
|
895
|
+
n("text", {
|
|
880
896
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
881
897
|
y: d.value.y1 + 8,
|
|
882
898
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
@@ -885,8 +901,8 @@ const $t = ["id"], Ct = {
|
|
|
885
901
|
"text-anchor": "middle",
|
|
886
902
|
onClick: E,
|
|
887
903
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
888
|
-
}, c(e.value.translations.total), 11,
|
|
889
|
-
|
|
904
|
+
}, c(e.value.translations.total), 11, Pl),
|
|
905
|
+
n("text", {
|
|
890
906
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
891
907
|
y: d.value.y1 + 36,
|
|
892
908
|
fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
@@ -895,96 +911,96 @@ const $t = ["id"], Ct = {
|
|
|
895
911
|
"text-anchor": "middle",
|
|
896
912
|
onClick: E,
|
|
897
913
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
898
|
-
}, c(
|
|
914
|
+
}, c(u(G)(
|
|
899
915
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
900
916
|
d.value.value,
|
|
901
|
-
|
|
917
|
+
u(S)({
|
|
902
918
|
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
903
919
|
v: d.value.value,
|
|
904
920
|
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
905
921
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
906
922
|
}),
|
|
907
923
|
{ datapoint: d.value }
|
|
908
|
-
)), 11,
|
|
909
|
-
(a(!0), o(p, null, g(
|
|
924
|
+
)), 11, Ol),
|
|
925
|
+
(a(!0), o(p, null, g(M.value, (t, s) => (a(), o("g", null, [
|
|
910
926
|
Y(t) ? (a(), o("text", {
|
|
911
927
|
key: 0,
|
|
912
|
-
x:
|
|
913
|
-
"text-anchor":
|
|
914
|
-
y:
|
|
928
|
+
x: u(R)(t).x,
|
|
929
|
+
"text-anchor": u(R)(t).anchor,
|
|
930
|
+
y: u(Q)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
915
931
|
fill: t.color,
|
|
916
932
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
917
933
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
918
934
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
919
|
-
}, " ⬤ ", 14,
|
|
935
|
+
}, " ⬤ ", 14, Rl)) : h("", !0),
|
|
920
936
|
Y(t) ? (a(), o("text", {
|
|
921
937
|
key: 1,
|
|
922
|
-
x:
|
|
923
|
-
"text-anchor":
|
|
924
|
-
y:
|
|
938
|
+
x: u(R)(t, !0).x,
|
|
939
|
+
"text-anchor": u(R)(t, !0).anchor,
|
|
940
|
+
y: u(Q)(t),
|
|
925
941
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
926
942
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
927
943
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
928
944
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
929
|
-
}, c(d.value.breakdown[
|
|
945
|
+
}, c(d.value.breakdown[s].name), 15, Vl)) : h("", !0)
|
|
930
946
|
]))), 256)),
|
|
931
|
-
(a(!0), o(p, null, g(
|
|
947
|
+
(a(!0), o(p, null, g(M.value, (t, s) => (a(), o("g", null, [
|
|
932
948
|
Y(t) ? (a(), o("text", {
|
|
933
949
|
key: 0,
|
|
934
|
-
x:
|
|
935
|
-
"text-anchor":
|
|
936
|
-
y:
|
|
950
|
+
x: u(R)(t, !0).x,
|
|
951
|
+
"text-anchor": u(R)(t).anchor,
|
|
952
|
+
y: u(Q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
937
953
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
938
954
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
939
955
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
940
956
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
941
|
-
}, c(
|
|
942
|
-
v: d.value.breakdown[
|
|
957
|
+
}, c(u(S)({
|
|
958
|
+
v: d.value.breakdown[s].value / d.value.value * 100,
|
|
943
959
|
s: "%",
|
|
944
960
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
945
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[
|
|
961
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].branchName) + " " + c(u(G)(
|
|
946
962
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
947
|
-
d.value.breakdown[
|
|
948
|
-
|
|
963
|
+
d.value.breakdown[s].value,
|
|
964
|
+
u(S)({
|
|
949
965
|
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
950
|
-
v: d.value.breakdown[
|
|
966
|
+
v: d.value.breakdown[s].value,
|
|
951
967
|
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
952
968
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
953
969
|
}),
|
|
954
|
-
{ datapoint:
|
|
955
|
-
)), 15,
|
|
970
|
+
{ datapoint: M.value, seriesIndex: s }
|
|
971
|
+
)), 15, Bl)) : h("", !0),
|
|
956
972
|
Y(t) ? (a(), o("text", {
|
|
957
973
|
key: 1,
|
|
958
|
-
x:
|
|
959
|
-
"text-anchor":
|
|
960
|
-
y:
|
|
974
|
+
x: u(R)(t, !0).x,
|
|
975
|
+
"text-anchor": u(R)(t).anchor,
|
|
976
|
+
y: u(Q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
961
977
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
962
978
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
963
979
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
964
980
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
965
|
-
}, c(
|
|
966
|
-
v: d.value.breakdown[
|
|
981
|
+
}, c(u(S)({
|
|
982
|
+
v: d.value.breakdown[s].proportionToRoot * 100,
|
|
967
983
|
s: "%",
|
|
968
984
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
969
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[
|
|
985
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[s].rootName), 15, Ml)) : h("", !0),
|
|
970
986
|
Y(t) ? (a(), o("text", {
|
|
971
987
|
key: 2,
|
|
972
|
-
x:
|
|
973
|
-
"text-anchor":
|
|
974
|
-
y:
|
|
988
|
+
x: u(R)(t, !0).x,
|
|
989
|
+
"text-anchor": u(R)(t).anchor,
|
|
990
|
+
y: u(Q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
975
991
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
976
992
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
977
993
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
978
994
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
979
|
-
}, c(
|
|
980
|
-
v: d.value.breakdown[
|
|
995
|
+
}, c(u(S)({
|
|
996
|
+
v: d.value.breakdown[s].proportionToTree * 100,
|
|
981
997
|
s: "%",
|
|
982
998
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
983
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
999
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, Al)) : h("", !0)
|
|
984
1000
|
]))), 256))
|
|
985
1001
|
])) : h("", !0),
|
|
986
1002
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
987
|
-
|
|
1003
|
+
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
988
1004
|
key: 0,
|
|
989
1005
|
x: t.x1 + 6,
|
|
990
1006
|
y: t.y1 + r.value.branchSize + 24,
|
|
@@ -993,18 +1009,18 @@ const $t = ["id"], Ct = {
|
|
|
993
1009
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
994
1010
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
995
1011
|
onClick: $
|
|
996
|
-
}, c(t.name) + ": " + c(
|
|
1012
|
+
}, c(t.name) + ": " + c(u(G)(
|
|
997
1013
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
998
1014
|
t.value,
|
|
999
|
-
|
|
1015
|
+
u(S)({
|
|
1000
1016
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1001
1017
|
v: t.value,
|
|
1002
1018
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1003
1019
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1004
1020
|
}),
|
|
1005
1021
|
{ datapoint: t }
|
|
1006
|
-
)), 9,
|
|
1007
|
-
|
|
1022
|
+
)), 9, jl)) : h("", !0),
|
|
1023
|
+
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1008
1024
|
key: 1,
|
|
1009
1025
|
x: t.x1 + 6,
|
|
1010
1026
|
y: t.y1 + r.value.branchSize + 48,
|
|
@@ -1012,12 +1028,12 @@ const $t = ["id"], Ct = {
|
|
|
1012
1028
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1013
1029
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1014
1030
|
onClick: $
|
|
1015
|
-
}, c(
|
|
1031
|
+
}, c(u(S)({
|
|
1016
1032
|
v: t.proportionToRoot * 100,
|
|
1017
1033
|
s: "%",
|
|
1018
1034
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1019
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1020
|
-
|
|
1035
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, Xl)) : h("", !0),
|
|
1036
|
+
x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1021
1037
|
key: 2,
|
|
1022
1038
|
x: t.x1 + 6,
|
|
1023
1039
|
y: t.y1 + r.value.branchSize + 72,
|
|
@@ -1025,18 +1041,18 @@ const $t = ["id"], Ct = {
|
|
|
1025
1041
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1026
1042
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1027
1043
|
onClick: $
|
|
1028
|
-
}, c(
|
|
1029
|
-
v: t.value /
|
|
1044
|
+
}, c(u(S)({
|
|
1045
|
+
v: t.value / B.value * 100,
|
|
1030
1046
|
s: "%",
|
|
1031
1047
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1032
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1048
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, El)) : h("", !0)
|
|
1033
1049
|
]))), 256)),
|
|
1034
1050
|
F(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1035
|
-
], 14,
|
|
1036
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1037
|
-
F(l.$slots, "watermark",
|
|
1051
|
+
], 14, St)) : h("", !0),
|
|
1052
|
+
l.$slots.watermark ? (a(), o("div", Gl, [
|
|
1053
|
+
F(l.$slots, "watermark", te(le({ isPrinting: u(ge) || u(_e) })), void 0, !0)
|
|
1038
1054
|
])) : h("", !0),
|
|
1039
|
-
W.value ? h("", !0) : (a(),
|
|
1055
|
+
W.value ? h("", !0) : (a(), ee(u(je), {
|
|
1040
1056
|
key: 5,
|
|
1041
1057
|
config: {
|
|
1042
1058
|
type: "chestnut",
|
|
@@ -1048,11 +1064,11 @@ const $t = ["id"], Ct = {
|
|
|
1048
1064
|
}
|
|
1049
1065
|
}
|
|
1050
1066
|
}, null, 8, ["config"])),
|
|
1051
|
-
F(l.$slots, "legend", { legend:
|
|
1052
|
-
l.$slots.source ? (a(), o("div",
|
|
1067
|
+
F(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1068
|
+
l.$slots.source ? (a(), o("div", Ul, [
|
|
1053
1069
|
F(l.$slots, "source", {}, void 0, !0)
|
|
1054
1070
|
], 512)) : h("", !0),
|
|
1055
|
-
W.value ? (a(),
|
|
1071
|
+
W.value ? (a(), ee(u(Ae), {
|
|
1056
1072
|
key: 7,
|
|
1057
1073
|
hideDetails: "",
|
|
1058
1074
|
config: {
|
|
@@ -1069,39 +1085,39 @@ const $t = ["id"], Ct = {
|
|
|
1069
1085
|
}
|
|
1070
1086
|
}, {
|
|
1071
1087
|
content: A(() => [
|
|
1072
|
-
|
|
1088
|
+
n("div", {
|
|
1073
1089
|
ref_key: "tableContainer",
|
|
1074
|
-
ref:
|
|
1090
|
+
ref: ne,
|
|
1075
1091
|
class: "vue-ui-chestnut-table"
|
|
1076
1092
|
}, [
|
|
1077
|
-
|
|
1078
|
-
|
|
1093
|
+
n("div", Dl, [
|
|
1094
|
+
n("div", {
|
|
1079
1095
|
role: "button",
|
|
1080
1096
|
tabindex: "0",
|
|
1081
1097
|
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};`),
|
|
1082
1098
|
onClick: i[0] || (i[0] = (t) => U.value.showTable = !1),
|
|
1083
|
-
onKeypress: i[1] || (i[1] =
|
|
1099
|
+
onKeypress: i[1] || (i[1] = ct((t) => U.value.showTable = !1, ["enter"]))
|
|
1084
1100
|
}, [
|
|
1085
|
-
Ne(
|
|
1101
|
+
Ne(u(Ge), {
|
|
1086
1102
|
name: "close",
|
|
1087
1103
|
stroke: e.value.table.th.color,
|
|
1088
1104
|
"stroke-width": 2
|
|
1089
1105
|
}, null, 8, ["stroke"])
|
|
1090
1106
|
], 36),
|
|
1091
|
-
|
|
1107
|
+
n("div", {
|
|
1092
1108
|
style: { width: "100%" },
|
|
1093
1109
|
class: k({ "vue-ui-responsive": ke.value })
|
|
1094
1110
|
}, [
|
|
1095
|
-
|
|
1096
|
-
|
|
1111
|
+
n("table", Yl, [
|
|
1112
|
+
n("caption", {
|
|
1097
1113
|
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1098
1114
|
class: "vue-ui-data-table__caption"
|
|
1099
1115
|
}, [
|
|
1100
|
-
|
|
1101
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1116
|
+
ae(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1117
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", ql, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1102
1118
|
], 4),
|
|
1103
|
-
|
|
1104
|
-
|
|
1119
|
+
n("thead", null, [
|
|
1120
|
+
n("tr", {
|
|
1105
1121
|
role: "row",
|
|
1106
1122
|
style: y(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1107
1123
|
}, [
|
|
@@ -1110,109 +1126,109 @@ const $t = ["id"], Ct = {
|
|
|
1110
1126
|
}, c(t), 5))), 256))
|
|
1111
1127
|
], 4)
|
|
1112
1128
|
]),
|
|
1113
|
-
|
|
1114
|
-
(a(!0), o(p, null, g(v.value.body, (t,
|
|
1115
|
-
class: k({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even":
|
|
1129
|
+
n("tbody", null, [
|
|
1130
|
+
(a(!0), o(p, null, g(v.value.body, (t, s) => (a(), o("tr", {
|
|
1131
|
+
class: k({ "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 }),
|
|
1116
1132
|
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1117
1133
|
}, [
|
|
1118
|
-
|
|
1134
|
+
n("td", {
|
|
1119
1135
|
class: "vue-ui-data-table__tbody__td",
|
|
1120
1136
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1121
1137
|
"data-cell": v.value.head[0]
|
|
1122
1138
|
}, [
|
|
1123
|
-
|
|
1124
|
-
v.value.body[
|
|
1139
|
+
n("div", Wl, [
|
|
1140
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", Kl)) : (a(), o("span", Jl, c(t.rootName), 1))
|
|
1125
1141
|
])
|
|
1126
|
-
], 12,
|
|
1127
|
-
|
|
1142
|
+
], 12, Hl),
|
|
1143
|
+
n("td", {
|
|
1128
1144
|
class: "vue-ui-data-table__tbody__td",
|
|
1129
1145
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1130
1146
|
"data-cell": v.value.head[1]
|
|
1131
1147
|
}, [
|
|
1132
|
-
|
|
1133
|
-
v.value.body[
|
|
1148
|
+
n("div", Zl, [
|
|
1149
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", ea)) : (a(), o("span", ta, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1134
1150
|
])
|
|
1135
|
-
], 12,
|
|
1136
|
-
|
|
1151
|
+
], 12, Ql),
|
|
1152
|
+
n("td", {
|
|
1137
1153
|
class: "vue-ui-data-table__tbody__td",
|
|
1138
1154
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1139
1155
|
"data-cell": v.value.head[2]
|
|
1140
1156
|
}, [
|
|
1141
|
-
|
|
1142
|
-
v.value.body[
|
|
1157
|
+
n("div", aa, [
|
|
1158
|
+
v.value.body[s - 1] && v.value.body[s - 1].rootName === t.rootName ? (a(), o("span", oa)) : (a(), o("span", sa, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1143
1159
|
])
|
|
1144
|
-
], 12,
|
|
1145
|
-
|
|
1160
|
+
], 12, la),
|
|
1161
|
+
n("td", {
|
|
1146
1162
|
class: "vue-ui-data-table__tbody__td",
|
|
1147
1163
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1148
1164
|
"data-cell": v.value.head[3]
|
|
1149
1165
|
}, [
|
|
1150
|
-
|
|
1151
|
-
v.value.body[
|
|
1166
|
+
n("div", na, [
|
|
1167
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", ra)) : (a(), o("span", ia, c(t.branchName), 1))
|
|
1152
1168
|
])
|
|
1153
|
-
], 12,
|
|
1154
|
-
|
|
1169
|
+
], 12, ua),
|
|
1170
|
+
n("td", {
|
|
1155
1171
|
class: "vue-ui-data-table__tbody__td",
|
|
1156
1172
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1157
1173
|
"data-cell": v.value.head[4]
|
|
1158
1174
|
}, [
|
|
1159
|
-
|
|
1160
|
-
v.value.body[
|
|
1175
|
+
n("div", da, [
|
|
1176
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", va)) : (a(), o("span", ya, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1161
1177
|
])
|
|
1162
|
-
], 12,
|
|
1163
|
-
|
|
1178
|
+
], 12, ca),
|
|
1179
|
+
n("td", {
|
|
1164
1180
|
class: "vue-ui-data-table__tbody__td",
|
|
1165
1181
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1166
1182
|
"data-cell": v.value.head[5]
|
|
1167
1183
|
}, [
|
|
1168
|
-
|
|
1169
|
-
v.value.body[
|
|
1184
|
+
n("div", fa, [
|
|
1185
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", ba)) : (a(), o("span", pa, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1170
1186
|
])
|
|
1171
|
-
], 12,
|
|
1172
|
-
|
|
1187
|
+
], 12, ha),
|
|
1188
|
+
n("td", {
|
|
1173
1189
|
class: "vue-ui-data-table__tbody__td",
|
|
1174
1190
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1175
1191
|
"data-cell": v.value.head[6]
|
|
1176
1192
|
}, [
|
|
1177
|
-
|
|
1178
|
-
v.value.body[
|
|
1193
|
+
n("div", _a, [
|
|
1194
|
+
v.value.body[s - 1] && v.value.body[s - 1].branchName === t.branchName ? (a(), o("span", xa)) : (a(), o("span", ma, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1179
1195
|
])
|
|
1180
|
-
], 12,
|
|
1181
|
-
|
|
1196
|
+
], 12, ga),
|
|
1197
|
+
n("td", {
|
|
1182
1198
|
class: "vue-ui-data-table__tbody__td",
|
|
1183
1199
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1184
1200
|
"data-cell": v.value.head[7]
|
|
1185
1201
|
}, [
|
|
1186
|
-
|
|
1187
|
-
], 12,
|
|
1188
|
-
|
|
1202
|
+
n("div", wa, c(t.nutName), 1)
|
|
1203
|
+
], 12, ka),
|
|
1204
|
+
n("td", {
|
|
1189
1205
|
class: "vue-ui-data-table__tbody__td",
|
|
1190
1206
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1191
1207
|
"data-cell": v.value.head[8]
|
|
1192
1208
|
}, [
|
|
1193
|
-
|
|
1194
|
-
], 12,
|
|
1195
|
-
|
|
1209
|
+
n("div", Ca, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1210
|
+
], 12, $a),
|
|
1211
|
+
n("td", {
|
|
1196
1212
|
class: "vue-ui-data-table__tbody__td",
|
|
1197
1213
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1198
1214
|
"data-cell": v.value.head[9]
|
|
1199
1215
|
}, [
|
|
1200
|
-
|
|
1201
|
-
], 12,
|
|
1202
|
-
|
|
1216
|
+
n("div", za, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1217
|
+
], 12, Ta),
|
|
1218
|
+
n("td", {
|
|
1203
1219
|
class: "vue-ui-data-table__tbody__td",
|
|
1204
1220
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1205
1221
|
"data-cell": v.value.head[10]
|
|
1206
1222
|
}, [
|
|
1207
|
-
|
|
1208
|
-
], 12,
|
|
1209
|
-
|
|
1223
|
+
n("div", Na, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1224
|
+
], 12, Sa),
|
|
1225
|
+
n("td", {
|
|
1210
1226
|
class: "vue-ui-data-table__tbody__td",
|
|
1211
1227
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1212
1228
|
"data-cell": v.value.head[11]
|
|
1213
1229
|
}, [
|
|
1214
|
-
|
|
1215
|
-
], 12,
|
|
1230
|
+
n("div", Ia, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1231
|
+
], 12, Fa)
|
|
1216
1232
|
], 6))), 256))
|
|
1217
1233
|
])
|
|
1218
1234
|
])
|
|
@@ -1222,9 +1238,9 @@ const $t = ["id"], Ct = {
|
|
|
1222
1238
|
]),
|
|
1223
1239
|
_: 1
|
|
1224
1240
|
}, 8, ["config"])) : h("", !0)
|
|
1225
|
-
], 46,
|
|
1241
|
+
], 46, Tt));
|
|
1226
1242
|
}
|
|
1227
|
-
},
|
|
1243
|
+
}, Xa = /* @__PURE__ */ Ct(La, [["__scopeId", "data-v-21b8f426"]]);
|
|
1228
1244
|
export {
|
|
1229
|
-
|
|
1245
|
+
Xa as default
|
|
1230
1246
|
};
|