vue-data-ui 3.23.1 → 3.23.2

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