vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.4
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 +21 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-XoY1VXNf.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-CXe0WfN-.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-d4dmqhkb.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-B3v0IhDO.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-CmbjnjRg.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-YPYnzTBz.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-SD-bH_GI.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-OcbP0WH2.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-BgPXmpGI.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-WvXjwML_.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-CaMHCF_p.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-BTLad6y3.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-CJcZXNtK.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-dXp8FaUj.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-Cs7JW3dK.js} +154 -138
- package/dist/dom-to-png-DGfv21rX.js +247 -0
- package/dist/img-fdViJw1e.js +20 -0
- package/dist/{index-CbcpITE_.js → index-BzQ0j5xI.js} +190 -128
- package/dist/{pdf-Cy09nTjn.js → pdf-Bj65uPK-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +60 -1
- package/dist/types/vue-data-ui.d.ts +60 -1
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-DqpZEE3h.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-CpG5jh_z.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-CeIncf6V.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-fAJK0nIB.js} +175 -174
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-bpaEpjqI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-D5w5EqmV.js} +200 -199
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-CSGemK-O.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-FPBahjOr.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-BpP9MQC2.js} +115 -114
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-lpdLFAfT.js} +80 -79
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-D5um0tmC.js} +453 -452
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-CgrXXOgv.js} +43 -42
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-Jk-Yd8T_.js} +143 -142
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-BjmAMjTd.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-CQ0B1DMq.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-B3h4BufU.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-DcjJqRof.js} +151 -150
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DmSbXlMu.js} +111 -110
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-BLcmTUd_.js} +54 -53
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-BmIGl6DC.js} +14 -13
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-BJfxaSQC.js} +75 -74
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-Cpnr2YW-.js} +84 -83
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BhPFNziU.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-B2wA-kmz.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-CpwNMx3i.js} +222 -221
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-DpxHqDZw.js} +234 -233
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-CvqXwiiE.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-DIjSfc7L.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-3-vg0Re6.js} +44 -43
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-B7W7wGkW.js} +76 -75
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-ByoeDL-3.js} +53 -52
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-CNVwf4QX.js} +72 -71
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-C0KJrBX8.js} +13 -12
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-C-wPn5l5.js} +13 -12
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-SV-m_FhA.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DqOzvLUy.js} +283 -282
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CsZXcINB.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-B0zxq02O.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-CykFyAin.js} +102 -101
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-DoJwXgd3.js} +110 -109
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BTT3BYrI.js} +166 -165
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-CavMQlAm.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-DdT6TBz8.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-D9q63V2-.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-DCS_f__b.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-CGDjBHjo.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-Ctpm0106.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-BVyjNK_A.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-BsNDucJO.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-DuGcJQ6F.js} +39 -38
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-C6vbloAI.js} +82 -81
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-Bb6pNaIM.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-_ypWL_z2.js} +77 -76
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-_pPedR_D.js} +74 -73
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-CmLnTIU7.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CpAJT80M.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-DXgmJClr.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-Ci2Yi9Gh.js} +109 -108
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-pn_EqFmU.js} +82 -81
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-vqh1kEDT.js} +33 -32
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-BCcK6wwZ.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-Bu8Giu0b.js} +110 -109
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-CzRlg19V.js} +57 -56
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-0gHPOOwZ.js} +982 -856
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-DuAgXbBB.js} +41 -40
- package/package.json +1 -1
- package/dist/dom-to-png-BjSUS-jY.js +0 -243
- package/dist/img-DWfzRJdv.js +0 -19
|
@@ -1,31 +1,31 @@
|
|
|
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 { _ as
|
|
8
|
-
const
|
|
1
|
+
import { useCssVars as at, defineAsyncComponent as H, computed as m, ref as z, watch as ot, shallowRef as st, onMounted as ut, onBeforeUnmount as nt, createElementBlock as o, openBlock as a, unref as s, normalizeStyle as y, normalizeClass as k, createBlock as Z, createCommentVNode as h, renderSlot as F, createSlots as rt, withCtx as A, normalizeProps as ee, guardReactiveProps as te, createVNode as Ne, createElementVNode as u, toDisplayString as c, Fragment as p, renderList as g, createTextVNode as le, withKeys as it, nextTick as Se } from "vue";
|
|
2
|
+
import { u as ct, c as dt, t as vt, p as V, a as yt, b as ht, g as ce, e as ae, d as de, o as ft, X as bt, s as I, w as Fe, i as E, f as N, G as Ie, m as Le, j as pt, k as J, n as O, q as gt, r as _t } from "./index-BzQ0j5xI.js";
|
|
3
|
+
import { u as Pe } from "./useNestedProp-DqpZEE3h.js";
|
|
4
|
+
import { u as xt } from "./usePrinter-CpG5jh_z.js";
|
|
5
|
+
import { u as mt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
+
import { u as kt } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
+
import { _ as wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const $t = ["id"], Ct = {
|
|
9
9
|
key: 1,
|
|
10
10
|
ref: "noTitle",
|
|
11
11
|
class: "vue-data-ui-no-title-space",
|
|
12
12
|
style: "height:36px; width: 100%;background:transparent"
|
|
13
|
-
},
|
|
13
|
+
}, Tt = ["xmlns", "viewBox"], zt = ["width", "height"], Nt = { key: 1 }, St = ["fill", "font-weight", "font-size", "x", "y"], Ft = ["fill", "font-weight", "font-size", "x", "y"], It = ["id"], Lt = ["stop-color"], Pt = ["stop-color"], Vt = ["id"], Ot = ["stop-color"], Rt = ["stop-color"], Mt = ["id"], Bt = ["stop-color"], At = ["stop-color"], jt = ["stop-color"], Xt = ["id"], Gt = ["stop-color"], Et = ["stop-color"], Ut = ["stop-color"], Dt = ["id"], Yt = ["stop-color"], qt = ["stop-color"], Ht = ["stop-color"], Wt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Jt = ["x", "y", "font-size", "font-weight", "fill"], Qt = ["d", "stroke"], Zt = ["cx", "cy", "r", "fill"], el = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], tl = { key: 3 }, ll = ["x", "y", "font-size", "fill", "onClick"], al = { key: 0 }, ol = ["x", "y", "fill", "font-size", "font-weight"], sl = ["x", "y", "height", "width", "fill", "rx", "onClick"], ul = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], nl = { key: 4 }, rl = ["x", "y", "fill", "font-size", "onClick"], il = ["d", "stroke"], cl = ["fill", "cx", "cy", "r", "onClick"], dl = { key: 5 }, vl = ["x", "y", "font-size", "font-weight", "fill"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], hl = ["y", "height", "width"], fl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, bl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, pl = {
|
|
14
14
|
viewBox: "0 0 20 20",
|
|
15
15
|
height: "16",
|
|
16
16
|
width: "16"
|
|
17
|
-
},
|
|
17
|
+
}, gl = ["fill"], _l = { key: 7 }, xl = ["y", "height", "width"], ml = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, kl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, wl = {
|
|
18
18
|
viewBox: "0 0 20 20",
|
|
19
19
|
height: "16",
|
|
20
20
|
width: "16"
|
|
21
|
-
},
|
|
21
|
+
}, $l = ["fill"], Cl = ["cx", "cy", "fill"], Tl = ["d", "stroke"], zl = ["cx", "cy", "fill"], Nl = ["d", "stroke"], Sl = ["cx", "cy", "fill"], Fl = ["cx", "cy", "fill"], Il = ["x", "y", "fill", "font-size", "font-weight"], Ll = ["x", "y", "fill", "font-size", "font-weight"], Pl = ["x", "text-anchor", "y", "fill", "font-size"], Vl = ["x", "text-anchor", "y", "fill", "font-size"], Ol = ["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", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill"], jl = ["x", "y", "font-size", "fill"], Xl = {
|
|
22
22
|
key: 4,
|
|
23
23
|
class: "vue-data-ui-watermark"
|
|
24
|
-
},
|
|
24
|
+
}, Gl = {
|
|
25
25
|
key: 6,
|
|
26
26
|
ref: "source",
|
|
27
27
|
dir: "auto"
|
|
28
|
-
},
|
|
28
|
+
}, El = { style: { "padding-top": "36px", position: "relative" } }, Ul = { class: "vue-ui-data-table" }, Dl = { key: 0 }, Yl = ["data-cell"], ql = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Hl = { key: 0 }, Wl = { key: 1 }, Kl = ["data-cell"], Jl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ql = { key: 0 }, Zl = { key: 1 }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, la = { key: 0 }, aa = { key: 1 }, oa = ["data-cell"], sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ua = { key: 0 }, na = { key: 1 }, ra = ["data-cell"], ia = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ca = { key: 0 }, da = { key: 1 }, va = ["data-cell"], ya = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ha = { key: 0 }, fa = { key: 1 }, ba = ["data-cell"], pa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ga = { key: 0 }, _a = { key: 1 }, xa = ["data-cell"], ma = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, 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" } }, Na = ["data-cell"], Sa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Fa = {
|
|
29
29
|
__name: "vue-ui-chestnut",
|
|
30
30
|
props: {
|
|
31
31
|
config: {
|
|
@@ -42,37 +42,37 @@ const wt = ["id"], $t = {
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
emits: ["selectRoot", "selectBranch", "selectNut"],
|
|
45
|
-
setup(
|
|
46
|
-
|
|
47
|
-
"
|
|
45
|
+
setup(Ve, { expose: Oe, emit: Re }) {
|
|
46
|
+
at((l) => ({
|
|
47
|
+
"69a9e7b7": l.tdo
|
|
48
48
|
}));
|
|
49
|
-
const
|
|
50
|
-
get: () =>
|
|
49
|
+
const Me = H(() => import("./PenAndPaper-BgPXmpGI.js")), Be = H(() => import("./vue-ui-accordion-bpaEpjqI.js")), Ae = H(() => import("./vue-ui-skeleton-CavMQlAm.js")), je = H(() => import("./UserOptions-Cs7JW3dK.js")), Xe = H(() => import("./PackageVersion-OcbP0WH2.js")), Ge = H(() => import("./BaseIcon-d4dmqhkb.js")), { vue_ui_chestnut: Ee } = ct(), R = Ve, W = m(() => !!R.dataset && R.dataset.length), w = z(dt()), ve = z(null), Ue = z(null), ye = z(0), e = m({
|
|
50
|
+
get: () => pe(),
|
|
51
51
|
set: (l) => l
|
|
52
|
-
}), { userOptionsVisible:
|
|
53
|
-
function
|
|
54
|
-
const l =
|
|
55
|
-
userConfig:
|
|
56
|
-
defaultConfig:
|
|
52
|
+
}), { userOptionsVisible: oe, setUserOptionsVisibility: he, keepUserOptionState: fe } = mt({ config: e.value }), { svgRef: be } = kt({ config: e.value.style.chart.layout.title });
|
|
53
|
+
function pe() {
|
|
54
|
+
const l = Pe({
|
|
55
|
+
userConfig: R.config,
|
|
56
|
+
defaultConfig: Ee
|
|
57
57
|
});
|
|
58
58
|
return l.theme ? {
|
|
59
|
-
...
|
|
60
|
-
userConfig:
|
|
59
|
+
...Pe({
|
|
60
|
+
userConfig: yt.vue_ui_chestnut[l.theme] || R.config,
|
|
61
61
|
defaultConfig: l
|
|
62
62
|
}),
|
|
63
|
-
customPalette:
|
|
63
|
+
customPalette: vt[l.theme] || V
|
|
64
64
|
} : l;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
e.value =
|
|
66
|
+
ot(() => R.config, (l) => {
|
|
67
|
+
e.value = pe(), oe.value = !e.value.userOptions.showOnChartHover, U.value.showTable = e.value.table.show, Ce();
|
|
68
68
|
}, { deep: !0 });
|
|
69
|
-
const { isPrinting:
|
|
69
|
+
const { isPrinting: ge, isImaging: _e, generatePdf: xe, generateImage: me } = xt({
|
|
70
70
|
elementId: `vue-ui-chestnut_${w.value}`,
|
|
71
71
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
72
72
|
options: e.value.userOptions.print
|
|
73
|
-
}),
|
|
73
|
+
}), De = m(() => e.value.userOptions.show), se = m(() => ht(e.value.customPalette)), U = z({
|
|
74
74
|
showTable: e.value.table.show
|
|
75
|
-
}),
|
|
75
|
+
}), ue = z(null), ke = z(!1), Ye = m(() => e.value.table.responsiveBreakpoint), r = z({
|
|
76
76
|
gap: 6,
|
|
77
77
|
padding: {
|
|
78
78
|
top: 102,
|
|
@@ -92,47 +92,47 @@ const wt = ["id"], $t = {
|
|
|
92
92
|
width: r.value.width - (r.value.padding.left + r.value.padding.right),
|
|
93
93
|
height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
|
|
94
94
|
seedX: r.value.padding.left + 64
|
|
95
|
-
})),
|
|
96
|
-
|
|
95
|
+
})), M = m(() => W.value ? R.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), S = m(() => (R.dataset.forEach((l, i) => {
|
|
96
|
+
ce({
|
|
97
97
|
datasetObject: l,
|
|
98
98
|
requiredAttributes: ["name", "branches"]
|
|
99
99
|
}).forEach((t) => {
|
|
100
|
-
|
|
100
|
+
ae({
|
|
101
101
|
componentName: "VueUiChestnut",
|
|
102
102
|
type: "datasetSerieAttribute",
|
|
103
103
|
property: t,
|
|
104
104
|
index: i
|
|
105
105
|
});
|
|
106
106
|
}), l.branches && l.branches.forEach((t, n) => {
|
|
107
|
-
|
|
107
|
+
ce({
|
|
108
108
|
datasetObject: t,
|
|
109
109
|
requiredAttributes: ["name", "value"]
|
|
110
110
|
}).forEach((b) => {
|
|
111
|
-
|
|
111
|
+
ae({
|
|
112
112
|
componentName: "VueUiChestnut",
|
|
113
113
|
type: "datasetSerieAttribute",
|
|
114
114
|
property: b,
|
|
115
115
|
index: `${i} - ${n}`
|
|
116
116
|
});
|
|
117
|
-
}), t.breakdown && t.breakdown.forEach((b,
|
|
118
|
-
|
|
117
|
+
}), t.breakdown && t.breakdown.forEach((b, x) => {
|
|
118
|
+
ce({
|
|
119
119
|
datasetObject: b,
|
|
120
120
|
requiredAttributes: ["name", "value"]
|
|
121
|
-
}).forEach((
|
|
122
|
-
|
|
121
|
+
}).forEach((f) => {
|
|
122
|
+
ae({
|
|
123
123
|
componentName: "VueUiChestnut",
|
|
124
124
|
type: "datasetSerieAttribute",
|
|
125
|
-
property:
|
|
126
|
-
index: `${i} - ${n} - ${
|
|
125
|
+
property: f,
|
|
126
|
+
index: `${i} - ${n} - ${x}`
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
}),
|
|
131
|
+
}), R.dataset.map((l, i) => {
|
|
132
132
|
const t = (l.branches || []).map((n) => n.value || 0).reduce((n, b) => n + b, 0);
|
|
133
133
|
return {
|
|
134
134
|
...l,
|
|
135
|
-
color:
|
|
135
|
+
color: de(l.color) || se.value[i] || V[i] || V[i % V.length],
|
|
136
136
|
id: l.id || `root_${i}_${w.value}`,
|
|
137
137
|
type: "root",
|
|
138
138
|
total: t,
|
|
@@ -141,117 +141,117 @@ const wt = ["id"], $t = {
|
|
|
141
141
|
...n,
|
|
142
142
|
rootName: l.name,
|
|
143
143
|
rootIndex: i,
|
|
144
|
-
color:
|
|
144
|
+
color: de(l.color) || se.value[i] || V[i] || V[i % V.length],
|
|
145
145
|
value: n.value >= 0 ? n.value : 0,
|
|
146
146
|
id: n.id || `branch_${i}_${b}_${w.value}`,
|
|
147
147
|
proportionToRoot: n.value / t,
|
|
148
148
|
type: "branch",
|
|
149
|
-
breakdown: (n.breakdown || []).map((
|
|
149
|
+
breakdown: (n.breakdown || []).map((x, f) => ({
|
|
150
150
|
table: {
|
|
151
151
|
rootName: l.name,
|
|
152
152
|
rootValue: t,
|
|
153
|
-
rootToTotal: t /
|
|
153
|
+
rootToTotal: t / M.value,
|
|
154
154
|
branchName: n.name,
|
|
155
155
|
branchValue: n.value,
|
|
156
|
-
branchToTotal: n.value /
|
|
156
|
+
branchToTotal: n.value / M.value,
|
|
157
157
|
branchToRoot: n.value / t,
|
|
158
|
-
nutName:
|
|
159
|
-
nutValue:
|
|
160
|
-
nutToTotal:
|
|
161
|
-
nutToRoot:
|
|
162
|
-
nutToBranch:
|
|
158
|
+
nutName: x.name,
|
|
159
|
+
nutValue: x.value,
|
|
160
|
+
nutToTotal: x.value / M.value,
|
|
161
|
+
nutToRoot: x.value / t,
|
|
162
|
+
nutToBranch: x.value / n.value
|
|
163
163
|
},
|
|
164
|
-
...
|
|
164
|
+
...x,
|
|
165
165
|
type: "nut",
|
|
166
166
|
branchName: n.name,
|
|
167
167
|
rootName: l.name,
|
|
168
168
|
branchTotal: n.value >= 0 ? n.value : 0,
|
|
169
|
-
proportionToBranch:
|
|
170
|
-
proportionToRoot:
|
|
171
|
-
proportionToTree:
|
|
169
|
+
proportionToBranch: x.value / n.value,
|
|
170
|
+
proportionToRoot: x.value / t,
|
|
171
|
+
proportionToTree: x.value / M.value,
|
|
172
172
|
rootIndex: i,
|
|
173
|
-
id:
|
|
174
|
-
color:
|
|
175
|
-
value:
|
|
173
|
+
id: x.id || `nut_${i}_${b}_${f}_${w.value}`,
|
|
174
|
+
color: de(x.color) || se.value[f] || V[f] || V[f % V.length],
|
|
175
|
+
value: x.value >= 0 ? x.value : 0
|
|
176
176
|
}))
|
|
177
177
|
}))
|
|
178
178
|
};
|
|
179
179
|
})));
|
|
180
|
-
function
|
|
181
|
-
return
|
|
180
|
+
function qe() {
|
|
181
|
+
return S.value;
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
const t = C.value.height /
|
|
183
|
+
const D = Re, He = m(() => S.value.flatMap((l) => l.branches).length), We = m(() => Math.max(...S.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), Ke = m(() => Math.max(...S.value.flatMap((l) => l.branches.map((i) => i.value)))), we = m(() => 256 + r.value.padding.left), j = m(() => S.value.sort((l, i) => i.total - l.total).map((l, i) => {
|
|
184
|
+
const t = C.value.height / S.value.length / 2, n = l.total / We.value * (t > 64 ? 64 : t);
|
|
185
185
|
return {
|
|
186
186
|
...l,
|
|
187
187
|
x: C.value.seedX,
|
|
188
|
-
y: C.value.top + C.value.height /
|
|
188
|
+
y: C.value.top + C.value.height / S.value.length * (i + 1) - (C.value.height / S.value.length / 2 + r.value.gap / 2),
|
|
189
189
|
r: n < r.value.branchSize / 2 ? r.value.branchSize / 2 : n
|
|
190
190
|
};
|
|
191
|
-
})),
|
|
191
|
+
})), Je = 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), Qe = m(() => j.value.flatMap((l) => l.branches)), X = m(() => Qe.value.sort((l, i) => i.value - l.value).map((l, i) => ({
|
|
192
192
|
...l,
|
|
193
193
|
y1: i * r.value.branchSize + C.value.top + i * r.value.gap,
|
|
194
194
|
y2: i * r.value.branchSize + r.value.branchSize,
|
|
195
|
-
x1:
|
|
196
|
-
x2: 384 * l.value /
|
|
195
|
+
x1: we.value,
|
|
196
|
+
x2: 384 * l.value / Ke.value * Je.value + we.value
|
|
197
197
|
})));
|
|
198
|
-
function
|
|
199
|
-
const i =
|
|
198
|
+
function ne(l) {
|
|
199
|
+
const i = j.value.find((t) => t.rootIndex === l.rootIndex);
|
|
200
200
|
return { x: i.x, y: i.y, r: i.r };
|
|
201
201
|
}
|
|
202
|
-
const d =
|
|
202
|
+
const d = z(null), B = z(null), _ = z(null), L = z(null);
|
|
203
203
|
function $() {
|
|
204
|
-
d.value = null,
|
|
204
|
+
d.value = null, _.value = null, L.value = null;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
206
|
+
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 && _.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
208
|
}
|
|
209
|
-
function
|
|
210
|
-
$(),
|
|
211
|
-
d.value = l,
|
|
209
|
+
function Ze(l) {
|
|
210
|
+
$(), Se(() => {
|
|
211
|
+
d.value = l, _.value = l, B.value = Le(
|
|
212
212
|
{ series: l.breakdown, base: 1 },
|
|
213
213
|
l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
214
214
|
l.y1 + r.value.branchSize / 2,
|
|
215
215
|
80,
|
|
216
216
|
80
|
|
217
|
-
),
|
|
217
|
+
), D("selectNut", l.breakdown);
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
d.value = null,
|
|
220
|
+
function G() {
|
|
221
|
+
d.value = null, B.value = null, D("selectNut", null);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
223
|
+
function re(l) {
|
|
224
|
+
_.value && _.value.id === l.id ? (_.value = null, $(), D("selectBranch", null)) : ($(), _.value = l, D("selectBranch", l));
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
|
|
226
|
+
function $e(l) {
|
|
227
|
+
L.value && L.value.id === l.id ? ($(), D("selectRoot", null)) : ($(), L.value = l, D("selectRoot", l));
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function et() {
|
|
230
230
|
return C.value.bottom - (d.value.y1 + 180) < 0 ? 0 : C.value.bottom;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Y(l) {
|
|
233
233
|
return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
234
234
|
}
|
|
235
|
-
const
|
|
236
|
-
function
|
|
237
|
-
|
|
235
|
+
const q = st(null);
|
|
236
|
+
function tt() {
|
|
237
|
+
q.value && q.value.disconnect(), q.value = new ResizeObserver((l) => {
|
|
238
238
|
l.forEach((i) => {
|
|
239
|
-
|
|
239
|
+
ke.value = i.contentRect.width < Ye.value;
|
|
240
240
|
});
|
|
241
|
-
}),
|
|
241
|
+
}), ue.value && q.value.observe(ue.value);
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}),
|
|
246
|
-
|
|
243
|
+
ut(() => {
|
|
244
|
+
Ce();
|
|
245
|
+
}), nt(() => {
|
|
246
|
+
q.value && q.value.disconnect();
|
|
247
247
|
});
|
|
248
|
-
function
|
|
249
|
-
|
|
248
|
+
function Ce() {
|
|
249
|
+
ft(R.dataset) && ae({
|
|
250
250
|
componentName: "VueUiChestnut",
|
|
251
251
|
type: "dataset"
|
|
252
252
|
});
|
|
253
|
-
const l =
|
|
254
|
-
r.value.height = l,
|
|
253
|
+
const l = He.value * (r.value.branchSize + r.value.gap) + r.value.padding.top + r.value.padding.bottom;
|
|
254
|
+
r.value.height = l, tt();
|
|
255
255
|
}
|
|
256
256
|
const v = m(() => {
|
|
257
257
|
const l = [
|
|
@@ -267,154 +267,155 @@ const wt = ["id"], $t = {
|
|
|
267
267
|
e.value.table.th.translations.nutToBranch,
|
|
268
268
|
e.value.table.th.translations.nutToRoot,
|
|
269
269
|
e.value.table.th.translations.nutToTotal
|
|
270
|
-
], i =
|
|
270
|
+
], i = S.value.flatMap((t, n) => t.branches.flatMap((b, x) => b.breakdown.flatMap((f, T) => f.table)));
|
|
271
271
|
return { head: l, body: i };
|
|
272
272
|
});
|
|
273
|
-
function
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
v.value.body[
|
|
277
|
-
v.value.body[
|
|
278
|
-
v.value.body[
|
|
279
|
-
v.value.body[
|
|
280
|
-
v.value.body[
|
|
281
|
-
v.value.body[
|
|
282
|
-
v.value.body[
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
]),
|
|
289
|
-
|
|
273
|
+
function Te(l = null) {
|
|
274
|
+
Se(() => {
|
|
275
|
+
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
|
+
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootName,
|
|
277
|
+
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootValue,
|
|
278
|
+
v.value.body[T - 1] && v.value.body[T - 1].rootName === f.rootName ? "" : f.rootToTotal,
|
|
279
|
+
v.value.body[T - 1] && v.value.body[T - 1].branchName === f.branchName ? "" : f.branchName,
|
|
280
|
+
v.value.body[T - 1] && v.value.body[T - 1].branchName === f.branchName ? "" : f.branchValue,
|
|
281
|
+
v.value.body[T - 1] && v.value.body[T - 1].branchName === f.branchName ? "" : f.branchToRoot,
|
|
282
|
+
v.value.body[T - 1] && v.value.body[T - 1].branchName === f.branchName ? "" : f.branchToTotal,
|
|
283
|
+
f.nutName,
|
|
284
|
+
f.nutValue,
|
|
285
|
+
f.nutToBranch,
|
|
286
|
+
f.nutToRoot,
|
|
287
|
+
f.nutToTotal
|
|
288
|
+
]), b = i.concat([t]).concat(n), x = gt(b);
|
|
289
|
+
l ? l(x) : _t({ csvContent: x, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
294
|
-
|
|
292
|
+
const K = z(!1);
|
|
293
|
+
function lt(l) {
|
|
294
|
+
K.value = l, ye.value += 1;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
296
|
+
function ze() {
|
|
297
|
+
U.value.showTable = !U.value.showTable;
|
|
298
298
|
}
|
|
299
|
-
const
|
|
300
|
-
function
|
|
301
|
-
|
|
299
|
+
const Q = z(!1);
|
|
300
|
+
function ie() {
|
|
301
|
+
Q.value = !Q.value;
|
|
302
302
|
}
|
|
303
|
-
return
|
|
304
|
-
getData:
|
|
305
|
-
generatePdf:
|
|
306
|
-
generateCsv:
|
|
307
|
-
generateImage:
|
|
308
|
-
toggleTable:
|
|
309
|
-
toggleAnnotator:
|
|
303
|
+
return Oe({
|
|
304
|
+
getData: qe,
|
|
305
|
+
generatePdf: xe,
|
|
306
|
+
generateCsv: Te,
|
|
307
|
+
generateImage: me,
|
|
308
|
+
toggleTable: ze,
|
|
309
|
+
toggleAnnotator: ie
|
|
310
310
|
}), (l, i) => (a(), o("div", {
|
|
311
|
-
class: k(`vue-ui-chestnut ${
|
|
311
|
+
class: k(`vue-ui-chestnut ${K.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
312
312
|
ref_key: "chestnutChart",
|
|
313
|
-
ref:
|
|
313
|
+
ref: ve,
|
|
314
314
|
id: `vue-ui-chestnut_${w.value}`,
|
|
315
|
-
style:
|
|
316
|
-
onMouseenter: i[2] || (i[2] = () => s(
|
|
317
|
-
onMouseleave: i[3] || (i[3] = () => s(
|
|
315
|
+
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] = () => s(he)(!0)),
|
|
317
|
+
onMouseleave: i[3] || (i[3] = () => s(he)(!1))
|
|
318
318
|
}, [
|
|
319
|
-
e.value.userOptions.buttons.annotator ? (a(),
|
|
319
|
+
e.value.userOptions.buttons.annotator ? (a(), Z(s(Me), {
|
|
320
320
|
key: 0,
|
|
321
|
-
svgRef: s(
|
|
321
|
+
svgRef: s(be),
|
|
322
322
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
323
323
|
color: e.value.style.chart.color,
|
|
324
|
-
active:
|
|
325
|
-
onClose:
|
|
326
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
327
|
-
|
|
328
|
-
e.value.userOptions.show &&
|
|
324
|
+
active: Q.value,
|
|
325
|
+
onClose: ie
|
|
326
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
|
|
327
|
+
De.value ? (a(), o("div", Ct, null, 512)) : h("", !0),
|
|
328
|
+
e.value.userOptions.show && W.value && (s(fe) || s(oe)) ? (a(), Z(s(je), {
|
|
329
329
|
ref_key: "details",
|
|
330
|
-
ref:
|
|
331
|
-
key: `user_options_${
|
|
330
|
+
ref: Ue,
|
|
331
|
+
key: `user_options_${ye.value}`,
|
|
332
332
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
333
333
|
color: e.value.style.chart.color,
|
|
334
|
-
isImaging: s(
|
|
335
|
-
isPrinting: s(
|
|
334
|
+
isImaging: s(_e),
|
|
335
|
+
isPrinting: s(ge),
|
|
336
336
|
uid: w.value,
|
|
337
337
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
338
338
|
hasImg: e.value.userOptions.buttons.img,
|
|
339
339
|
hasXls: e.value.userOptions.buttons.csv,
|
|
340
340
|
hasTable: e.value.userOptions.buttons.table,
|
|
341
341
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
342
|
-
isFullscreen:
|
|
342
|
+
isFullscreen: K.value,
|
|
343
343
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
344
|
-
chartElement:
|
|
344
|
+
chartElement: ve.value,
|
|
345
345
|
position: e.value.userOptions.position,
|
|
346
346
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
347
|
-
isAnnotation:
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
347
|
+
isAnnotation: Q.value,
|
|
348
|
+
callbacks: e.value.userOptions.callbacks,
|
|
349
|
+
onToggleFullscreen: lt,
|
|
350
|
+
onGeneratePdf: s(xe),
|
|
351
|
+
onGenerateCsv: Te,
|
|
352
|
+
onGenerateImage: s(me),
|
|
353
|
+
onToggleTable: ze,
|
|
354
|
+
onToggleAnnotator: ie,
|
|
355
|
+
style: y({
|
|
356
|
+
visibility: s(fe) ? s(oe) ? "visible" : "hidden" : "visible"
|
|
356
357
|
})
|
|
357
|
-
},
|
|
358
|
+
}, rt({ _: 2 }, [
|
|
358
359
|
l.$slots.menuIcon ? {
|
|
359
360
|
name: "menuIcon",
|
|
360
|
-
fn:
|
|
361
|
-
|
|
361
|
+
fn: A(({ isOpen: t, color: n }) => [
|
|
362
|
+
F(l.$slots, "menuIcon", ee(te({ isOpen: t, color: n })), void 0, !0)
|
|
362
363
|
]),
|
|
363
364
|
key: "0"
|
|
364
365
|
} : void 0,
|
|
365
366
|
l.$slots.optionPdf ? {
|
|
366
367
|
name: "optionPdf",
|
|
367
|
-
fn:
|
|
368
|
-
|
|
368
|
+
fn: A(() => [
|
|
369
|
+
F(l.$slots, "optionPdf", {}, void 0, !0)
|
|
369
370
|
]),
|
|
370
371
|
key: "1"
|
|
371
372
|
} : void 0,
|
|
372
373
|
l.$slots.optionCsv ? {
|
|
373
374
|
name: "optionCsv",
|
|
374
|
-
fn:
|
|
375
|
-
|
|
375
|
+
fn: A(() => [
|
|
376
|
+
F(l.$slots, "optionCsv", {}, void 0, !0)
|
|
376
377
|
]),
|
|
377
378
|
key: "2"
|
|
378
379
|
} : void 0,
|
|
379
380
|
l.$slots.optionImg ? {
|
|
380
381
|
name: "optionImg",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
382
|
+
fn: A(() => [
|
|
383
|
+
F(l.$slots, "optionImg", {}, void 0, !0)
|
|
383
384
|
]),
|
|
384
385
|
key: "3"
|
|
385
386
|
} : void 0,
|
|
386
387
|
l.$slots.optionTable ? {
|
|
387
388
|
name: "optionTable",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
389
|
+
fn: A(() => [
|
|
390
|
+
F(l.$slots, "optionTable", {}, void 0, !0)
|
|
390
391
|
]),
|
|
391
392
|
key: "4"
|
|
392
393
|
} : void 0,
|
|
393
394
|
l.$slots.optionFullscreen ? {
|
|
394
395
|
name: "optionFullscreen",
|
|
395
|
-
fn:
|
|
396
|
-
|
|
396
|
+
fn: A(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
397
|
+
F(l.$slots, "optionFullscreen", ee(te({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
397
398
|
]),
|
|
398
399
|
key: "5"
|
|
399
400
|
} : void 0,
|
|
400
401
|
l.$slots.optionAnnotator ? {
|
|
401
402
|
name: "optionAnnotator",
|
|
402
|
-
fn:
|
|
403
|
-
|
|
403
|
+
fn: A(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
404
|
+
F(l.$slots, "optionAnnotator", ee(te({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
404
405
|
]),
|
|
405
406
|
key: "6"
|
|
406
407
|
} : void 0
|
|
407
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
408
|
-
r.value.height > 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),
|
|
409
|
+
r.value.height > 0 && W.value ? (a(), o("svg", {
|
|
409
410
|
key: 3,
|
|
410
411
|
ref_key: "svgRef",
|
|
411
|
-
ref:
|
|
412
|
-
xmlns: s(
|
|
413
|
-
class: k({ "vue-data-ui-fullscreen--on":
|
|
412
|
+
ref: be,
|
|
413
|
+
xmlns: s(bt),
|
|
414
|
+
class: k({ "vue-data-ui-fullscreen--on": K.value, "vue-data-ui-fulscreen--off": !K.value }),
|
|
414
415
|
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
415
|
-
style:
|
|
416
|
+
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
416
417
|
}, [
|
|
417
|
-
|
|
418
|
+
Ne(s(Xe)),
|
|
418
419
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
419
420
|
key: 0,
|
|
420
421
|
x: 0,
|
|
@@ -425,9 +426,9 @@ const wt = ["id"], $t = {
|
|
|
425
426
|
pointerEvents: "none"
|
|
426
427
|
}
|
|
427
428
|
}, [
|
|
428
|
-
|
|
429
|
-
], 8,
|
|
430
|
-
d.value ?
|
|
429
|
+
F(l.$slots, "chart-background", {}, void 0, !0)
|
|
430
|
+
], 8, zt)) : h("", !0),
|
|
431
|
+
d.value ? h("", !0) : (a(), o("g", Nt, [
|
|
431
432
|
e.value.style.chart.layout.title.text ? (a(), o("text", {
|
|
432
433
|
key: 0,
|
|
433
434
|
"text-anchor": "middle",
|
|
@@ -437,7 +438,7 @@ const wt = ["id"], $t = {
|
|
|
437
438
|
x: r.value.width / 2,
|
|
438
439
|
y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
|
|
439
440
|
onClick: $
|
|
440
|
-
}, c(e.value.style.chart.layout.title.text), 9,
|
|
441
|
+
}, c(e.value.style.chart.layout.title.text), 9, St)) : h("", !0),
|
|
441
442
|
e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
|
|
442
443
|
key: 1,
|
|
443
444
|
"text-anchor": "middle",
|
|
@@ -447,10 +448,10 @@ const wt = ["id"], $t = {
|
|
|
447
448
|
x: r.value.width / 2,
|
|
448
449
|
y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
|
|
449
450
|
onClick: $
|
|
450
|
-
}, c(e.value.style.chart.layout.title.subtitle.text), 9,
|
|
451
|
+
}, c(e.value.style.chart.layout.title.subtitle.text), 9, Ft)) : h("", !0)
|
|
451
452
|
])),
|
|
452
453
|
u("defs", null, [
|
|
453
|
-
(a(!0), o(
|
|
454
|
+
(a(!0), o(p, null, g(S.value, (t, n) => (a(), o("radialGradient", {
|
|
454
455
|
cx: "50%",
|
|
455
456
|
cy: "50%",
|
|
456
457
|
r: "50%",
|
|
@@ -460,14 +461,14 @@ const wt = ["id"], $t = {
|
|
|
460
461
|
}, [
|
|
461
462
|
u("stop", {
|
|
462
463
|
offset: "0%",
|
|
463
|
-
"stop-color": s(
|
|
464
|
-
}, null, 8,
|
|
464
|
+
"stop-color": s(I)(s(Fe)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
|
|
465
|
+
}, null, 8, Lt),
|
|
465
466
|
u("stop", {
|
|
466
467
|
offset: "100%",
|
|
467
468
|
"stop-color": t.color
|
|
468
|
-
}, null, 8,
|
|
469
|
-
], 8,
|
|
470
|
-
(a(!0), o(
|
|
469
|
+
}, null, 8, Pt)
|
|
470
|
+
], 8, It))), 256)),
|
|
471
|
+
(a(!0), o(p, null, g(S.value, (t) => (a(), o("linearGradient", {
|
|
471
472
|
x1: "0%",
|
|
472
473
|
y1: "0%",
|
|
473
474
|
x2: "100%",
|
|
@@ -477,12 +478,12 @@ const wt = ["id"], $t = {
|
|
|
477
478
|
u("stop", {
|
|
478
479
|
offset: "0%",
|
|
479
480
|
"stop-color": t.color
|
|
480
|
-
}, null, 8,
|
|
481
|
+
}, null, 8, Ot),
|
|
481
482
|
u("stop", {
|
|
482
483
|
offset: "100%",
|
|
483
|
-
"stop-color": s(
|
|
484
|
-
}, null, 8,
|
|
485
|
-
], 8,
|
|
484
|
+
"stop-color": s(I)(s(Fe)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
485
|
+
}, null, 8, Rt)
|
|
486
|
+
], 8, Vt))), 256)),
|
|
486
487
|
u("radialGradient", {
|
|
487
488
|
cx: "50%",
|
|
488
489
|
cy: "50%",
|
|
@@ -493,17 +494,17 @@ const wt = ["id"], $t = {
|
|
|
493
494
|
}, [
|
|
494
495
|
u("stop", {
|
|
495
496
|
offset: "0%",
|
|
496
|
-
"stop-color": s(
|
|
497
|
-
}, null, 8,
|
|
497
|
+
"stop-color": s(I)("#FFFFFF", 0)
|
|
498
|
+
}, null, 8, Bt),
|
|
498
499
|
u("stop", {
|
|
499
500
|
offset: "80%",
|
|
500
|
-
"stop-color": s(
|
|
501
|
-
}, null, 8,
|
|
501
|
+
"stop-color": s(I)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
502
|
+
}, null, 8, At),
|
|
502
503
|
u("stop", {
|
|
503
504
|
offset: "100%",
|
|
504
|
-
"stop-color": s(
|
|
505
|
-
}, null, 8,
|
|
506
|
-
], 8,
|
|
505
|
+
"stop-color": s(I)("#FFFFFF", 0)
|
|
506
|
+
}, null, 8, jt)
|
|
507
|
+
], 8, Mt),
|
|
507
508
|
u("radialGradient", {
|
|
508
509
|
cx: "50%",
|
|
509
510
|
cy: "50%",
|
|
@@ -514,17 +515,17 @@ const wt = ["id"], $t = {
|
|
|
514
515
|
}, [
|
|
515
516
|
u("stop", {
|
|
516
517
|
offset: "0%",
|
|
517
|
-
"stop-color": s(
|
|
518
|
-
}, null, 8,
|
|
518
|
+
"stop-color": s(I)("#FFFFFF", 0)
|
|
519
|
+
}, null, 8, Gt),
|
|
519
520
|
u("stop", {
|
|
520
521
|
offset: "80%",
|
|
521
|
-
"stop-color": s(
|
|
522
|
-
}, null, 8,
|
|
522
|
+
"stop-color": s(I)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
|
|
523
|
+
}, null, 8, Et),
|
|
523
524
|
u("stop", {
|
|
524
525
|
offset: "100%",
|
|
525
|
-
"stop-color": s(
|
|
526
|
-
}, null, 8,
|
|
527
|
-
], 8,
|
|
526
|
+
"stop-color": s(I)("#FFFFFF", 0)
|
|
527
|
+
}, null, 8, Ut)
|
|
528
|
+
], 8, Xt),
|
|
528
529
|
u("radialGradient", {
|
|
529
530
|
cx: "50%",
|
|
530
531
|
cy: "50%",
|
|
@@ -535,19 +536,19 @@ const wt = ["id"], $t = {
|
|
|
535
536
|
}, [
|
|
536
537
|
u("stop", {
|
|
537
538
|
offset: "0%",
|
|
538
|
-
"stop-color": s(
|
|
539
|
-
}, null, 8,
|
|
539
|
+
"stop-color": s(I)(e.value.style.chart.backgroundColor, 100)
|
|
540
|
+
}, null, 8, Yt),
|
|
540
541
|
u("stop", {
|
|
541
542
|
offset: "80%",
|
|
542
|
-
"stop-color": s(
|
|
543
|
-
}, null, 8,
|
|
543
|
+
"stop-color": s(I)(e.value.style.chart.backgroundColor, 60)
|
|
544
|
+
}, null, 8, qt),
|
|
544
545
|
u("stop", {
|
|
545
546
|
offset: "100%",
|
|
546
|
-
"stop-color": s(
|
|
547
|
-
}, null, 8,
|
|
548
|
-
], 8,
|
|
547
|
+
"stop-color": s(I)(e.value.style.chart.backgroundColor, 0)
|
|
548
|
+
}, null, 8, Ht)
|
|
549
|
+
], 8, Dt)
|
|
549
550
|
]),
|
|
550
|
-
e.value.style.chart.layout.grandTotal.show ? (a(), o("g",
|
|
551
|
+
e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Wt, [
|
|
551
552
|
u("text", {
|
|
552
553
|
x: C.value.seedX,
|
|
553
554
|
y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -556,7 +557,7 @@ const wt = ["id"], $t = {
|
|
|
556
557
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
557
558
|
"text-anchor": "middle",
|
|
558
559
|
onClick: $
|
|
559
|
-
}, c(e.value.style.chart.layout.grandTotal.text), 9,
|
|
560
|
+
}, c(e.value.style.chart.layout.grandTotal.text), 9, Kt),
|
|
560
561
|
u("text", {
|
|
561
562
|
x: C.value.seedX,
|
|
562
563
|
y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
|
|
@@ -565,74 +566,74 @@ const wt = ["id"], $t = {
|
|
|
565
566
|
fill: e.value.style.chart.layout.grandTotal.color,
|
|
566
567
|
"text-anchor": "middle",
|
|
567
568
|
onClick: $
|
|
568
|
-
}, c(s(
|
|
569
|
+
}, c(s(E)(
|
|
569
570
|
e.value.style.chart.layout.grandTotal.formatter,
|
|
570
|
-
|
|
571
|
-
s(
|
|
571
|
+
M.value,
|
|
572
|
+
s(N)({
|
|
572
573
|
p: e.value.style.chart.layout.grandTotal.prefix,
|
|
573
|
-
v:
|
|
574
|
+
v: M.value,
|
|
574
575
|
s: e.value.style.chart.layout.grandTotal.suffix,
|
|
575
576
|
r: e.value.style.chart.layout.grandTotal.roundingValue
|
|
576
577
|
})
|
|
577
|
-
)), 9,
|
|
578
|
-
])) :
|
|
579
|
-
(a(!0), o(
|
|
580
|
-
(a(!0), o(
|
|
578
|
+
)), 9, Jt)
|
|
579
|
+
])) : h("", !0),
|
|
580
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
581
|
+
(a(!0), o(p, null, g(r.value.branchSize, (n, b) => (a(), o("path", {
|
|
581
582
|
d: `M
|
|
582
583
|
${t.x1},${t.y1 + b}
|
|
583
584
|
C${t.x1 - 20},${t.y1 + b}
|
|
584
585
|
${t.x1 - 80},${t.y1 + b}
|
|
585
|
-
${
|
|
586
|
+
${ne(t).x + ne(t).r / 2}, ${ne(t).y}
|
|
586
587
|
`,
|
|
587
|
-
stroke: s(
|
|
588
|
+
stroke: s(I)(t.color, e.value.style.chart.layout.links.opacity),
|
|
588
589
|
fill: "none",
|
|
589
590
|
"stroke-width": "2",
|
|
590
591
|
"shape-rendering": "cirspEdges",
|
|
591
|
-
style:
|
|
592
|
+
style: y(`opacity:${P(t) ? 1 : 0}`),
|
|
592
593
|
onClick: $
|
|
593
|
-
}, null, 12,
|
|
594
|
+
}, null, 12, Qt))), 256))
|
|
594
595
|
]))), 256)),
|
|
595
|
-
(a(!0), o(
|
|
596
|
+
(a(!0), o(p, null, g(j.value, (t) => (a(), o("circle", {
|
|
596
597
|
cx: t.x,
|
|
597
598
|
cy: t.y,
|
|
598
599
|
r: t.r,
|
|
599
600
|
fill: e.value.style.chart.layout.roots.underlayerColor,
|
|
600
601
|
stroke: "none",
|
|
601
|
-
style:
|
|
602
|
-
}, null, 12,
|
|
603
|
-
(a(!0), o(
|
|
602
|
+
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`)
|
|
603
|
+
}, null, 12, Zt))), 256)),
|
|
604
|
+
(a(!0), o(p, null, g(j.value, (t, n) => (a(), o("circle", {
|
|
604
605
|
cx: t.x,
|
|
605
606
|
cy: t.y,
|
|
606
607
|
r: t.r,
|
|
607
608
|
fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${w.value}_${t.rootIndex})` : t.color,
|
|
608
609
|
stroke: e.value.style.chart.layout.roots.stroke,
|
|
609
610
|
"stroke-width": e.value.style.chart.layout.roots.strokeWidth,
|
|
610
|
-
style:
|
|
611
|
-
onClick: (b) =>
|
|
612
|
-
}, null, 12,
|
|
613
|
-
e.value.style.chart.layout.roots.labels.show ? (a(), o("g",
|
|
614
|
-
(a(!0), o(
|
|
611
|
+
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
612
|
+
onClick: (b) => $e(t)
|
|
613
|
+
}, null, 12, el))), 256)),
|
|
614
|
+
e.value.style.chart.layout.roots.labels.show ? (a(), o("g", tl, [
|
|
615
|
+
(a(!0), o(p, null, g(j.value, (t, n) => (a(), o("text", {
|
|
615
616
|
x: t.x,
|
|
616
617
|
y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
617
618
|
"text-anchor": "middle",
|
|
618
619
|
"font-size": e.value.style.chart.layout.roots.labels.fontSize,
|
|
619
|
-
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? s(
|
|
620
|
+
fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? s(Ie)(t.color) : e.value.style.chart.layout.roots.labels.color,
|
|
620
621
|
"font-weight": "bold",
|
|
621
|
-
style:
|
|
622
|
-
onClick: (b) =>
|
|
623
|
-
}, c(s(
|
|
622
|
+
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
623
|
+
onClick: (b) => $e(t)
|
|
624
|
+
}, c(s(E)(
|
|
624
625
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
625
626
|
t.total,
|
|
626
|
-
s(
|
|
627
|
+
s(N)({
|
|
627
628
|
p: e.value.style.chart.layout.roots.labels.prefix,
|
|
628
629
|
v: t.total,
|
|
629
630
|
s: e.value.style.chart.layout.roots.labels.suffix,
|
|
630
631
|
r: e.value.style.chart.layout.roots.labels.roundingValue
|
|
631
632
|
}),
|
|
632
633
|
{ datapoint: t }
|
|
633
|
-
)), 13,
|
|
634
|
-
(a(!0), o(
|
|
635
|
-
d.value && t.rootIndex === d.value.rootIndex ||
|
|
634
|
+
)), 13, ll))), 256)),
|
|
635
|
+
(a(!0), o(p, null, g(j.value, (t) => (a(), o("g", null, [
|
|
636
|
+
d.value && t.rootIndex === d.value.rootIndex || _.value && t.rootIndex === _.value.rootIndex || L.value && t.rootIndex === L.value.rootIndex ? (a(), o("g", al, [
|
|
636
637
|
u("text", {
|
|
637
638
|
x: t.x,
|
|
638
639
|
y: t.y + t.r + 24,
|
|
@@ -641,11 +642,11 @@ const wt = ["id"], $t = {
|
|
|
641
642
|
"font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
|
|
642
643
|
"font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
643
644
|
onClick: $
|
|
644
|
-
}, c(t.name), 9,
|
|
645
|
-
])) :
|
|
645
|
+
}, c(t.name), 9, ol)
|
|
646
|
+
])) : h("", !0)
|
|
646
647
|
]))), 256))
|
|
647
|
-
])) :
|
|
648
|
-
(a(!0), o(
|
|
648
|
+
])) : h("", !0),
|
|
649
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("rect", {
|
|
649
650
|
x: t.x1,
|
|
650
651
|
y: t.y1,
|
|
651
652
|
height: r.value.branchSize,
|
|
@@ -653,10 +654,10 @@ const wt = ["id"], $t = {
|
|
|
653
654
|
fill: e.value.style.chart.layout.branches.underlayerColor,
|
|
654
655
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
655
656
|
stroke: "none",
|
|
656
|
-
style:
|
|
657
|
-
onClick: (n) =>
|
|
658
|
-
}, null, 12,
|
|
659
|
-
(a(!0), o(
|
|
657
|
+
style: y(`opacity:${P(t) ? 1 : 0.05}`),
|
|
658
|
+
onClick: (n) => re(t)
|
|
659
|
+
}, null, 12, sl))), 256)),
|
|
660
|
+
(a(!0), o(p, null, g(X.value, (t, n) => (a(), o("rect", {
|
|
660
661
|
x: t.x1,
|
|
661
662
|
y: t.y1,
|
|
662
663
|
height: r.value.branchSize,
|
|
@@ -665,68 +666,68 @@ const wt = ["id"], $t = {
|
|
|
665
666
|
rx: e.value.style.chart.layout.branches.borderRadius,
|
|
666
667
|
stroke: e.value.style.chart.layout.branches.stroke,
|
|
667
668
|
"stroke-width": e.value.style.chart.layout.branches.strokeWidth,
|
|
668
|
-
style:
|
|
669
|
-
onClick: (b) =>
|
|
670
|
-
}, null, 12,
|
|
671
|
-
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g",
|
|
672
|
-
(a(!0), o(
|
|
669
|
+
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
670
|
+
onClick: (b) => re(t)
|
|
671
|
+
}, null, 12, ul))), 256)),
|
|
672
|
+
e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", nl, [
|
|
673
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
673
674
|
t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
|
|
674
675
|
key: 0,
|
|
675
676
|
x: t.x1 + 6,
|
|
676
677
|
y: t.y1 + r.value.branchSize / 1.5,
|
|
677
678
|
"text-anchor": "start",
|
|
678
|
-
fill: s(
|
|
679
|
+
fill: s(Ie)(t.color),
|
|
679
680
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
680
681
|
"font-weight": "bold",
|
|
681
|
-
style:
|
|
682
|
-
onClick: (n) =>
|
|
683
|
-
}, c(s(
|
|
682
|
+
style: y(`cursor:pointer; opacity:${P(t) ? 1 : 0.05}`),
|
|
683
|
+
onClick: (n) => re(t)
|
|
684
|
+
}, c(s(E)(
|
|
684
685
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
685
686
|
t.value,
|
|
686
|
-
s(
|
|
687
|
+
s(N)({
|
|
687
688
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
688
689
|
v: t.value,
|
|
689
690
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
690
691
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
691
692
|
}),
|
|
692
693
|
{ datapoint: t }
|
|
693
|
-
)), 13,
|
|
694
|
+
)), 13, rl)) : h("", !0)
|
|
694
695
|
]))), 256))
|
|
695
|
-
])) :
|
|
696
|
-
(a(!0), o(
|
|
697
|
-
(a(!0), o(
|
|
696
|
+
])) : h("", !0),
|
|
697
|
+
(a(!0), o(p, null, g(X.value, (t, n) => (a(), o("g", null, [
|
|
698
|
+
(a(!0), o(p, null, g(s(Le)(
|
|
698
699
|
{ series: t.breakdown, base: 1 },
|
|
699
700
|
t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
700
701
|
t.y1 + r.value.branchSize / 2,
|
|
701
702
|
r.value.branchSize / 3,
|
|
702
703
|
r.value.branchSize / 3
|
|
703
|
-
), (b,
|
|
704
|
+
), (b, x) => (a(), o("path", {
|
|
704
705
|
d: b.path,
|
|
705
706
|
stroke: b.color,
|
|
706
707
|
"stroke-width": 10,
|
|
707
708
|
fill: "none",
|
|
708
|
-
style:
|
|
709
|
-
}, null, 12,
|
|
709
|
+
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
710
|
+
}, null, 12, il))), 256)),
|
|
710
711
|
u("circle", {
|
|
711
712
|
fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${w.value})` : "transparent",
|
|
712
713
|
cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
713
714
|
cy: t.y1 + r.value.branchSize / 2,
|
|
714
715
|
r: r.value.branchSize / 2 + 2,
|
|
715
|
-
onClick: (b) =>
|
|
716
|
-
style:
|
|
717
|
-
}, null, 12,
|
|
716
|
+
onClick: (b) => Ze(t),
|
|
717
|
+
style: y(`cursor:pointer;opacity:${P(t) ? 1 : 0.1}`)
|
|
718
|
+
}, null, 12, cl)
|
|
718
719
|
]))), 256)),
|
|
719
|
-
e.value.style.chart.layout.branches.labels.show && !
|
|
720
|
-
(a(!0), o(
|
|
720
|
+
e.value.style.chart.layout.branches.labels.show && !_.value ? (a(), o("g", dl, [
|
|
721
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("text", {
|
|
721
722
|
x: t.x2 + r.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
722
723
|
y: t.y1 + r.value.branchSize / 2 + 5,
|
|
723
724
|
"font-size": e.value.style.chart.layout.branches.labels.fontSize,
|
|
724
725
|
"font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
725
726
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
726
727
|
"text-anchor": "start",
|
|
727
|
-
style:
|
|
728
|
-
}, c(t.name), 13,
|
|
729
|
-
])) :
|
|
728
|
+
style: y(`opacity:${P(t) ? 1 : 0.1}`)
|
|
729
|
+
}, c(t.name), 13, vl))), 256))
|
|
730
|
+
])) : h("", !0),
|
|
730
731
|
u("line", {
|
|
731
732
|
x1: 256 + r.value.padding.left,
|
|
732
733
|
x2: 256 + r.value.padding.left,
|
|
@@ -734,8 +735,8 @@ const wt = ["id"], $t = {
|
|
|
734
735
|
y2: C.value.bottom,
|
|
735
736
|
stroke: e.value.style.chart.layout.verticalSeparator.stroke,
|
|
736
737
|
"stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
737
|
-
}, null, 8,
|
|
738
|
-
!d.value && !
|
|
738
|
+
}, null, 8, yl),
|
|
739
|
+
!d.value && !_.value ? (a(), o("foreignObject", {
|
|
739
740
|
key: 6,
|
|
740
741
|
x: 0,
|
|
741
742
|
y: C.value.bottom,
|
|
@@ -744,25 +745,25 @@ const wt = ["id"], $t = {
|
|
|
744
745
|
style: { overflow: "visible" },
|
|
745
746
|
onClick: $
|
|
746
747
|
}, [
|
|
747
|
-
u("div",
|
|
748
|
-
u("div",
|
|
749
|
-
(a(!0), o(
|
|
750
|
-
style:
|
|
748
|
+
u("div", fl, [
|
|
749
|
+
u("div", bl, [
|
|
750
|
+
(a(!0), o(p, null, g(j.value, (t) => (a(), o("div", {
|
|
751
|
+
style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
751
752
|
}, [
|
|
752
|
-
(a(), o("svg",
|
|
753
|
+
(a(), o("svg", pl, [
|
|
753
754
|
u("circle", {
|
|
754
755
|
cx: "10",
|
|
755
756
|
cy: "10",
|
|
756
757
|
r: "10",
|
|
757
758
|
fill: t.color,
|
|
758
759
|
stroke: "none"
|
|
759
|
-
}, null, 8,
|
|
760
|
+
}, null, 8, gl)
|
|
760
761
|
])),
|
|
761
762
|
u("span", null, c(t.name) + ":", 1),
|
|
762
|
-
u("b", null, c(s(
|
|
763
|
+
u("b", null, c(s(E)(
|
|
763
764
|
e.value.style.chart.layout.roots.labels.formatter,
|
|
764
765
|
t.total,
|
|
765
|
-
s(
|
|
766
|
+
s(N)({
|
|
766
767
|
p: e.value.style.chart.layout.legend.prefix,
|
|
767
768
|
v: t.total,
|
|
768
769
|
s: e.value.style.chart.layout.legend.suffix,
|
|
@@ -770,60 +771,60 @@ const wt = ["id"], $t = {
|
|
|
770
771
|
}),
|
|
771
772
|
{ datapoint: t }
|
|
772
773
|
)), 1),
|
|
773
|
-
|
|
774
|
-
v: t.total /
|
|
774
|
+
le(" (" + c(s(N)({
|
|
775
|
+
v: t.total / M.value * 100,
|
|
775
776
|
s: "%",
|
|
776
777
|
r: e.value.style.chart.layout.legend.roundingPercentage
|
|
777
778
|
})) + ") ", 1)
|
|
778
779
|
], 4))), 256))
|
|
779
780
|
])
|
|
780
781
|
])
|
|
781
|
-
], 8,
|
|
782
|
-
d.value &&
|
|
782
|
+
], 8, hl)) : h("", !0),
|
|
783
|
+
d.value && B.value ? (a(), o("g", _l, [
|
|
783
784
|
(a(), o("foreignObject", {
|
|
784
785
|
x: 0,
|
|
785
|
-
y:
|
|
786
|
+
y: et(),
|
|
786
787
|
height: r.value.height - C.value.bottom,
|
|
787
788
|
width: r.value.width,
|
|
788
789
|
style: { overflow: "visible" },
|
|
789
790
|
onClick: $
|
|
790
791
|
}, [
|
|
791
|
-
u("div",
|
|
792
|
+
u("div", ml, [
|
|
792
793
|
u("b", null, c(d.value.name), 1),
|
|
793
|
-
u("div",
|
|
794
|
-
(a(!0), o(
|
|
795
|
-
style:
|
|
794
|
+
u("div", kl, [
|
|
795
|
+
(a(!0), o(p, null, g(d.value.breakdown, (t, n) => (a(), o("div", {
|
|
796
|
+
style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
|
|
796
797
|
}, [
|
|
797
|
-
(a(), o("svg",
|
|
798
|
+
(a(), o("svg", wl, [
|
|
798
799
|
u("circle", {
|
|
799
800
|
cx: "10",
|
|
800
801
|
cy: "10",
|
|
801
802
|
r: "10",
|
|
802
803
|
fill: t.color,
|
|
803
804
|
stroke: "none"
|
|
804
|
-
}, null, 8,
|
|
805
|
+
}, null, 8, $l)
|
|
805
806
|
])),
|
|
806
807
|
u("span", null, [
|
|
807
|
-
|
|
808
|
+
le(c(t.name) + ": ", 1),
|
|
808
809
|
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),
|
|
809
|
-
|
|
810
|
+
le(" (" + c((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
810
811
|
])
|
|
811
812
|
], 4))), 256))
|
|
812
813
|
])
|
|
813
814
|
])
|
|
814
|
-
], 8,
|
|
815
|
+
], 8, xl)),
|
|
815
816
|
u("circle", {
|
|
816
817
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
817
818
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
818
819
|
r: 256,
|
|
819
820
|
fill: `url(#nut_underlayer_${w.value})`,
|
|
820
|
-
onClick:
|
|
821
|
+
onClick: G,
|
|
821
822
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
822
|
-
}, null, 10,
|
|
823
|
-
(a(!0), o(
|
|
824
|
-
|
|
823
|
+
}, null, 10, Cl),
|
|
824
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("g", null, [
|
|
825
|
+
Y(t) ? (a(), o("path", {
|
|
825
826
|
key: 0,
|
|
826
|
-
d: s(
|
|
827
|
+
d: s(pt)(
|
|
827
828
|
t,
|
|
828
829
|
{
|
|
829
830
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -841,40 +842,40 @@ const wt = ["id"], $t = {
|
|
|
841
842
|
"stroke-linejoin": "round",
|
|
842
843
|
fill: "none",
|
|
843
844
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
844
|
-
}, null, 10,
|
|
845
|
+
}, null, 10, Tl)) : h("", !0)
|
|
845
846
|
]))), 256)),
|
|
846
847
|
u("circle", {
|
|
847
848
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
848
849
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
849
850
|
r: 118,
|
|
850
851
|
fill: e.value.style.chart.backgroundColor,
|
|
851
|
-
onClick:
|
|
852
|
+
onClick: G,
|
|
852
853
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
853
|
-
}, null, 10,
|
|
854
|
-
(a(!0), o(
|
|
854
|
+
}, null, 10, zl),
|
|
855
|
+
(a(!0), o(p, null, g(B.value, (t) => (a(), o("path", {
|
|
855
856
|
d: t.path,
|
|
856
857
|
stroke: t.color,
|
|
857
858
|
"stroke-width": 64,
|
|
858
859
|
fill: "none",
|
|
859
|
-
onClick:
|
|
860
|
+
onClick: G,
|
|
860
861
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
861
|
-
}, null, 10,
|
|
862
|
+
}, null, 10, Nl))), 256)),
|
|
862
863
|
u("circle", {
|
|
863
864
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
864
865
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
865
866
|
r: 110,
|
|
866
867
|
fill: `url(#nutpick_${w.value})`,
|
|
867
|
-
onClick:
|
|
868
|
+
onClick: G,
|
|
868
869
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
869
|
-
}, null, 10,
|
|
870
|
+
}, null, 10, Sl),
|
|
870
871
|
u("circle", {
|
|
871
872
|
cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
872
873
|
cy: d.value.y1 + r.value.branchSize / 2,
|
|
873
874
|
r: 64,
|
|
874
875
|
fill: e.value.style.chart.backgroundColor,
|
|
875
|
-
onClick:
|
|
876
|
+
onClick: G,
|
|
876
877
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
877
|
-
}, null, 10,
|
|
878
|
+
}, null, 10, Fl),
|
|
878
879
|
u("text", {
|
|
879
880
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
880
881
|
y: d.value.y1 + 8,
|
|
@@ -882,9 +883,9 @@ const wt = ["id"], $t = {
|
|
|
882
883
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
883
884
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
884
885
|
"text-anchor": "middle",
|
|
885
|
-
onClick:
|
|
886
|
+
onClick: G,
|
|
886
887
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
887
|
-
}, c(e.value.translations.total), 11,
|
|
888
|
+
}, c(e.value.translations.total), 11, Il),
|
|
888
889
|
u("text", {
|
|
889
890
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
890
891
|
y: d.value.y1 + 36,
|
|
@@ -892,98 +893,98 @@ const wt = ["id"], $t = {
|
|
|
892
893
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
893
894
|
"font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
894
895
|
"text-anchor": "middle",
|
|
895
|
-
onClick:
|
|
896
|
+
onClick: G,
|
|
896
897
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
897
|
-
}, c(s(
|
|
898
|
+
}, c(s(E)(
|
|
898
899
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
899
900
|
d.value.value,
|
|
900
|
-
s(
|
|
901
|
+
s(N)({
|
|
901
902
|
p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
902
903
|
v: d.value.value,
|
|
903
904
|
s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
904
905
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
905
906
|
}),
|
|
906
907
|
{ datapoint: d.value }
|
|
907
|
-
)), 11,
|
|
908
|
-
(a(!0), o(
|
|
909
|
-
|
|
908
|
+
)), 11, Ll),
|
|
909
|
+
(a(!0), o(p, null, g(B.value, (t, n) => (a(), o("g", null, [
|
|
910
|
+
Y(t) ? (a(), o("text", {
|
|
910
911
|
key: 0,
|
|
911
|
-
x: s(
|
|
912
|
-
"text-anchor": s(
|
|
913
|
-
y: s(
|
|
912
|
+
x: s(O)(t).x,
|
|
913
|
+
"text-anchor": s(O)(t).anchor,
|
|
914
|
+
y: s(J)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
914
915
|
fill: t.color,
|
|
915
916
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
916
|
-
style:
|
|
917
|
+
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
917
918
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
918
|
-
}, " ⬤ ", 14,
|
|
919
|
-
|
|
919
|
+
}, " ⬤ ", 14, Pl)) : h("", !0),
|
|
920
|
+
Y(t) ? (a(), o("text", {
|
|
920
921
|
key: 1,
|
|
921
|
-
x: s(
|
|
922
|
-
"text-anchor": s(
|
|
923
|
-
y: s(
|
|
922
|
+
x: s(O)(t, !0).x,
|
|
923
|
+
"text-anchor": s(O)(t, !0).anchor,
|
|
924
|
+
y: s(J)(t),
|
|
924
925
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
925
926
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
926
|
-
style:
|
|
927
|
+
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
927
928
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
928
|
-
}, c(d.value.breakdown[n].name), 15,
|
|
929
|
+
}, c(d.value.breakdown[n].name), 15, Vl)) : h("", !0)
|
|
929
930
|
]))), 256)),
|
|
930
|
-
(a(!0), o(
|
|
931
|
-
|
|
931
|
+
(a(!0), o(p, null, g(B.value, (t, n) => (a(), o("g", null, [
|
|
932
|
+
Y(t) ? (a(), o("text", {
|
|
932
933
|
key: 0,
|
|
933
|
-
x: s(
|
|
934
|
-
"text-anchor": s(
|
|
935
|
-
y: s(
|
|
934
|
+
x: s(O)(t, !0).x,
|
|
935
|
+
"text-anchor": s(O)(t).anchor,
|
|
936
|
+
y: s(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
936
937
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
937
938
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
938
|
-
style:
|
|
939
|
+
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
939
940
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
940
|
-
}, c(s(
|
|
941
|
+
}, c(s(N)({
|
|
941
942
|
v: d.value.breakdown[n].value / d.value.value * 100,
|
|
942
943
|
s: "%",
|
|
943
944
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
944
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].branchName) + " " + c(s(
|
|
945
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].branchName) + " " + c(s(E)(
|
|
945
946
|
e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
|
|
946
947
|
d.value.breakdown[n].value,
|
|
947
|
-
s(
|
|
948
|
+
s(N)({
|
|
948
949
|
p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
949
950
|
v: d.value.breakdown[n].value,
|
|
950
951
|
s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
951
952
|
r: e.value.style.chart.layout.nuts.selected.roundingValue
|
|
952
953
|
}),
|
|
953
|
-
{ datapoint:
|
|
954
|
-
)), 15,
|
|
955
|
-
|
|
954
|
+
{ datapoint: B.value, seriesIndex: n }
|
|
955
|
+
)), 15, Ol)) : h("", !0),
|
|
956
|
+
Y(t) ? (a(), o("text", {
|
|
956
957
|
key: 1,
|
|
957
|
-
x: s(
|
|
958
|
-
"text-anchor": s(
|
|
959
|
-
y: s(
|
|
958
|
+
x: s(O)(t, !0).x,
|
|
959
|
+
"text-anchor": s(O)(t).anchor,
|
|
960
|
+
y: s(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
960
961
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
961
962
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
962
|
-
style:
|
|
963
|
+
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
963
964
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
964
|
-
}, c(s(
|
|
965
|
+
}, c(s(N)({
|
|
965
966
|
v: d.value.breakdown[n].proportionToRoot * 100,
|
|
966
967
|
s: "%",
|
|
967
968
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
968
|
-
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].rootName), 15,
|
|
969
|
-
|
|
969
|
+
})) + " " + c(e.value.translations.of) + " " + c(d.value.breakdown[n].rootName), 15, Rl)) : h("", !0),
|
|
970
|
+
Y(t) ? (a(), o("text", {
|
|
970
971
|
key: 2,
|
|
971
|
-
x: s(
|
|
972
|
-
"text-anchor": s(
|
|
973
|
-
y: s(
|
|
972
|
+
x: s(O)(t, !0).x,
|
|
973
|
+
"text-anchor": s(O)(t).anchor,
|
|
974
|
+
y: s(J)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
974
975
|
fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
975
976
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
976
|
-
style:
|
|
977
|
+
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
977
978
|
class: k(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
978
|
-
}, c(s(
|
|
979
|
+
}, c(s(N)({
|
|
979
980
|
v: d.value.breakdown[n].proportionToTree * 100,
|
|
980
981
|
s: "%",
|
|
981
982
|
r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
982
|
-
})) + " " + c(e.value.translations.proportionToTree), 15,
|
|
983
|
+
})) + " " + c(e.value.translations.proportionToTree), 15, Ml)) : h("", !0)
|
|
983
984
|
]))), 256))
|
|
984
|
-
])) :
|
|
985
|
-
(a(!0), o(
|
|
986
|
-
|
|
985
|
+
])) : h("", !0),
|
|
986
|
+
(a(!0), o(p, null, g(X.value, (t) => (a(), o("g", null, [
|
|
987
|
+
_.value && _.value.id === t.id && !d.value ? (a(), o("text", {
|
|
987
988
|
key: 0,
|
|
988
989
|
x: t.x1 + 6,
|
|
989
990
|
y: t.y1 + r.value.branchSize + 24,
|
|
@@ -992,18 +993,18 @@ const wt = ["id"], $t = {
|
|
|
992
993
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
993
994
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
994
995
|
onClick: $
|
|
995
|
-
}, c(t.name) + ": " + c(s(
|
|
996
|
+
}, c(t.name) + ": " + c(s(E)(
|
|
996
997
|
e.value.style.chart.layout.branches.labels.dataLabels.formatter,
|
|
997
998
|
t.value,
|
|
998
|
-
s(
|
|
999
|
+
s(N)({
|
|
999
1000
|
p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1000
1001
|
v: t.value,
|
|
1001
1002
|
s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1002
1003
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1003
1004
|
}),
|
|
1004
1005
|
{ datapoint: t }
|
|
1005
|
-
)), 9,
|
|
1006
|
-
|
|
1006
|
+
)), 9, Bl)) : h("", !0),
|
|
1007
|
+
_.value && _.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1007
1008
|
key: 1,
|
|
1008
1009
|
x: t.x1 + 6,
|
|
1009
1010
|
y: t.y1 + r.value.branchSize + 48,
|
|
@@ -1011,12 +1012,12 @@ const wt = ["id"], $t = {
|
|
|
1011
1012
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1012
1013
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1013
1014
|
onClick: $
|
|
1014
|
-
}, c(s(
|
|
1015
|
+
}, c(s(N)({
|
|
1015
1016
|
v: t.proportionToRoot * 100,
|
|
1016
1017
|
s: "%",
|
|
1017
1018
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1018
|
-
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9,
|
|
1019
|
-
|
|
1019
|
+
})) + " " + c(e.value.translations.of) + " " + c(t.rootName), 9, Al)) : h("", !0),
|
|
1020
|
+
_.value && _.value.id === t.id && !d.value ? (a(), o("text", {
|
|
1020
1021
|
key: 2,
|
|
1021
1022
|
x: t.x1 + 6,
|
|
1022
1023
|
y: t.y1 + r.value.branchSize + 72,
|
|
@@ -1024,18 +1025,18 @@ const wt = ["id"], $t = {
|
|
|
1024
1025
|
"font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1025
1026
|
fill: e.value.style.chart.layout.branches.labels.color,
|
|
1026
1027
|
onClick: $
|
|
1027
|
-
}, c(s(
|
|
1028
|
-
v: t.value /
|
|
1028
|
+
}, c(s(N)({
|
|
1029
|
+
v: t.value / M.value * 100,
|
|
1029
1030
|
s: "%",
|
|
1030
1031
|
r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1031
|
-
})) + " " + c(e.value.translations.proportionToTree), 9,
|
|
1032
|
+
})) + " " + c(e.value.translations.proportionToTree), 9, jl)) : h("", !0)
|
|
1032
1033
|
]))), 256)),
|
|
1033
|
-
|
|
1034
|
-
], 14,
|
|
1035
|
-
l.$slots.watermark ? (a(), o("div",
|
|
1036
|
-
|
|
1037
|
-
])) :
|
|
1038
|
-
|
|
1034
|
+
F(l.$slots, "svg", { svg: r.value }, void 0, !0)
|
|
1035
|
+
], 14, Tt)) : h("", !0),
|
|
1036
|
+
l.$slots.watermark ? (a(), o("div", Xl, [
|
|
1037
|
+
F(l.$slots, "watermark", ee(te({ isPrinting: s(ge) || s(_e) })), void 0, !0)
|
|
1038
|
+
])) : h("", !0),
|
|
1039
|
+
W.value ? h("", !0) : (a(), Z(s(Ae), {
|
|
1039
1040
|
key: 5,
|
|
1040
1041
|
config: {
|
|
1041
1042
|
type: "chestnut",
|
|
@@ -1047,15 +1048,15 @@ const wt = ["id"], $t = {
|
|
|
1047
1048
|
}
|
|
1048
1049
|
}
|
|
1049
1050
|
}, null, 8, ["config"])),
|
|
1050
|
-
|
|
1051
|
-
l.$slots.source ? (a(), o("div",
|
|
1052
|
-
|
|
1053
|
-
], 512)) :
|
|
1054
|
-
|
|
1051
|
+
F(l.$slots, "legend", { legend: S.value }, void 0, !0),
|
|
1052
|
+
l.$slots.source ? (a(), o("div", Gl, [
|
|
1053
|
+
F(l.$slots, "source", {}, void 0, !0)
|
|
1054
|
+
], 512)) : h("", !0),
|
|
1055
|
+
W.value ? (a(), Z(s(Be), {
|
|
1055
1056
|
key: 7,
|
|
1056
1057
|
hideDetails: "",
|
|
1057
1058
|
config: {
|
|
1058
|
-
open:
|
|
1059
|
+
open: U.value.showTable,
|
|
1059
1060
|
maxHeight: 1e4,
|
|
1060
1061
|
body: {
|
|
1061
1062
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1067,21 +1068,21 @@ const wt = ["id"], $t = {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
}
|
|
1069
1070
|
}, {
|
|
1070
|
-
content:
|
|
1071
|
+
content: A(() => [
|
|
1071
1072
|
u("div", {
|
|
1072
1073
|
ref_key: "tableContainer",
|
|
1073
|
-
ref:
|
|
1074
|
+
ref: ue,
|
|
1074
1075
|
class: "vue-ui-chestnut-table"
|
|
1075
1076
|
}, [
|
|
1076
|
-
u("div",
|
|
1077
|
+
u("div", El, [
|
|
1077
1078
|
u("div", {
|
|
1078
1079
|
role: "button",
|
|
1079
1080
|
tabindex: "0",
|
|
1080
|
-
style:
|
|
1081
|
-
onClick: i[0] || (i[0] = (t) =>
|
|
1082
|
-
onKeypress: i[1] || (i[1] =
|
|
1081
|
+
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
|
+
onClick: i[0] || (i[0] = (t) => U.value.showTable = !1),
|
|
1083
|
+
onKeypress: i[1] || (i[1] = it((t) => U.value.showTable = !1, ["enter"]))
|
|
1083
1084
|
}, [
|
|
1084
|
-
|
|
1085
|
+
Ne(s(Ge), {
|
|
1085
1086
|
name: "close",
|
|
1086
1087
|
stroke: e.value.table.th.color,
|
|
1087
1088
|
"stroke-width": 2
|
|
@@ -1089,129 +1090,129 @@ const wt = ["id"], $t = {
|
|
|
1089
1090
|
], 36),
|
|
1090
1091
|
u("div", {
|
|
1091
1092
|
style: { width: "100%" },
|
|
1092
|
-
class: k({ "vue-ui-responsive":
|
|
1093
|
+
class: k({ "vue-ui-responsive": ke.value })
|
|
1093
1094
|
}, [
|
|
1094
|
-
u("table",
|
|
1095
|
+
u("table", Ul, [
|
|
1095
1096
|
u("caption", {
|
|
1096
|
-
style:
|
|
1097
|
+
style: y({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
1097
1098
|
class: "vue-ui-data-table__caption"
|
|
1098
1099
|
}, [
|
|
1099
|
-
|
|
1100
|
-
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span",
|
|
1100
|
+
le(c(e.value.style.chart.layout.title.text) + " ", 1),
|
|
1101
|
+
e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", Dl, c(e.value.style.chart.layout.title.subtitle.text), 1)) : h("", !0)
|
|
1101
1102
|
], 4),
|
|
1102
1103
|
u("thead", null, [
|
|
1103
1104
|
u("tr", {
|
|
1104
1105
|
role: "row",
|
|
1105
|
-
style:
|
|
1106
|
+
style: y(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
1106
1107
|
}, [
|
|
1107
|
-
(a(!0), o(
|
|
1108
|
-
style:
|
|
1108
|
+
(a(!0), o(p, null, g(v.value.head, (t) => (a(), o("th", {
|
|
1109
|
+
style: y(`outline:${e.value.table.th.outline}`)
|
|
1109
1110
|
}, c(t), 5))), 256))
|
|
1110
1111
|
], 4)
|
|
1111
1112
|
]),
|
|
1112
1113
|
u("tbody", null, [
|
|
1113
|
-
(a(!0), o(
|
|
1114
|
+
(a(!0), o(p, null, g(v.value.body, (t, n) => (a(), o("tr", {
|
|
1114
1115
|
class: k({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": n % 2 === 0, "vue-ui-data-table__tbody__row-odd": n % 2 !== 0 }),
|
|
1115
|
-
style:
|
|
1116
|
+
style: y(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
1116
1117
|
}, [
|
|
1117
1118
|
u("td", {
|
|
1118
1119
|
class: "vue-ui-data-table__tbody__td",
|
|
1119
|
-
style:
|
|
1120
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1120
1121
|
"data-cell": v.value.head[0]
|
|
1121
1122
|
}, [
|
|
1122
|
-
u("div",
|
|
1123
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1123
|
+
u("div", ql, [
|
|
1124
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", Hl)) : (a(), o("span", Wl, c(t.rootName), 1))
|
|
1124
1125
|
])
|
|
1125
|
-
], 12,
|
|
1126
|
+
], 12, Yl),
|
|
1126
1127
|
u("td", {
|
|
1127
1128
|
class: "vue-ui-data-table__tbody__td",
|
|
1128
|
-
style:
|
|
1129
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1129
1130
|
"data-cell": v.value.head[1]
|
|
1130
1131
|
}, [
|
|
1131
|
-
u("div",
|
|
1132
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1132
|
+
u("div", Jl, [
|
|
1133
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", Ql)) : (a(), o("span", Zl, c(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1133
1134
|
])
|
|
1134
|
-
], 12,
|
|
1135
|
+
], 12, Kl),
|
|
1135
1136
|
u("td", {
|
|
1136
1137
|
class: "vue-ui-data-table__tbody__td",
|
|
1137
|
-
style:
|
|
1138
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1138
1139
|
"data-cell": v.value.head[2]
|
|
1139
1140
|
}, [
|
|
1140
|
-
u("div",
|
|
1141
|
-
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span",
|
|
1141
|
+
u("div", ta, [
|
|
1142
|
+
v.value.body[n - 1] && v.value.body[n - 1].rootName === t.rootName ? (a(), o("span", la)) : (a(), o("span", aa, c((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1142
1143
|
])
|
|
1143
|
-
], 12,
|
|
1144
|
+
], 12, ea),
|
|
1144
1145
|
u("td", {
|
|
1145
1146
|
class: "vue-ui-data-table__tbody__td",
|
|
1146
|
-
style:
|
|
1147
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1147
1148
|
"data-cell": v.value.head[3]
|
|
1148
1149
|
}, [
|
|
1149
|
-
u("div",
|
|
1150
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1150
|
+
u("div", sa, [
|
|
1151
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ua)) : (a(), o("span", na, c(t.branchName), 1))
|
|
1151
1152
|
])
|
|
1152
|
-
], 12,
|
|
1153
|
+
], 12, oa),
|
|
1153
1154
|
u("td", {
|
|
1154
1155
|
class: "vue-ui-data-table__tbody__td",
|
|
1155
|
-
style:
|
|
1156
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1156
1157
|
"data-cell": v.value.head[4]
|
|
1157
1158
|
}, [
|
|
1158
|
-
u("div",
|
|
1159
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1159
|
+
u("div", ia, [
|
|
1160
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ca)) : (a(), o("span", da, c(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
|
|
1160
1161
|
])
|
|
1161
|
-
], 12,
|
|
1162
|
+
], 12, ra),
|
|
1162
1163
|
u("td", {
|
|
1163
1164
|
class: "vue-ui-data-table__tbody__td",
|
|
1164
|
-
style:
|
|
1165
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1165
1166
|
"data-cell": v.value.head[5]
|
|
1166
1167
|
}, [
|
|
1167
|
-
u("div",
|
|
1168
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1168
|
+
u("div", ya, [
|
|
1169
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ha)) : (a(), o("span", fa, c((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1169
1170
|
])
|
|
1170
|
-
], 12,
|
|
1171
|
+
], 12, va),
|
|
1171
1172
|
u("td", {
|
|
1172
1173
|
class: "vue-ui-data-table__tbody__td",
|
|
1173
|
-
style:
|
|
1174
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1174
1175
|
"data-cell": v.value.head[6]
|
|
1175
1176
|
}, [
|
|
1176
|
-
u("div",
|
|
1177
|
-
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span",
|
|
1177
|
+
u("div", pa, [
|
|
1178
|
+
v.value.body[n - 1] && v.value.body[n - 1].branchName === t.branchName ? (a(), o("span", ga)) : (a(), o("span", _a, c((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
|
|
1178
1179
|
])
|
|
1179
|
-
], 12,
|
|
1180
|
+
], 12, ba),
|
|
1180
1181
|
u("td", {
|
|
1181
1182
|
class: "vue-ui-data-table__tbody__td",
|
|
1182
|
-
style:
|
|
1183
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1183
1184
|
"data-cell": v.value.head[7]
|
|
1184
1185
|
}, [
|
|
1185
|
-
u("div",
|
|
1186
|
-
], 12,
|
|
1186
|
+
u("div", ma, c(t.nutName), 1)
|
|
1187
|
+
], 12, xa),
|
|
1187
1188
|
u("td", {
|
|
1188
1189
|
class: "vue-ui-data-table__tbody__td",
|
|
1189
|
-
style:
|
|
1190
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1190
1191
|
"data-cell": v.value.head[8]
|
|
1191
1192
|
}, [
|
|
1192
|
-
u("div",
|
|
1193
|
-
], 12,
|
|
1193
|
+
u("div", wa, c(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
|
|
1194
|
+
], 12, ka),
|
|
1194
1195
|
u("td", {
|
|
1195
1196
|
class: "vue-ui-data-table__tbody__td",
|
|
1196
|
-
style:
|
|
1197
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1197
1198
|
"data-cell": v.value.head[9]
|
|
1198
1199
|
}, [
|
|
1199
|
-
u("div",
|
|
1200
|
-
], 12,
|
|
1200
|
+
u("div", Ca, c((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1201
|
+
], 12, $a),
|
|
1201
1202
|
u("td", {
|
|
1202
1203
|
class: "vue-ui-data-table__tbody__td",
|
|
1203
|
-
style:
|
|
1204
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1204
1205
|
"data-cell": v.value.head[10]
|
|
1205
1206
|
}, [
|
|
1206
|
-
u("div",
|
|
1207
|
-
], 12,
|
|
1207
|
+
u("div", za, c((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1208
|
+
], 12, Ta),
|
|
1208
1209
|
u("td", {
|
|
1209
1210
|
class: "vue-ui-data-table__tbody__td",
|
|
1210
|
-
style:
|
|
1211
|
+
style: y(`outline:${e.value.table.td.outline}`),
|
|
1211
1212
|
"data-cell": v.value.head[11]
|
|
1212
1213
|
}, [
|
|
1213
|
-
u("div",
|
|
1214
|
-
], 12,
|
|
1214
|
+
u("div", Sa, c((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
|
|
1215
|
+
], 12, Na)
|
|
1215
1216
|
], 6))), 256))
|
|
1216
1217
|
])
|
|
1217
1218
|
])
|
|
@@ -1220,10 +1221,10 @@ const wt = ["id"], $t = {
|
|
|
1220
1221
|
], 512)
|
|
1221
1222
|
]),
|
|
1222
1223
|
_: 1
|
|
1223
|
-
}, 8, ["config"])) :
|
|
1224
|
-
], 46,
|
|
1224
|
+
}, 8, ["config"])) : h("", !0)
|
|
1225
|
+
], 46, $t));
|
|
1225
1226
|
}
|
|
1226
|
-
}, Ba = /* @__PURE__ */
|
|
1227
|
+
}, Ba = /* @__PURE__ */ wt(Fa, [["__scopeId", "data-v-4edbb77e"]]);
|
|
1227
1228
|
export {
|
|
1228
1229
|
Ba as default
|
|
1229
1230
|
};
|