vue-data-ui 3.22.9 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/types/utils.d.ts +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
- package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
- package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -0,0 +1,2042 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { At as t, Bt as n, C as r, E as i, Gt as a, K as o, Nt as s, Ot as ee, Q as te, Y as c, d as l, et as ne, f as re, ft as ie, i as u, m as ae, qt as oe, r as se, t as ce, x as le, zt as d } from "./lib-CnHx5WfV.js";
|
|
3
|
+
import { t as ue } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as de } from "./usePrinter-B-X_Pub0.js";
|
|
5
|
+
import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as me } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as he } from "./useNestedProp-D8NuRneO.js";
|
|
8
|
+
import { t as ge } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as _e } from "./img-CNdXiUfZ.js";
|
|
10
|
+
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
11
|
+
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
12
|
+
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
13
|
+
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
14
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
15
|
+
import { t as Ce } from "./useTableResponsive-B24Uwt2E.js";
|
|
16
|
+
import { t as we } from "./vue_ui_chestnut-D2oUhad6.js";
|
|
17
|
+
import { Fragment as f, computed as p, createBlock as Te, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onMounted as Me, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ne, toDisplayString as T, toRefs as Pe, unref as E, useCssVars as Fe, watch as Ie, withCtx as D, withKeys as Le } from "vue";
|
|
18
|
+
//#region src/components/vue-ui-chestnut.vue
|
|
19
|
+
var Re = /* @__PURE__ */ e({ default: () => An }), ze = ["id"], Be = ["id"], Ve = {
|
|
20
|
+
"aria-live": "polite",
|
|
21
|
+
class: "sr-only"
|
|
22
|
+
}, He = {
|
|
23
|
+
key: 2,
|
|
24
|
+
ref: "noTitle",
|
|
25
|
+
class: "vue-data-ui-no-title-space",
|
|
26
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
27
|
+
}, Ue = { style: { position: "relative" } }, We = [
|
|
28
|
+
"xmlns",
|
|
29
|
+
"aria-describedby",
|
|
30
|
+
"viewBox"
|
|
31
|
+
], Ge = ["width", "height"], Ke = { key: 1 }, qe = [
|
|
32
|
+
"fill",
|
|
33
|
+
"font-weight",
|
|
34
|
+
"font-size",
|
|
35
|
+
"x",
|
|
36
|
+
"y"
|
|
37
|
+
], Je = [
|
|
38
|
+
"fill",
|
|
39
|
+
"font-weight",
|
|
40
|
+
"font-size",
|
|
41
|
+
"x",
|
|
42
|
+
"y"
|
|
43
|
+
], Ye = { key: 2 }, Xe = [
|
|
44
|
+
"x",
|
|
45
|
+
"y",
|
|
46
|
+
"font-size",
|
|
47
|
+
"font-weight",
|
|
48
|
+
"fill"
|
|
49
|
+
], Ze = [
|
|
50
|
+
"x",
|
|
51
|
+
"y",
|
|
52
|
+
"font-size",
|
|
53
|
+
"font-weight",
|
|
54
|
+
"fill"
|
|
55
|
+
], Qe = [
|
|
56
|
+
"d",
|
|
57
|
+
"stroke",
|
|
58
|
+
"fill"
|
|
59
|
+
], $e = [
|
|
60
|
+
"cx",
|
|
61
|
+
"cy",
|
|
62
|
+
"r",
|
|
63
|
+
"fill"
|
|
64
|
+
], et = [
|
|
65
|
+
"aria-label",
|
|
66
|
+
"cx",
|
|
67
|
+
"cy",
|
|
68
|
+
"r",
|
|
69
|
+
"fill",
|
|
70
|
+
"stroke",
|
|
71
|
+
"stroke-width",
|
|
72
|
+
"onClick"
|
|
73
|
+
], tt = { key: 3 }, nt = [
|
|
74
|
+
"x",
|
|
75
|
+
"y",
|
|
76
|
+
"font-size",
|
|
77
|
+
"fill",
|
|
78
|
+
"onClick"
|
|
79
|
+
], rt = { key: 0 }, it = [
|
|
80
|
+
"x",
|
|
81
|
+
"y",
|
|
82
|
+
"fill",
|
|
83
|
+
"font-size",
|
|
84
|
+
"font-weight"
|
|
85
|
+
], at = [
|
|
86
|
+
"x",
|
|
87
|
+
"y",
|
|
88
|
+
"height",
|
|
89
|
+
"width",
|
|
90
|
+
"fill",
|
|
91
|
+
"rx",
|
|
92
|
+
"onClick"
|
|
93
|
+
], ot = [
|
|
94
|
+
"aria-label",
|
|
95
|
+
"x",
|
|
96
|
+
"y",
|
|
97
|
+
"height",
|
|
98
|
+
"width",
|
|
99
|
+
"fill",
|
|
100
|
+
"rx",
|
|
101
|
+
"stroke",
|
|
102
|
+
"stroke-width",
|
|
103
|
+
"onClick"
|
|
104
|
+
], st = { key: 4 }, ct = [
|
|
105
|
+
"x",
|
|
106
|
+
"y",
|
|
107
|
+
"fill",
|
|
108
|
+
"font-size",
|
|
109
|
+
"onClick"
|
|
110
|
+
], lt = ["d", "stroke"], ut = [
|
|
111
|
+
"aria-label",
|
|
112
|
+
"fill",
|
|
113
|
+
"cx",
|
|
114
|
+
"cy",
|
|
115
|
+
"r",
|
|
116
|
+
"onClick"
|
|
117
|
+
], dt = { key: 5 }, ft = [
|
|
118
|
+
"x",
|
|
119
|
+
"y",
|
|
120
|
+
"font-size",
|
|
121
|
+
"font-weight",
|
|
122
|
+
"fill"
|
|
123
|
+
], pt = [
|
|
124
|
+
"x1",
|
|
125
|
+
"x2",
|
|
126
|
+
"y1",
|
|
127
|
+
"y2",
|
|
128
|
+
"stroke",
|
|
129
|
+
"stroke-width"
|
|
130
|
+
], mt = [
|
|
131
|
+
"y",
|
|
132
|
+
"height",
|
|
133
|
+
"width"
|
|
134
|
+
], ht = { style: {
|
|
135
|
+
width: "100%",
|
|
136
|
+
height: "100%",
|
|
137
|
+
display: "flex",
|
|
138
|
+
"align-items": "center",
|
|
139
|
+
"justify-content": "center",
|
|
140
|
+
"flex-direction": "column"
|
|
141
|
+
} }, gt = { style: {
|
|
142
|
+
display: "flex",
|
|
143
|
+
"align-items": "center",
|
|
144
|
+
"justify-content": "center",
|
|
145
|
+
gap: "12px",
|
|
146
|
+
"flex-wrap": "wrap",
|
|
147
|
+
"flex-direction": "row"
|
|
148
|
+
} }, _t = {
|
|
149
|
+
viewBox: "0 0 20 20",
|
|
150
|
+
height: "16",
|
|
151
|
+
width: "16"
|
|
152
|
+
}, vt = ["fill"], yt = { key: 7 }, bt = [
|
|
153
|
+
"y",
|
|
154
|
+
"height",
|
|
155
|
+
"width"
|
|
156
|
+
], xt = { style: {
|
|
157
|
+
width: "100%",
|
|
158
|
+
height: "100%",
|
|
159
|
+
display: "flex",
|
|
160
|
+
"align-items": "center",
|
|
161
|
+
"justify-content": "center",
|
|
162
|
+
"flex-direction": "column"
|
|
163
|
+
} }, St = { style: {
|
|
164
|
+
display: "flex",
|
|
165
|
+
"align-items": "center",
|
|
166
|
+
"justify-content": "center",
|
|
167
|
+
gap: "12px",
|
|
168
|
+
"flex-wrap": "wrap",
|
|
169
|
+
"flex-direction": "row"
|
|
170
|
+
} }, Ct = {
|
|
171
|
+
viewBox: "0 0 20 20",
|
|
172
|
+
height: "16",
|
|
173
|
+
width: "16"
|
|
174
|
+
}, wt = ["fill"], Tt = [
|
|
175
|
+
"cx",
|
|
176
|
+
"cy",
|
|
177
|
+
"fill"
|
|
178
|
+
], Et = ["d", "stroke"], Dt = [
|
|
179
|
+
"cx",
|
|
180
|
+
"cy",
|
|
181
|
+
"fill"
|
|
182
|
+
], Ot = ["d", "stroke"], kt = [
|
|
183
|
+
"cx",
|
|
184
|
+
"cy",
|
|
185
|
+
"fill"
|
|
186
|
+
], At = [
|
|
187
|
+
"cx",
|
|
188
|
+
"cy",
|
|
189
|
+
"fill"
|
|
190
|
+
], jt = [
|
|
191
|
+
"x",
|
|
192
|
+
"y",
|
|
193
|
+
"fill",
|
|
194
|
+
"font-size",
|
|
195
|
+
"font-weight"
|
|
196
|
+
], Mt = [
|
|
197
|
+
"x",
|
|
198
|
+
"y",
|
|
199
|
+
"fill",
|
|
200
|
+
"font-size",
|
|
201
|
+
"font-weight"
|
|
202
|
+
], Nt = [
|
|
203
|
+
"x",
|
|
204
|
+
"text-anchor",
|
|
205
|
+
"y",
|
|
206
|
+
"fill",
|
|
207
|
+
"font-size"
|
|
208
|
+
], Pt = [
|
|
209
|
+
"x",
|
|
210
|
+
"text-anchor",
|
|
211
|
+
"y",
|
|
212
|
+
"fill",
|
|
213
|
+
"font-size"
|
|
214
|
+
], Ft = [
|
|
215
|
+
"x",
|
|
216
|
+
"text-anchor",
|
|
217
|
+
"y",
|
|
218
|
+
"fill",
|
|
219
|
+
"font-size"
|
|
220
|
+
], It = [
|
|
221
|
+
"x",
|
|
222
|
+
"text-anchor",
|
|
223
|
+
"y",
|
|
224
|
+
"fill",
|
|
225
|
+
"font-size"
|
|
226
|
+
], Lt = [
|
|
227
|
+
"x",
|
|
228
|
+
"text-anchor",
|
|
229
|
+
"y",
|
|
230
|
+
"fill",
|
|
231
|
+
"font-size"
|
|
232
|
+
], Rt = [
|
|
233
|
+
"x",
|
|
234
|
+
"y",
|
|
235
|
+
"font-size",
|
|
236
|
+
"fill"
|
|
237
|
+
], zt = [
|
|
238
|
+
"x",
|
|
239
|
+
"y",
|
|
240
|
+
"font-size",
|
|
241
|
+
"fill"
|
|
242
|
+
], Bt = [
|
|
243
|
+
"x",
|
|
244
|
+
"y",
|
|
245
|
+
"font-size",
|
|
246
|
+
"fill"
|
|
247
|
+
], Vt = {
|
|
248
|
+
key: 4,
|
|
249
|
+
class: "vue-data-ui-watermark"
|
|
250
|
+
}, Ht = {
|
|
251
|
+
key: 5,
|
|
252
|
+
ref: "source",
|
|
253
|
+
dir: "auto"
|
|
254
|
+
}, Ut = { class: "vue-ui-data-table" }, Wt = { key: 0 }, Gt = ["data-cell"], Kt = { style: {
|
|
255
|
+
display: "flex",
|
|
256
|
+
"align-items": "center",
|
|
257
|
+
gap: "5px",
|
|
258
|
+
"justify-content": "flex-end",
|
|
259
|
+
width: "100%",
|
|
260
|
+
"padding-right": "3px"
|
|
261
|
+
} }, qt = { key: 0 }, Jt = { key: 1 }, Yt = ["data-cell"], Xt = { style: {
|
|
262
|
+
display: "flex",
|
|
263
|
+
"align-items": "center",
|
|
264
|
+
gap: "5px",
|
|
265
|
+
"justify-content": "flex-end",
|
|
266
|
+
width: "100%",
|
|
267
|
+
"padding-right": "3px"
|
|
268
|
+
} }, Zt = { key: 0 }, Qt = { key: 1 }, $t = ["data-cell"], en = { style: {
|
|
269
|
+
display: "flex",
|
|
270
|
+
"align-items": "center",
|
|
271
|
+
gap: "5px",
|
|
272
|
+
"justify-content": "flex-end",
|
|
273
|
+
width: "100%",
|
|
274
|
+
"padding-right": "3px"
|
|
275
|
+
} }, tn = { key: 0 }, nn = { key: 1 }, rn = ["data-cell"], an = { style: {
|
|
276
|
+
display: "flex",
|
|
277
|
+
"align-items": "center",
|
|
278
|
+
gap: "5px",
|
|
279
|
+
"justify-content": "flex-end",
|
|
280
|
+
width: "100%",
|
|
281
|
+
"padding-right": "3px"
|
|
282
|
+
} }, on = { key: 0 }, sn = { key: 1 }, cn = ["data-cell"], ln = { style: {
|
|
283
|
+
display: "flex",
|
|
284
|
+
"align-items": "center",
|
|
285
|
+
gap: "5px",
|
|
286
|
+
"justify-content": "flex-end",
|
|
287
|
+
width: "100%",
|
|
288
|
+
"padding-right": "3px"
|
|
289
|
+
} }, un = { key: 0 }, dn = { key: 1 }, fn = ["data-cell"], pn = { style: {
|
|
290
|
+
display: "flex",
|
|
291
|
+
"align-items": "center",
|
|
292
|
+
gap: "5px",
|
|
293
|
+
"justify-content": "flex-end",
|
|
294
|
+
width: "100%",
|
|
295
|
+
"padding-right": "3px"
|
|
296
|
+
} }, mn = { key: 0 }, hn = { key: 1 }, gn = ["data-cell"], _n = { style: {
|
|
297
|
+
display: "flex",
|
|
298
|
+
"align-items": "center",
|
|
299
|
+
gap: "5px",
|
|
300
|
+
"justify-content": "flex-end",
|
|
301
|
+
width: "100%",
|
|
302
|
+
"padding-right": "3px"
|
|
303
|
+
} }, vn = { key: 0 }, yn = { key: 1 }, bn = ["data-cell"], xn = { style: {
|
|
304
|
+
display: "flex",
|
|
305
|
+
"align-items": "center",
|
|
306
|
+
gap: "5px",
|
|
307
|
+
"justify-content": "flex-end",
|
|
308
|
+
width: "100%",
|
|
309
|
+
"padding-right": "3px"
|
|
310
|
+
} }, Sn = ["data-cell"], Cn = { style: {
|
|
311
|
+
display: "flex",
|
|
312
|
+
"align-items": "center",
|
|
313
|
+
gap: "5px",
|
|
314
|
+
"justify-content": "flex-end",
|
|
315
|
+
width: "100%",
|
|
316
|
+
"padding-right": "3px"
|
|
317
|
+
} }, wn = ["data-cell"], Tn = { style: {
|
|
318
|
+
display: "flex",
|
|
319
|
+
"align-items": "center",
|
|
320
|
+
gap: "5px",
|
|
321
|
+
"justify-content": "flex-end",
|
|
322
|
+
width: "100%",
|
|
323
|
+
"padding-right": "3px"
|
|
324
|
+
} }, En = ["data-cell"], Dn = { style: {
|
|
325
|
+
display: "flex",
|
|
326
|
+
"align-items": "center",
|
|
327
|
+
gap: "5px",
|
|
328
|
+
"justify-content": "flex-end",
|
|
329
|
+
width: "100%",
|
|
330
|
+
"padding-right": "3px"
|
|
331
|
+
} }, On = ["data-cell"], kn = { style: {
|
|
332
|
+
display: "flex",
|
|
333
|
+
"align-items": "center",
|
|
334
|
+
gap: "5px",
|
|
335
|
+
"justify-content": "flex-end",
|
|
336
|
+
width: "100%",
|
|
337
|
+
"padding-right": "3px"
|
|
338
|
+
} }, An = /*#__PURE__*/ ve({
|
|
339
|
+
__name: "vue-ui-chestnut",
|
|
340
|
+
props: {
|
|
341
|
+
config: {
|
|
342
|
+
type: Object,
|
|
343
|
+
default() {
|
|
344
|
+
return {};
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
dataset: {
|
|
348
|
+
type: Array,
|
|
349
|
+
default() {
|
|
350
|
+
return [];
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
emits: [
|
|
355
|
+
"selectRoot",
|
|
356
|
+
"selectBranch",
|
|
357
|
+
"selectNut",
|
|
358
|
+
"copyAlt"
|
|
359
|
+
],
|
|
360
|
+
setup(e, { expose: ve, emit: Re }) {
|
|
361
|
+
Fe((e) => ({ v62f21eec: e.tdo }));
|
|
362
|
+
let An = ke(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), jn = ke(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), Mn = ke(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Nn = ke(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), Pn = ke(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), Fn = ke(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_chestnut: In } = ue(), { isThemeValid: Ln, warnInvalidTheme: Rn } = ge(), O = e, zn = p(() => !!O.dataset && O.dataset.length), k = S(o()), Bn = S(null), Vn = S(0), Hn = S(null), Un = S(null), Wn = S(!1), Gn = S(!1), Kn = S(!1), A = S(!1), j = S(""), M = S({
|
|
363
|
+
level: "root",
|
|
364
|
+
rootIndex: 0,
|
|
365
|
+
branchIndex: 0,
|
|
366
|
+
nutIndex: 0,
|
|
367
|
+
locked: !1
|
|
368
|
+
}), N = S(er()), P = p(() => N.value.userOptions.useCursorPointer), qn = p(() => oe({
|
|
369
|
+
defaultConfig: {
|
|
370
|
+
userOptions: { show: !1 },
|
|
371
|
+
table: { show: !1 },
|
|
372
|
+
style: { chart: {
|
|
373
|
+
backgroundColor: "#99999930",
|
|
374
|
+
layout: {
|
|
375
|
+
grandTotal: { show: !1 },
|
|
376
|
+
roots: {
|
|
377
|
+
stroke: "#6A6A6A",
|
|
378
|
+
labels: { show: !1 }
|
|
379
|
+
},
|
|
380
|
+
verticalSeparator: { stroke: "transparent" },
|
|
381
|
+
branches: {
|
|
382
|
+
stroke: "#6A6A6A",
|
|
383
|
+
underlayerColor: "#6A6A6A90",
|
|
384
|
+
labels: {
|
|
385
|
+
show: !1,
|
|
386
|
+
dataLabels: { show: !1 }
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
} }
|
|
391
|
+
},
|
|
392
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
393
|
+
})), { loading: Jn, FINAL_DATASET: Yn } = fe({
|
|
394
|
+
...Pe(O),
|
|
395
|
+
FINAL_CONFIG: N,
|
|
396
|
+
prepareConfig: er,
|
|
397
|
+
skeletonDataset: O.config?.skeletonDataset ?? [{
|
|
398
|
+
name: "_",
|
|
399
|
+
color: "#969696",
|
|
400
|
+
branches: [
|
|
401
|
+
{
|
|
402
|
+
name: "_",
|
|
403
|
+
value: 32,
|
|
404
|
+
breakdown: [{
|
|
405
|
+
name: "_",
|
|
406
|
+
value: 16,
|
|
407
|
+
color: "#CACACA"
|
|
408
|
+
}, {
|
|
409
|
+
name: "_",
|
|
410
|
+
value: 16,
|
|
411
|
+
color: "#6A6A6A"
|
|
412
|
+
}]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
name: "_",
|
|
416
|
+
value: 16,
|
|
417
|
+
breakdown: [{
|
|
418
|
+
name: "_",
|
|
419
|
+
value: 8,
|
|
420
|
+
color: "#CACACA"
|
|
421
|
+
}, {
|
|
422
|
+
name: "_",
|
|
423
|
+
value: 8,
|
|
424
|
+
color: "#6A6A6A"
|
|
425
|
+
}]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "_",
|
|
429
|
+
value: 8,
|
|
430
|
+
breakdown: [{
|
|
431
|
+
name: "_",
|
|
432
|
+
value: 4,
|
|
433
|
+
color: "#CACACA"
|
|
434
|
+
}, {
|
|
435
|
+
name: "_",
|
|
436
|
+
value: 4,
|
|
437
|
+
color: "#6A6A6A"
|
|
438
|
+
}]
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "_",
|
|
442
|
+
value: 4,
|
|
443
|
+
breakdown: [{
|
|
444
|
+
name: "_",
|
|
445
|
+
value: 2,
|
|
446
|
+
color: "#CACACA"
|
|
447
|
+
}, {
|
|
448
|
+
name: "_",
|
|
449
|
+
value: 2,
|
|
450
|
+
color: "#6A6A6A"
|
|
451
|
+
}]
|
|
452
|
+
}
|
|
453
|
+
]
|
|
454
|
+
}, {
|
|
455
|
+
name: "_",
|
|
456
|
+
color: "#C4C4C4",
|
|
457
|
+
branches: [
|
|
458
|
+
{
|
|
459
|
+
name: "_",
|
|
460
|
+
value: 24,
|
|
461
|
+
breakdown: [{
|
|
462
|
+
name: "_",
|
|
463
|
+
value: 12,
|
|
464
|
+
color: "#CACACA"
|
|
465
|
+
}, {
|
|
466
|
+
name: "_",
|
|
467
|
+
value: 12,
|
|
468
|
+
color: "#6A6A6A"
|
|
469
|
+
}]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
name: "_",
|
|
473
|
+
value: 12,
|
|
474
|
+
breakdown: [{
|
|
475
|
+
name: "_",
|
|
476
|
+
value: 6,
|
|
477
|
+
color: "#CACACA"
|
|
478
|
+
}, {
|
|
479
|
+
name: "_",
|
|
480
|
+
value: 6,
|
|
481
|
+
color: "#6A6A6A"
|
|
482
|
+
}]
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: "_",
|
|
486
|
+
value: 6,
|
|
487
|
+
breakdown: [{
|
|
488
|
+
name: "_",
|
|
489
|
+
value: 3,
|
|
490
|
+
color: "#CACACA"
|
|
491
|
+
}, {
|
|
492
|
+
name: "_",
|
|
493
|
+
value: 3,
|
|
494
|
+
color: "#6A6A6A"
|
|
495
|
+
}]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "_",
|
|
499
|
+
value: 2,
|
|
500
|
+
breakdown: [{
|
|
501
|
+
name: "_",
|
|
502
|
+
value: 1,
|
|
503
|
+
color: "#CACACA"
|
|
504
|
+
}, {
|
|
505
|
+
name: "_",
|
|
506
|
+
value: 1,
|
|
507
|
+
color: "#6A6A6A"
|
|
508
|
+
}]
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
}],
|
|
512
|
+
skeletonConfig: oe({
|
|
513
|
+
defaultConfig: N.value,
|
|
514
|
+
userConfig: qn.value
|
|
515
|
+
})
|
|
516
|
+
}), { userOptionsVisible: Xn, setUserOptionsVisibility: Zn, keepUserOptionState: Qn } = xe({ config: N.value }), { svgRef: $n } = Se({ config: N.value.style.chart.layout.title });
|
|
517
|
+
function er() {
|
|
518
|
+
let e = he({
|
|
519
|
+
userConfig: O.config,
|
|
520
|
+
defaultConfig: In
|
|
521
|
+
}), t = e.theme;
|
|
522
|
+
if (!t) return e;
|
|
523
|
+
if (!Ln.value(e)) return Rn(e), e;
|
|
524
|
+
let n = he({
|
|
525
|
+
userConfig: we[t] || O.config,
|
|
526
|
+
defaultConfig: e
|
|
527
|
+
}), r = he({
|
|
528
|
+
userConfig: O.config,
|
|
529
|
+
defaultConfig: n
|
|
530
|
+
});
|
|
531
|
+
return {
|
|
532
|
+
...r,
|
|
533
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
Ie(() => O.config, (e) => {
|
|
537
|
+
N.value = er(), Xn.value = !N.value.userOptions.showOnChartHover, F.value.showTable = N.value.table.show, Dr();
|
|
538
|
+
}, { deep: !0 });
|
|
539
|
+
let { isPrinting: tr, isImaging: nr, generatePdf: rr, generateImage: ir } = de({
|
|
540
|
+
elementId: `vue-ui-chestnut_${k.value}`,
|
|
541
|
+
fileName: N.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
542
|
+
options: N.value.userOptions.print
|
|
543
|
+
}), ar = p(() => N.value.userOptions.show), or = p(() => r(N.value.customPalette)), F = S({ showTable: N.value.table.show });
|
|
544
|
+
Ie(N, () => {
|
|
545
|
+
F.value = { showTable: N.value.table.show };
|
|
546
|
+
}, { immediate: !0 });
|
|
547
|
+
let sr = S(null), cr = p(() => N.value.table.responsiveBreakpoint), I = S({
|
|
548
|
+
gap: 6,
|
|
549
|
+
padding: {
|
|
550
|
+
top: 102,
|
|
551
|
+
left: 12,
|
|
552
|
+
right: 12,
|
|
553
|
+
bottom: 96
|
|
554
|
+
},
|
|
555
|
+
width: 1024,
|
|
556
|
+
height: 0,
|
|
557
|
+
branchSize: 32,
|
|
558
|
+
branchStart: 128
|
|
559
|
+
}), L = p(() => ({
|
|
560
|
+
left: I.value.padding.left,
|
|
561
|
+
top: I.value.padding.top,
|
|
562
|
+
right: I.value.width - I.value.padding.right,
|
|
563
|
+
bottom: I.value.height - I.value.padding.bottom,
|
|
564
|
+
width: I.value.width - (I.value.padding.left + I.value.padding.right),
|
|
565
|
+
height: I.value.height - (I.value.padding.top + I.value.padding.bottom),
|
|
566
|
+
seedX: I.value.padding.left + 64
|
|
567
|
+
})), R = p(() => Yn.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), z = p(() => (Yn.value.forEach((e, t) => {
|
|
568
|
+
ie({
|
|
569
|
+
datasetObject: e,
|
|
570
|
+
requiredAttributes: ["name", "branches"]
|
|
571
|
+
}).forEach((e) => {
|
|
572
|
+
ne({
|
|
573
|
+
componentName: "VueUiChestnut",
|
|
574
|
+
type: "datasetSerieAttribute",
|
|
575
|
+
property: e,
|
|
576
|
+
index: t,
|
|
577
|
+
debug: Er.value
|
|
578
|
+
});
|
|
579
|
+
}), e.branches && e.branches.forEach((e, n) => {
|
|
580
|
+
ie({
|
|
581
|
+
datasetObject: e,
|
|
582
|
+
requiredAttributes: ["name", "value"]
|
|
583
|
+
}).forEach((e) => {
|
|
584
|
+
ne({
|
|
585
|
+
componentName: "VueUiChestnut",
|
|
586
|
+
type: "datasetSerieAttribute",
|
|
587
|
+
property: e,
|
|
588
|
+
index: `${t} - ${n}`,
|
|
589
|
+
debug: Er.value
|
|
590
|
+
});
|
|
591
|
+
}), e.breakdown && e.breakdown.forEach((e, r) => {
|
|
592
|
+
ie({
|
|
593
|
+
datasetObject: e,
|
|
594
|
+
requiredAttributes: ["name", "value"]
|
|
595
|
+
}).forEach((e) => {
|
|
596
|
+
ne({
|
|
597
|
+
componentName: "VueUiChestnut",
|
|
598
|
+
type: "datasetSerieAttribute",
|
|
599
|
+
property: e,
|
|
600
|
+
index: `${t} - ${n} - ${r}`,
|
|
601
|
+
debug: Er.value
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
});
|
|
606
|
+
}), Yn.value.map((e, t) => {
|
|
607
|
+
let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
|
|
608
|
+
return {
|
|
609
|
+
...e,
|
|
610
|
+
color: le(e.color) || or.value[t] || s[t] || s[t % s.length],
|
|
611
|
+
id: e.id || `root_${t}_${k.value}`,
|
|
612
|
+
type: "root",
|
|
613
|
+
total: n,
|
|
614
|
+
rootIndex: t,
|
|
615
|
+
branches: (e.branches || []).map((r, i) => ({
|
|
616
|
+
...r,
|
|
617
|
+
rootName: e.name,
|
|
618
|
+
rootIndex: t,
|
|
619
|
+
color: le(e.color) || or.value[t] || s[t] || s[t % s.length],
|
|
620
|
+
value: r.value >= 0 ? r.value : 0,
|
|
621
|
+
id: r.id || `branch_${t}_${i}_${k.value}`,
|
|
622
|
+
proportionToRoot: r.value / n,
|
|
623
|
+
type: "branch",
|
|
624
|
+
breakdown: (r.breakdown || []).map((a, o) => ({
|
|
625
|
+
table: {
|
|
626
|
+
rootName: e.name,
|
|
627
|
+
rootValue: n,
|
|
628
|
+
rootToTotal: n / R.value,
|
|
629
|
+
branchName: r.name,
|
|
630
|
+
branchValue: r.value,
|
|
631
|
+
branchToTotal: r.value / R.value,
|
|
632
|
+
branchToRoot: r.value / n,
|
|
633
|
+
nutName: a.name,
|
|
634
|
+
nutValue: a.value,
|
|
635
|
+
nutToTotal: a.value / R.value,
|
|
636
|
+
nutToRoot: a.value / n,
|
|
637
|
+
nutToBranch: a.value / r.value
|
|
638
|
+
},
|
|
639
|
+
...a,
|
|
640
|
+
type: "nut",
|
|
641
|
+
branchName: r.name,
|
|
642
|
+
rootName: e.name,
|
|
643
|
+
branchTotal: r.value >= 0 ? r.value : 0,
|
|
644
|
+
proportionToBranch: a.value / r.value,
|
|
645
|
+
proportionToRoot: a.value / n,
|
|
646
|
+
proportionToTree: a.value / R.value,
|
|
647
|
+
rootIndex: t,
|
|
648
|
+
id: a.id || `nut_${t}_${i}_${o}_${k.value}`,
|
|
649
|
+
color: le(a.color) || or.value[o] || s[o] || s[o % s.length],
|
|
650
|
+
value: a.value >= 0 ? a.value : 0
|
|
651
|
+
}))
|
|
652
|
+
}))
|
|
653
|
+
};
|
|
654
|
+
})));
|
|
655
|
+
function lr() {
|
|
656
|
+
return z.value;
|
|
657
|
+
}
|
|
658
|
+
let ur = Re, dr = p(() => z.value.flatMap((e) => e.branches).length), fr = p(() => Math.max(...z.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), pr = p(() => Math.max(...z.value.flatMap((e) => e.branches.map((e) => e.value)))), mr = p(() => 256 + I.value.padding.left), B = p(() => z.value.sort((e, t) => t.total - e.total).map((e, t) => {
|
|
659
|
+
let n = L.value.height / z.value.length / 2, r = e.total / fr.value * (n > 64 ? 64 : n);
|
|
660
|
+
return {
|
|
661
|
+
...e,
|
|
662
|
+
x: L.value.seedX,
|
|
663
|
+
y: L.value.top + L.value.height / z.value.length * (t + 1) - (L.value.height / z.value.length / 2 + I.value.gap / 2),
|
|
664
|
+
r: r < I.value.branchSize / 2 ? I.value.branchSize / 2 : r
|
|
665
|
+
};
|
|
666
|
+
})), hr = p(() => N.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : N.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : N.value.style.chart.layout.branches.widthRatio), gr = p(() => B.value.flatMap((e) => e.branches)), V = p(() => gr.value.sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
667
|
+
...e,
|
|
668
|
+
y1: t * I.value.branchSize + L.value.top + t * I.value.gap,
|
|
669
|
+
y2: t * I.value.branchSize + I.value.branchSize,
|
|
670
|
+
x1: mr.value,
|
|
671
|
+
x2: 384 * e.value / pr.value * hr.value + mr.value
|
|
672
|
+
}))), _r = p(() => B.value), vr = p(() => _r.value.map((e) => V.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), yr = p(() => _r.value.map((e, t) => vr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
|
|
673
|
+
...t,
|
|
674
|
+
nutIndex: n,
|
|
675
|
+
rootIndex: e.rootIndex,
|
|
676
|
+
branchId: e.id,
|
|
677
|
+
branchName: e.name,
|
|
678
|
+
branchValue: e.value,
|
|
679
|
+
rootName: e.rootName
|
|
680
|
+
})))));
|
|
681
|
+
function br(e) {
|
|
682
|
+
let t = B.value.find((t) => t.rootIndex === e.rootIndex);
|
|
683
|
+
return {
|
|
684
|
+
x: t.x,
|
|
685
|
+
y: t.y,
|
|
686
|
+
r: t.r
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
let H = S(null), U = S(null), W = S(null), G = S(null);
|
|
690
|
+
function K() {
|
|
691
|
+
H.value = null, W.value = null, G.value = null;
|
|
692
|
+
}
|
|
693
|
+
function q(e) {
|
|
694
|
+
if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" ? e.branchName === H.value.name && e.rootIndex === H.value.rootIndex : !1;
|
|
695
|
+
if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" ? e.branchName === W.value.name && e.rootIndex === W.value.rootIndex : !1;
|
|
696
|
+
if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
|
|
697
|
+
if (ti.value && A.value) {
|
|
698
|
+
if (M.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
|
|
699
|
+
if (M.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? $r.value && e.id === $r.value.id : (e.type, !1);
|
|
700
|
+
if (M.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? ei.value && e.id === ei.value.id : e.type === "nut" ? ei.value && e.branchName === ei.value.name && e.rootIndex === ei.value.rootIndex : !1;
|
|
701
|
+
}
|
|
702
|
+
return !0;
|
|
703
|
+
}
|
|
704
|
+
function xr(e) {
|
|
705
|
+
K();
|
|
706
|
+
let t = _r.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (vr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
707
|
+
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "nut", M.value.nutIndex = 0, je(() => {
|
|
708
|
+
H.value = e, W.value = e, U.value = ee({
|
|
709
|
+
series: e.breakdown,
|
|
710
|
+
base: 1
|
|
711
|
+
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, 80, 80), ur("selectNut", e.breakdown), Q();
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
function J() {
|
|
715
|
+
H.value = null, U.value = null, ur("selectNut", null);
|
|
716
|
+
}
|
|
717
|
+
function Sr(e) {
|
|
718
|
+
let t = _r.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (vr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
719
|
+
t !== -1 && (M.value.rootIndex = t), n !== -1 && (M.value.branchIndex = n), M.value.level = "branch", M.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), ur("selectBranch", null), Q()) : (K(), W.value = e, ur("selectBranch", e), Q());
|
|
720
|
+
}
|
|
721
|
+
function Cr(e) {
|
|
722
|
+
let t = _r.value.findIndex((t) => t.id === e.id);
|
|
723
|
+
t !== -1 && (M.value.rootIndex = t), M.value.level = "root", M.value.branchIndex = 0, M.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), ur("selectRoot", null), Q()) : (K(), G.value = e, ur("selectRoot", e), Q());
|
|
724
|
+
}
|
|
725
|
+
function wr() {
|
|
726
|
+
return L.value.bottom - (H.value.y1 + 180) < 0 ? 0 : L.value.bottom;
|
|
727
|
+
}
|
|
728
|
+
function Tr(e) {
|
|
729
|
+
return e.proportion * 100 > N.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
730
|
+
}
|
|
731
|
+
Me(() => {
|
|
732
|
+
Dr();
|
|
733
|
+
});
|
|
734
|
+
let Er = p(() => N.value.debug);
|
|
735
|
+
function Dr() {
|
|
736
|
+
t(O.dataset) && ne({
|
|
737
|
+
componentName: "VueUiChestnut",
|
|
738
|
+
type: "dataset",
|
|
739
|
+
debug: Er.value
|
|
740
|
+
});
|
|
741
|
+
let e = dr.value * (I.value.branchSize + I.value.gap) + I.value.padding.top + I.value.padding.bottom;
|
|
742
|
+
I.value.height = e;
|
|
743
|
+
}
|
|
744
|
+
let Y = p(() => ({
|
|
745
|
+
head: [
|
|
746
|
+
N.value.table.th.translations.rootName,
|
|
747
|
+
N.value.table.th.translations.rootValue,
|
|
748
|
+
N.value.table.th.translations.rootToTotal,
|
|
749
|
+
N.value.table.th.translations.branchName,
|
|
750
|
+
N.value.table.th.translations.branchValue,
|
|
751
|
+
N.value.table.th.translations.branchToRoot,
|
|
752
|
+
N.value.table.th.translations.branchToTotal,
|
|
753
|
+
N.value.table.th.translations.nutName,
|
|
754
|
+
N.value.table.th.translations.nutValue,
|
|
755
|
+
N.value.table.th.translations.nutToBranch,
|
|
756
|
+
N.value.table.th.translations.nutToRoot,
|
|
757
|
+
N.value.table.th.translations.nutToTotal
|
|
758
|
+
],
|
|
759
|
+
body: z.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
|
|
760
|
+
}));
|
|
761
|
+
function Or(e = null) {
|
|
762
|
+
je(() => {
|
|
763
|
+
let t = [
|
|
764
|
+
[N.value.style.chart.layout.title.text],
|
|
765
|
+
[N.value.style.chart.layout.title.subtitle.text],
|
|
766
|
+
[""],
|
|
767
|
+
["Grand total", R.value],
|
|
768
|
+
[""]
|
|
769
|
+
], n = Y.value.head, r = Y.value.body.map((e, t) => [
|
|
770
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
|
|
771
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
|
|
772
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
|
|
773
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
|
|
774
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
|
|
775
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
|
|
776
|
+
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
|
|
777
|
+
e.nutName,
|
|
778
|
+
e.nutValue,
|
|
779
|
+
e.nutToBranch,
|
|
780
|
+
e.nutToRoot,
|
|
781
|
+
e.nutToTotal
|
|
782
|
+
]), a = i(t.concat([n]).concat(r));
|
|
783
|
+
e ? e(a) : te({
|
|
784
|
+
csvContent: a,
|
|
785
|
+
title: N.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
786
|
+
});
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
let kr = S(!1);
|
|
790
|
+
function Ar(e) {
|
|
791
|
+
kr.value = e, Vn.value += 1;
|
|
792
|
+
}
|
|
793
|
+
function jr() {
|
|
794
|
+
F.value.showTable = !F.value.showTable;
|
|
795
|
+
}
|
|
796
|
+
let Mr = S(!1);
|
|
797
|
+
function Nr() {
|
|
798
|
+
Mr.value = !Mr.value;
|
|
799
|
+
}
|
|
800
|
+
async function Pr({ scale: e = 2 } = {}) {
|
|
801
|
+
if (!Bn.value) return;
|
|
802
|
+
let { width: t, height: n } = Bn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await _e({
|
|
803
|
+
domElement: Bn.value,
|
|
804
|
+
base64: !0,
|
|
805
|
+
img: !0,
|
|
806
|
+
scale: e
|
|
807
|
+
});
|
|
808
|
+
return {
|
|
809
|
+
imageUri: i,
|
|
810
|
+
base64: a,
|
|
811
|
+
title: N.value.style.chart.layout.title.text,
|
|
812
|
+
width: t,
|
|
813
|
+
height: n,
|
|
814
|
+
aspectRatio: r
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function Fr(e) {
|
|
818
|
+
let t = br(e), n = e.x1, r = e.y1, i = I.value.branchSize, a = t.x + t.r / 2, o = t.y;
|
|
819
|
+
return [
|
|
820
|
+
`M ${n},${r}`,
|
|
821
|
+
`C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
|
|
822
|
+
`C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
|
|
823
|
+
"Z"
|
|
824
|
+
].join(" ");
|
|
825
|
+
}
|
|
826
|
+
let Ir = p(() => {
|
|
827
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = F.value.showTable;
|
|
828
|
+
return {
|
|
829
|
+
component: e ? Fn : jn,
|
|
830
|
+
title: `${N.value.style.chart.layout.title.text}${N.value.style.chart.layout.title.subtitle.text ? `: ${N.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
831
|
+
props: e ? {
|
|
832
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
833
|
+
color: N.value.table.th.color,
|
|
834
|
+
headerColor: N.value.table.th.color,
|
|
835
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
836
|
+
isFullscreen: kr.value,
|
|
837
|
+
fullscreenParent: Bn.value,
|
|
838
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
839
|
+
isCursorPointer: P.value
|
|
840
|
+
} : {
|
|
841
|
+
hideDetails: !0,
|
|
842
|
+
config: {
|
|
843
|
+
open: t,
|
|
844
|
+
maxHeight: 1e4,
|
|
845
|
+
body: {
|
|
846
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
847
|
+
color: N.value.style.chart.color
|
|
848
|
+
},
|
|
849
|
+
head: {
|
|
850
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
851
|
+
color: N.value.style.chart.color
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
});
|
|
857
|
+
Ie(() => F.value.showTable, async (e) => {
|
|
858
|
+
N.value.table.show || (e && N.value.table.useDialog && Hn.value ? (await je(), Hn.value.open()) : "close" in Hn.value && Hn.value.close());
|
|
859
|
+
});
|
|
860
|
+
let { isResponsive: Lr } = Ce(sr, cr);
|
|
861
|
+
function Rr() {
|
|
862
|
+
F.value.showTable = !1, Un.value && Un.value.setTableIconState(!1);
|
|
863
|
+
}
|
|
864
|
+
let zr = p(() => z.value.map((e, t) => ({
|
|
865
|
+
...e,
|
|
866
|
+
display: `${e.name}: ${u(N.value.style.chart.layout.roots.labels.formatter, e.total, c({
|
|
867
|
+
p: N.value.style.chart.layout.legend.prefix,
|
|
868
|
+
v: e.total,
|
|
869
|
+
s: N.value.style.chart.layout.legend.suffix,
|
|
870
|
+
r: N.value.style.chart.layout.legend.roundingValue
|
|
871
|
+
}), { datapoint: e })} (${c({
|
|
872
|
+
v: e.total / R.value * 100,
|
|
873
|
+
s: "%",
|
|
874
|
+
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
875
|
+
})})`
|
|
876
|
+
}))), Br = p(() => zr.value.map((e) => ({
|
|
877
|
+
color: e.color,
|
|
878
|
+
name: e.display,
|
|
879
|
+
shape: "circle"
|
|
880
|
+
}))), Vr = p(() => N.value.style.chart.backgroundColor), Hr = p(() => ({
|
|
881
|
+
...N.value.style.chart.layout.legend,
|
|
882
|
+
textAlign: "center",
|
|
883
|
+
show: !0,
|
|
884
|
+
position: "bottom"
|
|
885
|
+
})), { exportSvg: Ur, getSvg: Wr } = me({
|
|
886
|
+
svg: $n,
|
|
887
|
+
title: p(() => N.value.style.chart.layout.title),
|
|
888
|
+
legend: Hr,
|
|
889
|
+
legendItems: Br,
|
|
890
|
+
backgroundColor: Vr,
|
|
891
|
+
titleEmbedded: !0
|
|
892
|
+
});
|
|
893
|
+
async function Gr({ isCb: e }) {
|
|
894
|
+
Gn.value = !0, await je();
|
|
895
|
+
try {
|
|
896
|
+
if (e) {
|
|
897
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Wr();
|
|
898
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
899
|
+
blob: e,
|
|
900
|
+
url: t,
|
|
901
|
+
text: n,
|
|
902
|
+
dataUrl: r
|
|
903
|
+
}));
|
|
904
|
+
} else await Promise.resolve(Ur());
|
|
905
|
+
} finally {
|
|
906
|
+
Gn.value = !1;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function Kr(e) {
|
|
910
|
+
if (e?.stage === "start") {
|
|
911
|
+
Wn.value = !0;
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
if (e?.stage === "end") {
|
|
915
|
+
Wn.value = !1;
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
ir();
|
|
919
|
+
}
|
|
920
|
+
async function qr() {
|
|
921
|
+
if (ur("copyAlt", {
|
|
922
|
+
config: N.value,
|
|
923
|
+
dataset: z.value
|
|
924
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
925
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
926
|
+
return;
|
|
927
|
+
}
|
|
928
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
929
|
+
config: N.value,
|
|
930
|
+
dataset: z.value
|
|
931
|
+
}));
|
|
932
|
+
}
|
|
933
|
+
function Jr(e) {
|
|
934
|
+
if (!e) return "";
|
|
935
|
+
let t = c({
|
|
936
|
+
p: N.value.style.chart.layout.legend.prefix,
|
|
937
|
+
v: e.total,
|
|
938
|
+
s: N.value.style.chart.layout.legend.suffix,
|
|
939
|
+
r: N.value.style.chart.layout.legend.roundingValue
|
|
940
|
+
}), n = c({
|
|
941
|
+
v: e.total / R.value * 100,
|
|
942
|
+
s: "%",
|
|
943
|
+
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
944
|
+
});
|
|
945
|
+
return `Root ${e.name}. Value ${t}. ${n} of total.`;
|
|
946
|
+
}
|
|
947
|
+
function Yr(e) {
|
|
948
|
+
if (!e) return "";
|
|
949
|
+
let t = c({
|
|
950
|
+
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
951
|
+
v: e.value,
|
|
952
|
+
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
953
|
+
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
954
|
+
}), n = c({
|
|
955
|
+
v: e.proportionToRoot * 100,
|
|
956
|
+
s: "%",
|
|
957
|
+
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
958
|
+
});
|
|
959
|
+
return `Branch ${e.name}. Root ${e.rootName}. Value ${t}. ${n} of root ${e.rootName}.`;
|
|
960
|
+
}
|
|
961
|
+
function Xr(e) {
|
|
962
|
+
if (!e) return "";
|
|
963
|
+
let t = c({
|
|
964
|
+
p: N.value.style.chart.layout.legend.prefix,
|
|
965
|
+
v: e.value,
|
|
966
|
+
s: N.value.style.chart.layout.legend.suffix,
|
|
967
|
+
r: N.value.style.chart.layout.nuts.selected.labels.roundingValue
|
|
968
|
+
}), n = c({
|
|
969
|
+
v: e.proportionToBranch * 100,
|
|
970
|
+
s: "%",
|
|
971
|
+
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
972
|
+
});
|
|
973
|
+
return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${t}. ${n} of branch ${e.branchName}.`;
|
|
974
|
+
}
|
|
975
|
+
let Zr = p(() => _r.value[M.value.rootIndex] || null), X = p(() => (vr.value[M.value.rootIndex] || [])[M.value.branchIndex] || null), Qr = p(() => ((yr.value[M.value.rootIndex] || [])[M.value.branchIndex] || [])[M.value.nutIndex] || null), Z = p(() => Zr.value), $r = p(() => X.value), ei = p(() => M.value.level === "nut" ? X.value : null), ti = p(() => Kn.value);
|
|
976
|
+
function Q() {
|
|
977
|
+
if (M.value.level === "root") {
|
|
978
|
+
j.value = Jr(Zr.value);
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
if (M.value.level === "branch") {
|
|
982
|
+
j.value = Yr(X.value);
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
M.value.level === "nut" && (j.value = Xr(Qr.value));
|
|
986
|
+
}
|
|
987
|
+
function $() {
|
|
988
|
+
M.value = {
|
|
989
|
+
level: "root",
|
|
990
|
+
rootIndex: 0,
|
|
991
|
+
branchIndex: 0,
|
|
992
|
+
nutIndex: 0,
|
|
993
|
+
locked: !1
|
|
994
|
+
}, j.value = "";
|
|
995
|
+
}
|
|
996
|
+
function ni() {
|
|
997
|
+
let e = vr.value[M.value.rootIndex] || [];
|
|
998
|
+
if (!e.length) {
|
|
999
|
+
M.value.branchIndex = 0;
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
M.value.branchIndex >= e.length && (M.value.branchIndex = 0), M.value.branchIndex < 0 && (M.value.branchIndex = e.length - 1);
|
|
1003
|
+
}
|
|
1004
|
+
function ri() {
|
|
1005
|
+
let e = (yr.value[M.value.rootIndex] || [])[M.value.branchIndex] || [];
|
|
1006
|
+
if (!e.length) {
|
|
1007
|
+
M.value.nutIndex = 0;
|
|
1008
|
+
return;
|
|
1009
|
+
}
|
|
1010
|
+
M.value.nutIndex >= e.length && (M.value.nutIndex = 0), M.value.nutIndex < 0 && (M.value.nutIndex = e.length - 1);
|
|
1011
|
+
}
|
|
1012
|
+
function ii(e) {
|
|
1013
|
+
if (M.value.level === "root") {
|
|
1014
|
+
let t = _r.value.length;
|
|
1015
|
+
if (!t) return;
|
|
1016
|
+
M.value.rootIndex += e, M.value.rootIndex >= t && (M.value.rootIndex = 0), M.value.rootIndex < 0 && (M.value.rootIndex = t - 1), M.value.branchIndex = 0, M.value.nutIndex = 0, Q();
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
if (M.value.level === "branch") {
|
|
1020
|
+
M.value.branchIndex += e, ni(), M.value.nutIndex = 0, Q();
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
M.value.level === "nut" && (M.value.nutIndex += e, ri(), Q());
|
|
1024
|
+
}
|
|
1025
|
+
function ai(e) {
|
|
1026
|
+
if (e > 0) {
|
|
1027
|
+
if (M.value.level === "root") {
|
|
1028
|
+
if (!(vr.value[M.value.rootIndex] || []).length) return;
|
|
1029
|
+
M.value.level = "branch", M.value.branchIndex = 0, M.value.nutIndex = 0, Q();
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
if (M.value.level === "branch") {
|
|
1033
|
+
if (!((yr.value[M.value.rootIndex] || [])[M.value.branchIndex] || []).length) return;
|
|
1034
|
+
M.value.level = "nut", M.value.nutIndex = 0, X.value ? xr(X.value) : Q();
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
if (M.value.level === "nut") {
|
|
1040
|
+
J(), W.value = null, M.value.level = "branch", M.value.nutIndex = 0, Q();
|
|
1041
|
+
return;
|
|
1042
|
+
}
|
|
1043
|
+
M.value.level === "branch" && (W.value = null, G.value = null, M.value.level = "root", M.value.nutIndex = 0, Q());
|
|
1044
|
+
}
|
|
1045
|
+
function oi() {
|
|
1046
|
+
if (M.value.level === "root" && Zr.value) {
|
|
1047
|
+
Cr(Zr.value), j.value = `${Jr(Zr.value)} selected.`;
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
if (M.value.level === "branch" && X.value) {
|
|
1051
|
+
Sr(X.value), j.value = `${Yr(X.value)} selected.`;
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
M.value.level === "nut" && X.value && Qr.value && (xr(X.value), j.value = `${Xr(Qr.value)} details opened.`);
|
|
1055
|
+
}
|
|
1056
|
+
function si() {
|
|
1057
|
+
Kn.value = !0, A.value = !1;
|
|
1058
|
+
}
|
|
1059
|
+
function ci() {
|
|
1060
|
+
Kn.value = !1, A.value = !1, j.value = "", !G.value && !W.value && !H.value && $();
|
|
1061
|
+
}
|
|
1062
|
+
function li(e) {
|
|
1063
|
+
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1064
|
+
if (!(!t && !n && !r && !i && !a && !o)) {
|
|
1065
|
+
if (e.preventDefault(), e.stopPropagation(), Kn.value ||= !0, o) {
|
|
1066
|
+
K(), $(), A.value = !1;
|
|
1067
|
+
return;
|
|
1068
|
+
}
|
|
1069
|
+
if ((t || n || r || i) && (A.value = !0), t) {
|
|
1070
|
+
ii(-1);
|
|
1071
|
+
return;
|
|
1072
|
+
}
|
|
1073
|
+
if (n) {
|
|
1074
|
+
ii(1);
|
|
1075
|
+
return;
|
|
1076
|
+
}
|
|
1077
|
+
if (r) {
|
|
1078
|
+
ai(-1);
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
if (i) {
|
|
1082
|
+
ai(1);
|
|
1083
|
+
return;
|
|
1084
|
+
}
|
|
1085
|
+
a && oi();
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
let ui = p(() => ({
|
|
1089
|
+
headers: Y.value.head,
|
|
1090
|
+
rows: Y.value.body.map((e) => [
|
|
1091
|
+
e.rootName,
|
|
1092
|
+
e.rootValue,
|
|
1093
|
+
c({
|
|
1094
|
+
v: e.rootToTotal * 100,
|
|
1095
|
+
s: "%",
|
|
1096
|
+
r: N.value.table.td.roundingPercentage
|
|
1097
|
+
}),
|
|
1098
|
+
e.branchName,
|
|
1099
|
+
e.branchValue,
|
|
1100
|
+
c({
|
|
1101
|
+
v: e.branchToRoot * 100,
|
|
1102
|
+
s: "%",
|
|
1103
|
+
r: N.value.table.td.roundingPercentage
|
|
1104
|
+
}),
|
|
1105
|
+
c({
|
|
1106
|
+
v: e.branchToTotal * 100,
|
|
1107
|
+
s: "%",
|
|
1108
|
+
r: N.value.table.td.roundingPercentage
|
|
1109
|
+
}),
|
|
1110
|
+
e.nutName,
|
|
1111
|
+
e.nutValue,
|
|
1112
|
+
c({
|
|
1113
|
+
v: e.nutToBranch * 100,
|
|
1114
|
+
s: "%",
|
|
1115
|
+
r: N.value.table.td.roundingPercentage
|
|
1116
|
+
}),
|
|
1117
|
+
c({
|
|
1118
|
+
v: e.nutToRoot * 100,
|
|
1119
|
+
s: "%",
|
|
1120
|
+
r: N.value.table.td.roundingPercentage
|
|
1121
|
+
}),
|
|
1122
|
+
c({
|
|
1123
|
+
v: e.nutToTotal * 100,
|
|
1124
|
+
s: "%",
|
|
1125
|
+
r: N.value.table.td.roundingPercentage
|
|
1126
|
+
})
|
|
1127
|
+
])
|
|
1128
|
+
}));
|
|
1129
|
+
return ve({
|
|
1130
|
+
getData: lr,
|
|
1131
|
+
getImage: Pr,
|
|
1132
|
+
generatePdf: rr,
|
|
1133
|
+
generateCsv: Or,
|
|
1134
|
+
generateImage: ir,
|
|
1135
|
+
generateSvg: Gr,
|
|
1136
|
+
toggleTable: jr,
|
|
1137
|
+
toggleAnnotator: Nr,
|
|
1138
|
+
toggleFullscreen: Ar,
|
|
1139
|
+
copyAlt: qr
|
|
1140
|
+
}), (e, t) => (x(), h("div", {
|
|
1141
|
+
class: v(`vue-data-ui-component vue-ui-chestnut ${kr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1142
|
+
ref_key: "chestnutChart",
|
|
1143
|
+
ref: Bn,
|
|
1144
|
+
id: `vue-ui-chestnut_${k.value}`,
|
|
1145
|
+
style: b(`font-family:${N.value.style.fontFamily};width:100%; text-align:center;background:${N.value.style.chart.backgroundColor}`),
|
|
1146
|
+
onMouseenter: t[12] ||= () => E(Zn)(!0),
|
|
1147
|
+
onMouseleave: t[13] ||= () => E(Zn)(!1)
|
|
1148
|
+
}, [
|
|
1149
|
+
g("div", {
|
|
1150
|
+
id: `chart-instructions-${k.value}`,
|
|
1151
|
+
class: "sr-only"
|
|
1152
|
+
}, [g("p", null, T(N.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
1153
|
+
g("div", Ve, T(j.value), 1),
|
|
1154
|
+
ui.value?.rows?.length ? (x(), Te(be, {
|
|
1155
|
+
key: 0,
|
|
1156
|
+
uid: k.value,
|
|
1157
|
+
head: ui.value.headers,
|
|
1158
|
+
body: ui.value.rows,
|
|
1159
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
1160
|
+
caption: N.value.a11y.translations.tableCaption
|
|
1161
|
+
}, null, 8, [
|
|
1162
|
+
"uid",
|
|
1163
|
+
"head",
|
|
1164
|
+
"body",
|
|
1165
|
+
"notice",
|
|
1166
|
+
"caption"
|
|
1167
|
+
])) : m("", !0),
|
|
1168
|
+
N.value.userOptions.buttons.annotator ? (x(), Te(E(Mn), {
|
|
1169
|
+
key: 1,
|
|
1170
|
+
svgRef: E($n),
|
|
1171
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1172
|
+
color: N.value.style.chart.color,
|
|
1173
|
+
active: Mr.value,
|
|
1174
|
+
isCursorPointer: P.value,
|
|
1175
|
+
onClose: Nr
|
|
1176
|
+
}, {
|
|
1177
|
+
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1178
|
+
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
1179
|
+
"annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
|
|
1180
|
+
"annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
|
|
1181
|
+
"annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
|
|
1182
|
+
"annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
|
|
1183
|
+
_: 3
|
|
1184
|
+
}, 8, [
|
|
1185
|
+
"svgRef",
|
|
1186
|
+
"backgroundColor",
|
|
1187
|
+
"color",
|
|
1188
|
+
"active",
|
|
1189
|
+
"isCursorPointer"
|
|
1190
|
+
])) : m("", !0),
|
|
1191
|
+
ar.value ? (x(), h("div", He, null, 512)) : m("", !0),
|
|
1192
|
+
N.value.userOptions.show && zn.value && (E(Qn) || E(Xn)) ? (x(), Te(E(Nn), {
|
|
1193
|
+
ref_key: "userOptionsRef",
|
|
1194
|
+
ref: Un,
|
|
1195
|
+
key: `user_options_${Vn.value}`,
|
|
1196
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
1197
|
+
color: N.value.style.chart.color,
|
|
1198
|
+
isImaging: E(nr),
|
|
1199
|
+
isPrinting: E(tr),
|
|
1200
|
+
uid: k.value,
|
|
1201
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
1202
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
1203
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
1204
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
1205
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
1206
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
1207
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
1208
|
+
isFullscreen: kr.value,
|
|
1209
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
1210
|
+
chartElement: Bn.value,
|
|
1211
|
+
position: N.value.userOptions.position,
|
|
1212
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
1213
|
+
isAnnotation: Mr.value,
|
|
1214
|
+
callbacks: N.value.userOptions.callbacks,
|
|
1215
|
+
printScale: N.value.userOptions.print.scale,
|
|
1216
|
+
tableDialog: N.value.table.useDialog,
|
|
1217
|
+
isCursorPointer: P.value,
|
|
1218
|
+
onToggleFullscreen: Ar,
|
|
1219
|
+
onGeneratePdf: E(rr),
|
|
1220
|
+
onGenerateCsv: Or,
|
|
1221
|
+
onGenerateImage: Kr,
|
|
1222
|
+
onGenerateSvg: Gr,
|
|
1223
|
+
onToggleTable: jr,
|
|
1224
|
+
onToggleAnnotator: Nr,
|
|
1225
|
+
onCopyAlt: qr,
|
|
1226
|
+
style: b({ visibility: E(Qn) ? E(Xn) ? "visible" : "hidden" : "visible" })
|
|
1227
|
+
}, Ee({ _: 2 }, [
|
|
1228
|
+
e.$slots.menuIcon ? {
|
|
1229
|
+
name: "menuIcon",
|
|
1230
|
+
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
1231
|
+
isOpen: t,
|
|
1232
|
+
color: n
|
|
1233
|
+
})), void 0, !0)]),
|
|
1234
|
+
key: "0"
|
|
1235
|
+
} : void 0,
|
|
1236
|
+
e.$slots.optionPdf ? {
|
|
1237
|
+
name: "optionPdf",
|
|
1238
|
+
fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1239
|
+
key: "1"
|
|
1240
|
+
} : void 0,
|
|
1241
|
+
e.$slots.optionCsv ? {
|
|
1242
|
+
name: "optionCsv",
|
|
1243
|
+
fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1244
|
+
key: "2"
|
|
1245
|
+
} : void 0,
|
|
1246
|
+
e.$slots.optionImg ? {
|
|
1247
|
+
name: "optionImg",
|
|
1248
|
+
fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1249
|
+
key: "3"
|
|
1250
|
+
} : void 0,
|
|
1251
|
+
e.$slots.optionSvg ? {
|
|
1252
|
+
name: "optionSvg",
|
|
1253
|
+
fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1254
|
+
key: "4"
|
|
1255
|
+
} : void 0,
|
|
1256
|
+
e.$slots.optionTable ? {
|
|
1257
|
+
name: "optionTable",
|
|
1258
|
+
fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1259
|
+
key: "5"
|
|
1260
|
+
} : void 0,
|
|
1261
|
+
e.$slots.optionFullscreen ? {
|
|
1262
|
+
name: "optionFullscreen",
|
|
1263
|
+
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
|
|
1264
|
+
toggleFullscreen: t,
|
|
1265
|
+
isFullscreen: n
|
|
1266
|
+
})), void 0, !0)]),
|
|
1267
|
+
key: "6"
|
|
1268
|
+
} : void 0,
|
|
1269
|
+
e.$slots.optionAnnotator ? {
|
|
1270
|
+
name: "optionAnnotator",
|
|
1271
|
+
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
|
|
1272
|
+
toggleAnnotator: t,
|
|
1273
|
+
isAnnotator: n
|
|
1274
|
+
})), void 0, !0)]),
|
|
1275
|
+
key: "7"
|
|
1276
|
+
} : void 0,
|
|
1277
|
+
e.$slots.optionAltCopy ? {
|
|
1278
|
+
name: "optionAltCopy",
|
|
1279
|
+
fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
|
|
1280
|
+
key: "8"
|
|
1281
|
+
} : void 0,
|
|
1282
|
+
e.$slots["custom-menu-before"] ? {
|
|
1283
|
+
name: "custom-menu-before",
|
|
1284
|
+
fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1285
|
+
key: "9"
|
|
1286
|
+
} : void 0,
|
|
1287
|
+
e.$slots["custom-menu-after"] ? {
|
|
1288
|
+
name: "custom-menu-after",
|
|
1289
|
+
fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1290
|
+
key: "10"
|
|
1291
|
+
} : void 0
|
|
1292
|
+
]), 1032, [
|
|
1293
|
+
"backgroundColor",
|
|
1294
|
+
"color",
|
|
1295
|
+
"isImaging",
|
|
1296
|
+
"isPrinting",
|
|
1297
|
+
"uid",
|
|
1298
|
+
"hasPdf",
|
|
1299
|
+
"hasImg",
|
|
1300
|
+
"hasSvg",
|
|
1301
|
+
"hasXls",
|
|
1302
|
+
"hasTable",
|
|
1303
|
+
"hasFullscreen",
|
|
1304
|
+
"hasAltCopy",
|
|
1305
|
+
"isFullscreen",
|
|
1306
|
+
"titles",
|
|
1307
|
+
"chartElement",
|
|
1308
|
+
"position",
|
|
1309
|
+
"hasAnnotator",
|
|
1310
|
+
"isAnnotation",
|
|
1311
|
+
"callbacks",
|
|
1312
|
+
"printScale",
|
|
1313
|
+
"tableDialog",
|
|
1314
|
+
"isCursorPointer",
|
|
1315
|
+
"onGeneratePdf",
|
|
1316
|
+
"style"
|
|
1317
|
+
])) : m("", !0),
|
|
1318
|
+
g("div", Ue, [I.value.height > 0 ? (x(), h("svg", {
|
|
1319
|
+
key: 0,
|
|
1320
|
+
ref_key: "svgRef",
|
|
1321
|
+
ref: $n,
|
|
1322
|
+
xmlns: E(ce),
|
|
1323
|
+
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1324
|
+
class: v({
|
|
1325
|
+
"vue-data-ui-fullscreen--on": kr.value,
|
|
1326
|
+
"vue-data-ui-fulscreen--off": !kr.value
|
|
1327
|
+
}),
|
|
1328
|
+
viewBox: `0 0 ${I.value.width <= 0 ? 10 : I.value.width} ${I.value.height <= 0 ? 10 : I.value.height}`,
|
|
1329
|
+
style: b(`overflow:visible;background:transparent;color:${N.value.style.chart.color}`),
|
|
1330
|
+
tabindex: "0",
|
|
1331
|
+
onFocus: si,
|
|
1332
|
+
onBlur: ci,
|
|
1333
|
+
onKeydown: li
|
|
1334
|
+
}, [
|
|
1335
|
+
Oe(E(Pn)),
|
|
1336
|
+
e.$slots["chart-background"] ? (x(), h("foreignObject", {
|
|
1337
|
+
key: 0,
|
|
1338
|
+
x: 0,
|
|
1339
|
+
y: 0,
|
|
1340
|
+
width: I.value.width <= 0 ? 10 : I.value.width,
|
|
1341
|
+
height: I.value.height <= 0 ? 10 : I.value.height,
|
|
1342
|
+
style: { pointerEvents: "none" }
|
|
1343
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : m("", !0),
|
|
1344
|
+
H.value ? m("", !0) : (x(), h("g", Ke, [N.value.style.chart.layout.title.text ? (x(), h("text", {
|
|
1345
|
+
key: 0,
|
|
1346
|
+
"text-anchor": "middle",
|
|
1347
|
+
fill: N.value.style.chart.layout.title.color,
|
|
1348
|
+
"font-weight": N.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
1349
|
+
"font-size": N.value.style.chart.layout.title.fontSize,
|
|
1350
|
+
x: I.value.width / 2,
|
|
1351
|
+
y: 12 + N.value.style.chart.layout.title.fontSize + N.value.style.chart.layout.title.offsetY,
|
|
1352
|
+
onClick: t[0] ||= () => {
|
|
1353
|
+
K(), $(), A.value = !1;
|
|
1354
|
+
}
|
|
1355
|
+
}, T(N.value.style.chart.layout.title.text), 9, qe)) : m("", !0), N.value.style.chart.layout.title.subtitle.text ? (x(), h("text", {
|
|
1356
|
+
key: 1,
|
|
1357
|
+
"text-anchor": "middle",
|
|
1358
|
+
fill: N.value.style.chart.layout.title.subtitle.color,
|
|
1359
|
+
"font-weight": N.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
1360
|
+
"font-size": N.value.style.chart.layout.title.subtitle.fontSize,
|
|
1361
|
+
x: I.value.width / 2,
|
|
1362
|
+
y: 48 + N.value.style.chart.layout.title.subtitle.fontSize + N.value.style.chart.layout.title.subtitle.offsetY,
|
|
1363
|
+
onClick: t[1] ||= () => {
|
|
1364
|
+
K(), $(), A.value = !1;
|
|
1365
|
+
}
|
|
1366
|
+
}, T(N.value.style.chart.layout.title.subtitle.text), 9, Je)) : m("", !0)])),
|
|
1367
|
+
g("defs", null, [
|
|
1368
|
+
(x(!0), h(f, null, C(z.value, (e, t) => (x(), Te(ye, {
|
|
1369
|
+
t: "radial",
|
|
1370
|
+
cx: "50%",
|
|
1371
|
+
cy: "50%",
|
|
1372
|
+
r: "50%",
|
|
1373
|
+
fx: "50%",
|
|
1374
|
+
fy: "50%",
|
|
1375
|
+
id: `root_gradient_${k.value}_${e.rootIndex}`,
|
|
1376
|
+
key: `root_gradient_${k.value}_${e.rootIndex}`,
|
|
1377
|
+
stops: [[
|
|
1378
|
+
"0%",
|
|
1379
|
+
E(d)(E(n)(e.color, .05), 100 - N.value.style.chart.layout.roots.gradientIntensity),
|
|
1380
|
+
1
|
|
1381
|
+
], [
|
|
1382
|
+
"100%",
|
|
1383
|
+
e.color,
|
|
1384
|
+
1
|
|
1385
|
+
]]
|
|
1386
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
1387
|
+
(x(!0), h(f, null, C(z.value, (e) => (x(), Te(ye, {
|
|
1388
|
+
t: "linear",
|
|
1389
|
+
x1: "0%",
|
|
1390
|
+
y1: "0%",
|
|
1391
|
+
x2: "100%",
|
|
1392
|
+
y2: "0%",
|
|
1393
|
+
id: `branch_gradient_${k.value}_${e.rootIndex}`,
|
|
1394
|
+
key: `branch_gradient_${k.value}_${e.rootIndex}`,
|
|
1395
|
+
stops: [[
|
|
1396
|
+
"0%",
|
|
1397
|
+
e.color,
|
|
1398
|
+
1
|
|
1399
|
+
], [
|
|
1400
|
+
"100%",
|
|
1401
|
+
E(d)(E(n)(e.color, .02), 100 - N.value.style.chart.layout.branches.gradientIntensity),
|
|
1402
|
+
1
|
|
1403
|
+
]]
|
|
1404
|
+
}, null, 8, ["id", "stops"]))), 128)),
|
|
1405
|
+
Oe(ye, {
|
|
1406
|
+
t: "radial",
|
|
1407
|
+
cx: "50%",
|
|
1408
|
+
cy: "50%",
|
|
1409
|
+
r: "50%",
|
|
1410
|
+
fx: "50%",
|
|
1411
|
+
fy: "50%",
|
|
1412
|
+
id: `nutpick_${k.value}`,
|
|
1413
|
+
stops: [
|
|
1414
|
+
[
|
|
1415
|
+
"0%",
|
|
1416
|
+
E(d)("#FFFFFF", 0),
|
|
1417
|
+
0
|
|
1418
|
+
],
|
|
1419
|
+
[
|
|
1420
|
+
"80%",
|
|
1421
|
+
E(d)("#FFFFFF", N.value.style.chart.layout.nuts.selected.gradientIntensity),
|
|
1422
|
+
1
|
|
1423
|
+
],
|
|
1424
|
+
[
|
|
1425
|
+
"100%",
|
|
1426
|
+
E(d)("#FFFFFF", 0),
|
|
1427
|
+
0
|
|
1428
|
+
]
|
|
1429
|
+
]
|
|
1430
|
+
}, null, 8, ["id", "stops"]),
|
|
1431
|
+
Oe(ye, {
|
|
1432
|
+
t: "radial",
|
|
1433
|
+
cx: "50%",
|
|
1434
|
+
cy: "50%",
|
|
1435
|
+
r: "50%",
|
|
1436
|
+
fx: "50%",
|
|
1437
|
+
fy: "50%",
|
|
1438
|
+
id: `nut_${k.value}`,
|
|
1439
|
+
stops: [
|
|
1440
|
+
[
|
|
1441
|
+
"0%",
|
|
1442
|
+
E(d)("#FFFFFF", 0),
|
|
1443
|
+
0
|
|
1444
|
+
],
|
|
1445
|
+
[
|
|
1446
|
+
"80%",
|
|
1447
|
+
E(d)("#FFFFFF", N.value.style.chart.layout.nuts.gradientIntensity),
|
|
1448
|
+
1
|
|
1449
|
+
],
|
|
1450
|
+
[
|
|
1451
|
+
"100%",
|
|
1452
|
+
E(d)("#FFFFFF", 0),
|
|
1453
|
+
0
|
|
1454
|
+
]
|
|
1455
|
+
]
|
|
1456
|
+
}, null, 8, ["id", "stops"]),
|
|
1457
|
+
Oe(ye, {
|
|
1458
|
+
t: "radial",
|
|
1459
|
+
cx: "50%",
|
|
1460
|
+
cy: "50%",
|
|
1461
|
+
r: "50%",
|
|
1462
|
+
fx: "50%",
|
|
1463
|
+
fy: "50%",
|
|
1464
|
+
id: `nut_underlayer_${k.value}`,
|
|
1465
|
+
stops: [
|
|
1466
|
+
[
|
|
1467
|
+
"0%",
|
|
1468
|
+
E(d)(N.value.style.chart.backgroundColor, 100),
|
|
1469
|
+
1
|
|
1470
|
+
],
|
|
1471
|
+
[
|
|
1472
|
+
"80%",
|
|
1473
|
+
E(d)(N.value.style.chart.backgroundColor, 60),
|
|
1474
|
+
1
|
|
1475
|
+
],
|
|
1476
|
+
[
|
|
1477
|
+
"100%",
|
|
1478
|
+
E(d)(N.value.style.chart.backgroundColor, 0),
|
|
1479
|
+
1
|
|
1480
|
+
]
|
|
1481
|
+
]
|
|
1482
|
+
}, null, 8, ["id", "stops"])
|
|
1483
|
+
]),
|
|
1484
|
+
N.value.style.chart.layout.grandTotal.show ? (x(), h("g", Ye, [g("text", {
|
|
1485
|
+
x: L.value.seedX,
|
|
1486
|
+
y: 32 + N.value.style.chart.layout.grandTotal.offsetY,
|
|
1487
|
+
"font-size": N.value.style.chart.layout.grandTotal.fontSize,
|
|
1488
|
+
"font-weight": N.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1489
|
+
fill: N.value.style.chart.layout.grandTotal.color,
|
|
1490
|
+
"text-anchor": "middle",
|
|
1491
|
+
onClick: t[2] ||= () => {
|
|
1492
|
+
K(), $(), A.value = !1;
|
|
1493
|
+
}
|
|
1494
|
+
}, T(N.value.style.chart.layout.grandTotal.text), 9, Xe), g("text", {
|
|
1495
|
+
x: L.value.seedX,
|
|
1496
|
+
y: 38 + N.value.style.chart.layout.grandTotal.fontSize + N.value.style.chart.layout.grandTotal.offsetY,
|
|
1497
|
+
"font-size": N.value.style.chart.layout.grandTotal.fontSize,
|
|
1498
|
+
"font-weight": N.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1499
|
+
fill: N.value.style.chart.layout.grandTotal.color,
|
|
1500
|
+
"text-anchor": "middle",
|
|
1501
|
+
onClick: t[3] ||= () => {
|
|
1502
|
+
K(), $(), A.value = !1;
|
|
1503
|
+
}
|
|
1504
|
+
}, T(E(u)(N.value.style.chart.layout.grandTotal.formatter, R.value, E(c)({
|
|
1505
|
+
p: N.value.style.chart.layout.grandTotal.prefix,
|
|
1506
|
+
v: R.value,
|
|
1507
|
+
s: N.value.style.chart.layout.grandTotal.suffix,
|
|
1508
|
+
r: N.value.style.chart.layout.grandTotal.roundingValue
|
|
1509
|
+
}))), 9, Ze)])) : m("", !0),
|
|
1510
|
+
(x(!0), h(f, null, C(V.value, (e) => (x(), h("g", null, [g("defs", null, [Oe(ye, {
|
|
1511
|
+
t: "linear",
|
|
1512
|
+
id: `link_grad_${e.id}`,
|
|
1513
|
+
stops: [[
|
|
1514
|
+
"0%",
|
|
1515
|
+
e.color,
|
|
1516
|
+
1
|
|
1517
|
+
], [
|
|
1518
|
+
"100%",
|
|
1519
|
+
E(d)(e.color, N.value.style.chart.layout.links.opacity),
|
|
1520
|
+
1
|
|
1521
|
+
]]
|
|
1522
|
+
}, null, 8, ["id", "stops"])]), g("path", {
|
|
1523
|
+
d: Fr(e),
|
|
1524
|
+
stroke: E(d)(e.color, N.value.style.chart.layout.links.opacity),
|
|
1525
|
+
fill: `url(#link_grad_${e.id})`,
|
|
1526
|
+
"stroke-linecap": "round",
|
|
1527
|
+
"stroke-linejoin": "round",
|
|
1528
|
+
style: b(`opacity:${+!!q(e)}`),
|
|
1529
|
+
onClick: t[4] ||= () => {
|
|
1530
|
+
K(), $(), A.value = !1;
|
|
1531
|
+
}
|
|
1532
|
+
}, null, 12, Qe)]))), 256)),
|
|
1533
|
+
(x(!0), h(f, null, C(B.value, (e) => (x(), h("circle", {
|
|
1534
|
+
cx: e.x,
|
|
1535
|
+
cy: e.y,
|
|
1536
|
+
r: e.r,
|
|
1537
|
+
fill: N.value.style.chart.layout.roots.underlayerColor,
|
|
1538
|
+
stroke: "none",
|
|
1539
|
+
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
|
|
1540
|
+
}, null, 12, $e))), 256)),
|
|
1541
|
+
(x(!0), h(f, null, C(B.value, (e, t) => (x(), h("circle", {
|
|
1542
|
+
"aria-label": Jr(e),
|
|
1543
|
+
cx: e.x,
|
|
1544
|
+
cy: e.y,
|
|
1545
|
+
r: e.r,
|
|
1546
|
+
fill: N.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${k.value}_${e.rootIndex})` : e.color,
|
|
1547
|
+
stroke: N.value.style.chart.layout.roots.stroke,
|
|
1548
|
+
"stroke-width": N.value.style.chart.layout.roots.strokeWidth,
|
|
1549
|
+
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1550
|
+
onClick: (t) => Cr(e)
|
|
1551
|
+
}, null, 12, et))), 256)),
|
|
1552
|
+
N.value.style.chart.layout.roots.labels.show ? (x(), h("g", tt, [(x(!0), h(f, null, C(B.value, (e, t) => (x(), h("text", {
|
|
1553
|
+
x: e.x,
|
|
1554
|
+
y: e.y + N.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
1555
|
+
"text-anchor": "middle",
|
|
1556
|
+
"font-size": N.value.style.chart.layout.roots.labels.fontSize,
|
|
1557
|
+
fill: N.value.style.chart.layout.roots.labels.adaptColorToBackground ? E(se)(e.color) : N.value.style.chart.layout.roots.labels.color,
|
|
1558
|
+
"font-weight": "bold",
|
|
1559
|
+
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1560
|
+
onClick: (t) => Cr(e)
|
|
1561
|
+
}, T(E(u)(N.value.style.chart.layout.roots.labels.formatter, e.total, E(c)({
|
|
1562
|
+
p: N.value.style.chart.layout.roots.labels.prefix,
|
|
1563
|
+
v: e.total,
|
|
1564
|
+
s: N.value.style.chart.layout.roots.labels.suffix,
|
|
1565
|
+
r: N.value.style.chart.layout.roots.labels.roundingValue
|
|
1566
|
+
}), { datapoint: e })), 13, nt))), 256)), (x(!0), h(f, null, C(B.value, (e) => (x(), h("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (x(), h("g", rt, [g("text", {
|
|
1567
|
+
x: e.x,
|
|
1568
|
+
y: e.y + e.r + 24,
|
|
1569
|
+
"text-anchor": "middle",
|
|
1570
|
+
fill: N.value.style.chart.layout.roots.labels.name.color,
|
|
1571
|
+
"font-size": N.value.style.chart.layout.roots.labels.name.fontSize,
|
|
1572
|
+
"font-weight": N.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
1573
|
+
onClick: t[5] ||= () => {
|
|
1574
|
+
K(), $(), A.value = !1;
|
|
1575
|
+
}
|
|
1576
|
+
}, T(e.name), 9, it)])) : m("", !0)]))), 256))])) : m("", !0),
|
|
1577
|
+
(x(!0), h(f, null, C(V.value, (e) => (x(), h("rect", {
|
|
1578
|
+
x: e.x1,
|
|
1579
|
+
y: e.y1,
|
|
1580
|
+
height: I.value.branchSize,
|
|
1581
|
+
width: e.x2 - e.x1,
|
|
1582
|
+
fill: N.value.style.chart.layout.branches.underlayerColor,
|
|
1583
|
+
rx: N.value.style.chart.layout.branches.borderRadius,
|
|
1584
|
+
stroke: "none",
|
|
1585
|
+
style: b(`opacity:${q(e) ? 1 : .05}`),
|
|
1586
|
+
onClick: (t) => Sr(e)
|
|
1587
|
+
}, null, 12, at))), 256)),
|
|
1588
|
+
(x(!0), h(f, null, C(V.value, (e, t) => (x(), h("rect", {
|
|
1589
|
+
"aria-label": Yr(e),
|
|
1590
|
+
x: e.x1,
|
|
1591
|
+
y: e.y1,
|
|
1592
|
+
height: I.value.branchSize,
|
|
1593
|
+
width: e.x2 - e.x1,
|
|
1594
|
+
fill: N.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${k.value}_${e.rootIndex})` : e.color,
|
|
1595
|
+
rx: N.value.style.chart.layout.branches.borderRadius,
|
|
1596
|
+
stroke: N.value.style.chart.layout.branches.stroke,
|
|
1597
|
+
"stroke-width": N.value.style.chart.layout.branches.strokeWidth,
|
|
1598
|
+
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1599
|
+
onClick: (t) => Sr(e)
|
|
1600
|
+
}, null, 12, ot))), 256)),
|
|
1601
|
+
N.value.style.chart.layout.branches.labels.dataLabels.show ? (x(), h("g", st, [(x(!0), h(f, null, C(V.value, (e) => (x(), h("g", null, [e.proportionToRoot * 100 > N.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (x(), h("text", {
|
|
1602
|
+
key: 0,
|
|
1603
|
+
x: e.x1 + 6,
|
|
1604
|
+
y: e.y1 + I.value.branchSize / 1.5,
|
|
1605
|
+
"text-anchor": "start",
|
|
1606
|
+
fill: E(se)(e.color),
|
|
1607
|
+
"font-size": N.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1608
|
+
"font-weight": "bold",
|
|
1609
|
+
style: b(`cursor:${P.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1610
|
+
onClick: (t) => Sr(e)
|
|
1611
|
+
}, T(E(u)(N.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, E(c)({
|
|
1612
|
+
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1613
|
+
v: e.value,
|
|
1614
|
+
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1615
|
+
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1616
|
+
}), { datapoint: e })), 13, ct)) : m("", !0)]))), 256))])) : m("", !0),
|
|
1617
|
+
(x(!0), h(f, null, C(V.value, (e, t) => (x(), h("g", null, [(x(!0), h(f, null, C(E(ee)({
|
|
1618
|
+
series: e.breakdown,
|
|
1619
|
+
base: 1
|
|
1620
|
+
}, e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX, e.y1 + I.value.branchSize / 2, I.value.branchSize / 3, I.value.branchSize / 3), (t, n) => (x(), h("path", {
|
|
1621
|
+
d: t.path,
|
|
1622
|
+
stroke: t.color,
|
|
1623
|
+
"stroke-width": 10,
|
|
1624
|
+
fill: "none",
|
|
1625
|
+
style: b(`opacity:${q(e) ? 1 : .1}`)
|
|
1626
|
+
}, null, 12, lt))), 256)), g("circle", {
|
|
1627
|
+
"aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
|
|
1628
|
+
fill: N.value.style.chart.layout.nuts.useGradient ? `url(#nut_${k.value})` : "transparent",
|
|
1629
|
+
cx: e.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1630
|
+
cy: e.y1 + I.value.branchSize / 2,
|
|
1631
|
+
r: I.value.branchSize / 2 + 2,
|
|
1632
|
+
onClick: (t) => xr(e),
|
|
1633
|
+
style: b(`cursor:${P.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
|
|
1634
|
+
}, null, 12, ut)]))), 256)),
|
|
1635
|
+
N.value.style.chart.layout.branches.labels.show && !W.value ? (x(), h("g", dt, [(x(!0), h(f, null, C(V.value, (e) => (x(), h("text", {
|
|
1636
|
+
x: e.x2 + I.value.branchSize + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1637
|
+
y: e.y1 + I.value.branchSize / 2 + 5,
|
|
1638
|
+
"font-size": N.value.style.chart.layout.branches.labels.fontSize,
|
|
1639
|
+
"font-weight": N.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
1640
|
+
fill: N.value.style.chart.layout.branches.labels.color,
|
|
1641
|
+
"text-anchor": "start",
|
|
1642
|
+
style: b(`opacity:${q(e) ? 1 : .1}`)
|
|
1643
|
+
}, T(e.name), 13, ft))), 256))])) : m("", !0),
|
|
1644
|
+
g("line", {
|
|
1645
|
+
x1: 256 + I.value.padding.left,
|
|
1646
|
+
x2: 256 + I.value.padding.left,
|
|
1647
|
+
y1: L.value.top,
|
|
1648
|
+
y2: L.value.bottom,
|
|
1649
|
+
stroke: N.value.style.chart.layout.verticalSeparator.stroke,
|
|
1650
|
+
"stroke-width": N.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
1651
|
+
}, null, 8, pt),
|
|
1652
|
+
!H.value && !W.value ? (x(), h("foreignObject", {
|
|
1653
|
+
key: 6,
|
|
1654
|
+
x: 0,
|
|
1655
|
+
y: L.value.bottom,
|
|
1656
|
+
height: I.value.height - L.value.bottom,
|
|
1657
|
+
width: I.value.width,
|
|
1658
|
+
style: { overflow: "visible" },
|
|
1659
|
+
"data-no-svg-export": "",
|
|
1660
|
+
onClick: t[6] ||= () => {
|
|
1661
|
+
K(), $(), A.value = !1;
|
|
1662
|
+
}
|
|
1663
|
+
}, [g("div", ht, [g("div", gt, [(x(!0), h(f, null, C(B.value, (e) => (x(), h("div", { style: b(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${N.value.style.chart.layout.legend.fontSize}px;`) }, [(x(), h("svg", _t, [g("circle", {
|
|
1664
|
+
cx: "10",
|
|
1665
|
+
cy: "10",
|
|
1666
|
+
r: "10",
|
|
1667
|
+
fill: e.color,
|
|
1668
|
+
stroke: "none"
|
|
1669
|
+
}, null, 8, vt)])), E(Jn) ? m("", !0) : (x(), h(f, { key: 0 }, [
|
|
1670
|
+
g("span", null, T(e.name) + ":", 1),
|
|
1671
|
+
g("b", null, T(E(u)(N.value.style.chart.layout.roots.labels.formatter, e.total, E(c)({
|
|
1672
|
+
p: N.value.style.chart.layout.legend.prefix,
|
|
1673
|
+
v: e.total,
|
|
1674
|
+
s: N.value.style.chart.layout.legend.suffix,
|
|
1675
|
+
r: N.value.style.chart.layout.legend.roundingValue
|
|
1676
|
+
}), { datapoint: e })), 1),
|
|
1677
|
+
De(" (" + T(E(c)({
|
|
1678
|
+
v: e.total / R.value * 100,
|
|
1679
|
+
s: "%",
|
|
1680
|
+
r: N.value.style.chart.layout.legend.roundingPercentage
|
|
1681
|
+
})) + ") ", 1)
|
|
1682
|
+
], 64))], 4))), 256))])])], 8, mt)) : m("", !0),
|
|
1683
|
+
H.value && U.value ? (x(), h("g", yt, [
|
|
1684
|
+
(x(), h("foreignObject", {
|
|
1685
|
+
x: 0,
|
|
1686
|
+
y: wr(),
|
|
1687
|
+
height: I.value.height - L.value.bottom,
|
|
1688
|
+
width: I.value.width,
|
|
1689
|
+
style: { overflow: "visible" },
|
|
1690
|
+
onClick: t[7] ||= () => {
|
|
1691
|
+
K(), $(), A.value = !1;
|
|
1692
|
+
}
|
|
1693
|
+
}, [g("div", xt, [g("b", null, T(H.value.name), 1), g("div", St, [(x(!0), h(f, null, C(H.value.breakdown, (e, t) => (x(), h("div", { style: b(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${N.value.style.chart.layout.legend.fontSize}px;`) }, [(x(), h("svg", Ct, [g("circle", {
|
|
1694
|
+
cx: "10",
|
|
1695
|
+
cy: "10",
|
|
1696
|
+
r: "10",
|
|
1697
|
+
fill: e.color,
|
|
1698
|
+
stroke: "none"
|
|
1699
|
+
}, null, 8, wt)])), g("span", null, [
|
|
1700
|
+
De(T(e.name) + ": ", 1),
|
|
1701
|
+
g("b", null, T(N.value.style.chart.layout.legend.prefix) + " " + T(e.value.toFixed(N.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + T(N.value.style.chart.layout.legend.suffix), 1),
|
|
1702
|
+
De(" (" + T((e.proportionToBranch * 100).toFixed(N.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1703
|
+
])], 4))), 256))])])], 8, bt)),
|
|
1704
|
+
g("circle", {
|
|
1705
|
+
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1706
|
+
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1707
|
+
r: 256,
|
|
1708
|
+
fill: `url(#nut_underlayer_${k.value})`,
|
|
1709
|
+
onClick: J,
|
|
1710
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1711
|
+
}, null, 10, Tt),
|
|
1712
|
+
(x(!0), h(f, null, C(U.value, (e) => (x(), h("g", null, [Tr(e) ? (x(), h("path", {
|
|
1713
|
+
key: 0,
|
|
1714
|
+
d: E(ae)(e, {
|
|
1715
|
+
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1716
|
+
y: H.value.y1 + I.value.branchSize / 2
|
|
1717
|
+
}, 16, 16, !1, !1, 64),
|
|
1718
|
+
stroke: e.color,
|
|
1719
|
+
"stroke-width": "1",
|
|
1720
|
+
"stroke-linecap": "round",
|
|
1721
|
+
"stroke-linejoin": "round",
|
|
1722
|
+
fill: "none",
|
|
1723
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1724
|
+
}, null, 10, Et)) : m("", !0)]))), 256)),
|
|
1725
|
+
g("circle", {
|
|
1726
|
+
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1727
|
+
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1728
|
+
r: 118,
|
|
1729
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1730
|
+
onClick: J,
|
|
1731
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1732
|
+
}, null, 10, Dt),
|
|
1733
|
+
(x(!0), h(f, null, C(U.value, (e) => (x(), h("path", {
|
|
1734
|
+
d: e.path,
|
|
1735
|
+
stroke: e.color,
|
|
1736
|
+
"stroke-width": 64,
|
|
1737
|
+
fill: "none",
|
|
1738
|
+
onClick: J,
|
|
1739
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1740
|
+
}, null, 10, Ot))), 256)),
|
|
1741
|
+
g("circle", {
|
|
1742
|
+
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1743
|
+
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1744
|
+
r: 110,
|
|
1745
|
+
fill: `url(#nutpick_${k.value})`,
|
|
1746
|
+
onClick: J,
|
|
1747
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1748
|
+
}, null, 10, kt),
|
|
1749
|
+
g("circle", {
|
|
1750
|
+
cx: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1751
|
+
cy: H.value.y1 + I.value.branchSize / 2,
|
|
1752
|
+
r: 64,
|
|
1753
|
+
fill: N.value.style.chart.backgroundColor,
|
|
1754
|
+
onClick: J,
|
|
1755
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1756
|
+
}, null, 10, At),
|
|
1757
|
+
g("text", {
|
|
1758
|
+
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1759
|
+
y: H.value.y1 + 8,
|
|
1760
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
1761
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1762
|
+
"font-weight": N.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1763
|
+
"text-anchor": "middle",
|
|
1764
|
+
onClick: J,
|
|
1765
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1766
|
+
}, T(N.value.translations.total), 11, jt),
|
|
1767
|
+
g("text", {
|
|
1768
|
+
x: H.value.x2 + 24 + N.value.style.chart.layout.nuts.offsetX,
|
|
1769
|
+
y: H.value.y1 + 36,
|
|
1770
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
1771
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1772
|
+
"font-weight": N.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1773
|
+
"text-anchor": "middle",
|
|
1774
|
+
onClick: J,
|
|
1775
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1776
|
+
}, T(E(u)(N.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, E(c)({
|
|
1777
|
+
p: N.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1778
|
+
v: H.value.value,
|
|
1779
|
+
s: N.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1780
|
+
r: N.value.style.chart.layout.nuts.selected.roundingValue
|
|
1781
|
+
}), { datapoint: H.value })), 11, Mt),
|
|
1782
|
+
(x(!0), h(f, null, C(U.value, (e, t) => (x(), h("g", null, [Tr(e) ? (x(), h("text", {
|
|
1783
|
+
key: 0,
|
|
1784
|
+
x: E(l)(e).x,
|
|
1785
|
+
"text-anchor": E(l)(e).anchor,
|
|
1786
|
+
y: E(re)(e) - N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1787
|
+
fill: e.color,
|
|
1788
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1789
|
+
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1790
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1791
|
+
}, " ⬤ ", 14, Nt)) : m("", !0), Tr(e) ? (x(), h("text", {
|
|
1792
|
+
key: 1,
|
|
1793
|
+
x: E(l)(e, !0).x,
|
|
1794
|
+
"text-anchor": E(l)(e, !0).anchor,
|
|
1795
|
+
y: E(re)(e),
|
|
1796
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1797
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1798
|
+
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1799
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1800
|
+
}, T(H.value.breakdown[t].name), 15, Pt)) : m("", !0)]))), 256)),
|
|
1801
|
+
(x(!0), h(f, null, C(U.value, (e, t) => (x(), h("g", null, [
|
|
1802
|
+
Tr(e) ? (x(), h("text", {
|
|
1803
|
+
key: 0,
|
|
1804
|
+
x: E(l)(e, !0).x,
|
|
1805
|
+
"text-anchor": E(l)(e).anchor,
|
|
1806
|
+
y: E(re)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1807
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1808
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1809
|
+
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1810
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1811
|
+
}, T(E(c)({
|
|
1812
|
+
v: H.value.breakdown[t].value / H.value.value * 100,
|
|
1813
|
+
s: "%",
|
|
1814
|
+
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1815
|
+
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].branchName) + " " + T(E(u)(N.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[t].value, E(c)({
|
|
1816
|
+
p: N.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1817
|
+
v: H.value.breakdown[t].value,
|
|
1818
|
+
s: N.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1819
|
+
r: N.value.style.chart.layout.nuts.selected.roundingValue
|
|
1820
|
+
}), {
|
|
1821
|
+
datapoint: U.value,
|
|
1822
|
+
seriesIndex: t
|
|
1823
|
+
})), 15, Ft)) : m("", !0),
|
|
1824
|
+
Tr(e) ? (x(), h("text", {
|
|
1825
|
+
key: 1,
|
|
1826
|
+
x: E(l)(e, !0).x,
|
|
1827
|
+
"text-anchor": E(l)(e).anchor,
|
|
1828
|
+
y: E(re)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1829
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1830
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1831
|
+
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1832
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1833
|
+
}, T(E(c)({
|
|
1834
|
+
v: H.value.breakdown[t].proportionToRoot * 100,
|
|
1835
|
+
s: "%",
|
|
1836
|
+
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1837
|
+
})) + " " + T(N.value.translations.of) + " " + T(H.value.breakdown[t].rootName), 15, It)) : m("", !0),
|
|
1838
|
+
Tr(e) ? (x(), h("text", {
|
|
1839
|
+
key: 2,
|
|
1840
|
+
x: E(l)(e, !0).x,
|
|
1841
|
+
"text-anchor": E(l)(e).anchor,
|
|
1842
|
+
y: E(re)(e) + N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1843
|
+
fill: N.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1844
|
+
"font-size": N.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1845
|
+
style: b(`font-weight:${N.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1846
|
+
class: v(N.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1847
|
+
}, T(E(c)({
|
|
1848
|
+
v: H.value.breakdown[t].proportionToTree * 100,
|
|
1849
|
+
s: "%",
|
|
1850
|
+
r: N.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1851
|
+
})) + " " + T(N.value.translations.proportionToTree), 15, Lt)) : m("", !0)
|
|
1852
|
+
]))), 256))
|
|
1853
|
+
])) : m("", !0),
|
|
1854
|
+
(x(!0), h(f, null, C(V.value, (e) => (x(), h("g", null, [
|
|
1855
|
+
W.value && W.value.id === e.id && !H.value ? (x(), h("text", {
|
|
1856
|
+
key: 0,
|
|
1857
|
+
x: e.x1 + 6,
|
|
1858
|
+
y: e.y1 + I.value.branchSize + 24,
|
|
1859
|
+
"font-weight": "bold",
|
|
1860
|
+
"text-anchor": "start",
|
|
1861
|
+
"font-size": N.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1862
|
+
fill: N.value.style.chart.layout.branches.labels.color,
|
|
1863
|
+
onClick: t[8] ||= () => {
|
|
1864
|
+
K(), $(), A.value = !1;
|
|
1865
|
+
}
|
|
1866
|
+
}, T(e.name) + ": " + T(E(u)(N.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, E(c)({
|
|
1867
|
+
p: N.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1868
|
+
v: e.value,
|
|
1869
|
+
s: N.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1870
|
+
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1871
|
+
}), { datapoint: e })), 9, Rt)) : m("", !0),
|
|
1872
|
+
W.value && W.value.id === e.id && !H.value ? (x(), h("text", {
|
|
1873
|
+
key: 1,
|
|
1874
|
+
x: e.x1 + 6,
|
|
1875
|
+
y: e.y1 + I.value.branchSize + 48,
|
|
1876
|
+
"text-anchor": "start",
|
|
1877
|
+
"font-size": N.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1878
|
+
fill: N.value.style.chart.layout.branches.labels.color,
|
|
1879
|
+
onClick: t[9] ||= () => {
|
|
1880
|
+
K(), $(), A.value = !1;
|
|
1881
|
+
}
|
|
1882
|
+
}, T(E(c)({
|
|
1883
|
+
v: e.proportionToRoot * 100,
|
|
1884
|
+
s: "%",
|
|
1885
|
+
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1886
|
+
})) + " " + T(N.value.translations.of) + " " + T(e.rootName), 9, zt)) : m("", !0),
|
|
1887
|
+
W.value && W.value.id === e.id && !H.value ? (x(), h("text", {
|
|
1888
|
+
key: 2,
|
|
1889
|
+
x: e.x1 + 6,
|
|
1890
|
+
y: e.y1 + I.value.branchSize + 72,
|
|
1891
|
+
"text-anchor": "start",
|
|
1892
|
+
"font-size": N.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1893
|
+
fill: N.value.style.chart.layout.branches.labels.color,
|
|
1894
|
+
onClick: t[10] ||= () => {
|
|
1895
|
+
K(), $(), A.value = !1;
|
|
1896
|
+
}
|
|
1897
|
+
}, T(E(c)({
|
|
1898
|
+
v: e.value / R.value * 100,
|
|
1899
|
+
s: "%",
|
|
1900
|
+
r: N.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1901
|
+
})) + " " + T(N.value.translations.proportionToTree), 9, Bt)) : m("", !0)
|
|
1902
|
+
]))), 256)),
|
|
1903
|
+
w(e.$slots, "svg", { svg: {
|
|
1904
|
+
...I.value,
|
|
1905
|
+
isPrintingImg: E(tr) || E(nr) || Wn.value,
|
|
1906
|
+
isPrintingSvg: Gn.value
|
|
1907
|
+
} }, void 0, !0)
|
|
1908
|
+
], 46, We)) : m("", !0)]),
|
|
1909
|
+
e.$slots.watermark ? (x(), h("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(tr) || E(nr) || Wn.value || Gn.value })), void 0, !0)])) : m("", !0),
|
|
1910
|
+
w(e.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
1911
|
+
e.$slots.source ? (x(), h("div", Ht, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1912
|
+
zn.value && N.value.userOptions.buttons.table ? (x(), Te(Ne(Ir.value.component), Ae({ key: 6 }, Ir.value.props, {
|
|
1913
|
+
ref_key: "tableUnit",
|
|
1914
|
+
ref: Hn,
|
|
1915
|
+
onClose: Rr
|
|
1916
|
+
}), Ee({
|
|
1917
|
+
content: D(() => [g("div", {
|
|
1918
|
+
ref_key: "tableContainer",
|
|
1919
|
+
ref: sr,
|
|
1920
|
+
class: "vue-ui-chestnut-table",
|
|
1921
|
+
style: b(`${N.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1922
|
+
}, [g("div", { style: b(`${N.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [N.value.table.useDialog ? m("", !0) : (x(), h("div", {
|
|
1923
|
+
key: 0,
|
|
1924
|
+
role: "button",
|
|
1925
|
+
tabindex: "0",
|
|
1926
|
+
style: b(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${P.value ? "pointer" : "default"}; background:${N.value.table.th.backgroundColor};`),
|
|
1927
|
+
onClick: Rr,
|
|
1928
|
+
onKeypress: Le(Rr, ["enter"])
|
|
1929
|
+
}, [Oe(E(An), {
|
|
1930
|
+
name: "close",
|
|
1931
|
+
stroke: N.value.table.th.color,
|
|
1932
|
+
"stroke-width": 2
|
|
1933
|
+
}, null, 8, ["stroke"])], 36)), g("div", {
|
|
1934
|
+
style: { width: "100%" },
|
|
1935
|
+
class: v({ "vue-ui-responsive": E(Lr) })
|
|
1936
|
+
}, [g("table", Ut, [
|
|
1937
|
+
N.value.table.useDialog ? m("", !0) : (x(), h("caption", {
|
|
1938
|
+
key: 0,
|
|
1939
|
+
style: b({
|
|
1940
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
1941
|
+
color: N.value.table.th.color,
|
|
1942
|
+
outline: N.value.table.th.outline
|
|
1943
|
+
}),
|
|
1944
|
+
class: "vue-ui-data-table__caption"
|
|
1945
|
+
}, [De(T(N.value.style.chart.layout.title.text) + " ", 1), N.value.style.chart.layout.title.subtitle.text ? (x(), h("span", Wt, T(N.value.style.chart.layout.title.subtitle.text), 1)) : m("", !0)], 4)),
|
|
1946
|
+
g("thead", null, [g("tr", {
|
|
1947
|
+
role: "row",
|
|
1948
|
+
style: b(`background:${N.value.table.th.backgroundColor};color:${N.value.table.th.color}`)
|
|
1949
|
+
}, [(x(!0), h(f, null, C(Y.value.head, (e) => (x(), h("th", { style: b(`outline:${N.value.table.th.outline}`) }, T(e), 5))), 256))], 4)]),
|
|
1950
|
+
g("tbody", null, [(x(!0), h(f, null, C(Y.value.body, (e, t) => (x(), h("tr", {
|
|
1951
|
+
class: v({
|
|
1952
|
+
"vue-ui-data-table__tbody__row": !0,
|
|
1953
|
+
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1954
|
+
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1955
|
+
}),
|
|
1956
|
+
style: b(`background:${N.value.table.td.backgroundColor};color:${N.value.table.td.color}`)
|
|
1957
|
+
}, [
|
|
1958
|
+
g("td", {
|
|
1959
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1960
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1961
|
+
"data-cell": Y.value.head[0]
|
|
1962
|
+
}, [g("div", Kt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), h("span", qt)) : (x(), h("span", Jt, T(e.rootName), 1))])], 12, Gt),
|
|
1963
|
+
g("td", {
|
|
1964
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1965
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1966
|
+
"data-cell": Y.value.head[1]
|
|
1967
|
+
}, [g("div", Xt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), h("span", Zt)) : (x(), h("span", Qt, T(e.rootValue.toFixed(N.value.table.td.roundingValue)), 1))])], 12, Yt),
|
|
1968
|
+
g("td", {
|
|
1969
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1970
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1971
|
+
"data-cell": Y.value.head[2]
|
|
1972
|
+
}, [g("div", en, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (x(), h("span", tn)) : (x(), h("span", nn, T((e.rootToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, $t),
|
|
1973
|
+
g("td", {
|
|
1974
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1975
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1976
|
+
"data-cell": Y.value.head[3]
|
|
1977
|
+
}, [g("div", an, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), h("span", on)) : (x(), h("span", sn, T(e.branchName), 1))])], 12, rn),
|
|
1978
|
+
g("td", {
|
|
1979
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1980
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1981
|
+
"data-cell": Y.value.head[4]
|
|
1982
|
+
}, [g("div", ln, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), h("span", un)) : (x(), h("span", dn, T(e.branchValue.toFixed(N.value.table.td.roundingValue)), 1))])], 12, cn),
|
|
1983
|
+
g("td", {
|
|
1984
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1985
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1986
|
+
"data-cell": Y.value.head[5]
|
|
1987
|
+
}, [g("div", pn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), h("span", mn)) : (x(), h("span", hn, T((e.branchToRoot * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, fn),
|
|
1988
|
+
g("td", {
|
|
1989
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1990
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1991
|
+
"data-cell": Y.value.head[6]
|
|
1992
|
+
}, [g("div", _n, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (x(), h("span", vn)) : (x(), h("span", yn, T((e.branchToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1))])], 12, gn),
|
|
1993
|
+
g("td", {
|
|
1994
|
+
class: "vue-ui-data-table__tbody__td",
|
|
1995
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
1996
|
+
"data-cell": Y.value.head[7]
|
|
1997
|
+
}, [g("div", xn, T(e.nutName), 1)], 12, bn),
|
|
1998
|
+
g("td", {
|
|
1999
|
+
class: "vue-ui-data-table__tbody__td",
|
|
2000
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
2001
|
+
"data-cell": Y.value.head[8]
|
|
2002
|
+
}, [g("div", Cn, T(e.nutValue.toFixed(N.value.table.td.roundingValue)), 1)], 12, Sn),
|
|
2003
|
+
g("td", {
|
|
2004
|
+
class: "vue-ui-data-table__tbody__td",
|
|
2005
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
2006
|
+
"data-cell": Y.value.head[9]
|
|
2007
|
+
}, [g("div", Tn, T((e.nutToBranch * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, wn),
|
|
2008
|
+
g("td", {
|
|
2009
|
+
class: "vue-ui-data-table__tbody__td",
|
|
2010
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
2011
|
+
"data-cell": Y.value.head[10]
|
|
2012
|
+
}, [g("div", Dn, T((e.nutToRoot * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, En),
|
|
2013
|
+
g("td", {
|
|
2014
|
+
class: "vue-ui-data-table__tbody__td",
|
|
2015
|
+
style: b(`outline:${N.value.table.td.outline}`),
|
|
2016
|
+
"data-cell": Y.value.head[11]
|
|
2017
|
+
}, [g("div", kn, T((e.nutToTotal * 100).toFixed(N.value.table.td.roundingPercentage)) + "% ", 1)], 12, On)
|
|
2018
|
+
], 6))), 256))])
|
|
2019
|
+
])], 2)], 4)], 4)]),
|
|
2020
|
+
_: 2
|
|
2021
|
+
}, [N.value.table.useDialog ? {
|
|
2022
|
+
name: "title",
|
|
2023
|
+
fn: D(() => [De(T(Ir.value.title), 1)]),
|
|
2024
|
+
key: "0"
|
|
2025
|
+
} : void 0, N.value.table.useDialog ? {
|
|
2026
|
+
name: "actions",
|
|
2027
|
+
fn: D(() => [g("button", {
|
|
2028
|
+
tabindex: "0",
|
|
2029
|
+
class: "vue-ui-user-options-button",
|
|
2030
|
+
onClick: t[11] ||= (e) => Or(N.value.userOptions.callbacks.csv)
|
|
2031
|
+
}, [Oe(E(An), {
|
|
2032
|
+
name: "fileCsv",
|
|
2033
|
+
stroke: Ir.value.props.color
|
|
2034
|
+
}, null, 8, ["stroke"])])]),
|
|
2035
|
+
key: "1"
|
|
2036
|
+
} : void 0]), 1040)) : m("", !0),
|
|
2037
|
+
w(e.$slots, "skeleton", {}, () => [E(Jn) ? (x(), Te(pe, { key: 0 })) : m("", !0)], !0)
|
|
2038
|
+
], 46, ze));
|
|
2039
|
+
}
|
|
2040
|
+
}, [["__scopeId", "data-v-b3384a62"]]);
|
|
2041
|
+
//#endregion
|
|
2042
|
+
export { Re as n, An as t };
|