vue-data-ui 2.16.6 → 2.17.0
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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -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 s, 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 u, 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 J, n as V, q as _t, r as xt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { u as Oe } from "./useNestedProp-DjACxgdZ.js";
|
|
4
|
+
import { u as mt } from "./usePrinter-DDHcrl0A.js";
|
|
5
|
+
import { u as kt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as wt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import $t from "./img-Y_hYz-ZC.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"], Vt = ["stop-color"], Rt = ["id"], Mt = ["stop-color"], Bt = ["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"], Vl = ["x", "text-anchor", "y", "fill", "font-size"], Rl = ["x", "text-anchor", "y", "fill", "font-size"], Ml = ["x", "text-anchor", "y", "fill", "font-size"], Bl = ["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(Ve, { expose: Re, emit: Me }) {
|
|
47
|
+
ot((l) => ({
|
|
48
|
+
"543c3ede": l.tdo
|
|
48
49
|
}));
|
|
49
|
-
const
|
|
50
|
+
const Be = H(() => import("./PenAndPaper-D6AqipIO.js")), Ae = H(() => import("./vue-ui-accordion-CVnA550V.js")), je = H(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Xe = H(() => import("./UserOptions-Dd34lEKb.js")), Ee = H(() => import("./PackageVersion-5TR4ocqp.js")), Ge = H(() => import("./BaseIcon-naqtCxVi.js")), { vue_ui_chestnut: Ue } = dt(), R = Ve, W = m(() => !!R.dataset && R.dataset.length), w = z(vt()), Q = 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
|
+
const l = Oe({
|
|
55
56
|
userConfig: R.config,
|
|
56
|
-
defaultConfig:
|
|
57
|
+
defaultConfig: Ue
|
|
57
58
|
});
|
|
58
59
|
return l.theme ? {
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
60
|
+
...Oe({
|
|
61
|
+
userConfig: ht.vue_ui_chestnut[l.theme] || R.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(() => R.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,
|
|
@@ -93,33 +94,33 @@ const $t = ["id"], Ct = {
|
|
|
93
94
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
94
95
|
seedX: r.value.padding.left + 64
|
|
95
96
|
})), M = m(() => W.value ? R.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (R.dataset.forEach((l, i) => {
|
|
96
|
-
|
|
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
107
|
}), l.branches && l.branches.forEach((t, n) => {
|
|
107
|
-
|
|
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
116
|
index: `${i} - ${n}`
|
|
116
117
|
});
|
|
117
118
|
}), t.breakdown && t.breakdown.forEach((b, x) => {
|
|
118
|
-
|
|
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,
|
|
@@ -132,7 +133,7 @@ const $t = ["id"], Ct = {
|
|
|
132
133
|
const t = (l.branches || []).map((n) => n.value || 0).reduce((n, b) => n + 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,
|
|
@@ -141,7 +142,7 @@ const $t = ["id"], Ct = {
|
|
|
141
142
|
...n,
|
|
142
143
|
rootName: l.name,
|
|
143
144
|
rootIndex: i,
|
|
144
|
-
color:
|
|
145
|
+
color: ve(l.color) || ue.value[i] || O[i] || O[i % O.length],
|
|
145
146
|
value: n.value >= 0 ? n.value : 0,
|
|
146
147
|
id: n.id || `branch_${i}_${b}_${w.value}`,
|
|
147
148
|
proportionToRoot: n.value / t,
|
|
@@ -171,31 +172,31 @@ const $t = ["id"], Ct = {
|
|
|
171
172
|
proportionToTree: x.value / M.value,
|
|
172
173
|
rootIndex: i,
|
|
173
174
|
id: x.id || `nut_${i}_${b}_${f}_${w.value}`,
|
|
174
|
-
color:
|
|
175
|
+
color: ve(x.color) || ue.value[f] || O[f] || O[f % O.length],
|
|
175
176
|
value: x.value >= 0 ? x.value : 0
|
|
176
177
|
}))
|
|
177
178
|
}))
|
|
178
179
|
};
|
|
179
180
|
})));
|
|
180
|
-
function
|
|
181
|
+
function He() {
|
|
181
182
|
return N.value;
|
|
182
183
|
}
|
|
183
|
-
const D =
|
|
184
|
-
const t = C.value.height / N.value.length / 2, n = l.total /
|
|
184
|
+
const D = Me, 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, n = l.total / Ke.value * (t > 64 ? 64 : t);
|
|
185
186
|
return {
|
|
186
187
|
...l,
|
|
187
188
|
x: C.value.seedX,
|
|
188
189
|
y: C.value.top + C.value.height / N.value.length * (i + 1) - (C.value.height / N.value.length / 2 + r.value.gap / 2),
|
|
189
190
|
r: n < r.value.branchSize / 2 ? r.value.branchSize / 2 : n
|
|
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
|
}
|
|
@@ -206,9 +207,9 @@ const $t = ["id"], Ct = {
|
|
|
206
207
|
function P(l) {
|
|
207
208
|
return L.value ? L.value === null ? !0 : l.type === "root" ? l.id === L.value.id : l.rootIndex === L.value.rootIndex : d.value === null && _.value === null ? !0 : l.type === "nut" ? d.value.id === l.id : l.type === "branch" ? _.value.id === l.id : l.type === "root" ? _.value && _.value.rootIndex === l.rootIndex || d.value && d.value.rootIndex === l.rootIndex : !1;
|
|
208
209
|
}
|
|
209
|
-
function
|
|
210
|
-
$(),
|
|
211
|
-
d.value = l, _.value = l, B.value =
|
|
210
|
+
function et(l) {
|
|
211
|
+
$(), Fe(() => {
|
|
212
|
+
d.value = l, _.value = l, B.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,
|
|
@@ -220,38 +221,38 @@ const $t = ["id"], Ct = {
|
|
|
220
221
|
function E() {
|
|
221
222
|
d.value = null, B.value = null, D("selectNut", null);
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
+
function ie(l) {
|
|
224
225
|
_.value && _.value.id === l.id ? (_.value = null, $(), D("selectBranch", null)) : ($(), _.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(R.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 = [
|
|
@@ -271,7 +272,7 @@ const $t = ["id"], Ct = {
|
|
|
271
272
|
return { head: l, body: i };
|
|
272
273
|
});
|
|
273
274
|
function Te(l = null) {
|
|
274
|
-
|
|
275
|
+
Fe(() => {
|
|
275
276
|
const i = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", M.value], [""]], t = v.value.head, n = 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,
|
|
@@ -285,49 +286,56 @@ const $t = ["id"], Ct = {
|
|
|
285
286
|
f.nutToBranch,
|
|
286
287
|
f.nutToRoot,
|
|
287
288
|
f.nutToTotal
|
|
288
|
-
]), b = i.concat([t]).concat(n), x =
|
|
289
|
-
l ? l(x) :
|
|
289
|
+
]), b = i.concat([t]).concat(n), x = _t(b);
|
|
290
|
+
l ? l(x) : xt({ csvContent: x, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
290
291
|
});
|
|
291
292
|
}
|
|
292
293
|
const K = z(!1);
|
|
293
|
-
function
|
|
294
|
+
function ze(l) {
|
|
294
295
|
K.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 (!Q.value) return;
|
|
306
|
+
const { imageUri: i, base64: t } = await $t({ domElement: Q.value, base64: !0, img: !0, scale: l });
|
|
307
|
+
return { imageUri: i, base64: t };
|
|
308
|
+
}
|
|
309
|
+
return Re({
|
|
310
|
+
getData: He,
|
|
311
|
+
getImage: at,
|
|
305
312
|
generatePdf: xe,
|
|
306
313
|
generateCsv: Te,
|
|
307
314
|
generateImage: me,
|
|
308
|
-
toggleTable:
|
|
309
|
-
toggleAnnotator:
|
|
315
|
+
toggleTable: Se,
|
|
316
|
+
toggleAnnotator: ce,
|
|
317
|
+
toggleFullscreen: ze
|
|
310
318
|
}), (l, i) => (a(), o("div", {
|
|
311
319
|
class: k(`vue-ui-chestnut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
312
320
|
ref_key: "chestnutChart",
|
|
313
|
-
ref:
|
|
321
|
+
ref: Q,
|
|
314
322
|
id: `vue-ui-chestnut_${w.value}`,
|
|
315
323
|
style: y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
316
324
|
onMouseenter: i[2] || (i[2] = () => s(he)(!0)),
|
|
317
325
|
onMouseleave: i[3] || (i[3] = () => s(he)(!1))
|
|
318
326
|
}, [
|
|
319
|
-
e.value.userOptions.buttons.annotator ? (a(),
|
|
327
|
+
e.value.userOptions.buttons.annotator ? (a(), ee(s(Be), {
|
|
320
328
|
key: 0,
|
|
321
329
|
svgRef: s(be),
|
|
322
330
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
323
331
|
color: e.value.style.chart.color,
|
|
324
|
-
active:
|
|
325
|
-
onClose:
|
|
332
|
+
active: Z.value,
|
|
333
|
+
onClose: ce
|
|
326
334
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
327
|
-
|
|
328
|
-
e.value.userOptions.show && W.value && (s(fe) || s(
|
|
335
|
+
Ye.value ? (a(), o("div", zt, null, 512)) : h("", !0),
|
|
336
|
+
e.value.userOptions.show && W.value && (s(fe) || s(se)) ? (a(), ee(s(Xe), {
|
|
329
337
|
ref_key: "details",
|
|
330
|
-
ref:
|
|
338
|
+
ref: De,
|
|
331
339
|
key: `user_options_${ye.value}`,
|
|
332
340
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
333
341
|
color: e.value.style.chart.color,
|
|
@@ -341,26 +349,26 @@ const $t = ["id"], Ct = {
|
|
|
341
349
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
342
350
|
isFullscreen: K.value,
|
|
343
351
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
344
|
-
chartElement:
|
|
352
|
+
chartElement: Q.value,
|
|
345
353
|
position: e.value.userOptions.position,
|
|
346
354
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
347
|
-
isAnnotation:
|
|
355
|
+
isAnnotation: Z.value,
|
|
348
356
|
callbacks: e.value.userOptions.callbacks,
|
|
349
357
|
printScale: e.value.userOptions.print.scale,
|
|
350
|
-
onToggleFullscreen:
|
|
358
|
+
onToggleFullscreen: ze,
|
|
351
359
|
onGeneratePdf: s(xe),
|
|
352
360
|
onGenerateCsv: Te,
|
|
353
361
|
onGenerateImage: s(me),
|
|
354
|
-
onToggleTable:
|
|
355
|
-
onToggleAnnotator:
|
|
362
|
+
onToggleTable: Se,
|
|
363
|
+
onToggleAnnotator: ce,
|
|
356
364
|
style: y({
|
|
357
|
-
visibility: s(fe) ? s(
|
|
365
|
+
visibility: s(fe) ? s(se) ? "visible" : "hidden" : "visible"
|
|
358
366
|
})
|
|
359
|
-
},
|
|
367
|
+
}, it({ _: 2 }, [
|
|
360
368
|
l.$slots.menuIcon ? {
|
|
361
369
|
name: "menuIcon",
|
|
362
370
|
fn: A(({ isOpen: t, color: n }) => [
|
|
363
|
-
F(l.$slots, "menuIcon",
|
|
371
|
+
F(l.$slots, "menuIcon", te(le({ isOpen: t, color: n })), void 0, !0)
|
|
364
372
|
]),
|
|
365
373
|
key: "0"
|
|
366
374
|
} : void 0,
|
|
@@ -395,14 +403,14 @@ const $t = ["id"], Ct = {
|
|
|
395
403
|
l.$slots.optionFullscreen ? {
|
|
396
404
|
name: "optionFullscreen",
|
|
397
405
|
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
398
|
-
F(l.$slots, "optionFullscreen",
|
|
406
|
+
F(l.$slots, "optionFullscreen", te(le({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
399
407
|
]),
|
|
400
408
|
key: "5"
|
|
401
409
|
} : void 0,
|
|
402
410
|
l.$slots.optionAnnotator ? {
|
|
403
411
|
name: "optionAnnotator",
|
|
404
412
|
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
405
|
-
F(l.$slots, "optionAnnotator",
|
|
413
|
+
F(l.$slots, "optionAnnotator", te(le({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
406
414
|
]),
|
|
407
415
|
key: "6"
|
|
408
416
|
} : void 0
|
|
@@ -411,12 +419,12 @@ const $t = ["id"], Ct = {
|
|
|
411
419
|
key: 3,
|
|
412
420
|
ref_key: "svgRef",
|
|
413
421
|
ref: be,
|
|
414
|
-
xmlns: s(
|
|
422
|
+
xmlns: s(pt),
|
|
415
423
|
class: k({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
416
424
|
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
417
425
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
418
426
|
}, [
|
|
419
|
-
|
|
427
|
+
Ne(s(Ee)),
|
|
420
428
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
421
429
|
key: 0,
|
|
422
430
|
x: 0,
|
|
@@ -428,8 +436,8 @@ const $t = ["id"], Ct = {
|
|
|
428
436
|
}
|
|
429
437
|
}, [
|
|
430
438
|
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
431
|
-
], 8,
|
|
432
|
-
d.value ? h("", !0) : (a(), o("g",
|
|
439
|
+
], 8, Nt)) : h("", !0),
|
|
440
|
+
d.value ? h("", !0) : (a(), o("g", Ft, [
|
|
433
441
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
434
442
|
key: 0,
|
|
435
443
|
"text-anchor": "middle",
|
|
@@ -439,7 +447,7 @@ const $t = ["id"], Ct = {
|
|
|
439
447
|
x: r.value.width / 2,
|
|
440
448
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
441
449
|
onClick: $
|
|
442
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
450
|
+
}, c(e.value.style.chart.layout.title.text), 9, It)) : h("", !0),
|
|
443
451
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
444
452
|
key: 1,
|
|
445
453
|
"text-anchor": "middle",
|
|
@@ -449,7 +457,7 @@ const $t = ["id"], Ct = {
|
|
|
449
457
|
x: r.value.width / 2,
|
|
450
458
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
451
459
|
onClick: $
|
|
452
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
460
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, Lt)) : h("", !0)
|
|
453
461
|
])),
|
|
454
462
|
u("defs", null, [
|
|
455
463
|
(a(!0), o(p, null, g(N.value, (t, n) => (a(), o("radialGradient", {
|
|
@@ -462,13 +470,13 @@ const $t = ["id"], Ct = {
|
|
|
462
470
|
}, [
|
|
463
471
|
u("stop", {
|
|
464
472
|
offset: "0%",
|
|
465
|
-
"stop-color": s(I)(s(
|
|
466
|
-
}, null, 8,
|
|
473
|
+
"stop-color": s(I)(s(Ie)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
474
|
+
}, null, 8, Ot),
|
|
467
475
|
u("stop", {
|
|
468
476
|
offset: "100%",
|
|
469
477
|
"stop-color": t.color
|
|
470
|
-
}, null, 8,
|
|
471
|
-
], 8,
|
|
478
|
+
}, null, 8, Vt)
|
|
479
|
+
], 8, Pt))), 256)),
|
|
472
480
|
(a(!0), o(p, null, g(N.value, (t) => (a(), o("linearGradient", {
|
|
473
481
|
x1: "0%",
|
|
474
482
|
y1: "0%",
|
|
@@ -479,12 +487,12 @@ const $t = ["id"], Ct = {
|
|
|
479
487
|
u("stop", {
|
|
480
488
|
offset: "0%",
|
|
481
489
|
"stop-color": t.color
|
|
482
|
-
}, null, 8,
|
|
490
|
+
}, null, 8, Mt),
|
|
483
491
|
u("stop", {
|
|
484
492
|
offset: "100%",
|
|
485
|
-
"stop-color": s(I)(s(
|
|
486
|
-
}, null, 8,
|
|
487
|
-
], 8,
|
|
493
|
+
"stop-color": s(I)(s(Ie)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
494
|
+
}, null, 8, Bt)
|
|
495
|
+
], 8, Rt))), 256)),
|
|
488
496
|
u("radialGradient", {
|
|
489
497
|
cx: "50%",
|
|
490
498
|
cy: "50%",
|
|
@@ -496,16 +504,16 @@ const $t = ["id"], Ct = {
|
|
|
496
504
|
u("stop", {
|
|
497
505
|
offset: "0%",
|
|
498
506
|
"stop-color": s(I)("#FFFFFF", 0)
|
|
499
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, jt),
|
|
500
508
|
u("stop", {
|
|
501
509
|
offset: "80%",
|
|
502
510
|
"stop-color": s(I)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
503
|
-
}, null, 8,
|
|
511
|
+
}, null, 8, Xt),
|
|
504
512
|
u("stop", {
|
|
505
513
|
offset: "100%",
|
|
506
514
|
"stop-color": s(I)("#FFFFFF", 0)
|
|
507
|
-
}, null, 8,
|
|
508
|
-
], 8,
|
|
515
|
+
}, null, 8, Et)
|
|
516
|
+
], 8, At),
|
|
509
517
|
u("radialGradient", {
|
|
510
518
|
cx: "50%",
|
|
511
519
|
cy: "50%",
|
|
@@ -517,16 +525,16 @@ const $t = ["id"], Ct = {
|
|
|
517
525
|
u("stop", {
|
|
518
526
|
offset: "0%",
|
|
519
527
|
"stop-color": s(I)("#FFFFFF", 0)
|
|
520
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, Ut),
|
|
521
529
|
u("stop", {
|
|
522
530
|
offset: "80%",
|
|
523
531
|
"stop-color": s(I)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
524
|
-
}, null, 8,
|
|
532
|
+
}, null, 8, Dt),
|
|
525
533
|
u("stop", {
|
|
526
534
|
offset: "100%",
|
|
527
535
|
"stop-color": s(I)("#FFFFFF", 0)
|
|
528
|
-
}, null, 8,
|
|
529
|
-
], 8,
|
|
536
|
+
}, null, 8, Yt)
|
|
537
|
+
], 8, Gt),
|
|
530
538
|
u("radialGradient", {
|
|
531
539
|
cx: "50%",
|
|
532
540
|
cy: "50%",
|
|
@@ -538,18 +546,18 @@ const $t = ["id"], Ct = {
|
|
|
538
546
|
u("stop", {
|
|
539
547
|
offset: "0%",
|
|
540
548
|
"stop-color": s(I)(e.value.style.chart.backgroundColor, 100)
|
|
541
|
-
}, null, 8,
|
|
549
|
+
}, null, 8, Ht),
|
|
542
550
|
u("stop", {
|
|
543
551
|
offset: "80%",
|
|
544
552
|
"stop-color": s(I)(e.value.style.chart.backgroundColor, 60)
|
|
545
|
-
}, null, 8,
|
|
553
|
+
}, null, 8, Wt),
|
|
546
554
|
u("stop", {
|
|
547
555
|
offset: "100%",
|
|
548
556
|
"stop-color": s(I)(e.value.style.chart.backgroundColor, 0)
|
|
549
|
-
}, null, 8,
|
|
550
|
-
], 8,
|
|
557
|
+
}, null, 8, Kt)
|
|
558
|
+
], 8, qt)
|
|
551
559
|
]),
|
|
552
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
560
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Jt, [
|
|
553
561
|
u("text", {
|
|
554
562
|
x: C.value.seedX,
|
|
555
563
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -558,7 +566,7 @@ const $t = ["id"], Ct = {
|
|
|
558
566
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
559
567
|
"text-anchor": "middle",
|
|
560
568
|
onClick: $
|
|
561
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
569
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, Qt),
|
|
562
570
|
u("text", {
|
|
563
571
|
x: C.value.seedX,
|
|
564
572
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -576,7 +584,7 @@ const $t = ["id"], Ct = {
|
|
|
576
584
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
577
585
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
578
586
|
})
|
|
579
|
-
)), 9,
|
|
587
|
+
)), 9, Zt)
|
|
580
588
|
])) : h("", !0),
|
|
581
589
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
582
590
|
(a(!0), o(p, null, g(r.value.branchSize, (n, b) => (a(), o("path", {
|
|
@@ -584,7 +592,7 @@ const $t = ["id"], Ct = {
|
|
|
584
592
|
${t.x1},${t.y1 + b}
|
|
585
593
|
C${t.x1 - 20},${t.y1 + b}
|
|
586
594
|
${t.x1 - 80},${t.y1 + b}
|
|
587
|
-
${
|
|
595
|
+
${re(t).x + re(t).r / 2}, ${re(t).y}
|
|
588
596
|
`,
|
|
589
597
|
stroke: s(I)(t.color, e.value.style.chart.layout.links.opacity),
|
|
590
598
|
fill: "none",
|
|
@@ -592,7 +600,7 @@ const $t = ["id"], Ct = {
|
|
|
592
600
|
"shape-rendering": "cirspEdges",
|
|
593
601
|
style: y(`opacity:${P(t) ? 1 : 0}`),
|
|
594
602
|
onClick: $
|
|
595
|
-
}, null, 12,
|
|
603
|
+
}, null, 12, el))), 256))
|
|
596
604
|
]))), 256)),
|
|
597
605
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("circle", {
|
|
598
606
|
cx: t.x,
|
|
@@ -601,7 +609,7 @@ const $t = ["id"], Ct = {
|
|
|
601
609
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
602
610
|
stroke: "none",
|
|
603
611
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`)
|
|
604
|
-
}, null, 12,
|
|
612
|
+
}, null, 12, tl))), 256)),
|
|
605
613
|
(a(!0), o(p, null, g(j.value, (t, n) => (a(), o("circle", {
|
|
606
614
|
cx: t.x,
|
|
607
615
|
cy: t.y,
|
|
@@ -611,14 +619,14 @@ const $t = ["id"], Ct = {
|
|
|
611
619
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
612
620
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
613
621
|
onClick: (b) => $e(t)
|
|
614
|
-
}, null, 12,
|
|
615
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
622
|
+
}, null, 12, ll))), 256)),
|
|
623
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", al, [
|
|
616
624
|
(a(!0), o(p, null, g(j.value, (t, n) => (a(), o("text", {
|
|
617
625
|
x: t.x,
|
|
618
626
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
619
627
|
"text-anchor": "middle",
|
|
620
628
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
621
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? s(
|
|
629
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? s(Le)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
622
630
|
"font-weight": "bold",
|
|
623
631
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
624
632
|
onClick: (b) => $e(t)
|
|
@@ -632,9 +640,9 @@ const $t = ["id"], Ct = {
|
|
|
632
640
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
633
641
|
}),
|
|
634
642
|
{ datapoint: t }
|
|
635
|
-
)), 13,
|
|
643
|
+
)), 13, ol))), 256)),
|
|
636
644
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("g", null, [
|
|
637
|
-
d.value && t.rootIndex === d.value.rootIndex || _.value && t.rootIndex === _.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g",
|
|
645
|
+
d.value && t.rootIndex === d.value.rootIndex || _.value && t.rootIndex === _.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g", sl, [
|
|
638
646
|
u("text", {
|
|
639
647
|
x: t.x,
|
|
640
648
|
y: t.y + t.r + 24,
|
|
@@ -643,7 +651,7 @@ const $t = ["id"], Ct = {
|
|
|
643
651
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
644
652
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
645
653
|
onClick: $
|
|
646
|
-
}, c(t.name), 9,
|
|
654
|
+
}, c(t.name), 9, ul)
|
|
647
655
|
])) : h("", !0)
|
|
648
656
|
]))), 256))
|
|
649
657
|
])) : h("", !0),
|
|
@@ -656,8 +664,8 @@ const $t = ["id"], Ct = {
|
|
|
656
664
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
657
665
|
stroke: "none",
|
|
658
666
|
style: y(`opacity:${P(t) ? 1 : 0.05}`),
|
|
659
|
-
onClick: (n) =>
|
|
660
|
-
}, null, 12,
|
|
667
|
+
onClick: (n) => ie(t)
|
|
668
|
+
}, null, 12, nl))), 256)),
|
|
661
669
|
(a(!0), o(p, null, g(X.value, (t, n) => (a(), o("rect", {
|
|
662
670
|
x: t.x1,
|
|
663
671
|
y: t.y1,
|
|
@@ -668,20 +676,20 @@ const $t = ["id"], Ct = {
|
|
|
668
676
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
669
677
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
670
678
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
671
|
-
onClick: (b) =>
|
|
672
|
-
}, null, 12,
|
|
673
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
679
|
+
onClick: (b) => ie(t)
|
|
680
|
+
}, null, 12, rl))), 256)),
|
|
681
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", il, [
|
|
674
682
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
675
683
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
676
684
|
key: 0,
|
|
677
685
|
x: t.x1 + 6,
|
|
678
686
|
y: t.y1 + r.value.branchSize / 1.5,
|
|
679
687
|
"text-anchor": "start",
|
|
680
|
-
fill: s(
|
|
688
|
+
fill: s(Le)(t.color),
|
|
681
689
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
682
690
|
"font-weight": "bold",
|
|
683
691
|
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
684
|
-
onClick: (n) =>
|
|
692
|
+
onClick: (n) => ie(t)
|
|
685
693
|
}, c(s(G)(
|
|
686
694
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
687
695
|
t.value,
|
|
@@ -692,11 +700,11 @@ const $t = ["id"], Ct = {
|
|
|
692
700
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
693
701
|
}),
|
|
694
702
|
{ datapoint: t }
|
|
695
|
-
)), 13,
|
|
703
|
+
)), 13, cl)) : h("", !0)
|
|
696
704
|
]))), 256))
|
|
697
705
|
])) : h("", !0),
|
|
698
706
|
(a(!0), o(p, null, g(X.value, (t, n) => (a(), o("g", null, [
|
|
699
|
-
(a(!0), o(p, null, g(s(
|
|
707
|
+
(a(!0), o(p, null, g(s(Pe)(
|
|
700
708
|
{ series: t.breakdown, base: 1 },
|
|
701
709
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
702
710
|
t.y1 + r.value.branchSize / 2,
|
|
@@ -708,17 +716,17 @@ const $t = ["id"], Ct = {
|
|
|
708
716
|
"stroke-width": 10,
|
|
709
717
|
fill: "none",
|
|
710
718
|
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
711
|
-
}, null, 12,
|
|
719
|
+
}, null, 12, dl))), 256)),
|
|
712
720
|
u("circle", {
|
|
713
721
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${w.value})` : "transparent",
|
|
714
722
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
715
723
|
cy: t.y1 + r.value.branchSize / 2,
|
|
716
724
|
r: r.value.branchSize / 2 + 2,
|
|
717
|
-
onClick: (b) =>
|
|
725
|
+
onClick: (b) => et(t),
|
|
718
726
|
style: y(`cursor:pointer;opacity:${P(t) ? 1 : 0.1}`)
|
|
719
|
-
}, null, 12,
|
|
727
|
+
}, null, 12, vl)
|
|
720
728
|
]))), 256)),
|
|
721
|
-
e.value.style.chart.layout.branches.labels.show && !_.value ? (a(), o("g",
|
|
729
|
+
e.value.style.chart.layout.branches.labels.show && !_.value ? (a(), o("g", yl, [
|
|
722
730
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("text", {
|
|
723
731
|
x: t.x2 + r.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
724
732
|
y: t.y1 + r.value.branchSize / 2 + 5,
|
|
@@ -727,7 +735,7 @@ const $t = ["id"], Ct = {
|
|
|
727
735
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
728
736
|
"text-anchor": "start",
|
|
729
737
|
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
730
|
-
}, c(t.name), 13,
|
|
738
|
+
}, c(t.name), 13, hl))), 256))
|
|
731
739
|
])) : h("", !0),
|
|
732
740
|
u("line", {
|
|
733
741
|
x1: 256 + r.value.padding.left,
|
|
@@ -736,7 +744,7 @@ const $t = ["id"], Ct = {
|
|
|
736
744
|
y2: C.value.bottom,
|
|
737
745
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
738
746
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
739
|
-
}, null, 8,
|
|
747
|
+
}, null, 8, fl),
|
|
740
748
|
!d.value && !_.value ? (a(), o("foreignObject", {
|
|
741
749
|
key: 6,
|
|
742
750
|
x: 0,
|
|
@@ -746,19 +754,19 @@ const $t = ["id"], Ct = {
|
|
|
746
754
|
style: { overflow: "visible" },
|
|
747
755
|
onClick: $
|
|
748
756
|
}, [
|
|
749
|
-
u("div",
|
|
750
|
-
u("div",
|
|
757
|
+
u("div", pl, [
|
|
758
|
+
u("div", gl, [
|
|
751
759
|
(a(!0), o(p, null, g(j.value, (t) => (a(), o("div", {
|
|
752
760
|
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
753
761
|
}, [
|
|
754
|
-
(a(), o("svg",
|
|
762
|
+
(a(), o("svg", _l, [
|
|
755
763
|
u("circle", {
|
|
756
764
|
cx: "10",
|
|
757
765
|
cy: "10",
|
|
758
766
|
r: "10",
|
|
759
767
|
fill: t.color,
|
|
760
768
|
stroke: "none"
|
|
761
|
-
}, null, 8,
|
|
769
|
+
}, null, 8, xl)
|
|
762
770
|
])),
|
|
763
771
|
u("span", null, c(t.name) + ":", 1),
|
|
764
772
|
u("b", null, c(s(G)(
|
|
@@ -772,7 +780,7 @@ const $t = ["id"], Ct = {
|
|
|
772
780
|
}),
|
|
773
781
|
{ datapoint: t }
|
|
774
782
|
)), 1),
|
|
775
|
-
|
|
783
|
+
ae(" (" + c(s(S)({
|
|
776
784
|
v: t.total / M.value * 100,
|
|
777
785
|
s: "%",
|
|
778
786
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
@@ -780,40 +788,40 @@ const $t = ["id"], Ct = {
|
|
|
780
788
|
], 4))), 256))
|
|
781
789
|
])
|
|
782
790
|
])
|
|
783
|
-
], 8,
|
|
784
|
-
d.value && B.value ? (a(), o("g",
|
|
791
|
+
], 8, bl)) : h("", !0),
|
|
792
|
+
d.value && B.value ? (a(), o("g", ml, [
|
|
785
793
|
(a(), o("foreignObject", {
|
|
786
794
|
x: 0,
|
|
787
|
-
y:
|
|
795
|
+
y: tt(),
|
|
788
796
|
height: r.value.height - C.value.bottom,
|
|
789
797
|
width: r.value.width,
|
|
790
798
|
style: { overflow: "visible" },
|
|
791
799
|
onClick: $
|
|
792
800
|
}, [
|
|
793
|
-
u("div",
|
|
801
|
+
u("div", wl, [
|
|
794
802
|
u("b", null, c(d.value.name), 1),
|
|
795
|
-
u("div",
|
|
803
|
+
u("div", $l, [
|
|
796
804
|
(a(!0), o(p, null, g(d.value.breakdown, (t, n) => (a(), o("div", {
|
|
797
805
|
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
798
806
|
}, [
|
|
799
|
-
(a(), o("svg",
|
|
807
|
+
(a(), o("svg", Cl, [
|
|
800
808
|
u("circle", {
|
|
801
809
|
cx: "10",
|
|
802
810
|
cy: "10",
|
|
803
811
|
r: "10",
|
|
804
812
|
fill: t.color,
|
|
805
813
|
stroke: "none"
|
|
806
|
-
}, null, 8,
|
|
814
|
+
}, null, 8, Tl)
|
|
807
815
|
])),
|
|
808
816
|
u("span", null, [
|
|
809
|
-
|
|
817
|
+
ae(c(t.name) + ": ", 1),
|
|
810
818
|
u("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),
|
|
811
|
-
|
|
819
|
+
ae(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
812
820
|
])
|
|
813
821
|
], 4))), 256))
|
|
814
822
|
])
|
|
815
823
|
])
|
|
816
|
-
], 8,
|
|
824
|
+
], 8, kl)),
|
|
817
825
|
u("circle", {
|
|
818
826
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
819
827
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
@@ -821,11 +829,11 @@ const $t = ["id"], Ct = {
|
|
|
821
829
|
fill: `url(#nut_underlayer_${w.value})`,
|
|
822
830
|
onClick: E,
|
|
823
831
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
824
|
-
}, null, 10,
|
|
832
|
+
}, null, 10, zl),
|
|
825
833
|
(a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
|
|
826
834
|
Y(t) ? (a(), o("path", {
|
|
827
835
|
key: 0,
|
|
828
|
-
d: s(
|
|
836
|
+
d: s(gt)(
|
|
829
837
|
t,
|
|
830
838
|
{
|
|
831
839
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -843,7 +851,7 @@ const $t = ["id"], Ct = {
|
|
|
843
851
|
"stroke-linejoin": "round",
|
|
844
852
|
fill: "none",
|
|
845
853
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
846
|
-
}, null, 10,
|
|
854
|
+
}, null, 10, Sl)) : h("", !0)
|
|
847
855
|
]))), 256)),
|
|
848
856
|
u("circle", {
|
|
849
857
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -852,7 +860,7 @@ const $t = ["id"], Ct = {
|
|
|
852
860
|
fill: e.value.style.chart.backgroundColor,
|
|
853
861
|
onClick: E,
|
|
854
862
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
855
|
-
}, null, 10,
|
|
863
|
+
}, null, 10, Nl),
|
|
856
864
|
(a(!0), o(p, null, g(B.value, (t) => (a(), o("path", {
|
|
857
865
|
d: t.path,
|
|
858
866
|
stroke: t.color,
|
|
@@ -860,7 +868,7 @@ const $t = ["id"], Ct = {
|
|
|
860
868
|
fill: "none",
|
|
861
869
|
onClick: E,
|
|
862
870
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
863
|
-
}, null, 10,
|
|
871
|
+
}, null, 10, Fl))), 256)),
|
|
864
872
|
u("circle", {
|
|
865
873
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
866
874
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
@@ -868,7 +876,7 @@ const $t = ["id"], Ct = {
|
|
|
868
876
|
fill: `url(#nutpick_${w.value})`,
|
|
869
877
|
onClick: E,
|
|
870
878
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
871
|
-
}, null, 10,
|
|
879
|
+
}, null, 10, Il),
|
|
872
880
|
u("circle", {
|
|
873
881
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
874
882
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
@@ -876,7 +884,7 @@ const $t = ["id"], Ct = {
|
|
|
876
884
|
fill: e.value.style.chart.backgroundColor,
|
|
877
885
|
onClick: E,
|
|
878
886
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
879
|
-
}, null, 10,
|
|
887
|
+
}, null, 10, Ll),
|
|
880
888
|
u("text", {
|
|
881
889
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
882
890
|
y: d.value.y1 + 8,
|
|
@@ -886,7 +894,7 @@ const $t = ["id"], Ct = {
|
|
|
886
894
|
"text-anchor": "middle",
|
|
887
895
|
onClick: E,
|
|
888
896
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
889
|
-
}, c(e.value.translations.total), 11,
|
|
897
|
+
}, c(e.value.translations.total), 11, Pl),
|
|
890
898
|
u("text", {
|
|
891
899
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
892
900
|
y: d.value.y1 + 36,
|
|
@@ -906,7 +914,7 @@ const $t = ["id"], Ct = {
|
|
|
906
914
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
907
915
|
}),
|
|
908
916
|
{ datapoint: d.value }
|
|
909
|
-
)), 11,
|
|
917
|
+
)), 11, Ol),
|
|
910
918
|
(a(!0), o(p, null, g(B.value, (t, n) => (a(), o("g", null, [
|
|
911
919
|
Y(t) ? (a(), o("text", {
|
|
912
920
|
key: 0,
|
|
@@ -917,7 +925,7 @@ const $t = ["id"], Ct = {
|
|
|
917
925
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
918
926
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
919
927
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
920
|
-
}, " ⬤ ", 14,
|
|
928
|
+
}, " ⬤ ", 14, Vl)) : h("", !0),
|
|
921
929
|
Y(t) ? (a(), o("text", {
|
|
922
930
|
key: 1,
|
|
923
931
|
x: s(V)(t, !0).x,
|
|
@@ -927,7 +935,7 @@ const $t = ["id"], Ct = {
|
|
|
927
935
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
928
936
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
929
937
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
930
|
-
}, c(d.value.breakdown[n].name), 15,
|
|
938
|
+
}, c(d.value.breakdown[n].name), 15, Rl)) : h("", !0)
|
|
931
939
|
]))), 256)),
|
|
932
940
|
(a(!0), o(p, null, g(B.value, (t, n) => (a(), o("g", null, [
|
|
933
941
|
Y(t) ? (a(), o("text", {
|
|
@@ -953,7 +961,7 @@ const $t = ["id"], Ct = {
|
|
|
953
961
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
954
962
|
}),
|
|
955
963
|
{ datapoint: B.value, seriesIndex: n }
|
|
956
|
-
)), 15,
|
|
964
|
+
)), 15, Ml)) : h("", !0),
|
|
957
965
|
Y(t) ? (a(), o("text", {
|
|
958
966
|
key: 1,
|
|
959
967
|
x: s(V)(t, !0).x,
|
|
@@ -967,7 +975,7 @@ const $t = ["id"], Ct = {
|
|
|
967
975
|
v: d.value.breakdown[n].proportionToRoot * 100,
|
|
968
976
|
s: "%",
|
|
969
977
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
970
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].rootName), 15,
|
|
978
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].rootName), 15, Bl)) : h("", !0),
|
|
971
979
|
Y(t) ? (a(), o("text", {
|
|
972
980
|
key: 2,
|
|
973
981
|
x: s(V)(t, !0).x,
|
|
@@ -981,7 +989,7 @@ const $t = ["id"], Ct = {
|
|
|
981
989
|
v: d.value.breakdown[n].proportionToTree * 100,
|
|
982
990
|
s: "%",
|
|
983
991
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
984
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
992
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, Al)) : h("", !0)
|
|
985
993
|
]))), 256))
|
|
986
994
|
])) : h("", !0),
|
|
987
995
|
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
@@ -1004,7 +1012,7 @@ const $t = ["id"], Ct = {
|
|
|
1004
1012
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1005
1013
|
}),
|
|
1006
1014
|
{ datapoint: t }
|
|
1007
|
-
)), 9,
|
|
1015
|
+
)), 9, jl)) : h("", !0),
|
|
1008
1016
|
_.value && _.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1009
1017
|
key: 1,
|
|
1010
1018
|
x: t.x1 + 6,
|
|
@@ -1017,7 +1025,7 @@ const $t = ["id"], Ct = {
|
|
|
1017
1025
|
v: t.proportionToRoot * 100,
|
|
1018
1026
|
s: "%",
|
|
1019
1027
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1020
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1028
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, Xl)) : h("", !0),
|
|
1021
1029
|
_.value && _.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1022
1030
|
key: 2,
|
|
1023
1031
|
x: t.x1 + 6,
|
|
@@ -1030,14 +1038,14 @@ const $t = ["id"], Ct = {
|
|
|
1030
1038
|
v: t.value / M.value * 100,
|
|
1031
1039
|
s: "%",
|
|
1032
1040
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1033
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1041
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, El)) : h("", !0)
|
|
1034
1042
|
]))), 256)),
|
|
1035
1043
|
F(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1036
|
-
], 14,
|
|
1037
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1038
|
-
F(l.$slots, "watermark",
|
|
1044
|
+
], 14, St)) : h("", !0),
|
|
1045
|
+
l.$slots.watermark ? (a(), o("div", Gl, [
|
|
1046
|
+
F(l.$slots, "watermark", te(le({ isPrinting: s(ge) || s(_e) })), void 0, !0)
|
|
1039
1047
|
])) : h("", !0),
|
|
1040
|
-
W.value ? h("", !0) : (a(),
|
|
1048
|
+
W.value ? h("", !0) : (a(), ee(s(je), {
|
|
1041
1049
|
key: 5,
|
|
1042
1050
|
config: {
|
|
1043
1051
|
type: "chestnut",
|
|
@@ -1050,10 +1058,10 @@ const $t = ["id"], Ct = {
|
|
|
1050
1058
|
}
|
|
1051
1059
|
}, null, 8, ["config"])),
|
|
1052
1060
|
F(l.$slots, "legend", { legend: N.value }, void 0, !0),
|
|
1053
|
-
l.$slots.source ? (a(), o("div",
|
|
1061
|
+
l.$slots.source ? (a(), o("div", Ul, [
|
|
1054
1062
|
F(l.$slots, "source", {}, void 0, !0)
|
|
1055
1063
|
], 512)) : h("", !0),
|
|
1056
|
-
W.value ? (a(),
|
|
1064
|
+
W.value ? (a(), ee(s(Ae), {
|
|
1057
1065
|
key: 7,
|
|
1058
1066
|
hideDetails: "",
|
|
1059
1067
|
config: {
|
|
@@ -1072,18 +1080,18 @@ const $t = ["id"], Ct = {
|
|
|
1072
1080
|
content: A(() => [
|
|
1073
1081
|
u("div", {
|
|
1074
1082
|
ref_key: "tableContainer",
|
|
1075
|
-
ref:
|
|
1083
|
+
ref: ne,
|
|
1076
1084
|
class: "vue-ui-chestnut-table"
|
|
1077
1085
|
}, [
|
|
1078
|
-
u("div",
|
|
1086
|
+
u("div", Dl, [
|
|
1079
1087
|
u("div", {
|
|
1080
1088
|
role: "button",
|
|
1081
1089
|
tabindex: "0",
|
|
1082
1090
|
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};`),
|
|
1083
1091
|
onClick: i[0] || (i[0] = (t) => U.value.showTable = !1),
|
|
1084
|
-
onKeypress: i[1] || (i[1] =
|
|
1092
|
+
onKeypress: i[1] || (i[1] = ct((t) => U.value.showTable = !1, ["enter"]))
|
|
1085
1093
|
}, [
|
|
1086
|
-
|
|
1094
|
+
Ne(s(Ge), {
|
|
1087
1095
|
name: "close",
|
|
1088
1096
|
stroke: e.value.table.th.color,
|
|
1089
1097
|
"stroke-width": 2
|
|
@@ -1093,13 +1101,13 @@ const $t = ["id"], Ct = {
|
|
|
1093
1101
|
style: { width: "100%" },
|
|
1094
1102
|
class: k({ "vue-ui-responsive": ke.value })
|
|
1095
1103
|
}, [
|
|
1096
|
-
u("table",
|
|
1104
|
+
u("table", Yl, [
|
|
1097
1105
|
u("caption", {
|
|
1098
1106
|
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1099
1107
|
class: "vue-ui-data-table__caption"
|
|
1100
1108
|
}, [
|
|
1101
|
-
|
|
1102
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1109
|
+
ae(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1110
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", ql, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1103
1111
|
], 4),
|
|
1104
1112
|
u("thead", null, [
|
|
1105
1113
|
u("tr", {
|
|
@@ -1121,99 +1129,99 @@ const $t = ["id"], Ct = {
|
|
|
1121
1129
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1122
1130
|
"data-cell": v.value.head[0]
|
|
1123
1131
|
}, [
|
|
1124
|
-
u("div",
|
|
1125
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1132
|
+
u("div", Wl, [
|
|
1133
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", Kl)) : (a(), o("span", Jl, c(t.rootName), 1))
|
|
1126
1134
|
])
|
|
1127
|
-
], 12,
|
|
1135
|
+
], 12, Hl),
|
|
1128
1136
|
u("td", {
|
|
1129
1137
|
class: "vue-ui-data-table__tbody__td",
|
|
1130
1138
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1131
1139
|
"data-cell": v.value.head[1]
|
|
1132
1140
|
}, [
|
|
1133
|
-
u("div",
|
|
1134
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1141
|
+
u("div", Zl, [
|
|
1142
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", ea)) : (a(), o("span", ta, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1135
1143
|
])
|
|
1136
|
-
], 12,
|
|
1144
|
+
], 12, Ql),
|
|
1137
1145
|
u("td", {
|
|
1138
1146
|
class: "vue-ui-data-table__tbody__td",
|
|
1139
1147
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1140
1148
|
"data-cell": v.value.head[2]
|
|
1141
1149
|
}, [
|
|
1142
|
-
u("div",
|
|
1143
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1150
|
+
u("div", aa, [
|
|
1151
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", oa)) : (a(), o("span", sa, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1144
1152
|
])
|
|
1145
|
-
], 12,
|
|
1153
|
+
], 12, la),
|
|
1146
1154
|
u("td", {
|
|
1147
1155
|
class: "vue-ui-data-table__tbody__td",
|
|
1148
1156
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1149
1157
|
"data-cell": v.value.head[3]
|
|
1150
1158
|
}, [
|
|
1151
|
-
u("div",
|
|
1152
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1159
|
+
u("div", na, [
|
|
1160
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ra)) : (a(), o("span", ia, c(t.branchName), 1))
|
|
1153
1161
|
])
|
|
1154
|
-
], 12,
|
|
1162
|
+
], 12, ua),
|
|
1155
1163
|
u("td", {
|
|
1156
1164
|
class: "vue-ui-data-table__tbody__td",
|
|
1157
1165
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1158
1166
|
"data-cell": v.value.head[4]
|
|
1159
1167
|
}, [
|
|
1160
|
-
u("div",
|
|
1161
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1168
|
+
u("div", da, [
|
|
1169
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", va)) : (a(), o("span", ya, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1162
1170
|
])
|
|
1163
|
-
], 12,
|
|
1171
|
+
], 12, ca),
|
|
1164
1172
|
u("td", {
|
|
1165
1173
|
class: "vue-ui-data-table__tbody__td",
|
|
1166
1174
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1167
1175
|
"data-cell": v.value.head[5]
|
|
1168
1176
|
}, [
|
|
1169
|
-
u("div",
|
|
1170
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1177
|
+
u("div", fa, [
|
|
1178
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ba)) : (a(), o("span", pa, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1171
1179
|
])
|
|
1172
|
-
], 12,
|
|
1180
|
+
], 12, ha),
|
|
1173
1181
|
u("td", {
|
|
1174
1182
|
class: "vue-ui-data-table__tbody__td",
|
|
1175
1183
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1176
1184
|
"data-cell": v.value.head[6]
|
|
1177
1185
|
}, [
|
|
1178
|
-
u("div",
|
|
1179
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1186
|
+
u("div", _a, [
|
|
1187
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", xa)) : (a(), o("span", ma, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1180
1188
|
])
|
|
1181
|
-
], 12,
|
|
1189
|
+
], 12, ga),
|
|
1182
1190
|
u("td", {
|
|
1183
1191
|
class: "vue-ui-data-table__tbody__td",
|
|
1184
1192
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1185
1193
|
"data-cell": v.value.head[7]
|
|
1186
1194
|
}, [
|
|
1187
|
-
u("div",
|
|
1188
|
-
], 12,
|
|
1195
|
+
u("div", wa, c(t.nutName), 1)
|
|
1196
|
+
], 12, ka),
|
|
1189
1197
|
u("td", {
|
|
1190
1198
|
class: "vue-ui-data-table__tbody__td",
|
|
1191
1199
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1192
1200
|
"data-cell": v.value.head[8]
|
|
1193
1201
|
}, [
|
|
1194
|
-
u("div",
|
|
1195
|
-
], 12,
|
|
1202
|
+
u("div", Ca, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1203
|
+
], 12, $a),
|
|
1196
1204
|
u("td", {
|
|
1197
1205
|
class: "vue-ui-data-table__tbody__td",
|
|
1198
1206
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1199
1207
|
"data-cell": v.value.head[9]
|
|
1200
1208
|
}, [
|
|
1201
|
-
u("div",
|
|
1202
|
-
], 12,
|
|
1209
|
+
u("div", za, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1210
|
+
], 12, Ta),
|
|
1203
1211
|
u("td", {
|
|
1204
1212
|
class: "vue-ui-data-table__tbody__td",
|
|
1205
1213
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1206
1214
|
"data-cell": v.value.head[10]
|
|
1207
1215
|
}, [
|
|
1208
|
-
u("div",
|
|
1209
|
-
], 12,
|
|
1216
|
+
u("div", Na, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1217
|
+
], 12, Sa),
|
|
1210
1218
|
u("td", {
|
|
1211
1219
|
class: "vue-ui-data-table__tbody__td",
|
|
1212
1220
|
style: y(`outline:${e.value.table.td.outline}`),
|
|
1213
1221
|
"data-cell": v.value.head[11]
|
|
1214
1222
|
}, [
|
|
1215
|
-
u("div",
|
|
1216
|
-
], 12,
|
|
1223
|
+
u("div", Ia, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1224
|
+
], 12, Fa)
|
|
1217
1225
|
], 6))), 256))
|
|
1218
1226
|
])
|
|
1219
1227
|
])
|
|
@@ -1223,9 +1231,9 @@ const $t = ["id"], Ct = {
|
|
|
1223
1231
|
]),
|
|
1224
1232
|
_: 1
|
|
1225
1233
|
}, 8, ["config"])) : h("", !0)
|
|
1226
|
-
], 46,
|
|
1234
|
+
], 46, Tt));
|
|
1227
1235
|
}
|
|
1228
|
-
},
|
|
1236
|
+
}, Xa = /* @__PURE__ */ Ct(La, [["__scopeId", "data-v-8fcdeaf3"]]);
|
|
1229
1237
|
export {
|
|
1230
|
-
|
|
1238
|
+
Xa as default
|
|
1231
1239
|
};
|