vue-data-ui 3.27.0 → 3.27.1-beta.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1515 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ht as i, It as a, Jt as o, Kt as s, S as c, Ut as l, X as ee, at as u, b as te, en as ne, et as re, f as ie, i as ae, it as oe, n as se, nn as ce, nt as le, p as ue, pt as de, t as fe, w as pe, zt as me } from "./lib-D4wK6ljP.js";
3
- import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
- import { t as _e } from "./useConfig-D_6ZrPMD.js";
5
- import { t as ve } from "./usePrinter-DdW2GSm0.js";
6
- import { n as ye, t as be } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as xe } from "./useNestedProp-DR_8JPol.js";
8
- import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Ce } from "./useChartExport-iwOqiIWX.js";
10
- import { t as we } from "./img-Bb5rHcpO.js";
11
- import { n as Te } from "./Title-BMCuINbv.js";
12
- import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
14
- import { t as ke } from "./DefGrad-DVBqDjhO.js";
15
- import { t as Ae } from "./BaseLegendToggle-CP3sddwv.js";
16
- import { t as je } from "./A11yDataTable-DdRsVULz.js";
17
- import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
18
- import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
19
- import { t as Pe } from "./labelUtils-Ccn9kK7T.js";
20
- import { t as Fe } from "./Legend-CulFgjUY.js";
21
- import { t as Ie } from "./vue_ui_nested_donuts-B8csIoVO.js";
22
- import { Fragment as d, Teleport as Le, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as Re, createTextVNode as ze, createVNode as Be, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as y, normalizeStyle as We, onBeforeUnmount as Ge, onMounted as Ke, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as qe, shallowRef as Je, toDisplayString as w, toRefs as Ye, unref as T, vShow as Xe, watch as Ze, withCtx as E, withDirectives as Qe } from "vue";
23
- //#region src/components/vue-ui-nested-donuts.vue
24
- var $e = /* @__PURE__ */ e({ default: () => At }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
25
- "xmlns",
26
- "aria-describedby",
27
- "viewBox"
28
- ], at = ["width", "height"], ot = ["id"], st = ["id"], ct = ["id"], lt = ["flood-color"], ut = ["id", "d"], dt = [
29
- "d",
30
- "fill",
31
- "stroke",
32
- "stroke-width",
33
- "filter"
34
- ], ft = [
35
- "d",
36
- "fill",
37
- "stroke",
38
- "stroke-width"
39
- ], pt = { key: 1 }, mt = ["d", "fill"], ht = { key: 2 }, gt = [
40
- "font-size",
41
- "font-weight",
42
- "fill",
43
- "dy"
44
- ], _t = ["href"], vt = [
45
- "x",
46
- "y",
47
- "font-size",
48
- "font-weight",
49
- "fill"
50
- ], yt = { key: 3 }, bt = ["filter"], xt = [
51
- "opacity",
52
- "text-anchor",
53
- "x",
54
- "y",
55
- "fill",
56
- "font-size",
57
- "font-weight"
58
- ], St = [
59
- "opacity",
60
- "text-anchor",
61
- "x",
62
- "y",
63
- "fill",
64
- "font-size",
65
- "font-weight"
66
- ], Ct = [
67
- "d",
68
- "fill",
69
- "onMouseenter",
70
- "onClick",
71
- "onMouseleave"
72
- ], wt = {
73
- key: 0,
74
- style: {
75
- position: "absolute",
76
- top: "100%",
77
- left: "0",
78
- width: "100%"
79
- },
80
- "data-dom-to-png-ignore": "",
81
- "aria-hidden": "true"
82
- }, Tt = {
83
- key: 5,
84
- class: "vue-data-ui-watermark"
85
- }, Et = ["id"], Dt = {
86
- key: 0,
87
- class: "vue-ui-nested-donuts-legend-title"
88
- }, Ot = ["onClick"], kt = { style: {
89
- display: "flex",
90
- "align-items": "center"
91
- } }, At = /*#__PURE__*/ Ee({
92
- __name: "vue-ui-nested-donuts",
93
- props: {
94
- config: {
95
- type: Object,
96
- default() {
97
- return {};
98
- }
99
- },
100
- dataset: {
101
- type: Array,
102
- default() {
103
- return [];
104
- }
105
- }
106
- },
107
- emits: [
108
- "selectLegend",
109
- "selectDatapoint",
110
- "copyAlt"
111
- ],
112
- setup(e, { expose: Ee, emit: $e }) {
113
- let At = _(() => import("./Tooltip-C4ZTwkLF.js")), jt = _(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), Mt = _(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Nt = _(() => import("./DataTable-CjF_An2h.js")), Pt = _(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Ft = _(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), It = _(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), Lt = _(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), { vue_ui_nested_donuts: Rt } = _e(), { isThemeValid: zt, warnInvalidTheme: Bt } = Se(), D = e, Vt = f({
114
- get() {
115
- return !!D.dataset && D.dataset.length;
116
- },
117
- set(e) {
118
- return e;
119
- }
120
- }), O = x(ee()), Ht = x(!1), Ut = x(""), Wt = x(null), Gt = x(0), k = x(null), Kt = x(null), qt = x(null), Jt = x(null), Yt = x(null), Xt = x(0), Zt = x(0), Qt = x(0), A = x(!0), j = x([]), $t = x([]), en = x(!1), tn = x(null), nn = x(null), M = x(null), rn = x({
121
- x: 0,
122
- y: 0
123
- }), an = x("pointer"), on = x(!1), N = x(!1);
124
- function sn(e) {
125
- N.value = e, Gt.value += 1;
126
- }
127
- let P = x(gn()), F = f(() => P.value.style.chart.layout.labels), I = f(() => P.value.style.chart.tooltip), L = f(() => P.value.userOptions), R = f(() => P.value.style.chart.layout), z = f(() => P.value.style.chart);
128
- he({
129
- config: () => P.value,
130
- dataset: () => D.dataset,
131
- component: "VueUiNestedDonuts",
132
- rules: [
133
- ge.emptyArray,
134
- {
135
- test: (e) => e.some((e) => e.series.length > 6),
136
- message: [
137
- "👀 Some series have > 6 data points. Consider:",
138
- "",
139
- "▶️ Grouping small values dynamically into a single \"Other\" data point.",
140
- "",
141
- "▶️ Using filters to let users choose a maximum number of data points to display.",
142
- "",
143
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
144
- ]
145
- },
146
- {
147
- test: (e) => e.length === 1,
148
- message: [
149
- "👀 There is only one series in your dataset. Consider:",
150
- "",
151
- "▶️ Using VueUiDonut instead."
152
- ]
153
- },
154
- {
155
- test: (e) => e.length > 6,
156
- message: [
157
- "👀 The number of series in your dataset > 6. Consider:",
158
- "",
159
- "▶️ Using filters to let users choose a maximum number of series to display",
160
- "",
161
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
162
- ]
163
- }
164
- ]
165
- });
166
- let cn = f(() => P.value.userOptions.useCursorPointer), ln = {
167
- name: "",
168
- series: [
169
- {
170
- name: "",
171
- values: [3],
172
- color: "#BABABA"
173
- },
174
- {
175
- name: "",
176
- values: [2],
177
- color: "#AAAAAA"
178
- },
179
- {
180
- name: "",
181
- values: [1],
182
- color: "#CACACA"
183
- }
184
- ]
185
- }, un = f(() => ce({
186
- defaultConfig: {
187
- useCssAnimation: !1,
188
- table: { show: !1 },
189
- startAnimation: { show: !1 },
190
- userOptions: { show: !1 },
191
- style: { chart: {
192
- backgroundColor: "#99999930",
193
- layout: { labels: { dataLabels: { show: !1 } } },
194
- legend: {
195
- backgroundColor: "transparent",
196
- showValue: !1,
197
- showPercentage: !1
198
- },
199
- title: {
200
- color: "#1A1A1A",
201
- subtitle: { color: "#5A5A5A" }
202
- }
203
- } }
204
- },
205
- userConfig: P.value.skeletonConfig ?? {}
206
- })), { loading: dn, FINAL_DATASET: B, manualLoading: fn } = ye({
207
- ...Ye(D),
208
- FINAL_CONFIG: P,
209
- prepareConfig: gn,
210
- callback: () => {
211
- Promise.resolve().then(async () => {
212
- await xn();
213
- });
214
- },
215
- skeletonDataset: D.config?.skeletonDataset ?? [ln, ln],
216
- skeletonConfig: ce({
217
- defaultConfig: P.value,
218
- userConfig: un.value
219
- })
220
- }), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = Me({ config: P.value }), { svgRef: V } = Ne({ config: z.value.title });
221
- function gn() {
222
- let e = xe({
223
- userConfig: D.config,
224
- defaultConfig: Rt
225
- }), t = {}, n = e.theme;
226
- if (n) {
227
- if (!zt.value(e)) Bt(e), t = e;
228
- else {
229
- let r = xe({
230
- userConfig: Ie[n] || D.config,
231
- defaultConfig: e
232
- });
233
- t = {
234
- ...xe({
235
- userConfig: D.config,
236
- defaultConfig: r
237
- }),
238
- customPalette: e.customPalette.length ? e.customPalette : ne[n] || i
239
- };
240
- }
241
- } else t = e;
242
- return t;
243
- }
244
- function _n(e) {
245
- let t = re(e);
246
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
247
- }
248
- let vn = _n(D.config);
249
- Ze(() => D.config, (e, t) => {
250
- let n = _n(e), r = n !== vn;
251
- vn = n;
252
- let i = gn();
253
- if (!r) {
254
- P.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = P.value.style.chart.tooltip.show;
255
- return;
256
- }
257
- dn.value || (P.value = i), pn.value = !P.value.userOptions.showOnChartHover, Cn(), Xt.value += 1, Zt.value += 1, Qt.value += 1, W.value.dataLabels.show = F.value.dataLabels.show, W.value.showTable = P.value.table.show, W.value.showTooltip = I.value.show, G.value.width = z.value.width, G.value.height = z.value.height;
258
- }, { deep: !0 });
259
- let yn = f(() => {
260
- let { top: e, right: t, bottom: n, left: r } = z.value.padding;
261
- return {
262
- css: `padding:${e}px ${t}px ${n}px ${r}px`,
263
- top: e,
264
- right: t,
265
- bottom: n,
266
- left: r
267
- };
268
- });
269
- function bn(e, t = 1e3, n = 50) {
270
- return new Promise((r) => {
271
- let i = e.length;
272
- j.value = Array(i).fill(0), $t.value = [];
273
- let a = 0;
274
- e.forEach((e, o) => {
275
- setTimeout(() => {
276
- let n = performance.now();
277
- function c(l) {
278
- let ee = Math.min((l - n) / t, 1), u = e * oe(ee);
279
- j.value[o] = u, j.value = [...j.value];
280
- let ne = [], re = 0;
281
- D.dataset.forEach((e, t) => {
282
- let n = te(e.series.reduce((e, t) => e + te(s(t.values).reduce((e, t) => e + t, 0)), 0)) - te(j.value.slice(re, re + e.series.length).reduce((e, t) => e + t, 0));
283
- n > Number.MIN_VALUE && ne.push({
284
- name: "__ghost__",
285
- arcOf: e.name,
286
- arcOfId: `${O.value}_${t}`,
287
- id: `ghost_${O.value}_${t}`,
288
- seriesIndex: -1,
289
- datasetIndex: t,
290
- color: "transparent",
291
- value: n,
292
- fullValue: n,
293
- absoluteValues: [],
294
- ghost: !0
295
- }), re += e.series.length;
296
- }), $t.value = ne, ee < 1 ? requestAnimationFrame(c) : (a += 1, a === i && r());
297
- }
298
- requestAnimationFrame(c);
299
- }, o * n);
300
- });
301
- });
302
- }
303
- async function xn() {
304
- if (P.value.startAnimation?.show) {
305
- let e = B.value.flatMap((e) => e.series).map((e) => s(e.values).reduce((e, t) => e + t, 0));
306
- j.value = e.map(() => 0), A.value = !0, $t.value = B.value.map((e, t) => {
307
- let n = e.series.reduce((e, t) => e + s(t.values).reduce((e, t) => e + t, 0), 0);
308
- return {
309
- name: "__ghost__",
310
- arcOf: e.name,
311
- arcOfId: `${O.value}_${t}`,
312
- id: `ghost_${O.value}_${t}`,
313
- seriesIndex: -1,
314
- datasetIndex: t,
315
- color: "transparent",
316
- value: n,
317
- fullValue: n,
318
- absoluteValues: [],
319
- ghost: !0
320
- };
321
- }), await He(), bn(e, P.value.startAnimation.durationMs, P.value.startAnimation.staggerMs).then(() => {
322
- A.value = !1, $t.value = [];
323
- });
324
- } else A.value = !1;
325
- }
326
- Ke(async () => {
327
- en.value = !0, Cn(), await xn();
328
- });
329
- let H = Je(null), Sn = Je(null), U = f(() => P.value.debug);
330
- function Cn() {
331
- if (me(D.dataset) ? (u({
332
- componentName: "VueUiNestedDonuts",
333
- type: "dataset",
334
- debug: U.value
335
- }), Vt.value = !1, fn.value = !0) : fn.value = P.value.loading, P.value.responsive) {
336
- let e = De(() => {
337
- let { width: e, height: t } = Oe({
338
- chart: k.value,
339
- title: z.value.title.text ? Kt.value : null,
340
- legend: z.value.legend.show ? qt.value : null,
341
- source: Jt.value,
342
- noTitle: Yt.value,
343
- padding: yn.value
344
- });
345
- requestAnimationFrame(() => {
346
- G.value.width = e, G.value.height = t;
347
- });
348
- });
349
- H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect()), H.value = new ResizeObserver(e), Sn.value = k.value.parentNode, H.value.observe(Sn.value);
350
- }
351
- }
352
- Ge(() => {
353
- H.value && (Sn.value && H.value.unobserve(Sn.value), H.value.disconnect());
354
- });
355
- let { isPrinting: wn, isImaging: Tn, generatePdf: En, generateImage: Dn } = ve({
356
- elementId: `nested_donuts_${O.value}`,
357
- fileName: z.value.title.text || "vue-ui-nested-donuts",
358
- options: P.value.userOptions.print
359
- }), On = f(() => P.value.userOptions.show && !z.value.title.text), kn = f(() => pe(P.value.customPalette)), W = x({
360
- dataLabels: { show: F.value.dataLabels.show },
361
- showTable: P.value.table.show,
362
- showTooltip: I.value.show
363
- });
364
- Ze(P, () => {
365
- W.value = {
366
- dataLabels: { show: F.value.dataLabels.show },
367
- showTable: P.value.table.show,
368
- showTooltip: I.value.show
369
- };
370
- }, { immediate: !0 });
371
- let G = x({
372
- width: z.value.width,
373
- height: z.value.height
374
- }), K = $e;
375
- function An({ datapoint: e, index: t, seriesIndex: n }) {
376
- P.value.events.datapointClick && P.value.events.datapointClick({
377
- datapoint: e,
378
- seriesIndex: n
379
- }), K("selectDatapoint", {
380
- datapoint: e,
381
- index: t
382
- });
383
- }
384
- function jn({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = oe }) {
385
- let o = performance.now();
386
- function s(c) {
387
- let l = Math.min((c - o) / n, 1), ee = a(l);
388
- r(e + (t - e) * ee, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
389
- }
390
- requestAnimationFrame(s);
391
- }
392
- let q = x([]), J = f(() => {
393
- dn.value, B.value.forEach((e, t) => {
394
- [null, void 0].includes(e.name) && u({
395
- componentName: "VueUiNestedDonuts",
396
- type: "datasetSerieAttribute",
397
- property: "name",
398
- index: t,
399
- debug: U.value
400
- }), [null, void 0].includes(e.series) ? u({
401
- componentName: "VueUiNestedDonuts",
402
- type: "datasetSerieAttribute",
403
- property: "series",
404
- index: t,
405
- debug: U.value
406
- }) : e.series.length === 0 ? u({
407
- componentName: "VueUiNestedDonuts",
408
- type: "datasetAttributeEmpty",
409
- property: `series at index ${t}`,
410
- debug: U.value
411
- }) : e.series.forEach((e, t) => {
412
- [null, void 0].includes(e.name) && u({
413
- componentName: "VueUiNestedDonuts",
414
- type: "datasetSerieAttribute",
415
- property: "name",
416
- index: t,
417
- key: "serie",
418
- debug: U.value
419
- }), [null, void 0].includes(e.values) && u({
420
- componentName: "VueUiNestedDonuts",
421
- type: "datasetSerieAttribute",
422
- property: "values",
423
- index: t,
424
- key: "serie",
425
- debug: U.value
426
- });
427
- });
428
- });
429
- let e = 0;
430
- return B.value.map((t, n) => ({
431
- ...t,
432
- total: t.series.filter((e) => !q.value.includes(e.id)).map((e) => s(e.values).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
433
- datasetIndex: n,
434
- id: `${O.value}_${n}`,
435
- series: t.series.map((r, a) => {
436
- let o = s(r.values).reduce((e, t) => e + t, 0);
437
- return {
438
- name: r.name,
439
- arcOf: t.name,
440
- arcOfId: `${O.value}_${n}`,
441
- id: `${O.value}_${n}_${a}`,
442
- seriesIndex: a,
443
- datasetIndex: n,
444
- color: c(r.color) || kn.value[a] || i[a % i.length],
445
- value: A.value ? j.value[e++] ?? 0 : o,
446
- absoluteValues: r.values || []
447
- };
448
- })
449
- }));
450
- });
451
- Ze(() => D.dataset, (e) => {
452
- Array.isArray(e) && e.length > 0 && (fn.value = !1);
453
- }, { immediate: !0 });
454
- let Y = f(() => Math.min(G.value.height, G.value.width) * (R.value.donut.strokeWidth / 512)), X = f(() => [...J.value].map((e, t) => {
455
- let n = e.series.filter((e) => !q.value.includes(e.id)).map((e) => e.value).reduce((e, t) => e + t, 0);
456
- return {
457
- ...e,
458
- total: n,
459
- series: e.series.filter((e) => !q.value.includes(e.id)).map((e) => ({
460
- ...e,
461
- proportion: e.value / n
462
- }))
463
- };
464
- }));
465
- function Mn(e, t, n) {
466
- let r = 0;
467
- for (let t = 0; t < e.length; t += 1) n.includes(e[t]) && (r += 1);
468
- return r < t;
469
- }
470
- let Z = x(X.value);
471
- Ze(() => X.value, (e) => Z.value = e);
472
- function Nn(e) {
473
- let t = e.map((e) => e.id);
474
- if (e.some((e) => q.value.includes(e.id))) {
475
- let e = new Set(t);
476
- q.value = q.value.filter((t) => !e.has(t));
477
- } else q.value.push(...t);
478
- K("selectLegend", X.value);
479
- }
480
- function Pn(e) {
481
- let t = D.dataset.flatMap((e, t) => e.series.map((e, n) => ({
482
- value: s(e.values).reduce((e, t) => e + t, 0),
483
- id: `${O.value}_${t}_${n}`,
484
- arcOfId: `${O.value}_${t}`
485
- }))).find((t) => t.id === e.id);
486
- if (!t) return;
487
- let n = J.value.flatMap((e) => e.series).find((t) => t.id === e.id)?.value ?? 0, r = Z.value.flatMap((e) => e.series).find((t) => t.id === e.id), i = r ? r.value : 0, a = J.value.find((e) => e.id === t.arcOfId);
488
- if (!a) return;
489
- let o = a.series.map((e) => e.id), c = Mn(o, o.length - 1, q.value);
490
- q.value.includes(e.id) ? (q.value = q.value.filter((t) => t !== e.id), P.value.serieToggleAnimation.show ? jn({
491
- from: i,
492
- to: n,
493
- duration: P.value.serieToggleAnimation.durationMs,
494
- onUpdate: (t) => {
495
- Z.value = Z.value.map((n) => ({
496
- ...n,
497
- series: n.series.map((n) => n.id === e.id ? {
498
- ...n,
499
- value: t
500
- } : n)
501
- }));
502
- },
503
- onDone: () => {
504
- K("selectLegend", X.value);
505
- }
506
- }) : (Z.value = Z.value.map((t) => ({
507
- ...t,
508
- series: t.series.map((t) => t.id === e.id ? {
509
- ...t,
510
- value: n
511
- } : t)
512
- })), K("selectLegend", X.value))) : c && (P.value.serieToggleAnimation.show ? jn({
513
- from: i,
514
- to: 0,
515
- duration: P.value.serieToggleAnimation.durationMs,
516
- onUpdate: (t) => {
517
- Z.value = Z.value.map((n) => ({
518
- ...n,
519
- series: n.series.map((n) => n.id === e.id ? {
520
- ...n,
521
- value: t
522
- } : n)
523
- }));
524
- },
525
- onDone: () => {
526
- q.value.push(e.id), K("selectLegend", X.value);
527
- }
528
- }) : (Z.value = Z.value.map((t) => ({
529
- ...t,
530
- series: t.series.map((t) => t.id === e.id ? {
531
- ...t,
532
- value: 0
533
- } : t)
534
- })), q.value.push(e.id), K("selectLegend", X.value)));
535
- }
536
- function Fn(e) {
537
- return J.value.length ? J.value.flatMap((e) => e.series).filter((t) => t.name === e) || (U.value && console.warn(`VueUiNestedDonuts - Series name not found "${e}"`), null) : (U.value && console.warn("VueUiNestedDonuts - There are no series to show."), null);
538
- }
539
- function In(e) {
540
- let t = Fn(e);
541
- t !== null && (Array.isArray(t) ? t.forEach((e) => {
542
- q.value.includes(e.id) && Pn({ id: e.id });
543
- }) : q.value.includes(t.id) && Pn({ id: t.id }));
544
- }
545
- function Ln(e) {
546
- let t = Fn(e);
547
- t !== null && (Array.isArray(t) ? t.forEach((e) => {
548
- q.value.includes(e.id) || Pn({ id: e.id });
549
- }) : q.value.includes(t.id) || Pn({ id: t.id }));
550
- }
551
- let Rn = f(() => Y.value / J.value.length * R.value.donut.spacingRatio), zn = f(() => Z.value.map((e, t) => Y.value - t * Y.value / J.value.length)), Bn = f(() => Z.value.map((e, t) => {
552
- let n = Math.abs(e.series.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0, r = Y.value - t * Y.value / Z.value.length, i = A.value ? $t.value.find((e) => e.datasetIndex === t) : null, o = [...e.series, ...i ? [i] : []].map((e) => ({
553
- ...e,
554
- value: e.value < 1e-11 ? Number.MIN_VALUE : e.value
555
- })), s = a({ series: [{
556
- name: "_",
557
- color: R.value.donut.emptyFill,
558
- value: 1
559
- }] }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Rn.value), c = `M ${G.value.width / 2},${G.value.height / 2 + r}
560
- a ${r},${r} 0 1,1 0,${-2 * r}
561
- a ${r},${r} 0 1,1 0,${2 * r}`;
562
- return {
563
- ...e,
564
- hasData: n,
565
- radius: r,
566
- skeleton: s,
567
- fullCirclePath: c,
568
- donut: a({ series: o }, G.value.width / 2, G.value.height / 2, r, r, 1.99999, 2, 1, 360, 105.25, Rn.value)
569
- };
570
- })), Vn = f(() => [...J.value].map((e, t) => {
571
- let n = t * Y.value / J.value.length;
572
- return {
573
- sizeRatio: n,
574
- donut: a({ series: [{ value: 1 }] }, G.value.width / 2, G.value.height / 2, Y.value - n, Y.value - n, 1.99999, 2, 1, 360, 105.25, Y.value / J.value.length * R.value.donut.spacingRatio)[0]
575
- };
576
- })), Hn = x(null), Un = x(null), Wn = x(null), Gn = x(null);
577
- function Kn({ datapoint: e, seriesIndex: t }) {
578
- P.value.events.datapointLeave && P.value.events.datapointLeave({
579
- datapoint: e,
580
- seriesIndex: t
581
- }), Ht.value = !1, Hn.value = null, Wt.value = null, Un.value = null, Wn.value = null, M.value = null, an.value = "pointer";
582
- }
583
- function qn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
584
- return Pe({
585
- config: i,
586
- val: e,
587
- percentage: t,
588
- showVal: n,
589
- showPercentage: r
590
- });
591
- }
592
- function Jn({ datapoint: e, _relativeIndex: n, seriesIndex: i, triggerMode: a = "pointer" }) {
593
- P.value.events.datapointEnter && P.value.events.datapointEnter({
594
- datapoint: e,
595
- seriesIndex: i
596
- }), an.value = a, M.value = i, Hn.value = e.arcOfId, Un.value = e.id, Wn.value = i, Wt.value = e.id, Gn.value = {
597
- datapoint: e,
598
- seriesIndex: i,
599
- series: Z.value,
600
- config: P.value
601
- };
602
- let o = I.value.customFormat;
603
- if (r(o) && de(() => o({
604
- seriesIndex: i,
605
- datapoint: e,
606
- series: Z.value,
607
- config: P.value
608
- }))) Ut.value = o({
609
- seriesIndex: i,
610
- datapoint: e,
611
- series: Z.value,
612
- config: P.value
613
- });
614
- else {
615
- let n = "";
616
- if (I.value.showAllItemsAtIndex && q.value.length === 0) {
617
- let r = Z.value.map((e) => e.series.find((e) => e.seriesIndex === i));
618
- r.forEach((a, o) => {
619
- if (!a) return "";
620
- n += `
621
- <div style="display:flex; flex-direction: column; justify-content:flex-start; align-items:flex-start;padding:6px 0; ${o < r.length - 1 ? `border-bottom:1px solid ${I.value.borderColor}` : ""}">
622
- <div style="display:flex; flex-direction: row; gap: 3px; justify-content:flex-start; align-items:center;">
623
- <svg viewBox="0 0 20 20" height="${I.value.fontSize}" width="${I.value.fontSize}">
624
- <circle cx="10" cy="10" r="10" fill="${a.color}"/>
625
- </svg>
626
- <span>
627
- ${a.arcOf ?? ""} - ${a.name}
628
- </span>
629
- </div>
630
- <span>
631
- <b>
632
- ${qn({
633
- config: z.value.tooltip,
634
- showVal: I.value.showValue,
635
- showPercentage: I.value.showPercentage,
636
- val: ae(R.value.labels.dataLabels.formatter, e.value, t({
637
- p: z.value.layout.labels.dataLabels.prefix,
638
- v: e.value,
639
- s: z.value.layout.labels.dataLabels.suffix,
640
- r: z.value.tooltip.roundingValue
641
- }), {
642
- datapoint: e,
643
- seriesIndex: i
644
- }),
645
- percentage: t({
646
- v: a.proportion * 100,
647
- s: "%",
648
- r: z.value.tooltip.roundingPercentage
649
- })
650
- })}
651
- </b>
652
- </span>
653
- </div>
654
- `;
655
- });
656
- } else n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${I.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.arcOf ?? ""} - ${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, I.value.showValue && (n += `<b>${ae(F.value.dataLabels.formatter, e.value, t({
657
- p: F.value.dataLabels.prefix,
658
- v: e.value,
659
- s: F.value.dataLabels.suffix,
660
- r: I.value.roundingValue
661
- }), {
662
- datapoint: e,
663
- seriesIndex: i
664
- })}</b>`), I.value.showPercentage && (I.value.showValue ? n += `<span>(${t({
665
- v: e.proportion * 100,
666
- s: "%",
667
- r: I.value.roundingPercentage
668
- })})</span></div>` : n += `<b>${t({
669
- v: e.proportion * 100,
670
- s: "%",
671
- r: I.value.roundingPercentage
672
- })}</b></div>`);
673
- Ut.value = `<div style="font-size:${I.value.fontSize}px">${n}</div>`;
674
- }
675
- Ht.value = !0;
676
- }
677
- function Yn(e) {
678
- return e.proportion * 100 > F.value.dataLabels.hideUnderValue;
679
- }
680
- function Xn(e, t) {
681
- if (!P.value.useBlurOnHover) return "";
682
- if (I.value.showAllItemsAtIndex && q.value.length === 0) return [null, void 0].includes(Wn.value) || Wn.value === t ? "" : `url(#blur_${O.value})`;
683
- if (!I.value.showAllItemsAtIndex || q.value.length) return [null, void 0].includes(Un.value) || Un.value === e.id ? "" : `url(#blur_${O.value})`;
684
- }
685
- let Zn = f(() => J.value.map((e, n) => {
686
- let r = e.series.filter((e) => !q.value.includes(e.id)), i = A.value ? r.map((e) => {
687
- let t = B.value[n].series.findIndex((t) => t.name === e.name);
688
- return s(B.value[n].series[t].values).reduce((e, t) => e + t, 0);
689
- }).reduce((e, t) => e + t, 0) : r.map((e) => e.value).reduce((e, t) => e + t, 0);
690
- return e.series.map((e, r) => {
691
- let a = s(B.value[n].series[r].values).reduce((e, t) => e + t, 0), o = A.value ? a : e.value, c = qn({
692
- val: ae(F.value.dataLabels.formatter, o, t({
693
- p: F.value.dataLabels.prefix,
694
- v: o,
695
- s: F.value.dataLabels.suffix,
696
- r: z.value.legend.roundingValue
697
- }), {
698
- datapoint: e,
699
- seriesIndex: r
700
- }),
701
- percentage: isNaN(o / i) || q.value.includes(e.id) ? "-" : t({
702
- v: o / i * 100,
703
- s: "%",
704
- r: z.value.legend.roundingPercentage
705
- }),
706
- showVal: z.value.legend.showValue,
707
- showPercentage: z.value.legend.showPercentage,
708
- config: z.value.legend
709
- }), l = `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${c}`;
710
- return {
711
- name: e.name,
712
- color: e.color,
713
- value: o,
714
- display: l,
715
- svgDisplay: `${e.arcOf ? `${e.arcOf} - ` : ""}${l}`,
716
- shape: "circle",
717
- arcOf: e.arcOf,
718
- id: e.id,
719
- seriesIndex: r,
720
- datasetIndex: n,
721
- total: i,
722
- opacity: q.value.includes(e.id) ? .5 : 1,
723
- segregate: () => Pn(e),
724
- isSegregated: q.value.includes(e.id)
725
- };
726
- });
727
- })), Qn = f(() => ({
728
- cy: "nested-donuts-legend",
729
- backgroundColor: z.value.legend.backgroundColor,
730
- color: z.value.legend.color,
731
- fontSize: z.value.legend.fontSize,
732
- paddingBottom: 12,
733
- fontWeight: z.value.legend.bold ? "bold" : ""
734
- })), Q = f(() => ({
735
- head: Z.value.flatMap((e) => e.series.map((t) => ({
736
- name: `${e.name} - ${t.name}`,
737
- color: t.color,
738
- total: e.total
739
- }))),
740
- body: Z.value.flatMap((e) => e.series.map((e) => e.value))
741
- }));
742
- function $n(e = null) {
743
- He(() => {
744
- let t = Q.value.head.map((e, t) => [
745
- [e.name],
746
- [Q.value.body[t]],
747
- [isNaN(Q.value.body[t] / e.total) ? "-" : Q.value.body[t] / e.total * 100]
748
- ]), r = [
749
- [z.value.title.text],
750
- [z.value.title.subtitle.text],
751
- [
752
- [""],
753
- ["val"],
754
- ["%"]
755
- ]
756
- ].concat(t), i = n(r);
757
- e ? e(i) : le({
758
- csvContent: i,
759
- title: z.value.title.text || "vue-ui-nested-donuts"
760
- });
761
- });
762
- }
763
- let er = f(() => {
764
- let e = [
765
- P.value.table.columnNames.series,
766
- P.value.table.columnNames.value,
767
- P.value.table.columnNames.percentage
768
- ], n = Q.value.head.map((e, n) => {
769
- let r = t({
770
- p: F.value.dataLabels.prefix,
771
- v: Q.value.body[n],
772
- s: F.value.dataLabels.suffix,
773
- r: P.value.table.td.roundingValue
774
- });
775
- return [
776
- {
777
- color: e.color,
778
- name: e.name
779
- },
780
- r,
781
- isNaN(Q.value.body[n] / e.total) ? "-" : t({
782
- v: Q.value.body[n] / e.total * 100,
783
- s: "%",
784
- r: P.value.table.td.roundingPercentage
785
- })
786
- ];
787
- }), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
788
- th: {
789
- backgroundColor: P.value.table.th.backgroundColor,
790
- color: P.value.table.th.color,
791
- outline: P.value.table.th.outline
792
- },
793
- td: {
794
- backgroundColor: P.value.table.td.backgroundColor,
795
- color: P.value.table.td.color,
796
- outline: P.value.table.td.outline
797
- },
798
- breakpoint: P.value.table.responsiveBreakpoint
799
- };
800
- return {
801
- colNames: [
802
- P.value.table.columnNames.series,
803
- P.value.table.columnNames.value,
804
- P.value.table.columnNames.percentage
805
- ],
806
- head: e,
807
- body: n,
808
- a11yBody: r,
809
- config: i
810
- };
811
- });
812
- function tr() {
813
- return J.value;
814
- }
815
- function nr() {
816
- W.value.showTable = !W.value.showTable;
817
- }
818
- function rr() {
819
- W.value.dataLabels.show = !W.value.dataLabels.show;
820
- }
821
- function ir() {
822
- W.value.showTooltip = !W.value.showTooltip;
823
- }
824
- let ar = x(!1);
825
- function or() {
826
- ar.value = !ar.value;
827
- }
828
- async function sr({ scale: e = 2 } = {}) {
829
- if (!k.value) return;
830
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
831
- domElement: k.value,
832
- base64: !0,
833
- img: !0,
834
- scale: e
835
- });
836
- return {
837
- imageUri: i,
838
- base64: a,
839
- title: z.value.title.text,
840
- width: t,
841
- height: n,
842
- aspectRatio: r
843
- };
844
- }
845
- let cr = x(null);
846
- function lr() {
847
- if (!cr.value) return;
848
- let { x: e, y: t, width: n, height: r } = cr.value.getBBox();
849
- V.value && V.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
850
- }
851
- let ur = f(() => {
852
- let e = P.value.table.useDialog && !P.value.table.show, t = W.value.showTable;
853
- return {
854
- component: e ? Lt : Mt,
855
- title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
856
- props: e ? {
857
- backgroundColor: P.value.table.th.backgroundColor,
858
- color: P.value.table.th.color,
859
- headerColor: P.value.table.th.color,
860
- headerBg: P.value.table.th.backgroundColor,
861
- isFullscreen: N.value,
862
- fullscreenParent: k.value,
863
- forcedWidth: Math.min(800, window.innerWidth * .8),
864
- isCursorPointer: cn.value
865
- } : {
866
- hideDetails: !0,
867
- config: {
868
- open: t,
869
- maxHeight: 1e4,
870
- body: {
871
- backgroundColor: z.value.backgroundColor,
872
- color: z.value.color
873
- },
874
- head: {
875
- backgroundColor: z.value.backgroundColor,
876
- color: z.value.color
877
- }
878
- }
879
- }
880
- };
881
- });
882
- Ze(() => W.value.showTable, (e) => {
883
- P.value.table.show || (e && P.value.table.useDialog && tn.value ? tn.value.open() : "close" in tn.value && tn.value.close());
884
- });
885
- function dr() {
886
- W.value.showTable = !1, nn.value && nn.value.setTableIconState(!1);
887
- }
888
- let fr = f(() => z.value.backgroundColor), pr = f(() => z.value.legend), mr = f(() => z.value.title), hr = f(() => Zn.value.flat().map((e) => ({
889
- ...e,
890
- name: e.svgDisplay
891
- }))), { isCallbackImaging: gr, isCallbackSvg: _r, generateSvg: vr, onGenerateImage: yr } = Ce({
892
- svg: V,
893
- title: mr,
894
- legend: pr,
895
- legendItems: hr,
896
- backgroundColor: fr,
897
- getSvgCallback: () => P.value.userOptions.callbacks.svg,
898
- generateImage: Dn
899
- });
900
- async function br() {
901
- if (K("copyAlt", {
902
- config: P.value,
903
- dataset: Z.value
904
- }), !P.value.userOptions.callbacks.altCopy) {
905
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
906
- return;
907
- }
908
- await Promise.resolve(P.value.userOptions.callbacks.altCopy({
909
- config: P.value,
910
- dataset: Z.value
911
- }));
912
- }
913
- let $ = f(() => Bn.value.flatMap((e) => e.donut.filter((e) => !e.ghost)));
914
- function xr() {
915
- M.value = null, on.value = !0;
916
- }
917
- function Sr() {
918
- M.value = null, an.value = "pointer", Ht.value = !1, Hn.value = null, Wt.value = null, Un.value = null, Wn.value = null, on.value = !1;
919
- }
920
- function Cr(e) {
921
- if (!V.value || ar.value || document.activeElement !== V.value || !$.value.length) return;
922
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
923
- if (!t && !n && !r && !i) return;
924
- if (e.preventDefault(), e.stopPropagation(), i) {
925
- M.value = null, an.value = "pointer", Ht.value = !1, Hn.value = null, Wt.value = null, Un.value = null, Wn.value = null;
926
- return;
927
- }
928
- if (r) {
929
- if (M.value === null) return;
930
- let e = $.value[M.value];
931
- if (!e) return;
932
- An({
933
- datapoint: e,
934
- index: M.value,
935
- seriesIndex: e.seriesIndex
936
- });
937
- return;
938
- }
939
- let a = M.value, o = Wn.value, s = a !== null && a >= 0 && a < $.value.length, c = o !== null && o >= 0 && o < $.value.length;
940
- s ? n ? (a += 1, a >= $.value.length && (a = 0)) : t && (--a, a < 0 && (a = $.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= $.value.length && (a = 0), a < 0 && (a = $.value.length - 1)) : a = n ? 0 : $.value.length - 1;
941
- let l = $.value[a];
942
- l && (M.value = a, wr(), Jn({
943
- datapoint: l,
944
- relativeIndex: a,
945
- seriesIndex: l.seriesIndex,
946
- show: !0,
947
- triggerMode: "keyboard"
948
- }));
949
- }
950
- function wr() {
951
- if (!V.value) return;
952
- let e = V.value.getBoundingClientRect();
953
- rn.value = {
954
- x: e.left + e.width / 2,
955
- y: e.top + e.height / 2
956
- };
957
- }
958
- let Tr = f(() => ({
959
- headers: er.value?.colNames ?? [],
960
- rows: er.value?.a11yBody ?? []
961
- }));
962
- return Ee({
963
- autoSize: lr,
964
- getData: tr,
965
- getImage: sr,
966
- generatePdf: En,
967
- generateCsv: $n,
968
- generateImage: Dn,
969
- generateSvg: vr,
970
- hideSeries: Ln,
971
- showSeries: In,
972
- toggleTable: nr,
973
- toggleLabels: rr,
974
- toggleTooltip: ir,
975
- toggleAnnotator: or,
976
- toggleFullscreen: sn,
977
- copyAlt: br
978
- }), (e, n) => (b(), h("div", {
979
- ref_key: "nestedDonutsChart",
980
- ref: k,
981
- class: Ue(`vue-data-ui-component vue-ui-nested-donuts ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
982
- style: We(`font-family:${P.value.style.fontFamily};width:100%; text-align:center;background:${z.value.backgroundColor}`),
983
- id: `nested_donuts_${O.value}`,
984
- onMouseenter: n[2] ||= () => T(mn)(!0),
985
- onMouseleave: n[3] ||= () => T(mn)(!1)
986
- }, [
987
- g("div", {
988
- id: `chart-instructions-${O.value}`,
989
- class: "sr-only"
990
- }, [g("p", null, w(P.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
991
- Tr.value?.rows?.length ? (b(), p(je, {
992
- key: 0,
993
- uid: O.value,
994
- head: Tr.value.headers,
995
- body: Tr.value.rows,
996
- notice: P.value.a11y.translations.tableAvailable,
997
- caption: P.value.a11y.translations.tableCaption
998
- }, null, 8, [
999
- "uid",
1000
- "head",
1001
- "body",
1002
- "notice",
1003
- "caption"
1004
- ])) : m("", !0),
1005
- L.value.buttons.annotator ? (b(), p(T(Ft), {
1006
- key: 1,
1007
- svgRef: T(V),
1008
- backgroundColor: z.value.backgroundColor,
1009
- color: z.value.color,
1010
- active: ar.value,
1011
- isCursorPointer: cn.value,
1012
- palette: L.value.annotatorPalette,
1013
- onClose: or
1014
- }, {
1015
- "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1016
- "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
1017
- "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", y(v({ mode: t })), void 0, !0)]),
1018
- "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", y(v({ disabled: t })), void 0, !0)]),
1019
- "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", y(v({ disabled: t })), void 0, !0)]),
1020
- "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", y(v({ disabled: t })), void 0, !0)]),
1021
- _: 3
1022
- }, 8, [
1023
- "svgRef",
1024
- "backgroundColor",
1025
- "color",
1026
- "active",
1027
- "isCursorPointer",
1028
- "palette"
1029
- ])) : m("", !0),
1030
- On.value ? (b(), h("div", {
1031
- key: 2,
1032
- ref_key: "noTitle",
1033
- ref: Yt,
1034
- class: "vue-data-ui-no-title-space",
1035
- style: "height:36px; width: 100%;background:transparent"
1036
- }, null, 512)) : m("", !0),
1037
- z.value.title.text ? (b(), h("div", {
1038
- key: 3,
1039
- ref_key: "chartTitle",
1040
- ref: Kt
1041
- }, [(b(), p(Te, {
1042
- key: `title_${Xt.value}`,
1043
- config: {
1044
- title: {
1045
- cy: "donut-div-title",
1046
- ...z.value.title
1047
- },
1048
- subtitle: {
1049
- cy: "donut-div-subtitle",
1050
- ...z.value.title.subtitle
1051
- }
1052
- }
1053
- }, null, 8, ["config"]))], 512)) : m("", !0),
1054
- g("div", { id: `legend-top-${O.value}` }, null, 8, nt),
1055
- L.value.show && Vt.value && (T(hn) || T(pn)) ? (b(), p(T(Pt), {
1056
- ref_key: "userOptionsRef",
1057
- ref: nn,
1058
- key: `user_option_${Gt.value}`,
1059
- backgroundColor: z.value.backgroundColor,
1060
- color: z.value.color,
1061
- isPrinting: T(wn),
1062
- isImaging: T(Tn),
1063
- uid: O.value,
1064
- hasTooltip: L.value.buttons.tooltip && I.value.show,
1065
- hasPdf: L.value.buttons.pdf,
1066
- hasXls: L.value.buttons.csv,
1067
- hasImg: L.value.buttons.img,
1068
- hasSvg: L.value.buttons.svg,
1069
- hasTable: L.value.buttons.table,
1070
- hasLabel: L.value.buttons.labels,
1071
- hasFullscreen: L.value.buttons.fullscreen,
1072
- hasAltCopy: L.value.buttons.altCopy,
1073
- isFullscreen: N.value,
1074
- isTooltip: W.value.showTooltip,
1075
- titles: { ...L.value.buttonTitles },
1076
- chartElement: k.value,
1077
- position: L.value.position,
1078
- hasAnnotator: L.value.buttons.annotator,
1079
- isAnnotation: ar.value,
1080
- callbacks: L.value.callbacks,
1081
- printScale: L.value.print.scale,
1082
- tableDialog: P.value.table.useDialog,
1083
- isCursorPointer: cn.value,
1084
- onToggleFullscreen: sn,
1085
- onGeneratePdf: T(En),
1086
- onGenerateCsv: $n,
1087
- onGenerateImage: T(yr),
1088
- onGenerateSvg: T(vr),
1089
- onToggleTable: nr,
1090
- onToggleLabels: rr,
1091
- onToggleTooltip: ir,
1092
- onToggleAnnotator: or,
1093
- onCopyAlt: br,
1094
- style: We({ visibility: T(hn) ? T(pn) ? "visible" : "hidden" : "visible" })
1095
- }, Re({ _: 2 }, [
1096
- e.$slots.menuIcon ? {
1097
- name: "menuIcon",
1098
- fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", y(v({
1099
- isOpen: t,
1100
- color: n
1101
- })), void 0, !0)]),
1102
- key: "0"
1103
- } : void 0,
1104
- e.$slots.optionTooltip ? {
1105
- name: "optionTooltip",
1106
- fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
1107
- key: "1"
1108
- } : void 0,
1109
- e.$slots.optionPdf ? {
1110
- name: "optionPdf",
1111
- fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1112
- key: "2"
1113
- } : void 0,
1114
- e.$slots.optionCsv ? {
1115
- name: "optionCsv",
1116
- fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1117
- key: "3"
1118
- } : void 0,
1119
- e.$slots.optionImg ? {
1120
- name: "optionImg",
1121
- fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1122
- key: "4"
1123
- } : void 0,
1124
- e.$slots.optionSvg ? {
1125
- name: "optionSvg",
1126
- fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1127
- key: "5"
1128
- } : void 0,
1129
- e.$slots.optionTable ? {
1130
- name: "optionTable",
1131
- fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1132
- key: "6"
1133
- } : void 0,
1134
- e.$slots.optionLabels ? {
1135
- name: "optionLabels",
1136
- fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
1137
- key: "7"
1138
- } : void 0,
1139
- e.$slots.optionFullscreen ? {
1140
- name: "optionFullscreen",
1141
- fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", y(v({
1142
- toggleFullscreen: t,
1143
- isFullscreen: n
1144
- })), void 0, !0)]),
1145
- key: "8"
1146
- } : void 0,
1147
- e.$slots.optionAnnotator ? {
1148
- name: "optionAnnotator",
1149
- fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", y(v({
1150
- toggleAnnotator: t,
1151
- isAnnotator: n
1152
- })), void 0, !0)]),
1153
- key: "9"
1154
- } : void 0,
1155
- e.$slots.optionAltCopy ? {
1156
- name: "optionAltCopy",
1157
- fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", y(v({ altCopy: t })), void 0, !0)]),
1158
- key: "10"
1159
- } : void 0,
1160
- e.$slots["custom-menu-before"] ? {
1161
- name: "custom-menu-before",
1162
- fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1163
- key: "11"
1164
- } : void 0,
1165
- e.$slots["custom-menu-after"] ? {
1166
- name: "custom-menu-after",
1167
- fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1168
- key: "12"
1169
- } : void 0
1170
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : m("", !0),
1171
- g("div", rt, [(b(), h("svg", {
1172
- ref_key: "svgRef",
1173
- ref: V,
1174
- xmlns: T(fe),
1175
- "aria-describedby": `chart-instructions-${O.value}`,
1176
- class: Ue({
1177
- "vue-data-ui-fullscreen--on": N.value,
1178
- "vue-data-ui-fulscreen--off": !N.value,
1179
- "vue-data-ui-svg": !0
1180
- }),
1181
- viewBox: `0 0 ${G.value.width <= 0 ? .001 : G.value.width} ${G.value.height < 0 ? .001 : G.value.height}`,
1182
- style: We(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${yn.value.css}`),
1183
- tabindex: "0",
1184
- onFocus: xr,
1185
- onBlur: Sr,
1186
- onKeydown: Cr
1187
- }, [g("g", {
1188
- ref_key: "G",
1189
- ref: cr,
1190
- class: "vue-data-ui-g"
1191
- }, [
1192
- Be(T(It)),
1193
- e.$slots["chart-background"] ? (b(), h("foreignObject", {
1194
- key: 0,
1195
- x: 0,
1196
- y: 0,
1197
- width: G.value.width <= 0 ? .001 : G.value.width,
1198
- height: G.value.height < 0 ? .001 : G.value.height,
1199
- style: { pointerEvents: "none" }
1200
- }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : m("", !0),
1201
- g("defs", null, [(b(!0), h(d, null, S(Vn.value, (e, t) => (b(), p(ke, {
1202
- t: "radial",
1203
- id: `radial_${O.value}_${t}`,
1204
- key: `radial_${O.value}_${t}`,
1205
- stops: [
1206
- [
1207
- "0%",
1208
- "#FFFFFF",
1209
- 0
1210
- ],
1211
- [
1212
- `${(1 - Rn.value / zn.value[t]) * 100}%`,
1213
- T(o)("#FFFFFF", 0),
1214
- 0
1215
- ],
1216
- [
1217
- `${(1 - Rn.value / zn.value[t] / 2) * 100}%`,
1218
- "#FFFFFF",
1219
- z.value.gradientIntensity / 100
1220
- ],
1221
- [
1222
- "100%",
1223
- "#FFFFFF",
1224
- 0
1225
- ]
1226
- ]
1227
- }, null, 8, ["id", "stops"]))), 128))]),
1228
- g("defs", null, [g("filter", {
1229
- id: `blur_${O.value}`,
1230
- x: "-50%",
1231
- y: "-50%",
1232
- width: "200%",
1233
- height: "200%"
1234
- }, [g("feGaussianBlur", {
1235
- in: "SourceGraphic",
1236
- stdDeviation: 2,
1237
- id: `blur_std_${O.value}`
1238
- }, null, 8, st), n[4] ||= g("feColorMatrix", {
1239
- type: "saturate",
1240
- values: "0"
1241
- }, null, -1)], 8, ot), g("filter", {
1242
- id: `shadow_${O.value}`,
1243
- "color-interpolation-filters": "sRGB"
1244
- }, [g("feDropShadow", {
1245
- dx: "0",
1246
- dy: "0",
1247
- stdDeviation: "10",
1248
- "flood-opacity": "0.5",
1249
- "flood-color": R.value.donut.shadowColor
1250
- }, null, 8, lt)], 8, ct)]),
1251
- g("defs", null, [(b(!0), h(d, null, S(Bn.value, (e, t) => (b(), h("path", {
1252
- key: `path-full-${t}`,
1253
- id: `path-full-${t}-${O.value}`,
1254
- d: e.fullCirclePath,
1255
- fill: "none"
1256
- }, null, 8, ut))), 128))]),
1257
- (b(!0), h(d, null, S(Bn.value, (e, t) => (b(), h("g", null, [e.hasData ? (b(!0), h(d, { key: 0 }, S(e.donut.filter((e) => !e.ghost), (e, t) => (b(), h("g", null, [g("path", {
1258
- class: "vue-ui-donut-arc-path",
1259
- d: e.arcSlice,
1260
- fill: e.color,
1261
- stroke: R.value.donut.borderColorAuto ? z.value.backgroundColor : R.value.donut.borderColor,
1262
- "stroke-width": R.value.donut.borderWidth,
1263
- filter: Xn(e, t)
1264
- }, null, 8, dt)]))), 256)) : (b(!0), h(d, { key: 1 }, S(e.skeleton, (e, t) => (b(), h("g", null, [g("path", {
1265
- class: "vue-ui-donut-arc-path",
1266
- d: e.arcSlice,
1267
- fill: e.color,
1268
- stroke: R.value.donut.borderColorAuto ? z.value.backgroundColor : R.value.donut.borderColor,
1269
- "stroke-width": R.value.donut.borderWidth
1270
- }, null, 8, ft)]))), 256))]))), 256)),
1271
- z.value.useGradient ? (b(), h("g", pt, [(b(!0), h(d, null, S(Vn.value, (e, t) => (b(), h("g", null, [g("path", {
1272
- d: e.donut.arcSlice,
1273
- fill: `url(#radial_${O.value}_${t})`,
1274
- stroke: "transparent",
1275
- "stroke-width": "0"
1276
- }, null, 8, mt)]))), 256))])) : m("", !0),
1277
- F.value.dataLabels.showDonutName ? (b(), h("g", ht, [F.value.dataLabels.curvedDonutName ? (b(!0), h(d, { key: 0 }, S(Bn.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (n, r) => (b(), h("g", null, [r === 0 && G.value.width && G.value.height ? (b(), h("text", {
1278
- key: 0,
1279
- "text-anchor": "middle",
1280
- "font-size": R.value.labels.dataLabels.fontSize,
1281
- "font-weight": R.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
1282
- fill: R.value.labels.dataLabels.color,
1283
- dy: R.value.labels.dataLabels.donutNameOffsetY
1284
- }, [g("textPath", {
1285
- href: `#path-full-${t}-${O.value}`,
1286
- startOffset: "50%",
1287
- "text-anchor": "middle",
1288
- method: "align",
1289
- spacing: "auto"
1290
- }, w(R.value.labels.dataLabels.donutNameAbbreviation ? T(se)({
1291
- source: e.name,
1292
- length: P.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1293
- }) : e.name), 9, _t)], 8, gt)) : m("", !0)]))), 256))]))), 256)) : (b(!0), h(d, { key: 1 }, S(Bn.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (t, n) => (b(), h("g", null, [n === 0 && G.value.width && G.value.height ? (b(), h("text", {
1294
- key: 0,
1295
- x: G.value.width / 2,
1296
- y: t.startY - R.value.labels.dataLabels.fontSize + R.value.labels.dataLabels.donutNameOffsetY,
1297
- "text-anchor": "middle",
1298
- "font-size": R.value.labels.dataLabels.fontSize,
1299
- "font-weight": R.value.labels.dataLabels.boldDonutName ? "bold" : "normal",
1300
- fill: R.value.labels.dataLabels.color
1301
- }, w(R.value.labels.dataLabels.donutNameAbbreviation ? T(se)({
1302
- source: e.name,
1303
- length: P.value.style.chart.layout.labels.dataLabels.donutNameMaxAbbreviationSize
1304
- }) : e.name), 9, vt)) : m("", !0)]))), 256))]))), 256))])) : m("", !0),
1305
- F.value.dataLabels.show ? (b(), h("g", yt, [(b(!0), h(d, null, S(Bn.value, (e, n) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut.filter((e) => !e.ghost), (e, r) => (b(), h("g", { filter: Xn(e, r) }, [Qe(g("text", {
1306
- opacity: +!!Yn(e),
1307
- "text-anchor": T(ie)(e, !0).anchor,
1308
- x: T(ie)(e, !1, R.value.labels.dataLabels.offsetX).x || 0,
1309
- y: T(ue)(e, R.value.labels.dataLabels.offsetY, R.value.labels.dataLabels.offsetY) + (F.value.dataLabels.showValueFirst && F.value.dataLabels.showValue ? R.value.labels.dataLabels.fontSize : 0),
1310
- fill: F.value.dataLabels.useSerieColor ? e.color : R.value.labels.dataLabels.color,
1311
- "font-size": F.value.dataLabels.fontSize,
1312
- "font-weight": F.value.dataLabels.boldPercentage ? "bold" : "normal"
1313
- }, w(T(l)(T(t)({
1314
- v: e.proportion * 100,
1315
- s: "%",
1316
- r: z.value.layout.labels.dataLabels.roundingPercentage
1317
- }), R.value.labels.dataLabels.usePercentageParens ? "(" : "", R.value.labels.dataLabels.usePercentageParens ? ")" : "")), 9, xt), [[Xe, W.value.dataLabels.show && F.value.dataLabels.showPercentage]]), Qe(g("text", {
1318
- opacity: +!!Yn(e),
1319
- "text-anchor": T(ie)(e, !0).anchor,
1320
- x: T(ie)(e, !1, R.value.labels.dataLabels.offsetX).x || 0,
1321
- y: T(ue)(e, R.value.labels.dataLabels.offsetY, R.value.labels.dataLabels.offsetY) + (F.value.dataLabels.showValueFirst || !F.value.dataLabels.showPercentage ? 0 : R.value.labels.dataLabels.fontSize),
1322
- fill: F.value.dataLabels.useSerieColor ? e.color : R.value.labels.dataLabels.color,
1323
- "font-size": F.value.dataLabels.fontSize,
1324
- "font-weight": F.value.dataLabels.boldValue ? "bold" : "normal"
1325
- }, w(T(l)(T(ae)(R.value.labels.dataLabels.formatter, e.value, T(t)({
1326
- p: z.value.layout.labels.dataLabels.prefix,
1327
- v: e.value,
1328
- s: z.value.layout.labels.dataLabels.suffix,
1329
- r: z.value.layout.labels.dataLabels.roundingValue
1330
- }), {
1331
- datapoint: e,
1332
- seriesIndex: n,
1333
- datapointIndex: r
1334
- }), R.value.labels.dataLabels.useValueParens ? "(" : "", R.value.labels.dataLabels.useValueParens ? ")" : "")), 9, St), [[Xe, W.value.dataLabels.show && F.value.dataLabels.showValue]])], 8, bt))), 256))]))), 256))])) : m("", !0),
1335
- (b(!0), h(d, null, S(Bn.value, (e, t) => (b(), h("g", null, [(b(!0), h(d, null, S(e.donut, (e, t) => (b(), h("g", null, [g("path", {
1336
- d: e.arcSlice,
1337
- fill: Wt.value === e.id ? R.value.donut.selectedColor : "transparent",
1338
- onMouseenter: (t) => Jn({
1339
- datapoint: e,
1340
- relativeIndex: $.value.findIndex((t) => t.id === e.id),
1341
- seriesIndex: e.seriesIndex
1342
- }),
1343
- onClick: (n) => An({
1344
- datapoint: e,
1345
- index: t,
1346
- seriesIndex: e.seriesIndex
1347
- }),
1348
- onMouseleave: (t) => Kn({
1349
- datapoint: e,
1350
- seriesIndex: e.seriesIndex
1351
- })
1352
- }, null, 40, Ct)]))), 256))]))), 256)),
1353
- C(e.$slots, "svg", { svg: {
1354
- ...G.value,
1355
- isPrintingImg: T(wn) || T(Tn) || T(gr),
1356
- isPrintingSvg: T(_r)
1357
- } }, void 0, !0)
1358
- ], 512)], 46, it)), e.$slots.hint ? (b(), h("div", wt, [C(e.$slots, "hint", y(v({
1359
- hint: P.value.a11y.translations.keyboardNavigation,
1360
- isVisible: on.value
1361
- })), void 0, !0)])) : m("", !0)]),
1362
- e.$slots.watermark ? (b(), h("div", Tt, [C(e.$slots, "watermark", y(v({ isPrinting: T(wn) || T(Tn) || T(gr) || T(_r) })), void 0, !0)])) : m("", !0),
1363
- Be(T(At), {
1364
- teleportTo: I.value.teleportTo,
1365
- show: W.value.showTooltip && Ht.value,
1366
- backgroundColor: I.value.backgroundColor,
1367
- color: I.value.color,
1368
- borderRadius: I.value.borderRadius,
1369
- borderColor: I.value.borderColor,
1370
- borderWidth: I.value.borderWidth,
1371
- fontSize: I.value.fontSize,
1372
- backgroundOpacity: I.value.backgroundOpacity,
1373
- position: I.value.position,
1374
- offsetX: I.value.offsetX,
1375
- offsetY: I.value.offsetY,
1376
- parent: k.value,
1377
- content: Ut.value,
1378
- isFullscreen: N.value,
1379
- isCustom: T(r)(I.value.customFormat),
1380
- smooth: I.value.smooth,
1381
- backdropFilter: I.value.backdropFilter,
1382
- smoothForce: I.value.smoothForce,
1383
- smoothSnapThreshold: I.value.smoothSnapThreshold,
1384
- isA11yMode: an.value === "keyboard",
1385
- a11yPosition: rn.value
1386
- }, {
1387
- "tooltip-before": E(() => [C(e.$slots, "tooltip-before", y(v({ ...Gn.value })), void 0, !0)]),
1388
- tooltip: E(() => [C(e.$slots, "tooltip", y(v({ ...Gn.value })), void 0, !0)]),
1389
- "tooltip-after": E(() => [C(e.$slots, "tooltip-after", y(v({ ...Gn.value })), void 0, !0)]),
1390
- _: 3
1391
- }, 8, [
1392
- "teleportTo",
1393
- "show",
1394
- "backgroundColor",
1395
- "color",
1396
- "borderRadius",
1397
- "borderColor",
1398
- "borderWidth",
1399
- "fontSize",
1400
- "backgroundOpacity",
1401
- "position",
1402
- "offsetX",
1403
- "offsetY",
1404
- "parent",
1405
- "content",
1406
- "isFullscreen",
1407
- "isCustom",
1408
- "smooth",
1409
- "backdropFilter",
1410
- "smoothForce",
1411
- "smoothSnapThreshold",
1412
- "isA11yMode",
1413
- "a11yPosition"
1414
- ]),
1415
- g("div", { id: `legend-bottom-${O.value}` }, null, 8, Et),
1416
- en.value && (z.value.legend.show || e.$slots.legend) ? (b(), p(Le, {
1417
- key: 6,
1418
- to: z.value.legend.position === "top" ? `#legend-top-${O.value}` : `#legend-bottom-${O.value}`
1419
- }, [z.value.legend.show ? (b(), h("div", {
1420
- key: 0,
1421
- ref_key: "chartLegend",
1422
- ref: qt,
1423
- class: Ue({ "vue-ui-nested-donuts-legend": Zn.value.length > 1 })
1424
- }, [C(e.$slots, "legend", { legend: Zn.value }, () => [(b(!0), h(d, null, S(Zn.value, (e, t) => (b(), p(Fe, {
1425
- key: `legend_${t}_${Qt.value}`,
1426
- legendSet: e,
1427
- config: Qn.value,
1428
- isCursorPointer: cn.value,
1429
- onClickMarker: n[0] ||= ({ legend: e }) => Pn(e)
1430
- }, {
1431
- legendTitle: E(({ titleSet: e }) => [e[0] && e[0].arcOf ? (b(), h("div", Dt, w(e[0].arcOf), 1)) : m("", !0)]),
1432
- item: E(({ legend: e, index: t }) => [g("div", {
1433
- onClick: (t) => Pn(e),
1434
- style: We(`opacity:${q.value.includes(e.id) ? .5 : 1}`)
1435
- }, w(e.display), 13, Ot)]),
1436
- legendToggle: E(() => [e.length > 2 && z.value.legend.selectAllToggle.show && !T(dn) ? (b(), p(Ae, {
1437
- key: `toggle-${t}`,
1438
- backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
1439
- color: z.value.legend.selectAllToggle.color,
1440
- fontSize: z.value.legend.fontSize,
1441
- checked: e.some((e) => q.value.includes(e.id)),
1442
- isCursorPointer: cn.value,
1443
- onToggle: (t) => Nn(e)
1444
- }, null, 8, [
1445
- "backgroundColor",
1446
- "color",
1447
- "fontSize",
1448
- "checked",
1449
- "isCursorPointer",
1450
- "onToggle"
1451
- ])) : m("", !0)]),
1452
- _: 2
1453
- }, 1032, [
1454
- "legendSet",
1455
- "config",
1456
- "isCursorPointer"
1457
- ]))), 128))], !0)], 2)) : m("", !0)], 8, ["to"])) : m("", !0),
1458
- e.$slots.source ? (b(), h("div", {
1459
- key: 7,
1460
- ref_key: "source",
1461
- ref: Jt,
1462
- dir: "auto"
1463
- }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
1464
- Vt.value && L.value.buttons.table ? (b(), p(qe(ur.value.component), Ve({ key: 8 }, ur.value.props, {
1465
- ref_key: "tableUnit",
1466
- ref: tn,
1467
- onClose: dr
1468
- }), Re({
1469
- content: E(() => [(b(), p(T(Nt), {
1470
- key: `table_${Zt.value}`,
1471
- colNames: er.value.colNames,
1472
- head: er.value.head,
1473
- body: er.value.body,
1474
- config: er.value.config,
1475
- title: P.value.table.useDialog ? "" : ur.value.title,
1476
- withCloseButton: !P.value.table.useDialog,
1477
- isCursorPointer: cn.value,
1478
- onClose: dr
1479
- }, {
1480
- th: E(({ th: e }) => [g("div", kt, w(e), 1)]),
1481
- td: E(({ td: e }) => [ze(w(e.name || e), 1)]),
1482
- _: 1
1483
- }, 8, [
1484
- "colNames",
1485
- "head",
1486
- "body",
1487
- "config",
1488
- "title",
1489
- "withCloseButton",
1490
- "isCursorPointer"
1491
- ]))]),
1492
- _: 2
1493
- }, [P.value.table.useDialog ? {
1494
- name: "title",
1495
- fn: E(() => [ze(w(ur.value.title), 1)]),
1496
- key: "0"
1497
- } : void 0, P.value.table.useDialog ? {
1498
- name: "actions",
1499
- fn: E(() => [g("button", {
1500
- tabindex: "0",
1501
- class: "vue-ui-user-options-button",
1502
- onClick: n[1] ||= (e) => $n(L.value.callbacks.csv),
1503
- style: We({ cursor: cn.value ? "pointer" : "default" })
1504
- }, [Be(T(jt), {
1505
- name: "fileCsv",
1506
- stroke: ur.value.props.color
1507
- }, null, 8, ["stroke"])], 4)]),
1508
- key: "1"
1509
- } : void 0]), 1040)) : m("", !0),
1510
- C(e.$slots, "skeleton", {}, () => [T(dn) ? (b(), p(be, { key: 0 })) : m("", !0)], !0)
1511
- ], 46, et));
1512
- }
1513
- }, [["__scopeId", "data-v-b4e92c34"]]);
1514
- //#endregion
1515
- export { $e as n, At as t };