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