vue-data-ui 3.19.9 → 3.20.0

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 (326) hide show
  1. package/dist/{A11yDataTable-q2-8fSlJ.js → A11yDataTable-BCbtxMU6.js} +1 -1
  2. package/dist/{Arrow-Cj6W6Xbi.js → Arrow-D6j6ocXm.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DUUu2E2Q.js → BaseDraggableDialog-4hDW-Rj2.js} +4 -4
  4. package/dist/{BaseIcon-DM1x8hQF.js → BaseIcon-DfLoHNUj.js} +3 -3
  5. package/dist/{BaseLegendToggle-CJTwLGXL.js → BaseLegendToggle-C_Db-y7s.js} +2 -2
  6. package/dist/{BaseScanner-C7dmAref.js → BaseScanner-Dr2a1Msy.js} +1 -1
  7. package/dist/{BaseZoomControls-BkajQ8q9.js → BaseZoomControls-CG7hI_1P.js} +3 -3
  8. package/dist/{ColorPicker-DTQeqKUV.js → ColorPicker-Bjwxnvfh.js} +4 -4
  9. package/dist/{DataTable-DmE8Oo4i.js → DataTable-B--IN22e.js} +3 -3
  10. package/dist/{Legend-Gg5Q4Clb.js → Legend-Cz2uQ5gs.js} +4 -4
  11. package/dist/{NonSvgPenAndPaper-tvWXeCsd.js → NonSvgPenAndPaper-gLNJ1Lmr.js} +28 -28
  12. package/dist/{PackageVersion-Dl9W5zJD.js → PackageVersion-xcyrdRmY.js} +2 -2
  13. package/dist/{PenAndPaper-DNgm6y3l.js → PenAndPaper-DqrClVfb.js} +11 -11
  14. package/dist/{Shape-DEGOZ6GG.js → Shape-BPCJfphn.js} +1 -1
  15. package/dist/{Slicer-CPWGgGSp.js → Slicer-SHBj0VaV.js} +19 -19
  16. package/dist/{SlicerPreview-BU3ZeHjR.js → SlicerPreview-DdihbUSJ.js} +474 -361
  17. package/dist/{SparkTooltip-c2DL7gqD.js → SparkTooltip-CfE6yCad.js} +7 -7
  18. package/dist/{Title-__gWq2g6.js → Title-NWp4qB4K.js} +2 -2
  19. package/dist/{Tooltip-CuWEYGr3.js → Tooltip-BENq327o.js} +1 -1
  20. package/dist/{UserOptions-D7zR0tnR.js → UserOptions-C1NgoGu6.js} +5 -5
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.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-pattern-seed.js +1 -1
  58. package/dist/components/vue-ui-pattern.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-9WSt6hXe.js → dom-to-png-BYtB4BF3.js} +1 -1
  93. package/dist/exposedLib-CI8ji8G-.js +19 -0
  94. package/dist/{geoProjections-CQIkC70z.js → geoProjections-Czak6Jn1.js} +3 -4
  95. package/dist/{img-BjOr008R.js → img-1cKsci8e.js} +2 -2
  96. package/dist/{labelUtils-Cr97N8E1.js → labelUtils-CUctkYoA.js} +1 -1
  97. package/dist/{lib-BkiwukKO.js → lib-DUeYQsS0.js} +4 -1
  98. package/dist/{pdf-DSXSFUnK.js → pdf-D0eZ99cP.js} +1 -1
  99. package/dist/style.css +1 -1
  100. package/dist/types/vue-data-ui.d.ts +1557 -193
  101. package/dist/types/vue-ui-3d-bar.d.ts +16 -1
  102. package/dist/types/vue-ui-age-pyramid.d.ts +14 -1
  103. package/dist/types/vue-ui-annotator.d.ts +28 -6
  104. package/dist/types/vue-ui-bullet.d.ts +14 -1
  105. package/dist/types/vue-ui-bump.d.ts +16 -1
  106. package/dist/types/vue-ui-candlestick.d.ts +16 -3
  107. package/dist/types/vue-ui-carousel-table.d.ts +14 -1
  108. package/dist/types/vue-ui-chestnut.d.ts +20 -1
  109. package/dist/types/vue-ui-chord.d.ts +20 -1
  110. package/dist/types/vue-ui-circle-pack.d.ts +16 -1
  111. package/dist/types/vue-ui-dag.d.ts +20 -1
  112. package/dist/types/vue-ui-dashboard.d.ts +16 -1
  113. package/dist/types/vue-ui-donut-evolution.d.ts +16 -1
  114. package/dist/types/vue-ui-donut.d.ts +18 -1
  115. package/dist/types/vue-ui-dumbbell.d.ts +16 -1
  116. package/dist/types/vue-ui-flow.d.ts +14 -1
  117. package/dist/types/vue-ui-funnel.d.ts +14 -1
  118. package/dist/types/vue-ui-galaxy.d.ts +18 -1
  119. package/dist/types/vue-ui-gauge.d.ts +14 -1
  120. package/dist/types/vue-ui-geo.d.ts +14 -1
  121. package/dist/types/vue-ui-heatmap.d.ts +16 -1
  122. package/dist/types/vue-ui-history-plot.d.ts +18 -1
  123. package/dist/types/vue-ui-horizontal-bar.d.ts +18 -1
  124. package/dist/types/vue-ui-molecule.d.ts +16 -1
  125. package/dist/types/vue-ui-mood-radar.d.ts +14 -1
  126. package/dist/types/vue-ui-nested-donuts.d.ts +18 -1
  127. package/dist/types/vue-ui-onion.d.ts +16 -1
  128. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +18 -1
  129. package/dist/types/vue-ui-quadrant.d.ts +24 -1
  130. package/dist/types/vue-ui-quick-chart.d.ts +20 -1
  131. package/dist/types/vue-ui-radar.d.ts +16 -1
  132. package/dist/types/vue-ui-rating.d.ts +12 -1
  133. package/dist/types/vue-ui-relation-circle.d.ts +14 -1
  134. package/dist/types/vue-ui-ridgeline.d.ts +22 -1
  135. package/dist/types/vue-ui-rings.d.ts +16 -1
  136. package/dist/types/vue-ui-scatter.d.ts +16 -1
  137. package/dist/types/vue-ui-smiley.d.ts +22 -6
  138. package/dist/types/vue-ui-sparkbar.d.ts +14 -1
  139. package/dist/types/vue-ui-sparkhistogram.d.ts +14 -1
  140. package/dist/types/vue-ui-sparkline.d.ts +16 -1
  141. package/dist/types/vue-ui-sparkstackbar.d.ts +16 -1
  142. package/dist/types/vue-ui-stackbar.d.ts +22 -1
  143. package/dist/types/vue-ui-stackline.d.ts +22 -1
  144. package/dist/types/vue-ui-strip-plot.d.ts +16 -1
  145. package/dist/types/vue-ui-table-sparkline.d.ts +14 -1
  146. package/dist/types/vue-ui-table.d.ts +17 -4
  147. package/dist/types/vue-ui-thermometer.d.ts +14 -1
  148. package/dist/types/vue-ui-timer.d.ts +14 -1
  149. package/dist/types/vue-ui-tiremarks.d.ts +14 -1
  150. package/dist/types/vue-ui-treemap.d.ts +18 -1
  151. package/dist/types/vue-ui-waffle.d.ts +16 -1
  152. package/dist/types/vue-ui-wheel.d.ts +14 -1
  153. package/dist/types/vue-ui-word-cloud.d.ts +14 -1
  154. package/dist/types/vue-ui-world.d.ts +18 -1
  155. package/dist/types/vue-ui-xy-canvas.d.ts +18 -1
  156. package/dist/types/vue-ui-xy.d.ts +22 -1
  157. package/dist/{useAutoSizeLabelsInsideViewbox-dp-3Gg97.js → useAutoSizeLabelsInsideViewbox-BIVntRZp.js} +1 -1
  158. package/dist/{useConfig-ByaaSKhz.js → useConfig-DAyQk86L.js} +9 -1
  159. package/dist/{useNestedProp-Ck4hsrpu.js → useNestedProp-CNcoy38D.js} +2 -2
  160. package/dist/{useObjectBindings-BR1sGimd.js → useObjectBindings-BI7hP-BC.js} +53 -53
  161. package/dist/{usePrinter-X0yWOynH.js → usePrinter-C1Gqt_Sp.js} +2 -2
  162. package/dist/utils.js +4 -4
  163. package/dist/{vue-data-ui-nsosW-n5.js → vue-data-ui-qpQv-4uP.js} +69 -69
  164. package/dist/vue-data-ui.js +75 -75
  165. package/dist/{vue-ui-3d-bar-CTvvvgBE.js → vue-ui-3d-bar-C8cputoI.js} +312 -312
  166. package/dist/{vue-ui-accordion-BX9WL-QF.js → vue-ui-accordion-Dw4MHKVB.js} +6 -6
  167. package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +1238 -0
  168. package/dist/{vue-ui-annotator-Be3VpH8Z.js → vue-ui-annotator-DLPUAKlm.js} +66 -66
  169. package/dist/vue-ui-bullet-DLxmtMJ9.js +710 -0
  170. package/dist/{vue-ui-bump-LQuPTOlm.js → vue-ui-bump-DVaqtZbd.js} +260 -260
  171. package/dist/{vue-ui-candlestick-BeO06tlH.js → vue-ui-candlestick-CkApimw1.js} +81 -81
  172. package/dist/vue-ui-carousel-table-CbfIBWl3.js +455 -0
  173. package/dist/vue-ui-chestnut-CQT4nCFL.js +2010 -0
  174. package/dist/vue-ui-chord-8IjSrg6f.js +1391 -0
  175. package/dist/{vue-ui-circle-pack-DyTYvEg3.js → vue-ui-circle-pack-B1CpTtpw.js} +51 -51
  176. package/dist/{vue-ui-cursor-C5_wkWul.js → vue-ui-cursor-NaTj5i2-.js} +6 -6
  177. package/dist/{vue-ui-dag-mH0baWM3.js → vue-ui-dag-DH4ocx0S.js} +46 -46
  178. package/dist/{vue-ui-dashboard-F7pEuJDh.js → vue-ui-dashboard-Ckff1yim.js} +73 -73
  179. package/dist/{vue-ui-digits-BYBtwXy_.js → vue-ui-digits-DwLlJqbW.js} +6 -6
  180. package/dist/vue-ui-donut-DQdIdwRU.js +2410 -0
  181. package/dist/{vue-ui-donut-evolution-C46h0gLy.js → vue-ui-donut-evolution-MfM5kK6w.js} +417 -417
  182. package/dist/vue-ui-dumbbell-B2T4vlK-.js +1530 -0
  183. package/dist/{vue-ui-flow-BYYyk5KL.js → vue-ui-flow-CJh6f72m.js} +107 -107
  184. package/dist/vue-ui-funnel-C9gfXNCr.js +777 -0
  185. package/dist/{vue-ui-galaxy-D061gTYS.js → vue-ui-galaxy-pBR_FESJ.js} +302 -302
  186. package/dist/vue-ui-gauge-CAemxCGl.js +920 -0
  187. package/dist/{vue-ui-geo-BwOMFUVr.js → vue-ui-geo-BDQqaukJ.js} +35 -35
  188. package/dist/{vue-ui-gizmo-CQsP8Nd3.js → vue-ui-gizmo-B1ppjqPj.js} +63 -63
  189. package/dist/{vue-ui-heatmap-DOsulVoP.js → vue-ui-heatmap-BiC9xp8L.js} +259 -259
  190. package/dist/vue-ui-history-plot-iAPjlOja.js +1554 -0
  191. package/dist/vue-ui-horizontal-bar-CcgClgLg.js +1681 -0
  192. package/dist/{vue-ui-kpi-CE-JFZ1o.js → vue-ui-kpi-CJ5oyYLS.js} +6 -6
  193. package/dist/{vue-ui-mini-loader-DDJUya9e.js → vue-ui-mini-loader-CyqBt2g4.js} +5 -5
  194. package/dist/vue-ui-molecule-Cg9ZHa6b.js +925 -0
  195. package/dist/{vue-ui-mood-radar-B29gVcTN.js → vue-ui-mood-radar-N8osOTFR.js} +36 -36
  196. package/dist/vue-ui-nested-donuts-CwH3wKgX.js +1487 -0
  197. package/dist/{vue-ui-onion-MN-PjNJq.js → vue-ui-onion-C56gFjO6.js} +294 -294
  198. package/dist/{vue-ui-parallel-coordinate-plot-C9zU7MP5.js → vue-ui-parallel-coordinate-plot-C-jj819p.js} +123 -128
  199. package/dist/{vue-ui-pattern-seed-abRweCDE.js → vue-ui-pattern-seed-BB1honLm.js} +1 -1
  200. package/dist/{vue-ui-quadrant-h-QFG9O4.js → vue-ui-quadrant-DYc9xZY3.js} +443 -443
  201. package/dist/{vue-ui-quick-chart-PAVz4c9z.js → vue-ui-quick-chart-BG7kK_-q.js} +193 -193
  202. package/dist/{vue-ui-radar-D2pVd53z.js → vue-ui-radar-CgKog9Xw.js} +77 -77
  203. package/dist/{vue-ui-rating-D_QR_A3V.js → vue-ui-rating-BG4lf1z8.js} +41 -41
  204. package/dist/vue-ui-relation-circle-D-rUk-0P.js +924 -0
  205. package/dist/{vue-ui-ridgeline-DamvqiyJ.js → vue-ui-ridgeline-DPrlVJTW.js} +376 -376
  206. package/dist/{vue-ui-rings-DkHS5dwd.js → vue-ui-rings-CIvvHHsF.js} +107 -107
  207. package/dist/vue-ui-scatter-CeBQJbGx.js +2413 -0
  208. package/dist/{vue-ui-skeleton-zhkS1cmh.js → vue-ui-skeleton-BKoa_G6d.js} +44 -44
  209. package/dist/{vue-ui-smiley-rFdGxZK6.js → vue-ui-smiley-G89TxRU-.js} +14 -14
  210. package/dist/{vue-ui-spark-trend-fQ10-UvM.js → vue-ui-spark-trend-DGOrPr9I.js} +121 -121
  211. package/dist/{vue-ui-sparkbar-D5toou8V.js → vue-ui-sparkbar-BVumo-YD.js} +107 -107
  212. package/dist/{vue-ui-sparkgauge-DRZcIPYf.js → vue-ui-sparkgauge-BoCwdQcu.js} +56 -56
  213. package/dist/{vue-ui-sparkhistogram-YizEqFdN.js → vue-ui-sparkhistogram-4qXY1LXW.js} +112 -112
  214. package/dist/vue-ui-sparkline-C0kzXrwI.js +1507 -0
  215. package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +662 -0
  216. package/dist/{vue-ui-stackbar-BFLCEsRk.js → vue-ui-stackbar-Dnq4l5xs.js} +296 -293
  217. package/dist/vue-ui-stackline-CaNOHQYl.js +2398 -0
  218. package/dist/{vue-ui-strip-plot-ByaDLFSL.js → vue-ui-strip-plot-D2CcJw_5.js} +79 -79
  219. package/dist/{vue-ui-table-DuA_CfGn.js → vue-ui-table-NBQrkVnO.js} +84 -84
  220. package/dist/{vue-ui-table-heatmap-BFKyJTr1.js → vue-ui-table-heatmap-CCGjbSzQ.js} +22 -22
  221. package/dist/{vue-ui-table-sparkline-Dfei_QrJ.js → vue-ui-table-sparkline-BZDkOEEl.js} +125 -125
  222. package/dist/vue-ui-thermometer-BXyHOQ7T.js +763 -0
  223. package/dist/{vue-ui-timer-9LNNDl4q.js → vue-ui-timer-CcLK1wbi.js} +29 -29
  224. package/dist/{vue-ui-tiremarks-kF0Baqia.js → vue-ui-tiremarks-B6txvBg-.js} +25 -25
  225. package/dist/{vue-ui-treemap-BexKMBhz.js → vue-ui-treemap-O3SBpD3K.js} +416 -416
  226. package/dist/{vue-ui-waffle-Dq50j_uw.js → vue-ui-waffle-DN5zG3b0.js} +289 -289
  227. package/dist/{vue-ui-wheel-BETHlWsO.js → vue-ui-wheel-CxnJGXkX.js} +134 -134
  228. package/dist/{vue-ui-word-cloud-D1AQtzmT.js → vue-ui-word-cloud-CM5yPCXb.js} +54 -54
  229. package/dist/{vue-ui-world-CcgbuSp_.js → vue-ui-world-DCPgXKxh.js} +447 -447
  230. package/dist/{vue-ui-xy-canvas-4ABYnasj.js → vue-ui-xy-canvas-BUPnRZ3C.js} +89 -88
  231. package/dist/vue-ui-xy-lfMIx0wK.js +4578 -0
  232. package/dist/{vue_ui_3d_bar-CXKqO5Ej.js → vue_ui_3d_bar-C4R7o-yX.js} +1 -1
  233. package/dist/{vue_ui_age_pyramid-BON8QI6X.js → vue_ui_age_pyramid-BY6c-oX_.js} +1 -1
  234. package/dist/{vue_ui_bullet-CE5sFT7u.js → vue_ui_bullet-ClzdLoOv.js} +1 -1
  235. package/dist/{vue_ui_bump-frnXaXul.js → vue_ui_bump-Vl-zYAtG.js} +1 -1
  236. package/dist/{vue_ui_candlestick-sY6UtOop.js → vue_ui_candlestick-J8jmJvxP.js} +1 -1
  237. package/dist/{vue_ui_chestnut-BiUZFv40.js → vue_ui_chestnut-D2oUhad6.js} +1 -1
  238. package/dist/{vue_ui_chord-DpyR_b9A.js → vue_ui_chord-DPfS1Umc.js} +1 -1
  239. package/dist/{vue_ui_circle_pack-FjH0ZQeb.js → vue_ui_circle_pack-DZC_rdfn.js} +1 -1
  240. package/dist/{vue_ui_dag-Ci_MOnvd.js → vue_ui_dag-TsJ_azQq.js} +1 -1
  241. package/dist/{vue_ui_donut-Cx2_BGcQ.js → vue_ui_donut-BDGqG07h.js} +1 -1
  242. package/dist/{vue_ui_donut_evolution-CAJefrHs.js → vue_ui_donut_evolution-D1yAAIHr.js} +1 -1
  243. package/dist/{vue_ui_dumbbell-CClzAZTN.js → vue_ui_dumbbell-Bfe_jFyi.js} +1 -1
  244. package/dist/{vue_ui_flow-CCHO1Lo9.js → vue_ui_flow-BewZjjKG.js} +1 -1
  245. package/dist/{vue_ui_funnel-h8q2mRpC.js → vue_ui_funnel-_Og4EEkO.js} +1 -1
  246. package/dist/{vue_ui_galaxy-70vtkEBw.js → vue_ui_galaxy-Ig0cc1_h.js} +1 -1
  247. package/dist/{vue_ui_gauge-C17CgfzN.js → vue_ui_gauge-Cf1RZc9q.js} +1 -1
  248. package/dist/{vue_ui_geo-C0UbQ0Lc.js → vue_ui_geo-B8TODs-G.js} +1 -1
  249. package/dist/{vue_ui_heatmap-BqPP3J4M.js → vue_ui_heatmap-B2BBBSWG.js} +1 -1
  250. package/dist/{vue_ui_history_plot-C5nytDHh.js → vue_ui_history_plot-CuN63VEc.js} +1 -1
  251. package/dist/{vue_ui_horizontal_bar-Bqxorkc_.js → vue_ui_horizontal_bar-C4J4QzXf.js} +1 -1
  252. package/dist/{vue_ui_molecule-Dka4JBOp.js → vue_ui_molecule-CO9L59SF.js} +1 -1
  253. package/dist/{vue_ui_mood_radar-Dg4ijm53.js → vue_ui_mood_radar-BA6LAKhk.js} +1 -1
  254. package/dist/{vue_ui_nested_donuts-BY9cOoHF.js → vue_ui_nested_donuts-B8csIoVO.js} +1 -1
  255. package/dist/{vue_ui_onion-DTV9cup-.js → vue_ui_onion-1FTFFS46.js} +1 -1
  256. package/dist/{vue_ui_parallel_coordinate_plot-CNWrDh96.js → vue_ui_parallel_coordinate_plot-CBiOBira.js} +1 -1
  257. package/dist/{vue_ui_quadrant-3kjYvxpj.js → vue_ui_quadrant-CDSTKTJz.js} +1 -1
  258. package/dist/{vue_ui_quick_chart--VaYQuM4.js → vue_ui_quick_chart-mZBdml3Z.js} +1 -1
  259. package/dist/{vue_ui_radar-Dxx9GJmj.js → vue_ui_radar-jafTED5j.js} +1 -1
  260. package/dist/{vue_ui_relation_circle-Cr0I2SoU.js → vue_ui_relation_circle-D0p4mXmv.js} +1 -1
  261. package/dist/{vue_ui_ridgeline-CAtYca4b.js → vue_ui_ridgeline-VM8_mx4J.js} +1 -1
  262. package/dist/{vue_ui_rings-DXC1VeX5.js → vue_ui_rings-BVgD2aMn.js} +1 -1
  263. package/dist/{vue_ui_scatter-D2S2j0ap.js → vue_ui_scatter-I0POnicu.js} +1 -1
  264. package/dist/{vue_ui_spark_trend-BHMQ6_1p.js → vue_ui_spark_trend-DxVmpkmC.js} +1 -1
  265. package/dist/{vue_ui_sparkbar-BR6hbuDE.js → vue_ui_sparkbar-z6qO--Kf.js} +1 -1
  266. package/dist/{vue_ui_sparkgauge-xfPRHnMv.js → vue_ui_sparkgauge-BX1MS3bA.js} +1 -1
  267. package/dist/{vue_ui_sparkhistogram-CJRENZ1C.js → vue_ui_sparkhistogram-BRgvKUH6.js} +1 -1
  268. package/dist/{vue_ui_sparkline-wgk7yO7E.js → vue_ui_sparkline-auZhap6Y.js} +1 -1
  269. package/dist/{vue_ui_sparkstackbar-C5qZMmAl.js → vue_ui_sparkstackbar-BOjuQnZd.js} +1 -1
  270. package/dist/{vue_ui_stackbar-BW_C3MXw.js → vue_ui_stackbar-COOrQQdK.js} +1 -1
  271. package/dist/{vue_ui_stackline-DXxzibUd.js → vue_ui_stackline-DQqKPA9z.js} +1 -1
  272. package/dist/{vue_ui_strip_plot-8ZelqC5b.js → vue_ui_strip_plot-CtJe8_gq.js} +1 -1
  273. package/dist/{vue_ui_table_heatmap-BGUjA0WA.js → vue_ui_table_heatmap-w8vx5k6f.js} +1 -1
  274. package/dist/{vue_ui_table_sparkline-i0Q-N_we.js → vue_ui_table_sparkline-DAbkUrNz.js} +1 -1
  275. package/dist/{vue_ui_thermometer-CuN7Gpez.js → vue_ui_thermometer-DxgqWKlE.js} +1 -1
  276. package/dist/{vue_ui_tiremarks-A6UHC0c3.js → vue_ui_tiremarks-CdEPieWV.js} +1 -1
  277. package/dist/{vue_ui_treemap-BQp06q-g.js → vue_ui_treemap-DoEtkRN6.js} +1 -1
  278. package/dist/{vue_ui_waffle-C_Ev4l7B.js → vue_ui_waffle-DIARFc7g.js} +1 -1
  279. package/dist/{vue_ui_wheel-DdkTPXJU.js → vue_ui_wheel-DZ_nR--t.js} +1 -1
  280. package/dist/{vue_ui_word_cloud-B1PbsYPc.js → vue_ui_word_cloud-C-qIMNLu.js} +1 -1
  281. package/dist/{vue_ui_xy-BYPqfYyx.js → vue_ui_xy-BLUkWEAm.js} +1 -1
  282. package/dist/{vue_ui_xy_canvas-CMHGNrLf.js → vue_ui_xy_canvas-Cb6dg3eK.js} +1 -1
  283. package/package.json +6 -6
  284. package/dist/exposedLib-CwWU4zv-.js +0 -19
  285. package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
  286. package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
  287. package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
  288. package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
  289. package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
  290. package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
  291. package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
  292. package/dist/vue-ui-funnel-BfY509t-.js +0 -777
  293. package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
  294. package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
  295. package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
  296. package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
  297. package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
  298. package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
  299. package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
  300. package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
  301. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
  302. package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
  303. package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
  304. package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
  305. /package/dist/{RecursiveCircles-DPpLel6f.js → RecursiveCircles-D6aDPmoe.js} +0 -0
  306. /package/dist/{RecursiveLabels-DBMJf_to.js → RecursiveLabels-D9rfID6q.js} +0 -0
  307. /package/dist/{RecursiveLinks-D06dBL4a.js → RecursiveLinks-BygcpDiT.js} +0 -0
  308. /package/dist/{_plugin-vue_export-helper-Dq1MygBL.js → _plugin-vue_export-helper-B3ysoDQm.js} +0 -0
  309. /package/dist/{canvas-lib-DTaADQOK.js → canvas-lib-BOP_HS11.js} +0 -0
  310. /package/dist/{patternUtils-B7BWu5bV.js → patternUtils-CS7hn6at.js} +0 -0
  311. /package/dist/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  312. /package/dist/{useChartAccessibility-Do37qcw2.js → useChartAccessibility-DYqac8yF.js} +0 -0
  313. /package/dist/{useFitSvgText-C-MEdAfe.js → useFitSvgText-CT3nmlaS.js} +0 -0
  314. /package/dist/{usePanZoom-B-4M_gmY.js → usePanZoom-CYU3B4T3.js} +0 -0
  315. /package/dist/{usePrefersMotion-BywLbIko.js → usePrefersMotion-BC-CsqR1.js} +0 -0
  316. /package/dist/{useResponsive-CrAInupd.js → useResponsive-BfnK0KxU.js} +0 -0
  317. /package/dist/{useStableElementSize-0I1IpHPl.js → useStableElementSize-C7KADDKj.js} +0 -0
  318. /package/dist/{useSvgExport-Dtu973wa.js → useSvgExport-SVIsDot8.js} +0 -0
  319. /package/dist/{useTableResponsive-DrM1xqII.js → useTableResponsive-B24Uwt2E.js} +0 -0
  320. /package/dist/{useThemeCheck-rFK9Zlb_.js → useThemeCheck-C43Tcqmk.js} +0 -0
  321. /package/dist/{useTimeLabelCollider-Dm55Emzg.js → useTimeLabelCollider-AEcY4Ioe.js} +0 -0
  322. /package/dist/{useTimeLabels-C0x7zUXP.js → useTimeLabels-BmBRv27Y.js} +0 -0
  323. /package/dist/{useUserOptionState-CjPJPTg2.js → useUserOptionState-DK-_1ddE.js} +0 -0
  324. /package/dist/{vClickOutside-CbX_bC9A.js → vClickOutside-DUrZWttG.js} +0 -0
  325. /package/dist/{vue-ui-pattern-Bj-IPFr2.js → vue-ui-pattern-DKozfnVn.js} +0 -0
  326. /package/dist/{vue_ui_vertical_bar-CJSD1FZS.js → vue_ui_vertical_bar-CP-MKz1j.js} +0 -0
@@ -1,2010 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { G as t, H as n, J as r, Lt as i, Mt as a, S as o, St as ee, Tt as s, X as te, bt as ne, d as re, i as c, jt as l, ot as ie, p as ae, r as oe, t as se, u, x as ce, y as le, zt as ue } from "./lib-BkiwukKO.js";
3
- import { t as de } from "./useConfig-ByaaSKhz.js";
4
- import { t as fe } from "./usePrinter-X0yWOynH.js";
5
- import { n as pe, t as me } from "./BaseScanner-C7dmAref.js";
6
- import { t as he } from "./useSvgExport-Dtu973wa.js";
7
- import { t as ge } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as _e } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as ve } from "./img-BjOr008R.js";
10
- import { t as ye } from "./_plugin-vue_export-helper-Dq1MygBL.js";
11
- import { t as be } from "./A11yDataTable-q2-8fSlJ.js";
12
- import { t as xe } from "./useUserOptionState-CjPJPTg2.js";
13
- import { t as Se } from "./useChartAccessibility-Do37qcw2.js";
14
- import { t as Ce } from "./useTableResponsive-DrM1xqII.js";
15
- import { t as we } from "./vue_ui_chestnut-BiUZFv40.js";
16
- import { Fragment as d, computed as f, createBlock as Te, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as g, mergeProps as Ae, nextTick as je, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Me, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ne, toDisplayString as w, toRefs as Pe, unref as T, useCssVars as Fe, watch as Ie, withCtx as E, withKeys as Le } from "vue";
17
- //#region src/components/vue-ui-chestnut.vue
18
- var Re = /* @__PURE__ */ e({ default: () => Zn }), ze = ["id"], Be = ["id"], Ve = {
19
- "aria-live": "polite",
20
- class: "sr-only"
21
- }, He = {
22
- key: 2,
23
- ref: "noTitle",
24
- class: "vue-data-ui-no-title-space",
25
- style: "height:36px; width: 100%;background:transparent"
26
- }, Ue = { style: { position: "relative" } }, We = [
27
- "xmlns",
28
- "aria-describedby",
29
- "viewBox"
30
- ], Ge = ["width", "height"], Ke = { key: 1 }, qe = [
31
- "fill",
32
- "font-weight",
33
- "font-size",
34
- "x",
35
- "y"
36
- ], Je = [
37
- "fill",
38
- "font-weight",
39
- "font-size",
40
- "x",
41
- "y"
42
- ], Ye = ["id"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["stop-color"], lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = ["stop-color"], pt = { key: 2 }, mt = [
43
- "x",
44
- "y",
45
- "font-size",
46
- "font-weight",
47
- "fill"
48
- ], ht = [
49
- "x",
50
- "y",
51
- "font-size",
52
- "font-weight",
53
- "fill"
54
- ], gt = ["id"], _t = ["stop-color"], vt = ["stop-color"], yt = [
55
- "d",
56
- "stroke",
57
- "fill"
58
- ], bt = [
59
- "cx",
60
- "cy",
61
- "r",
62
- "fill"
63
- ], xt = [
64
- "aria-label",
65
- "cx",
66
- "cy",
67
- "r",
68
- "fill",
69
- "stroke",
70
- "stroke-width",
71
- "onClick"
72
- ], St = { key: 3 }, Ct = [
73
- "x",
74
- "y",
75
- "font-size",
76
- "fill",
77
- "onClick"
78
- ], wt = { key: 0 }, Tt = [
79
- "x",
80
- "y",
81
- "fill",
82
- "font-size",
83
- "font-weight"
84
- ], Et = [
85
- "x",
86
- "y",
87
- "height",
88
- "width",
89
- "fill",
90
- "rx",
91
- "onClick"
92
- ], Dt = [
93
- "aria-label",
94
- "x",
95
- "y",
96
- "height",
97
- "width",
98
- "fill",
99
- "rx",
100
- "stroke",
101
- "stroke-width",
102
- "onClick"
103
- ], Ot = { key: 4 }, kt = [
104
- "x",
105
- "y",
106
- "fill",
107
- "font-size",
108
- "onClick"
109
- ], At = ["d", "stroke"], jt = [
110
- "aria-label",
111
- "fill",
112
- "cx",
113
- "cy",
114
- "r",
115
- "onClick"
116
- ], Mt = { key: 5 }, Nt = [
117
- "x",
118
- "y",
119
- "font-size",
120
- "font-weight",
121
- "fill"
122
- ], Pt = [
123
- "x1",
124
- "x2",
125
- "y1",
126
- "y2",
127
- "stroke",
128
- "stroke-width"
129
- ], Ft = [
130
- "y",
131
- "height",
132
- "width"
133
- ], It = { style: {
134
- width: "100%",
135
- height: "100%",
136
- display: "flex",
137
- "align-items": "center",
138
- "justify-content": "center",
139
- "flex-direction": "column"
140
- } }, Lt = { style: {
141
- display: "flex",
142
- "align-items": "center",
143
- "justify-content": "center",
144
- gap: "12px",
145
- "flex-wrap": "wrap",
146
- "flex-direction": "row"
147
- } }, Rt = {
148
- viewBox: "0 0 20 20",
149
- height: "16",
150
- width: "16"
151
- }, zt = ["fill"], Bt = { key: 7 }, Vt = [
152
- "y",
153
- "height",
154
- "width"
155
- ], Ht = { style: {
156
- width: "100%",
157
- height: "100%",
158
- display: "flex",
159
- "align-items": "center",
160
- "justify-content": "center",
161
- "flex-direction": "column"
162
- } }, Ut = { style: {
163
- display: "flex",
164
- "align-items": "center",
165
- "justify-content": "center",
166
- gap: "12px",
167
- "flex-wrap": "wrap",
168
- "flex-direction": "row"
169
- } }, Wt = {
170
- viewBox: "0 0 20 20",
171
- height: "16",
172
- width: "16"
173
- }, Gt = ["fill"], Kt = [
174
- "cx",
175
- "cy",
176
- "fill"
177
- ], qt = ["d", "stroke"], Jt = [
178
- "cx",
179
- "cy",
180
- "fill"
181
- ], Yt = ["d", "stroke"], Xt = [
182
- "cx",
183
- "cy",
184
- "fill"
185
- ], Zt = [
186
- "cx",
187
- "cy",
188
- "fill"
189
- ], Qt = [
190
- "x",
191
- "y",
192
- "fill",
193
- "font-size",
194
- "font-weight"
195
- ], $t = [
196
- "x",
197
- "y",
198
- "fill",
199
- "font-size",
200
- "font-weight"
201
- ], en = [
202
- "x",
203
- "text-anchor",
204
- "y",
205
- "fill",
206
- "font-size"
207
- ], tn = [
208
- "x",
209
- "text-anchor",
210
- "y",
211
- "fill",
212
- "font-size"
213
- ], nn = [
214
- "x",
215
- "text-anchor",
216
- "y",
217
- "fill",
218
- "font-size"
219
- ], rn = [
220
- "x",
221
- "text-anchor",
222
- "y",
223
- "fill",
224
- "font-size"
225
- ], an = [
226
- "x",
227
- "text-anchor",
228
- "y",
229
- "fill",
230
- "font-size"
231
- ], on = [
232
- "x",
233
- "y",
234
- "font-size",
235
- "fill"
236
- ], sn = [
237
- "x",
238
- "y",
239
- "font-size",
240
- "fill"
241
- ], cn = [
242
- "x",
243
- "y",
244
- "font-size",
245
- "fill"
246
- ], ln = {
247
- key: 4,
248
- class: "vue-data-ui-watermark"
249
- }, un = {
250
- key: 5,
251
- ref: "source",
252
- dir: "auto"
253
- }, dn = { class: "vue-ui-data-table" }, fn = { key: 0 }, pn = ["data-cell"], mn = { style: {
254
- display: "flex",
255
- "align-items": "center",
256
- gap: "5px",
257
- "justify-content": "flex-end",
258
- width: "100%",
259
- "padding-right": "3px"
260
- } }, hn = { key: 0 }, gn = { key: 1 }, _n = ["data-cell"], vn = { style: {
261
- display: "flex",
262
- "align-items": "center",
263
- gap: "5px",
264
- "justify-content": "flex-end",
265
- width: "100%",
266
- "padding-right": "3px"
267
- } }, yn = { key: 0 }, bn = { key: 1 }, xn = ["data-cell"], Sn = { style: {
268
- display: "flex",
269
- "align-items": "center",
270
- gap: "5px",
271
- "justify-content": "flex-end",
272
- width: "100%",
273
- "padding-right": "3px"
274
- } }, Cn = { key: 0 }, wn = { key: 1 }, Tn = ["data-cell"], En = { style: {
275
- display: "flex",
276
- "align-items": "center",
277
- gap: "5px",
278
- "justify-content": "flex-end",
279
- width: "100%",
280
- "padding-right": "3px"
281
- } }, Dn = { key: 0 }, On = { key: 1 }, kn = ["data-cell"], An = { style: {
282
- display: "flex",
283
- "align-items": "center",
284
- gap: "5px",
285
- "justify-content": "flex-end",
286
- width: "100%",
287
- "padding-right": "3px"
288
- } }, jn = { key: 0 }, Mn = { key: 1 }, Nn = ["data-cell"], Pn = { style: {
289
- display: "flex",
290
- "align-items": "center",
291
- gap: "5px",
292
- "justify-content": "flex-end",
293
- width: "100%",
294
- "padding-right": "3px"
295
- } }, Fn = { key: 0 }, In = { key: 1 }, Ln = ["data-cell"], Rn = { style: {
296
- display: "flex",
297
- "align-items": "center",
298
- gap: "5px",
299
- "justify-content": "flex-end",
300
- width: "100%",
301
- "padding-right": "3px"
302
- } }, zn = { key: 0 }, Bn = { key: 1 }, Vn = ["data-cell"], Hn = { style: {
303
- display: "flex",
304
- "align-items": "center",
305
- gap: "5px",
306
- "justify-content": "flex-end",
307
- width: "100%",
308
- "padding-right": "3px"
309
- } }, Un = ["data-cell"], Wn = { style: {
310
- display: "flex",
311
- "align-items": "center",
312
- gap: "5px",
313
- "justify-content": "flex-end",
314
- width: "100%",
315
- "padding-right": "3px"
316
- } }, Gn = ["data-cell"], Kn = { style: {
317
- display: "flex",
318
- "align-items": "center",
319
- gap: "5px",
320
- "justify-content": "flex-end",
321
- width: "100%",
322
- "padding-right": "3px"
323
- } }, qn = ["data-cell"], Jn = { style: {
324
- display: "flex",
325
- "align-items": "center",
326
- gap: "5px",
327
- "justify-content": "flex-end",
328
- width: "100%",
329
- "padding-right": "3px"
330
- } }, Yn = ["data-cell"], Xn = { style: {
331
- display: "flex",
332
- "align-items": "center",
333
- gap: "5px",
334
- "justify-content": "flex-end",
335
- width: "100%",
336
- "padding-right": "3px"
337
- } }, Zn = /* @__PURE__ */ ye({
338
- __name: "vue-ui-chestnut",
339
- props: {
340
- config: {
341
- type: Object,
342
- default() {
343
- return {};
344
- }
345
- },
346
- dataset: {
347
- type: Array,
348
- default() {
349
- return [];
350
- }
351
- }
352
- },
353
- emits: [
354
- "selectRoot",
355
- "selectBranch",
356
- "selectNut",
357
- "copyAlt"
358
- ],
359
- setup(e, { expose: ye, emit: Re }) {
360
- Fe((e) => ({ bd8a0696: e.tdo }));
361
- let Zn = ke(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Qn = ke(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), $n = ke(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), er = ke(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), tr = ke(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), nr = ke(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_chestnut: rr } = de(), { isThemeValid: ir, warnInvalidTheme: ar } = _e(), D = e, or = f(() => !!D.dataset && D.dataset.length), O = x(n()), sr = x(null), cr = x(0), lr = x(null), ur = x(null), dr = x(!1), fr = x(!1), pr = x(!1), k = x(!1), A = x(""), j = x({
362
- level: "root",
363
- rootIndex: 0,
364
- branchIndex: 0,
365
- nutIndex: 0,
366
- locked: !1
367
- }), M = x(xr()), N = f(() => M.value.userOptions.useCursorPointer), mr = f(() => ue({
368
- defaultConfig: {
369
- userOptions: { show: !1 },
370
- table: { show: !1 },
371
- style: { chart: {
372
- backgroundColor: "#99999930",
373
- layout: {
374
- grandTotal: { show: !1 },
375
- roots: {
376
- stroke: "#6A6A6A",
377
- labels: { show: !1 }
378
- },
379
- verticalSeparator: { stroke: "transparent" },
380
- branches: {
381
- stroke: "#6A6A6A",
382
- underlayerColor: "#6A6A6A90",
383
- labels: {
384
- show: !1,
385
- dataLabels: { show: !1 }
386
- }
387
- }
388
- }
389
- } }
390
- },
391
- userConfig: M.value.skeletonConfig ?? {}
392
- })), { loading: hr, FINAL_DATASET: gr } = pe({
393
- ...Pe(D),
394
- FINAL_CONFIG: M,
395
- prepareConfig: xr,
396
- skeletonDataset: D.config?.skeletonDataset ?? [{
397
- name: "_",
398
- color: "#969696",
399
- branches: [
400
- {
401
- name: "_",
402
- value: 32,
403
- breakdown: [{
404
- name: "_",
405
- value: 16,
406
- color: "#CACACA"
407
- }, {
408
- name: "_",
409
- value: 16,
410
- color: "#6A6A6A"
411
- }]
412
- },
413
- {
414
- name: "_",
415
- value: 16,
416
- breakdown: [{
417
- name: "_",
418
- value: 8,
419
- color: "#CACACA"
420
- }, {
421
- name: "_",
422
- value: 8,
423
- color: "#6A6A6A"
424
- }]
425
- },
426
- {
427
- name: "_",
428
- value: 8,
429
- breakdown: [{
430
- name: "_",
431
- value: 4,
432
- color: "#CACACA"
433
- }, {
434
- name: "_",
435
- value: 4,
436
- color: "#6A6A6A"
437
- }]
438
- },
439
- {
440
- name: "_",
441
- value: 4,
442
- breakdown: [{
443
- name: "_",
444
- value: 2,
445
- color: "#CACACA"
446
- }, {
447
- name: "_",
448
- value: 2,
449
- color: "#6A6A6A"
450
- }]
451
- }
452
- ]
453
- }, {
454
- name: "_",
455
- color: "#C4C4C4",
456
- branches: [
457
- {
458
- name: "_",
459
- value: 24,
460
- breakdown: [{
461
- name: "_",
462
- value: 12,
463
- color: "#CACACA"
464
- }, {
465
- name: "_",
466
- value: 12,
467
- color: "#6A6A6A"
468
- }]
469
- },
470
- {
471
- name: "_",
472
- value: 12,
473
- breakdown: [{
474
- name: "_",
475
- value: 6,
476
- color: "#CACACA"
477
- }, {
478
- name: "_",
479
- value: 6,
480
- color: "#6A6A6A"
481
- }]
482
- },
483
- {
484
- name: "_",
485
- value: 6,
486
- breakdown: [{
487
- name: "_",
488
- value: 3,
489
- color: "#CACACA"
490
- }, {
491
- name: "_",
492
- value: 3,
493
- color: "#6A6A6A"
494
- }]
495
- },
496
- {
497
- name: "_",
498
- value: 2,
499
- breakdown: [{
500
- name: "_",
501
- value: 1,
502
- color: "#CACACA"
503
- }, {
504
- name: "_",
505
- value: 1,
506
- color: "#6A6A6A"
507
- }]
508
- }
509
- ]
510
- }],
511
- skeletonConfig: ue({
512
- defaultConfig: M.value,
513
- userConfig: mr.value
514
- })
515
- }), { userOptionsVisible: _r, setUserOptionsVisibility: vr, keepUserOptionState: yr } = xe({ config: M.value }), { svgRef: br } = Se({ config: M.value.style.chart.layout.title });
516
- function xr() {
517
- let e = ge({
518
- userConfig: D.config,
519
- defaultConfig: rr
520
- }), t = e.theme;
521
- if (!t) return e;
522
- if (!ir.value(e)) return ar(e), e;
523
- let n = ge({
524
- userConfig: we[t] || D.config,
525
- defaultConfig: e
526
- }), r = ge({
527
- userConfig: D.config,
528
- defaultConfig: n
529
- });
530
- return {
531
- ...r,
532
- customPalette: r.customPalette.length ? r.customPalette : i[t] || s
533
- };
534
- }
535
- Ie(() => D.config, (e) => {
536
- M.value = xr(), _r.value = !M.value.userOptions.showOnChartHover, P.value.showTable = M.value.table.show, qr();
537
- }, { deep: !0 });
538
- let { isPrinting: Sr, isImaging: Cr, generatePdf: wr, generateImage: Tr } = fe({
539
- elementId: `vue-ui-chestnut_${O.value}`,
540
- fileName: M.value.style.chart.layout.title.text || "vue-ui-chestnut",
541
- options: M.value.userOptions.print
542
- }), Er = f(() => M.value.userOptions.show), Dr = f(() => ce(M.value.customPalette)), P = x({ showTable: M.value.table.show });
543
- Ie(M, () => {
544
- P.value = { showTable: M.value.table.show };
545
- }, { immediate: !0 });
546
- let Or = x(null), kr = f(() => M.value.table.responsiveBreakpoint), F = x({
547
- gap: 6,
548
- padding: {
549
- top: 102,
550
- left: 12,
551
- right: 12,
552
- bottom: 96
553
- },
554
- width: 1024,
555
- height: 0,
556
- branchSize: 32,
557
- branchStart: 128
558
- }), I = f(() => ({
559
- left: F.value.padding.left,
560
- top: F.value.padding.top,
561
- right: F.value.width - F.value.padding.right,
562
- bottom: F.value.height - F.value.padding.bottom,
563
- width: F.value.width - (F.value.padding.left + F.value.padding.right),
564
- height: F.value.height - (F.value.padding.top + F.value.padding.bottom),
565
- seedX: F.value.padding.left + 64
566
- })), L = f(() => gr.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), R = f(() => (gr.value.forEach((e, t) => {
567
- ie({
568
- datasetObject: e,
569
- requiredAttributes: ["name", "branches"]
570
- }).forEach((e) => {
571
- te({
572
- componentName: "VueUiChestnut",
573
- type: "datasetSerieAttribute",
574
- property: e,
575
- index: t,
576
- debug: Kr.value
577
- });
578
- }), e.branches && e.branches.forEach((e, n) => {
579
- ie({
580
- datasetObject: e,
581
- requiredAttributes: ["name", "value"]
582
- }).forEach((e) => {
583
- te({
584
- componentName: "VueUiChestnut",
585
- type: "datasetSerieAttribute",
586
- property: e,
587
- index: `${t} - ${n}`,
588
- debug: Kr.value
589
- });
590
- }), e.breakdown && e.breakdown.forEach((e, r) => {
591
- ie({
592
- datasetObject: e,
593
- requiredAttributes: ["name", "value"]
594
- }).forEach((e) => {
595
- te({
596
- componentName: "VueUiChestnut",
597
- type: "datasetSerieAttribute",
598
- property: e,
599
- index: `${t} - ${n} - ${r}`,
600
- debug: Kr.value
601
- });
602
- });
603
- });
604
- });
605
- }), gr.value.map((e, t) => {
606
- let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
607
- return {
608
- ...e,
609
- color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
610
- id: e.id || `root_${t}_${O.value}`,
611
- type: "root",
612
- total: n,
613
- rootIndex: t,
614
- branches: (e.branches || []).map((r, i) => ({
615
- ...r,
616
- rootName: e.name,
617
- rootIndex: t,
618
- color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
619
- value: r.value >= 0 ? r.value : 0,
620
- id: r.id || `branch_${t}_${i}_${O.value}`,
621
- proportionToRoot: r.value / n,
622
- type: "branch",
623
- breakdown: (r.breakdown || []).map((a, o) => ({
624
- table: {
625
- rootName: e.name,
626
- rootValue: n,
627
- rootToTotal: n / L.value,
628
- branchName: r.name,
629
- branchValue: r.value,
630
- branchToTotal: r.value / L.value,
631
- branchToRoot: r.value / n,
632
- nutName: a.name,
633
- nutValue: a.value,
634
- nutToTotal: a.value / L.value,
635
- nutToRoot: a.value / n,
636
- nutToBranch: a.value / r.value
637
- },
638
- ...a,
639
- type: "nut",
640
- branchName: r.name,
641
- rootName: e.name,
642
- branchTotal: r.value >= 0 ? r.value : 0,
643
- proportionToBranch: a.value / r.value,
644
- proportionToRoot: a.value / n,
645
- proportionToTree: a.value / L.value,
646
- rootIndex: t,
647
- id: a.id || `nut_${t}_${i}_${o}_${O.value}`,
648
- color: le(a.color) || Dr.value[o] || s[o] || s[o % s.length],
649
- value: a.value >= 0 ? a.value : 0
650
- }))
651
- }))
652
- };
653
- })));
654
- function Ar() {
655
- return R.value;
656
- }
657
- let z = Re, jr = f(() => R.value.flatMap((e) => e.branches).length), Mr = f(() => Math.max(...R.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), Nr = f(() => Math.max(...R.value.flatMap((e) => e.branches.map((e) => e.value)))), Pr = f(() => 256 + F.value.padding.left), B = f(() => R.value.sort((e, t) => t.total - e.total).map((e, t) => {
658
- let n = I.value.height / R.value.length / 2, r = e.total / Mr.value * (n > 64 ? 64 : n);
659
- return {
660
- ...e,
661
- x: I.value.seedX,
662
- y: I.value.top + I.value.height / R.value.length * (t + 1) - (I.value.height / R.value.length / 2 + F.value.gap / 2),
663
- r: r < F.value.branchSize / 2 ? F.value.branchSize / 2 : r
664
- };
665
- })), Fr = f(() => M.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : M.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : M.value.style.chart.layout.branches.widthRatio), Ir = f(() => B.value.flatMap((e) => e.branches)), V = f(() => Ir.value.sort((e, t) => t.value - e.value).map((e, t) => ({
666
- ...e,
667
- y1: t * F.value.branchSize + I.value.top + t * F.value.gap,
668
- y2: t * F.value.branchSize + F.value.branchSize,
669
- x1: Pr.value,
670
- x2: 384 * e.value / Nr.value * Fr.value + Pr.value
671
- }))), Lr = f(() => B.value), Rr = f(() => Lr.value.map((e) => V.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), zr = f(() => Lr.value.map((e, t) => Rr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
672
- ...t,
673
- nutIndex: n,
674
- rootIndex: e.rootIndex,
675
- branchId: e.id,
676
- branchName: e.name,
677
- branchValue: e.value,
678
- rootName: e.rootName
679
- })))));
680
- function Br(e) {
681
- let t = B.value.find((t) => t.rootIndex === e.rootIndex);
682
- return {
683
- x: t.x,
684
- y: t.y,
685
- r: t.r
686
- };
687
- }
688
- let H = x(null), U = x(null), W = x(null), G = x(null);
689
- function K() {
690
- H.value = null, W.value = null, G.value = null;
691
- }
692
- function q(e) {
693
- if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" ? e.branchName === H.value.name && e.rootIndex === H.value.rootIndex : !1;
694
- if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" ? e.branchName === W.value.name && e.rootIndex === W.value.rootIndex : !1;
695
- if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
696
- if (xi.value && k.value) {
697
- if (j.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
698
- if (j.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? yi.value && e.id === yi.value.id : (e.type, !1);
699
- if (j.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? bi.value && e.id === bi.value.id : e.type === "nut" ? bi.value && e.branchName === bi.value.name && e.rootIndex === bi.value.rootIndex : !1;
700
- }
701
- return !0;
702
- }
703
- function Vr(e) {
704
- K();
705
- let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
706
- t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "nut", j.value.nutIndex = 0, je(() => {
707
- H.value = e, W.value = e, U.value = ne({
708
- series: e.breakdown,
709
- base: 1
710
- }, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, 80, 80), z("selectNut", e.breakdown), Q();
711
- });
712
- }
713
- function J() {
714
- H.value = null, U.value = null, z("selectNut", null);
715
- }
716
- function Hr(e) {
717
- let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
718
- t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "branch", j.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), z("selectBranch", null), Q()) : (K(), W.value = e, z("selectBranch", e), Q());
719
- }
720
- function Ur(e) {
721
- let t = Lr.value.findIndex((t) => t.id === e.id);
722
- t !== -1 && (j.value.rootIndex = t), j.value.level = "root", j.value.branchIndex = 0, j.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), z("selectRoot", null), Q()) : (K(), G.value = e, z("selectRoot", e), Q());
723
- }
724
- function Wr() {
725
- return I.value.bottom - (H.value.y1 + 180) < 0 ? 0 : I.value.bottom;
726
- }
727
- function Gr(e) {
728
- return e.proportion * 100 > M.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
729
- }
730
- Me(() => {
731
- qr();
732
- });
733
- let Kr = f(() => M.value.debug);
734
- function qr() {
735
- ee(D.dataset) && te({
736
- componentName: "VueUiChestnut",
737
- type: "dataset",
738
- debug: Kr.value
739
- });
740
- let e = jr.value * (F.value.branchSize + F.value.gap) + F.value.padding.top + F.value.padding.bottom;
741
- F.value.height = e;
742
- }
743
- let Y = f(() => ({
744
- head: [
745
- M.value.table.th.translations.rootName,
746
- M.value.table.th.translations.rootValue,
747
- M.value.table.th.translations.rootToTotal,
748
- M.value.table.th.translations.branchName,
749
- M.value.table.th.translations.branchValue,
750
- M.value.table.th.translations.branchToRoot,
751
- M.value.table.th.translations.branchToTotal,
752
- M.value.table.th.translations.nutName,
753
- M.value.table.th.translations.nutValue,
754
- M.value.table.th.translations.nutToBranch,
755
- M.value.table.th.translations.nutToRoot,
756
- M.value.table.th.translations.nutToTotal
757
- ],
758
- body: R.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
759
- }));
760
- function Jr(e = null) {
761
- je(() => {
762
- let t = [
763
- [M.value.style.chart.layout.title.text],
764
- [M.value.style.chart.layout.title.subtitle.text],
765
- [""],
766
- ["Grand total", L.value],
767
- [""]
768
- ], n = Y.value.head, i = Y.value.body.map((e, t) => [
769
- Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
770
- Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
771
- Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
772
- Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
773
- Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
774
- Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
775
- Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
776
- e.nutName,
777
- e.nutValue,
778
- e.nutToBranch,
779
- e.nutToRoot,
780
- e.nutToTotal
781
- ]), a = o(t.concat([n]).concat(i));
782
- e ? e(a) : r({
783
- csvContent: a,
784
- title: M.value.style.chart.layout.title.text || "vue-ui-chestnut"
785
- });
786
- });
787
- }
788
- let Yr = x(!1);
789
- function Xr(e) {
790
- Yr.value = e, cr.value += 1;
791
- }
792
- function Zr() {
793
- P.value.showTable = !P.value.showTable;
794
- }
795
- let Qr = x(!1);
796
- function $r() {
797
- Qr.value = !Qr.value;
798
- }
799
- async function ei({ scale: e = 2 } = {}) {
800
- if (!sr.value) return;
801
- let { width: t, height: n } = sr.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
802
- domElement: sr.value,
803
- base64: !0,
804
- img: !0,
805
- scale: e
806
- });
807
- return {
808
- imageUri: i,
809
- base64: a,
810
- title: M.value.style.chart.layout.title.text,
811
- width: t,
812
- height: n,
813
- aspectRatio: r
814
- };
815
- }
816
- function ti(e) {
817
- let t = Br(e), n = e.x1, r = e.y1, i = F.value.branchSize, a = t.x + t.r / 2, o = t.y;
818
- return [
819
- `M ${n},${r}`,
820
- `C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
821
- `C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
822
- "Z"
823
- ].join(" ");
824
- }
825
- let ni = f(() => {
826
- let e = M.value.table.useDialog && !M.value.table.show, t = P.value.showTable;
827
- return {
828
- component: e ? nr : Qn,
829
- title: `${M.value.style.chart.layout.title.text}${M.value.style.chart.layout.title.subtitle.text ? `: ${M.value.style.chart.layout.title.subtitle.text}` : ""}`,
830
- props: e ? {
831
- backgroundColor: M.value.table.th.backgroundColor,
832
- color: M.value.table.th.color,
833
- headerColor: M.value.table.th.color,
834
- headerBg: M.value.table.th.backgroundColor,
835
- isFullscreen: Yr.value,
836
- fullscreenParent: sr.value,
837
- forcedWidth: Math.min(800, window.innerWidth * .8),
838
- isCursorPointer: N.value
839
- } : {
840
- hideDetails: !0,
841
- config: {
842
- open: t,
843
- maxHeight: 1e4,
844
- body: {
845
- backgroundColor: M.value.style.chart.backgroundColor,
846
- color: M.value.style.chart.color
847
- },
848
- head: {
849
- backgroundColor: M.value.style.chart.backgroundColor,
850
- color: M.value.style.chart.color
851
- }
852
- }
853
- }
854
- };
855
- });
856
- Ie(() => P.value.showTable, async (e) => {
857
- M.value.table.show || (e && M.value.table.useDialog && lr.value ? (await je(), lr.value.open()) : "close" in lr.value && lr.value.close());
858
- });
859
- let { isResponsive: ri } = Ce(Or, kr);
860
- function ii() {
861
- P.value.showTable = !1, ur.value && ur.value.setTableIconState(!1);
862
- }
863
- let ai = f(() => R.value.map((e, n) => ({
864
- ...e,
865
- display: `${e.name}: ${c(M.value.style.chart.layout.roots.labels.formatter, e.total, t({
866
- p: M.value.style.chart.layout.legend.prefix,
867
- v: e.total,
868
- s: M.value.style.chart.layout.legend.suffix,
869
- r: M.value.style.chart.layout.legend.roundingValue
870
- }), { datapoint: e })} (${t({
871
- v: e.total / L.value * 100,
872
- s: "%",
873
- r: M.value.style.chart.layout.legend.roundingPercentage
874
- })})`
875
- }))), oi = f(() => ai.value.map((e) => ({
876
- color: e.color,
877
- name: e.display,
878
- shape: "circle"
879
- }))), si = f(() => M.value.style.chart.backgroundColor), ci = f(() => ({
880
- ...M.value.style.chart.layout.legend,
881
- textAlign: "center",
882
- show: !0,
883
- position: "bottom"
884
- })), { exportSvg: li, getSvg: ui } = he({
885
- svg: br,
886
- title: f(() => M.value.style.chart.layout.title),
887
- legend: ci,
888
- legendItems: oi,
889
- backgroundColor: si,
890
- titleEmbedded: !0
891
- });
892
- async function di({ isCb: e }) {
893
- fr.value = !0, await je();
894
- try {
895
- if (e) {
896
- let { blob: e, url: t, text: n, dataUrl: r } = await ui();
897
- await Promise.resolve(M.value.userOptions.callbacks.svg({
898
- blob: e,
899
- url: t,
900
- text: n,
901
- dataUrl: r
902
- }));
903
- } else await Promise.resolve(li());
904
- } finally {
905
- fr.value = !1;
906
- }
907
- }
908
- function fi(e) {
909
- if (e?.stage === "start") {
910
- dr.value = !0;
911
- return;
912
- }
913
- if (e?.stage === "end") {
914
- dr.value = !1;
915
- return;
916
- }
917
- Tr();
918
- }
919
- async function pi() {
920
- if (z("copyAlt", {
921
- config: M.value,
922
- dataset: R.value
923
- }), !M.value.userOptions.callbacks.altCopy) {
924
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
925
- return;
926
- }
927
- await Promise.resolve(M.value.userOptions.callbacks.altCopy({
928
- config: M.value,
929
- dataset: R.value
930
- }));
931
- }
932
- function mi(e) {
933
- if (!e) return "";
934
- let n = t({
935
- p: M.value.style.chart.layout.legend.prefix,
936
- v: e.total,
937
- s: M.value.style.chart.layout.legend.suffix,
938
- r: M.value.style.chart.layout.legend.roundingValue
939
- }), r = t({
940
- v: e.total / L.value * 100,
941
- s: "%",
942
- r: M.value.style.chart.layout.legend.roundingPercentage
943
- });
944
- return `Root ${e.name}. Value ${n}. ${r} of total.`;
945
- }
946
- function hi(e) {
947
- if (!e) return "";
948
- let n = t({
949
- p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
950
- v: e.value,
951
- s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
952
- r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
953
- }), r = t({
954
- v: e.proportionToRoot * 100,
955
- s: "%",
956
- r: M.value.style.chart.layout.legend.roundingPercentage
957
- });
958
- return `Branch ${e.name}. Root ${e.rootName}. Value ${n}. ${r} of root ${e.rootName}.`;
959
- }
960
- function gi(e) {
961
- if (!e) return "";
962
- let n = t({
963
- p: M.value.style.chart.layout.legend.prefix,
964
- v: e.value,
965
- s: M.value.style.chart.layout.legend.suffix,
966
- r: M.value.style.chart.layout.nuts.selected.labels.roundingValue
967
- }), r = t({
968
- v: e.proportionToBranch * 100,
969
- s: "%",
970
- r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
971
- });
972
- return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${n}. ${r} of branch ${e.branchName}.`;
973
- }
974
- let _i = f(() => Lr.value[j.value.rootIndex] || null), X = f(() => (Rr.value[j.value.rootIndex] || [])[j.value.branchIndex] || null), vi = f(() => ((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [])[j.value.nutIndex] || null), Z = f(() => _i.value), yi = f(() => X.value), bi = f(() => j.value.level === "nut" ? X.value : null), xi = f(() => pr.value);
975
- function Q() {
976
- if (j.value.level === "root") {
977
- A.value = mi(_i.value);
978
- return;
979
- }
980
- if (j.value.level === "branch") {
981
- A.value = hi(X.value);
982
- return;
983
- }
984
- j.value.level === "nut" && (A.value = gi(vi.value));
985
- }
986
- function $() {
987
- j.value = {
988
- level: "root",
989
- rootIndex: 0,
990
- branchIndex: 0,
991
- nutIndex: 0,
992
- locked: !1
993
- }, A.value = "";
994
- }
995
- function Si() {
996
- let e = Rr.value[j.value.rootIndex] || [];
997
- if (!e.length) {
998
- j.value.branchIndex = 0;
999
- return;
1000
- }
1001
- j.value.branchIndex >= e.length && (j.value.branchIndex = 0), j.value.branchIndex < 0 && (j.value.branchIndex = e.length - 1);
1002
- }
1003
- function Ci() {
1004
- let e = (zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [];
1005
- if (!e.length) {
1006
- j.value.nutIndex = 0;
1007
- return;
1008
- }
1009
- j.value.nutIndex >= e.length && (j.value.nutIndex = 0), j.value.nutIndex < 0 && (j.value.nutIndex = e.length - 1);
1010
- }
1011
- function wi(e) {
1012
- if (j.value.level === "root") {
1013
- let t = Lr.value.length;
1014
- if (!t) return;
1015
- j.value.rootIndex += e, j.value.rootIndex >= t && (j.value.rootIndex = 0), j.value.rootIndex < 0 && (j.value.rootIndex = t - 1), j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
1016
- return;
1017
- }
1018
- if (j.value.level === "branch") {
1019
- j.value.branchIndex += e, Si(), j.value.nutIndex = 0, Q();
1020
- return;
1021
- }
1022
- j.value.level === "nut" && (j.value.nutIndex += e, Ci(), Q());
1023
- }
1024
- function Ti(e) {
1025
- if (e > 0) {
1026
- if (j.value.level === "root") {
1027
- if (!(Rr.value[j.value.rootIndex] || []).length) return;
1028
- j.value.level = "branch", j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
1029
- return;
1030
- }
1031
- if (j.value.level === "branch") {
1032
- if (!((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || []).length) return;
1033
- j.value.level = "nut", j.value.nutIndex = 0, X.value ? Vr(X.value) : Q();
1034
- return;
1035
- }
1036
- return;
1037
- }
1038
- if (j.value.level === "nut") {
1039
- J(), W.value = null, j.value.level = "branch", j.value.nutIndex = 0, Q();
1040
- return;
1041
- }
1042
- j.value.level === "branch" && (W.value = null, G.value = null, j.value.level = "root", j.value.nutIndex = 0, Q());
1043
- }
1044
- function Ei() {
1045
- if (j.value.level === "root" && _i.value) {
1046
- Ur(_i.value), A.value = `${mi(_i.value)} selected.`;
1047
- return;
1048
- }
1049
- if (j.value.level === "branch" && X.value) {
1050
- Hr(X.value), A.value = `${hi(X.value)} selected.`;
1051
- return;
1052
- }
1053
- j.value.level === "nut" && X.value && vi.value && (Vr(X.value), A.value = `${gi(vi.value)} details opened.`);
1054
- }
1055
- function Di() {
1056
- pr.value = !0, k.value = !1;
1057
- }
1058
- function Oi() {
1059
- pr.value = !1, k.value = !1, A.value = "", !G.value && !W.value && !H.value && $();
1060
- }
1061
- function ki(e) {
1062
- let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1063
- if (!(!t && !n && !r && !i && !a && !o)) {
1064
- if (e.preventDefault(), e.stopPropagation(), pr.value ||= !0, o) {
1065
- K(), $(), k.value = !1;
1066
- return;
1067
- }
1068
- if ((t || n || r || i) && (k.value = !0), t) {
1069
- wi(-1);
1070
- return;
1071
- }
1072
- if (n) {
1073
- wi(1);
1074
- return;
1075
- }
1076
- if (r) {
1077
- Ti(-1);
1078
- return;
1079
- }
1080
- if (i) {
1081
- Ti(1);
1082
- return;
1083
- }
1084
- a && Ei();
1085
- }
1086
- }
1087
- let Ai = f(() => ({
1088
- headers: Y.value.head,
1089
- rows: Y.value.body.map((e) => [
1090
- e.rootName,
1091
- e.rootValue,
1092
- t({
1093
- v: e.rootToTotal * 100,
1094
- s: "%",
1095
- r: M.value.table.td.roundingPercentage
1096
- }),
1097
- e.branchName,
1098
- e.branchValue,
1099
- t({
1100
- v: e.branchToRoot * 100,
1101
- s: "%",
1102
- r: M.value.table.td.roundingPercentage
1103
- }),
1104
- t({
1105
- v: e.branchToTotal * 100,
1106
- s: "%",
1107
- r: M.value.table.td.roundingPercentage
1108
- }),
1109
- e.nutName,
1110
- e.nutValue,
1111
- t({
1112
- v: e.nutToBranch * 100,
1113
- s: "%",
1114
- r: M.value.table.td.roundingPercentage
1115
- }),
1116
- t({
1117
- v: e.nutToRoot * 100,
1118
- s: "%",
1119
- r: M.value.table.td.roundingPercentage
1120
- }),
1121
- t({
1122
- v: e.nutToTotal * 100,
1123
- s: "%",
1124
- r: M.value.table.td.roundingPercentage
1125
- })
1126
- ])
1127
- }));
1128
- return ye({
1129
- getData: Ar,
1130
- getImage: ei,
1131
- generatePdf: wr,
1132
- generateCsv: Jr,
1133
- generateImage: Tr,
1134
- generateSvg: di,
1135
- toggleTable: Zr,
1136
- toggleAnnotator: $r,
1137
- toggleFullscreen: Xr,
1138
- copyAlt: pi
1139
- }), (e, n) => (b(), m("div", {
1140
- class: _(`vue-data-ui-component vue-ui-chestnut ${Yr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1141
- ref_key: "chestnutChart",
1142
- ref: sr,
1143
- id: `vue-ui-chestnut_${O.value}`,
1144
- style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor}`),
1145
- onMouseenter: n[12] ||= () => T(vr)(!0),
1146
- onMouseleave: n[13] ||= () => T(vr)(!1)
1147
- }, [
1148
- h("div", {
1149
- id: `chart-instructions-${O.value}`,
1150
- class: "sr-only"
1151
- }, [h("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
1152
- h("div", Ve, w(A.value), 1),
1153
- Ai.value?.rows?.length ? (b(), Te(be, {
1154
- key: 0,
1155
- uid: O.value,
1156
- head: Ai.value.headers,
1157
- body: Ai.value.rows,
1158
- notice: M.value.a11y.translations.tableAvailable,
1159
- caption: M.value.a11y.translations.tableCaption
1160
- }, null, 8, [
1161
- "uid",
1162
- "head",
1163
- "body",
1164
- "notice",
1165
- "caption"
1166
- ])) : p("", !0),
1167
- M.value.userOptions.buttons.annotator ? (b(), Te(T($n), {
1168
- key: 1,
1169
- svgRef: T(br),
1170
- backgroundColor: M.value.style.chart.backgroundColor,
1171
- color: M.value.style.chart.color,
1172
- active: Qr.value,
1173
- isCursorPointer: N.value,
1174
- onClose: $r
1175
- }, {
1176
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1177
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
1178
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
1179
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
1180
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
1181
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
1182
- _: 3
1183
- }, 8, [
1184
- "svgRef",
1185
- "backgroundColor",
1186
- "color",
1187
- "active",
1188
- "isCursorPointer"
1189
- ])) : p("", !0),
1190
- Er.value ? (b(), m("div", He, null, 512)) : p("", !0),
1191
- M.value.userOptions.show && or.value && (T(yr) || T(_r)) ? (b(), Te(T(er), {
1192
- ref_key: "userOptionsRef",
1193
- ref: ur,
1194
- key: `user_options_${cr.value}`,
1195
- backgroundColor: M.value.style.chart.backgroundColor,
1196
- color: M.value.style.chart.color,
1197
- isImaging: T(Cr),
1198
- isPrinting: T(Sr),
1199
- uid: O.value,
1200
- hasPdf: M.value.userOptions.buttons.pdf,
1201
- hasImg: M.value.userOptions.buttons.img,
1202
- hasSvg: M.value.userOptions.buttons.svg,
1203
- hasXls: M.value.userOptions.buttons.csv,
1204
- hasTable: M.value.userOptions.buttons.table,
1205
- hasFullscreen: M.value.userOptions.buttons.fullscreen,
1206
- hasAltCopy: M.value.userOptions.buttons.altCopy,
1207
- isFullscreen: Yr.value,
1208
- titles: { ...M.value.userOptions.buttonTitles },
1209
- chartElement: sr.value,
1210
- position: M.value.userOptions.position,
1211
- hasAnnotator: M.value.userOptions.buttons.annotator,
1212
- isAnnotation: Qr.value,
1213
- callbacks: M.value.userOptions.callbacks,
1214
- printScale: M.value.userOptions.print.scale,
1215
- tableDialog: M.value.table.useDialog,
1216
- isCursorPointer: N.value,
1217
- onToggleFullscreen: Xr,
1218
- onGeneratePdf: T(wr),
1219
- onGenerateCsv: Jr,
1220
- onGenerateImage: fi,
1221
- onGenerateSvg: di,
1222
- onToggleTable: Zr,
1223
- onToggleAnnotator: $r,
1224
- onCopyAlt: pi,
1225
- style: y({ visibility: T(yr) ? T(_r) ? "visible" : "hidden" : "visible" })
1226
- }, Ee({ _: 2 }, [
1227
- e.$slots.menuIcon ? {
1228
- name: "menuIcon",
1229
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
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: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1238
- key: "1"
1239
- } : void 0,
1240
- e.$slots.optionCsv ? {
1241
- name: "optionCsv",
1242
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1243
- key: "2"
1244
- } : void 0,
1245
- e.$slots.optionImg ? {
1246
- name: "optionImg",
1247
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1248
- key: "3"
1249
- } : void 0,
1250
- e.$slots.optionSvg ? {
1251
- name: "optionSvg",
1252
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1253
- key: "4"
1254
- } : void 0,
1255
- e.$slots.optionTable ? {
1256
- name: "optionTable",
1257
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1258
- key: "5"
1259
- } : void 0,
1260
- e.$slots.optionFullscreen ? {
1261
- name: "optionFullscreen",
1262
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
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: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
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: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1279
- key: "8"
1280
- } : void 0,
1281
- e.$slots["custom-menu-before"] ? {
1282
- name: "custom-menu-before",
1283
- fn: E(() => [C(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: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1289
- key: "10"
1290
- } : void 0
1291
- ]), 1032, [
1292
- "backgroundColor",
1293
- "color",
1294
- "isImaging",
1295
- "isPrinting",
1296
- "uid",
1297
- "hasPdf",
1298
- "hasImg",
1299
- "hasSvg",
1300
- "hasXls",
1301
- "hasTable",
1302
- "hasFullscreen",
1303
- "hasAltCopy",
1304
- "isFullscreen",
1305
- "titles",
1306
- "chartElement",
1307
- "position",
1308
- "hasAnnotator",
1309
- "isAnnotation",
1310
- "callbacks",
1311
- "printScale",
1312
- "tableDialog",
1313
- "isCursorPointer",
1314
- "onGeneratePdf",
1315
- "style"
1316
- ])) : p("", !0),
1317
- h("div", Ue, [F.value.height > 0 ? (b(), m("svg", {
1318
- key: 0,
1319
- ref_key: "svgRef",
1320
- ref: br,
1321
- xmlns: T(se),
1322
- "aria-describedby": `chart-instructions-${O.value}`,
1323
- class: _({
1324
- "vue-data-ui-fullscreen--on": Yr.value,
1325
- "vue-data-ui-fulscreen--off": !Yr.value
1326
- }),
1327
- viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
1328
- style: y(`overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
1329
- tabindex: "0",
1330
- onFocus: Di,
1331
- onBlur: Oi,
1332
- onKeydown: ki
1333
- }, [
1334
- Oe(T(tr)),
1335
- e.$slots["chart-background"] ? (b(), m("foreignObject", {
1336
- key: 0,
1337
- x: 0,
1338
- y: 0,
1339
- width: F.value.width <= 0 ? 10 : F.value.width,
1340
- height: F.value.height <= 0 ? 10 : F.value.height,
1341
- style: { pointerEvents: "none" }
1342
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
1343
- H.value ? p("", !0) : (b(), m("g", Ke, [M.value.style.chart.layout.title.text ? (b(), m("text", {
1344
- key: 0,
1345
- "text-anchor": "middle",
1346
- fill: M.value.style.chart.layout.title.color,
1347
- "font-weight": M.value.style.chart.layout.title.bold ? "bold" : "normal",
1348
- "font-size": M.value.style.chart.layout.title.fontSize,
1349
- x: F.value.width / 2,
1350
- y: 12 + M.value.style.chart.layout.title.fontSize + M.value.style.chart.layout.title.offsetY,
1351
- onClick: n[0] ||= () => {
1352
- K(), $(), k.value = !1;
1353
- }
1354
- }, w(M.value.style.chart.layout.title.text), 9, qe)) : p("", !0), M.value.style.chart.layout.title.subtitle.text ? (b(), m("text", {
1355
- key: 1,
1356
- "text-anchor": "middle",
1357
- fill: M.value.style.chart.layout.title.subtitle.color,
1358
- "font-weight": M.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
1359
- "font-size": M.value.style.chart.layout.title.subtitle.fontSize,
1360
- x: F.value.width / 2,
1361
- y: 48 + M.value.style.chart.layout.title.subtitle.fontSize + M.value.style.chart.layout.title.subtitle.offsetY,
1362
- onClick: n[1] ||= () => {
1363
- K(), $(), k.value = !1;
1364
- }
1365
- }, w(M.value.style.chart.layout.title.subtitle.text), 9, Je)) : p("", !0)])),
1366
- h("defs", null, [
1367
- (b(!0), m(d, null, S(R.value, (e, t) => (b(), m("radialGradient", {
1368
- cx: "50%",
1369
- cy: "50%",
1370
- r: "50%",
1371
- fx: "50%",
1372
- fy: "50%",
1373
- id: `root_gradient_${O.value}_${e.rootIndex}`
1374
- }, [h("stop", {
1375
- offset: "0%",
1376
- "stop-color": T(l)(T(a)(e.color, .05), 100 - M.value.style.chart.layout.roots.gradientIntensity)
1377
- }, null, 8, Xe), h("stop", {
1378
- offset: "100%",
1379
- "stop-color": e.color
1380
- }, null, 8, Ze)], 8, Ye))), 256)),
1381
- (b(!0), m(d, null, S(R.value, (e) => (b(), m("linearGradient", {
1382
- x1: "0%",
1383
- y1: "0%",
1384
- x2: "100%",
1385
- y2: "0%",
1386
- id: `branch_gradient_${O.value}_${e.rootIndex}`
1387
- }, [h("stop", {
1388
- offset: "0%",
1389
- "stop-color": e.color
1390
- }, null, 8, $e), h("stop", {
1391
- offset: "100%",
1392
- "stop-color": T(l)(T(a)(e.color, .02), 100 - M.value.style.chart.layout.branches.gradientIntensity)
1393
- }, null, 8, et)], 8, Qe))), 256)),
1394
- h("radialGradient", {
1395
- cx: "50%",
1396
- cy: "50%",
1397
- r: "50%",
1398
- fx: "50%",
1399
- fy: "50%",
1400
- id: `nutpick_${O.value}`
1401
- }, [
1402
- h("stop", {
1403
- offset: "0%",
1404
- "stop-color": T(l)("#FFFFFF", 0)
1405
- }, null, 8, nt),
1406
- h("stop", {
1407
- offset: "80%",
1408
- "stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.selected.gradientIntensity)
1409
- }, null, 8, rt),
1410
- h("stop", {
1411
- offset: "100%",
1412
- "stop-color": T(l)("#FFFFFF", 0)
1413
- }, null, 8, it)
1414
- ], 8, tt),
1415
- h("radialGradient", {
1416
- cx: "50%",
1417
- cy: "50%",
1418
- r: "50%",
1419
- fx: "50%",
1420
- fy: "50%",
1421
- id: `nut_${O.value}`
1422
- }, [
1423
- h("stop", {
1424
- offset: "0%",
1425
- "stop-color": T(l)("#FFFFFF", 0)
1426
- }, null, 8, ot),
1427
- h("stop", {
1428
- offset: "80%",
1429
- "stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.gradientIntensity)
1430
- }, null, 8, st),
1431
- h("stop", {
1432
- offset: "100%",
1433
- "stop-color": T(l)("#FFFFFF", 0)
1434
- }, null, 8, ct)
1435
- ], 8, at),
1436
- h("radialGradient", {
1437
- cx: "50%",
1438
- cy: "50%",
1439
- r: "50%",
1440
- fx: "50%",
1441
- fy: "50%",
1442
- id: `nut_underlayer_${O.value}`
1443
- }, [
1444
- h("stop", {
1445
- offset: "0%",
1446
- "stop-color": T(l)(M.value.style.chart.backgroundColor, 100)
1447
- }, null, 8, ut),
1448
- h("stop", {
1449
- offset: "80%",
1450
- "stop-color": T(l)(M.value.style.chart.backgroundColor, 60)
1451
- }, null, 8, dt),
1452
- h("stop", {
1453
- offset: "100%",
1454
- "stop-color": T(l)(M.value.style.chart.backgroundColor, 0)
1455
- }, null, 8, ft)
1456
- ], 8, lt)
1457
- ]),
1458
- M.value.style.chart.layout.grandTotal.show ? (b(), m("g", pt, [h("text", {
1459
- x: I.value.seedX,
1460
- y: 32 + M.value.style.chart.layout.grandTotal.offsetY,
1461
- "font-size": M.value.style.chart.layout.grandTotal.fontSize,
1462
- "font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1463
- fill: M.value.style.chart.layout.grandTotal.color,
1464
- "text-anchor": "middle",
1465
- onClick: n[2] ||= () => {
1466
- K(), $(), k.value = !1;
1467
- }
1468
- }, w(M.value.style.chart.layout.grandTotal.text), 9, mt), h("text", {
1469
- x: I.value.seedX,
1470
- y: 38 + M.value.style.chart.layout.grandTotal.fontSize + M.value.style.chart.layout.grandTotal.offsetY,
1471
- "font-size": M.value.style.chart.layout.grandTotal.fontSize,
1472
- "font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1473
- fill: M.value.style.chart.layout.grandTotal.color,
1474
- "text-anchor": "middle",
1475
- onClick: n[3] ||= () => {
1476
- K(), $(), k.value = !1;
1477
- }
1478
- }, w(T(c)(M.value.style.chart.layout.grandTotal.formatter, L.value, T(t)({
1479
- p: M.value.style.chart.layout.grandTotal.prefix,
1480
- v: L.value,
1481
- s: M.value.style.chart.layout.grandTotal.suffix,
1482
- r: M.value.style.chart.layout.grandTotal.roundingValue
1483
- }))), 9, ht)])) : p("", !0),
1484
- (b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [h("defs", null, [h("linearGradient", { id: `link_grad_${e.id}` }, [h("stop", {
1485
- offset: "0%",
1486
- "stop-color": e.color
1487
- }, null, 8, _t), h("stop", {
1488
- offset: "100%",
1489
- "stop-color": T(l)(e.color, M.value.style.chart.layout.links.opacity)
1490
- }, null, 8, vt)], 8, gt)]), h("path", {
1491
- d: ti(e),
1492
- stroke: T(l)(e.color, M.value.style.chart.layout.links.opacity),
1493
- fill: `url(#link_grad_${e.id})`,
1494
- "stroke-linecap": "round",
1495
- "stroke-linejoin": "round",
1496
- style: y(`opacity:${+!!q(e)}`),
1497
- onClick: n[4] ||= () => {
1498
- K(), $(), k.value = !1;
1499
- }
1500
- }, null, 12, yt)]))), 256)),
1501
- (b(!0), m(d, null, S(B.value, (e) => (b(), m("circle", {
1502
- cx: e.x,
1503
- cy: e.y,
1504
- r: e.r,
1505
- fill: M.value.style.chart.layout.roots.underlayerColor,
1506
- stroke: "none",
1507
- style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
1508
- }, null, 12, bt))), 256)),
1509
- (b(!0), m(d, null, S(B.value, (e, t) => (b(), m("circle", {
1510
- "aria-label": mi(e),
1511
- cx: e.x,
1512
- cy: e.y,
1513
- r: e.r,
1514
- fill: M.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${O.value}_${e.rootIndex})` : e.color,
1515
- stroke: M.value.style.chart.layout.roots.stroke,
1516
- "stroke-width": M.value.style.chart.layout.roots.strokeWidth,
1517
- style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1518
- onClick: (t) => Ur(e)
1519
- }, null, 12, xt))), 256)),
1520
- M.value.style.chart.layout.roots.labels.show ? (b(), m("g", St, [(b(!0), m(d, null, S(B.value, (e, n) => (b(), m("text", {
1521
- x: e.x,
1522
- y: e.y + M.value.style.chart.layout.roots.labels.fontSize / 2.6,
1523
- "text-anchor": "middle",
1524
- "font-size": M.value.style.chart.layout.roots.labels.fontSize,
1525
- fill: M.value.style.chart.layout.roots.labels.adaptColorToBackground ? T(oe)(e.color) : M.value.style.chart.layout.roots.labels.color,
1526
- "font-weight": "bold",
1527
- style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1528
- onClick: (t) => Ur(e)
1529
- }, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
1530
- p: M.value.style.chart.layout.roots.labels.prefix,
1531
- v: e.total,
1532
- s: M.value.style.chart.layout.roots.labels.suffix,
1533
- r: M.value.style.chart.layout.roots.labels.roundingValue
1534
- }), { datapoint: e })), 13, Ct))), 256)), (b(!0), m(d, null, S(B.value, (e) => (b(), m("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (b(), m("g", wt, [h("text", {
1535
- x: e.x,
1536
- y: e.y + e.r + 24,
1537
- "text-anchor": "middle",
1538
- fill: M.value.style.chart.layout.roots.labels.name.color,
1539
- "font-size": M.value.style.chart.layout.roots.labels.name.fontSize,
1540
- "font-weight": M.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
1541
- onClick: n[5] ||= () => {
1542
- K(), $(), k.value = !1;
1543
- }
1544
- }, w(e.name), 9, Tt)])) : p("", !0)]))), 256))])) : p("", !0),
1545
- (b(!0), m(d, null, S(V.value, (e) => (b(), m("rect", {
1546
- x: e.x1,
1547
- y: e.y1,
1548
- height: F.value.branchSize,
1549
- width: e.x2 - e.x1,
1550
- fill: M.value.style.chart.layout.branches.underlayerColor,
1551
- rx: M.value.style.chart.layout.branches.borderRadius,
1552
- stroke: "none",
1553
- style: y(`opacity:${q(e) ? 1 : .05}`),
1554
- onClick: (t) => Hr(e)
1555
- }, null, 12, Et))), 256)),
1556
- (b(!0), m(d, null, S(V.value, (e, t) => (b(), m("rect", {
1557
- "aria-label": hi(e),
1558
- x: e.x1,
1559
- y: e.y1,
1560
- height: F.value.branchSize,
1561
- width: e.x2 - e.x1,
1562
- fill: M.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${O.value}_${e.rootIndex})` : e.color,
1563
- rx: M.value.style.chart.layout.branches.borderRadius,
1564
- stroke: M.value.style.chart.layout.branches.stroke,
1565
- "stroke-width": M.value.style.chart.layout.branches.strokeWidth,
1566
- style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1567
- onClick: (t) => Hr(e)
1568
- }, null, 12, Dt))), 256)),
1569
- M.value.style.chart.layout.branches.labels.dataLabels.show ? (b(), m("g", Ot, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [e.proportionToRoot * 100 > M.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (b(), m("text", {
1570
- key: 0,
1571
- x: e.x1 + 6,
1572
- y: e.y1 + F.value.branchSize / 1.5,
1573
- "text-anchor": "start",
1574
- fill: T(oe)(e.color),
1575
- "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1576
- "font-weight": "bold",
1577
- style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1578
- onClick: (t) => Hr(e)
1579
- }, w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
1580
- p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
1581
- v: e.value,
1582
- s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
1583
- r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1584
- }), { datapoint: e })), 13, kt)) : p("", !0)]))), 256))])) : p("", !0),
1585
- (b(!0), m(d, null, S(V.value, (e, t) => (b(), m("g", null, [(b(!0), m(d, null, S(T(ne)({
1586
- series: e.breakdown,
1587
- base: 1
1588
- }, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, F.value.branchSize / 3, F.value.branchSize / 3), (t, n) => (b(), m("path", {
1589
- d: t.path,
1590
- stroke: t.color,
1591
- "stroke-width": 10,
1592
- fill: "none",
1593
- style: y(`opacity:${q(e) ? 1 : .1}`)
1594
- }, null, 12, At))), 256)), h("circle", {
1595
- "aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
1596
- fill: M.value.style.chart.layout.nuts.useGradient ? `url(#nut_${O.value})` : "transparent",
1597
- cx: e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1598
- cy: e.y1 + F.value.branchSize / 2,
1599
- r: F.value.branchSize / 2 + 2,
1600
- onClick: (t) => Vr(e),
1601
- style: y(`cursor:${N.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
1602
- }, null, 12, jt)]))), 256)),
1603
- M.value.style.chart.layout.branches.labels.show && !W.value ? (b(), m("g", Mt, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("text", {
1604
- x: e.x2 + F.value.branchSize + 24 + M.value.style.chart.layout.nuts.offsetX,
1605
- y: e.y1 + F.value.branchSize / 2 + 5,
1606
- "font-size": M.value.style.chart.layout.branches.labels.fontSize,
1607
- "font-weight": M.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
1608
- fill: M.value.style.chart.layout.branches.labels.color,
1609
- "text-anchor": "start",
1610
- style: y(`opacity:${q(e) ? 1 : .1}`)
1611
- }, w(e.name), 13, Nt))), 256))])) : p("", !0),
1612
- h("line", {
1613
- x1: 256 + F.value.padding.left,
1614
- x2: 256 + F.value.padding.left,
1615
- y1: I.value.top,
1616
- y2: I.value.bottom,
1617
- stroke: M.value.style.chart.layout.verticalSeparator.stroke,
1618
- "stroke-width": M.value.style.chart.layout.verticalSeparator.strokeWidth
1619
- }, null, 8, Pt),
1620
- !H.value && !W.value ? (b(), m("foreignObject", {
1621
- key: 6,
1622
- x: 0,
1623
- y: I.value.bottom,
1624
- height: F.value.height - I.value.bottom,
1625
- width: F.value.width,
1626
- style: { overflow: "visible" },
1627
- "data-no-svg-export": "",
1628
- onClick: n[6] ||= () => {
1629
- K(), $(), k.value = !1;
1630
- }
1631
- }, [h("div", It, [h("div", Lt, [(b(!0), m(d, null, S(B.value, (e) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Rt, [h("circle", {
1632
- cx: "10",
1633
- cy: "10",
1634
- r: "10",
1635
- fill: e.color,
1636
- stroke: "none"
1637
- }, null, 8, zt)])), T(hr) ? p("", !0) : (b(), m(d, { key: 0 }, [
1638
- h("span", null, w(e.name) + ":", 1),
1639
- h("b", null, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
1640
- p: M.value.style.chart.layout.legend.prefix,
1641
- v: e.total,
1642
- s: M.value.style.chart.layout.legend.suffix,
1643
- r: M.value.style.chart.layout.legend.roundingValue
1644
- }), { datapoint: e })), 1),
1645
- De(" (" + w(T(t)({
1646
- v: e.total / L.value * 100,
1647
- s: "%",
1648
- r: M.value.style.chart.layout.legend.roundingPercentage
1649
- })) + ") ", 1)
1650
- ], 64))], 4))), 256))])])], 8, Ft)) : p("", !0),
1651
- H.value && U.value ? (b(), m("g", Bt, [
1652
- (b(), m("foreignObject", {
1653
- x: 0,
1654
- y: Wr(),
1655
- height: F.value.height - I.value.bottom,
1656
- width: F.value.width,
1657
- style: { overflow: "visible" },
1658
- onClick: n[7] ||= () => {
1659
- K(), $(), k.value = !1;
1660
- }
1661
- }, [h("div", Ht, [h("b", null, w(H.value.name), 1), h("div", Ut, [(b(!0), m(d, null, S(H.value.breakdown, (e, t) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Wt, [h("circle", {
1662
- cx: "10",
1663
- cy: "10",
1664
- r: "10",
1665
- fill: e.color,
1666
- stroke: "none"
1667
- }, null, 8, Gt)])), h("span", null, [
1668
- De(w(e.name) + ": ", 1),
1669
- h("b", null, w(M.value.style.chart.layout.legend.prefix) + " " + w(e.value.toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + w(M.value.style.chart.layout.legend.suffix), 1),
1670
- De(" (" + w((e.proportionToBranch * 100).toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
1671
- ])], 4))), 256))])])], 8, Vt)),
1672
- h("circle", {
1673
- cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1674
- cy: H.value.y1 + F.value.branchSize / 2,
1675
- r: 256,
1676
- fill: `url(#nut_underlayer_${O.value})`,
1677
- onClick: J,
1678
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1679
- }, null, 10, Kt),
1680
- (b(!0), m(d, null, S(U.value, (e) => (b(), m("g", null, [Gr(e) ? (b(), m("path", {
1681
- key: 0,
1682
- d: T(ae)(e, {
1683
- x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1684
- y: H.value.y1 + F.value.branchSize / 2
1685
- }, 16, 16, !1, !1, 64),
1686
- stroke: e.color,
1687
- "stroke-width": "1",
1688
- "stroke-linecap": "round",
1689
- "stroke-linejoin": "round",
1690
- fill: "none",
1691
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1692
- }, null, 10, qt)) : p("", !0)]))), 256)),
1693
- h("circle", {
1694
- cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1695
- cy: H.value.y1 + F.value.branchSize / 2,
1696
- r: 118,
1697
- fill: M.value.style.chart.backgroundColor,
1698
- onClick: J,
1699
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1700
- }, null, 10, Jt),
1701
- (b(!0), m(d, null, S(U.value, (e) => (b(), m("path", {
1702
- d: e.path,
1703
- stroke: e.color,
1704
- "stroke-width": 64,
1705
- fill: "none",
1706
- onClick: J,
1707
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1708
- }, null, 10, Yt))), 256)),
1709
- h("circle", {
1710
- cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1711
- cy: H.value.y1 + F.value.branchSize / 2,
1712
- r: 110,
1713
- fill: `url(#nutpick_${O.value})`,
1714
- onClick: J,
1715
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1716
- }, null, 10, Xt),
1717
- h("circle", {
1718
- cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1719
- cy: H.value.y1 + F.value.branchSize / 2,
1720
- r: 64,
1721
- fill: M.value.style.chart.backgroundColor,
1722
- onClick: J,
1723
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1724
- }, null, 10, Zt),
1725
- h("text", {
1726
- x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1727
- y: H.value.y1 + 8,
1728
- fill: M.value.style.chart.layout.nuts.selected.labels.core.total.color,
1729
- "font-size": M.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
1730
- "font-weight": M.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
1731
- "text-anchor": "middle",
1732
- onClick: J,
1733
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1734
- }, w(M.value.translations.total), 11, Qt),
1735
- h("text", {
1736
- x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1737
- y: H.value.y1 + 36,
1738
- fill: M.value.style.chart.layout.nuts.selected.labels.core.value.color,
1739
- "font-size": M.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
1740
- "font-weight": M.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
1741
- "text-anchor": "middle",
1742
- onClick: J,
1743
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1744
- }, w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, T(t)({
1745
- p: M.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
1746
- v: H.value.value,
1747
- s: M.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
1748
- r: M.value.style.chart.layout.nuts.selected.roundingValue
1749
- }), { datapoint: H.value })), 11, $t),
1750
- (b(!0), m(d, null, S(U.value, (e, t) => (b(), m("g", null, [Gr(e) ? (b(), m("text", {
1751
- key: 0,
1752
- x: T(u)(e).x,
1753
- "text-anchor": T(u)(e).anchor,
1754
- y: T(re)(e) - M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
1755
- fill: e.color,
1756
- "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
1757
- style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1758
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1759
- }, " ⬤ ", 14, en)) : p("", !0), Gr(e) ? (b(), m("text", {
1760
- key: 1,
1761
- x: T(u)(e, !0).x,
1762
- "text-anchor": T(u)(e, !0).anchor,
1763
- y: T(re)(e),
1764
- fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1765
- "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1766
- style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1767
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1768
- }, w(H.value.breakdown[t].name), 15, tn)) : p("", !0)]))), 256)),
1769
- (b(!0), m(d, null, S(U.value, (e, n) => (b(), m("g", null, [
1770
- Gr(e) ? (b(), m("text", {
1771
- key: 0,
1772
- x: T(u)(e, !0).x,
1773
- "text-anchor": T(u)(e).anchor,
1774
- y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1775
- fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1776
- "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1777
- style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1778
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1779
- }, w(T(t)({
1780
- v: H.value.breakdown[n].value / H.value.value * 100,
1781
- s: "%",
1782
- r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1783
- })) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].branchName) + " " + w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[n].value, T(t)({
1784
- p: M.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
1785
- v: H.value.breakdown[n].value,
1786
- s: M.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
1787
- r: M.value.style.chart.layout.nuts.selected.roundingValue
1788
- }), {
1789
- datapoint: U.value,
1790
- seriesIndex: n
1791
- })), 15, nn)) : p("", !0),
1792
- Gr(e) ? (b(), m("text", {
1793
- key: 1,
1794
- x: T(u)(e, !0).x,
1795
- "text-anchor": T(u)(e).anchor,
1796
- y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
1797
- fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1798
- "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1799
- style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1800
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1801
- }, w(T(t)({
1802
- v: H.value.breakdown[n].proportionToRoot * 100,
1803
- s: "%",
1804
- r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1805
- })) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].rootName), 15, rn)) : p("", !0),
1806
- Gr(e) ? (b(), m("text", {
1807
- key: 2,
1808
- x: T(u)(e, !0).x,
1809
- "text-anchor": T(u)(e).anchor,
1810
- y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
1811
- fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1812
- "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1813
- style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1814
- class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1815
- }, w(T(t)({
1816
- v: H.value.breakdown[n].proportionToTree * 100,
1817
- s: "%",
1818
- r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1819
- })) + " " + w(M.value.translations.proportionToTree), 15, an)) : p("", !0)
1820
- ]))), 256))
1821
- ])) : p("", !0),
1822
- (b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [
1823
- W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
1824
- key: 0,
1825
- x: e.x1 + 6,
1826
- y: e.y1 + F.value.branchSize + 24,
1827
- "font-weight": "bold",
1828
- "text-anchor": "start",
1829
- "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1830
- fill: M.value.style.chart.layout.branches.labels.color,
1831
- onClick: n[8] ||= () => {
1832
- K(), $(), k.value = !1;
1833
- }
1834
- }, w(e.name) + ": " + w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
1835
- p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
1836
- v: e.value,
1837
- s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
1838
- r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1839
- }), { datapoint: e })), 9, on)) : p("", !0),
1840
- W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
1841
- key: 1,
1842
- x: e.x1 + 6,
1843
- y: e.y1 + F.value.branchSize + 48,
1844
- "text-anchor": "start",
1845
- "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1846
- fill: M.value.style.chart.layout.branches.labels.color,
1847
- onClick: n[9] ||= () => {
1848
- K(), $(), k.value = !1;
1849
- }
1850
- }, w(T(t)({
1851
- v: e.proportionToRoot * 100,
1852
- s: "%",
1853
- r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1854
- })) + " " + w(M.value.translations.of) + " " + w(e.rootName), 9, sn)) : p("", !0),
1855
- W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
1856
- key: 2,
1857
- x: e.x1 + 6,
1858
- y: e.y1 + F.value.branchSize + 72,
1859
- "text-anchor": "start",
1860
- "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1861
- fill: M.value.style.chart.layout.branches.labels.color,
1862
- onClick: n[10] ||= () => {
1863
- K(), $(), k.value = !1;
1864
- }
1865
- }, w(T(t)({
1866
- v: e.value / L.value * 100,
1867
- s: "%",
1868
- r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1869
- })) + " " + w(M.value.translations.proportionToTree), 9, cn)) : p("", !0)
1870
- ]))), 256)),
1871
- C(e.$slots, "svg", { svg: {
1872
- ...F.value,
1873
- isPrintingImg: T(Sr) || T(Cr) || dr.value,
1874
- isPrintingSvg: fr.value
1875
- } }, void 0, !0)
1876
- ], 46, We)) : p("", !0)]),
1877
- e.$slots.watermark ? (b(), m("div", ln, [C(e.$slots, "watermark", v(g({ isPrinting: T(Sr) || T(Cr) || dr.value || fr.value })), void 0, !0)])) : p("", !0),
1878
- C(e.$slots, "legend", { legend: R.value }, void 0, !0),
1879
- e.$slots.source ? (b(), m("div", un, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1880
- or.value && M.value.userOptions.buttons.table ? (b(), Te(Ne(ni.value.component), Ae({ key: 6 }, ni.value.props, {
1881
- ref_key: "tableUnit",
1882
- ref: lr,
1883
- onClose: ii
1884
- }), Ee({
1885
- content: E(() => [h("div", {
1886
- ref_key: "tableContainer",
1887
- ref: Or,
1888
- class: "vue-ui-chestnut-table",
1889
- style: y(`${M.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
1890
- }, [h("div", { style: y(`${M.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [M.value.table.useDialog ? p("", !0) : (b(), m("div", {
1891
- key: 0,
1892
- role: "button",
1893
- tabindex: "0",
1894
- style: y(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${N.value ? "pointer" : "default"}; background:${M.value.table.th.backgroundColor};`),
1895
- onClick: ii,
1896
- onKeypress: Le(ii, ["enter"])
1897
- }, [Oe(T(Zn), {
1898
- name: "close",
1899
- stroke: M.value.table.th.color,
1900
- "stroke-width": 2
1901
- }, null, 8, ["stroke"])], 36)), h("div", {
1902
- style: { width: "100%" },
1903
- class: _({ "vue-ui-responsive": T(ri) })
1904
- }, [h("table", dn, [
1905
- M.value.table.useDialog ? p("", !0) : (b(), m("caption", {
1906
- key: 0,
1907
- style: y({
1908
- backgroundColor: M.value.table.th.backgroundColor,
1909
- color: M.value.table.th.color,
1910
- outline: M.value.table.th.outline
1911
- }),
1912
- class: "vue-ui-data-table__caption"
1913
- }, [De(w(M.value.style.chart.layout.title.text) + " ", 1), M.value.style.chart.layout.title.subtitle.text ? (b(), m("span", fn, w(M.value.style.chart.layout.title.subtitle.text), 1)) : p("", !0)], 4)),
1914
- h("thead", null, [h("tr", {
1915
- role: "row",
1916
- style: y(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color}`)
1917
- }, [(b(!0), m(d, null, S(Y.value.head, (e) => (b(), m("th", { style: y(`outline:${M.value.table.th.outline}`) }, w(e), 5))), 256))], 4)]),
1918
- h("tbody", null, [(b(!0), m(d, null, S(Y.value.body, (e, t) => (b(), m("tr", {
1919
- class: _({
1920
- "vue-ui-data-table__tbody__row": !0,
1921
- "vue-ui-data-table__tbody__row-even": t % 2 == 0,
1922
- "vue-ui-data-table__tbody__row-odd": t % 2 != 0
1923
- }),
1924
- style: y(`background:${M.value.table.td.backgroundColor};color:${M.value.table.td.color}`)
1925
- }, [
1926
- h("td", {
1927
- class: "vue-ui-data-table__tbody__td",
1928
- style: y(`outline:${M.value.table.td.outline}`),
1929
- "data-cell": Y.value.head[0]
1930
- }, [h("div", mn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", hn)) : (b(), m("span", gn, w(e.rootName), 1))])], 12, pn),
1931
- h("td", {
1932
- class: "vue-ui-data-table__tbody__td",
1933
- style: y(`outline:${M.value.table.td.outline}`),
1934
- "data-cell": Y.value.head[1]
1935
- }, [h("div", vn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", yn)) : (b(), m("span", bn, w(e.rootValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, _n),
1936
- h("td", {
1937
- class: "vue-ui-data-table__tbody__td",
1938
- style: y(`outline:${M.value.table.td.outline}`),
1939
- "data-cell": Y.value.head[2]
1940
- }, [h("div", Sn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", Cn)) : (b(), m("span", wn, w((e.rootToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, xn),
1941
- h("td", {
1942
- class: "vue-ui-data-table__tbody__td",
1943
- style: y(`outline:${M.value.table.td.outline}`),
1944
- "data-cell": Y.value.head[3]
1945
- }, [h("div", En, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Dn)) : (b(), m("span", On, w(e.branchName), 1))])], 12, Tn),
1946
- h("td", {
1947
- class: "vue-ui-data-table__tbody__td",
1948
- style: y(`outline:${M.value.table.td.outline}`),
1949
- "data-cell": Y.value.head[4]
1950
- }, [h("div", An, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", jn)) : (b(), m("span", Mn, w(e.branchValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, kn),
1951
- h("td", {
1952
- class: "vue-ui-data-table__tbody__td",
1953
- style: y(`outline:${M.value.table.td.outline}`),
1954
- "data-cell": Y.value.head[5]
1955
- }, [h("div", Pn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Fn)) : (b(), m("span", In, w((e.branchToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Nn),
1956
- h("td", {
1957
- class: "vue-ui-data-table__tbody__td",
1958
- style: y(`outline:${M.value.table.td.outline}`),
1959
- "data-cell": Y.value.head[6]
1960
- }, [h("div", Rn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", zn)) : (b(), m("span", Bn, w((e.branchToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Ln),
1961
- h("td", {
1962
- class: "vue-ui-data-table__tbody__td",
1963
- style: y(`outline:${M.value.table.td.outline}`),
1964
- "data-cell": Y.value.head[7]
1965
- }, [h("div", Hn, w(e.nutName), 1)], 12, Vn),
1966
- h("td", {
1967
- class: "vue-ui-data-table__tbody__td",
1968
- style: y(`outline:${M.value.table.td.outline}`),
1969
- "data-cell": Y.value.head[8]
1970
- }, [h("div", Wn, w(e.nutValue.toFixed(M.value.table.td.roundingValue)), 1)], 12, Un),
1971
- h("td", {
1972
- class: "vue-ui-data-table__tbody__td",
1973
- style: y(`outline:${M.value.table.td.outline}`),
1974
- "data-cell": Y.value.head[9]
1975
- }, [h("div", Kn, w((e.nutToBranch * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Gn),
1976
- h("td", {
1977
- class: "vue-ui-data-table__tbody__td",
1978
- style: y(`outline:${M.value.table.td.outline}`),
1979
- "data-cell": Y.value.head[10]
1980
- }, [h("div", Jn, w((e.nutToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, qn),
1981
- h("td", {
1982
- class: "vue-ui-data-table__tbody__td",
1983
- style: y(`outline:${M.value.table.td.outline}`),
1984
- "data-cell": Y.value.head[11]
1985
- }, [h("div", Xn, w((e.nutToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Yn)
1986
- ], 6))), 256))])
1987
- ])], 2)], 4)], 4)]),
1988
- _: 2
1989
- }, [M.value.table.useDialog ? {
1990
- name: "title",
1991
- fn: E(() => [De(w(ni.value.title), 1)]),
1992
- key: "0"
1993
- } : void 0, M.value.table.useDialog ? {
1994
- name: "actions",
1995
- fn: E(() => [h("button", {
1996
- tabindex: "0",
1997
- class: "vue-ui-user-options-button",
1998
- onClick: n[11] ||= (e) => Jr(M.value.userOptions.callbacks.csv)
1999
- }, [Oe(T(Zn), {
2000
- name: "fileCsv",
2001
- stroke: ni.value.props.color
2002
- }, null, 8, ["stroke"])])]),
2003
- key: "1"
2004
- } : void 0]), 1040)) : p("", !0),
2005
- C(e.$slots, "skeleton", {}, () => [T(hr) ? (b(), Te(me, { key: 0 })) : p("", !0)], !0)
2006
- ], 46, ze));
2007
- }
2008
- }, [["__scopeId", "data-v-6db5d986"]]);
2009
- //#endregion
2010
- export { Re as n, Zn as t };