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