vue-data-ui 3.25.4 → 3.25.6

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