vue-data-ui 3.25.11 → 3.25.13

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