vue-data-ui 3.26.5 → 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 +17969 -17813
  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 -120
  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-BQbcOtfC.js +0 -116
  350. package/dist/BaseDraggableDialog-BCFCiP_6.js +0 -272
  351. package/dist/BaseIcon-CIK6Sqo3.js +0 -484
  352. package/dist/BaseLegendToggle-Doa5rYP2.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-BGQM8B5F.js +0 -111
  355. package/dist/ColorPicker-Cb7qpvFt.js +0 -257
  356. package/dist/DataTable-B6LDCXBz.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-CwdgCb7Q.js +0 -187
  359. package/dist/Legend-D9FGXIbQ.js +0 -156
  360. package/dist/NonSvgPenAndPaper-9T4MSwXC.js +0 -577
  361. package/dist/PackageVersion-CslTvFsC.js +0 -12
  362. package/dist/PenAndPaper-C1EcBgJW.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-BZgQLgu5.js +0 -143
  367. package/dist/SlicerPreview-DyYv_G-_.js +0 -1730
  368. package/dist/SparkTooltip-D4cRlyuq.js +0 -93
  369. package/dist/Title-Bd98RysU.js +0 -87
  370. package/dist/Tooltip-DmQeI5WE.js +0 -312
  371. package/dist/UserOptions-B_yBcZ1-.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-B_RJohlM.js +0 -237
  374. package/dist/exposedLib-C-JlvWAt.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-KURaWjZI.js +0 -129
  377. package/dist/labelUtils-DShv2Mbg.js +0 -19
  378. package/dist/lib-TWIH5fGr.js +0 -2152
  379. package/dist/package-DbTqd5lc.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-CLl24Afl.js +0 -90
  382. package/dist/render-common-CKv-jztN.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-DObkR9Aa.js +0 -8008
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-BxOdWM0c.js +0 -12
  391. package/dist/useObjectBindings-CPmyIJxB.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-8Y1Rju0Y.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-C3G5Zdl5.js +0 -191
  406. package/dist/vue-ui-3d-bar-Cl6-fBV8.js +0 -1831
  407. package/dist/vue-ui-accordion-AyyZDab3.js +0 -81
  408. package/dist/vue-ui-age-pyramid-DOtWAL8s.js +0 -1305
  409. package/dist/vue-ui-annotator-BCVjlojM.js +0 -3325
  410. package/dist/vue-ui-bullet-B_1Ctjvq.js +0 -702
  411. package/dist/vue-ui-bump-kOK6x4al.js +0 -1242
  412. package/dist/vue-ui-candlestick-KvhjbAxt.js +0 -2144
  413. package/dist/vue-ui-carousel-table-ArMiO0cG.js +0 -467
  414. package/dist/vue-ui-chestnut-DSM0U27X.js +0 -2016
  415. package/dist/vue-ui-chord-64akfaem.js +0 -1347
  416. package/dist/vue-ui-circle-pack-CaR_aNEh.js +0 -1647
  417. package/dist/vue-ui-cursor-DCgqYZiz.js +0 -283
  418. package/dist/vue-ui-dag-8uKK0Rlp.js +0 -2931
  419. package/dist/vue-ui-dashboard-DeccYtSY.js +0 -522
  420. package/dist/vue-ui-digits-BvK7bVuJ.js +0 -217
  421. package/dist/vue-ui-donut-8joMj08Z.js +0 -974
  422. package/dist/vue-ui-donut-CvbfzzdT.js +0 -2427
  423. package/dist/vue-ui-donut-evolution-DgITf95R.js +0 -1869
  424. package/dist/vue-ui-dumbbell-U2L4ZYhB.js +0 -1533
  425. package/dist/vue-ui-flow-DD20fJu_.js +0 -1229
  426. package/dist/vue-ui-funnel-Cx8hVlZV.js +0 -749
  427. package/dist/vue-ui-galaxy-VZFZnHPv.js +0 -1097
  428. package/dist/vue-ui-gauge-Copa7G58.js +0 -934
  429. package/dist/vue-ui-geo-DeDQ6ubl.js +0 -1495
  430. package/dist/vue-ui-gizmo-D5oUKIsP.js +0 -238
  431. package/dist/vue-ui-heatmap-BukWtNsd.js +0 -1613
  432. package/dist/vue-ui-hill-DONFacXR.js +0 -1747
  433. package/dist/vue-ui-history-plot-BMy_y9S6.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-bcPSs999.js +0 -1723
  435. package/dist/vue-ui-kpi-Bol0OWs3.js +0 -104
  436. package/dist/vue-ui-label-cwjXaEDQ.js +0 -1451
  437. package/dist/vue-ui-mini-loader-kdpasmXb.js +0 -133
  438. package/dist/vue-ui-molecule-BiAI5lbh.js +0 -941
  439. package/dist/vue-ui-mood-radar-f4xXkiBs.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-ZmGGEvRk.js +0 -1515
  441. package/dist/vue-ui-onion-D6IKPpL-.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-BbfModz3.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-CueHa1Pm.js +0 -1979
  446. package/dist/vue-ui-quick-chart-C8ZxX1Zw.js +0 -2775
  447. package/dist/vue-ui-radar-BcD7Zqvb.js +0 -1386
  448. package/dist/vue-ui-rating-V_OnJN9Y.js +0 -359
  449. package/dist/vue-ui-relation-circle-DlN4r83K.js +0 -905
  450. package/dist/vue-ui-ridgeline-BlQnTWXi.js +0 -1630
  451. package/dist/vue-ui-rings-Bf9IKwDr.js +0 -1264
  452. package/dist/vue-ui-scatter-arPbS9MH.js +0 -2418
  453. package/dist/vue-ui-skeleton-dyXWT6JX.js +0 -2567
  454. package/dist/vue-ui-smiley-w6nH1I0E.js +0 -376
  455. package/dist/vue-ui-spark-trend-Bso9bwmY.js +0 -457
  456. package/dist/vue-ui-sparkbar-CL06Yt56.js +0 -401
  457. package/dist/vue-ui-sparkgauge-BHDM5Hbr.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-3Tw8PEms.js +0 -589
  459. package/dist/vue-ui-sparkline-znaswFQj.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-BOzVoWoa.js +0 -750
  461. package/dist/vue-ui-stackbar-BTOvMsP8.js +0 -2755
  462. package/dist/vue-ui-stackline-qcLrNL09.js +0 -2829
  463. package/dist/vue-ui-strip-plot-BLNaCPm8.js +0 -1752
  464. package/dist/vue-ui-table-D295mJIf.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CXeMKqKz.js +0 -363
  466. package/dist/vue-ui-table-sparkline-BYuwQrwA.js +0 -738
  467. package/dist/vue-ui-thermometer-BwJ0oF-H.js +0 -758
  468. package/dist/vue-ui-timer-BULpjYiI.js +0 -451
  469. package/dist/vue-ui-tiremarks-B7bTeU8h.js +0 -540
  470. package/dist/vue-ui-treemap-DkqDz9W4.js +0 -1745
  471. package/dist/vue-ui-waffle-Cn7WBzqh.js +0 -1633
  472. package/dist/vue-ui-wheel-Cy7kBvEx.js +0 -873
  473. package/dist/vue-ui-word-cloud-tRqc2ZMR.js +0 -1723
  474. package/dist/vue-ui-world-B755-zji.js +0 -3021
  475. package/dist/vue-ui-xy-BiHIJ7rK.js +0 -1387
  476. package/dist/vue-ui-xy-DWYTZz_v.js +0 -5777
  477. package/dist/vue-ui-xy-canvas-DGuMC_Rf.js +0 -2151
  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-DdjDL6aq.js +0 -491
  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,974 +0,0 @@
1
- import { $ as e, $t as t, Ft as n, Jt as r, S as i, Vt as a, X as o, Y as s, b as c, f as l, h as u, i as d, j as f, ot as p, p as m, qt as h, t as g, tn as _, zt as v } from "./lib-TWIH5fGr.js";
2
- import { t as y } from "./useConfig-DObkR9Aa.js";
3
- import { t as b } from "./vue_ui_donut-BDGqG07h.js";
4
- import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-CKv-jztN.js";
5
- //#region src/svg/vue-ui-donut/create.js
6
- var { vue_ui_donut: ne } = y();
7
- function re({ config: e = {} } = {}) {
8
- let n = e ?? {}, r = _({
9
- userConfig: n,
10
- defaultConfig: ne
11
- }), i = r.theme;
12
- if (!i) return {
13
- ...r,
14
- customPalette: r.customPalette?.length ? r.customPalette : a
15
- };
16
- let o = _({
17
- userConfig: b[i] || {},
18
- defaultConfig: r
19
- }), s = _({
20
- userConfig: n,
21
- defaultConfig: o
22
- });
23
- return {
24
- ...s,
25
- customPalette: s.customPalette?.length ? s.customPalette : t[i] || a
26
- };
27
- }
28
- function P(e, t = 0) {
29
- let n = Number(e);
30
- return Number.isFinite(n) ? n : t;
31
- }
32
- function F(e, t, n) {
33
- return String(t).split(".").reduce((e, t) => e && e[t] !== void 0 ? e[t] : void 0, e) ?? n;
34
- }
35
- function ie(e) {
36
- return typeof e != "object" || !e ? 0 : Array.isArray(e.values) ? e.values.reduce((e, t) => e + P(t, 0), 0) : Array.isArray(e.series) ? e.series.reduce((e, t) => e + P(t, 0), 0) : P(e.value ?? e.y ?? 0, 0);
37
- }
38
- function ae(e, t) {
39
- return String(e?.name ?? e?.label ?? `Serie ${t + 1}`);
40
- }
41
- function oe(e = [], t) {
42
- let n = Array.isArray(t.customPalette) ? t.customPalette : a;
43
- return (Array.isArray(e) ? e : []).map((e, t) => ({
44
- source: e,
45
- sourceIndex: t,
46
- value: ie(e)
47
- })).filter((e) => Number.isFinite(e.value)).sort((e, t) => e.source?.ghost && !t.source?.ghost ? 1 : t.source?.ghost && !e.source?.ghost ? -1 : t.value - e.value).map((e, t) => {
48
- let r = e.source, a = e.value, o = (r?.color ? i(r.color) : "") || n[t % n.length];
49
- return {
50
- ...r,
51
- id: r?.id ?? `donut_serie_${t}`,
52
- name: ae(r, t),
53
- value: a,
54
- absoluteValue: Math.abs(a),
55
- absoluteValues: Array.isArray(r?.values) ? r.values : [a],
56
- color: o,
57
- index: t,
58
- sourceIndex: e.sourceIndex,
59
- patternIndex: r?.patternIndex ?? t,
60
- seriesIndex: r?.seriesIndex ?? t,
61
- ghost: !!r?.ghost
62
- };
63
- }).filter((e) => Number.isFinite(e.absoluteValue));
64
- }
65
- function se(e) {
66
- return e.reduce((e, t) => e + t.absoluteValue, 0);
67
- }
68
- function ce({ series: e, total: t, startAngle: n = -90 }) {
69
- let r = n;
70
- return e.map((e) => {
71
- let n = t ? e.absoluteValue / t : 0, i = n * 360, a = r, o = r + i;
72
- return r = o, {
73
- ...e,
74
- ratio: n,
75
- percentage: n * 100,
76
- startAngle: a,
77
- endAngle: o,
78
- midAngle: a + i / 2
79
- };
80
- });
81
- }
82
- function le({ dataset: e = [], config: t = {}, width: n = 512, height: r = 512, additionalSvgContent: i = "", svgTitle: a = "" } = {}) {
83
- let o = re({ config: t }), s = oe(e, o), c = se(s), l = {
84
- top: P(F(o, "chart.padding.top", 24), 24),
85
- right: P(F(o, "chart.padding.right", 24), 24),
86
- bottom: P(F(o, "chart.padding.bottom", 24), 24),
87
- left: P(F(o, "chart.padding.left", 24), 24)
88
- }, u = {
89
- top: l.top,
90
- left: l.left,
91
- right: n - l.right,
92
- bottom: r - l.bottom
93
- };
94
- u.width = Math.max(1, u.right - u.left), u.height = Math.max(1, u.bottom - u.top);
95
- let d = {
96
- x: u.left + u.width / 2,
97
- y: u.top + u.height / 2
98
- }, f = Math.max(1, Math.min(u.width, u.height) / 2), p = P(F(o, "chart.donut.radius", f), f), m = P(F(o, "chart.donut.holeRatio", .5), .5);
99
- return {
100
- width: n,
101
- height: r,
102
- dataset: e,
103
- config: o,
104
- drawingArea: u,
105
- center: d,
106
- radius: p,
107
- innerRadius: Math.max(0, Math.min(p - 1, p * m)),
108
- total: c,
109
- series: ce({
110
- series: s,
111
- total: c,
112
- startAngle: P(F(o, "chart.donut.startAngle", -90), -90)
113
- }),
114
- additionalSvgContent: i,
115
- svgTitle: a
116
- };
117
- }
118
- //#endregion
119
- //#region src/svg/vue-ui-donut/render.js
120
- var ue = o();
121
- function I() {
122
- return ue;
123
- }
124
- function L(e) {
125
- return k(S(e, "backgroundColor", "#FFFFFF"), "#FFFFFF");
126
- }
127
- function de(e) {
128
- return x(e?.value ?? e?.absoluteValue ?? 0, 0);
129
- }
130
- function R(e) {
131
- return T(e.series).filter((e) => !e?.ghost).map((e, t) => ({
132
- ...e,
133
- value: Math.abs(de(e)),
134
- color: k(e.color, "#000000"),
135
- name: String(e.name ?? `Serie ${t + 1}`),
136
- seriesIndex: e.seriesIndex ?? e.index ?? t,
137
- patternIndex: e.patternIndex ?? e.index ?? t
138
- })).filter((e) => Number.isFinite(e.value));
139
- }
140
- function z(e) {
141
- return e.reduce((e, t) => e + Math.abs(x(t.value, 0)), 0);
142
- }
143
- function fe(e) {
144
- let t = S(e, "title", {}), n = A(t, "subtitle", {});
145
- if (!t.text) return 0;
146
- let r = x(t.fontSize, 20), i = n.show !== !1 && n.text ? x(n.fontSize, 14) : 0;
147
- return x(t.paddingTop, 12) + r + (i ? i + 12 : 0) + x(t.paddingBottom, 36);
148
- }
149
- function pe({ state: e, series: t }) {
150
- let { config: n, width: r } = e, i = S(n, "legend", {}), a = x(i.fontSize, 12), o = x(i.markerSize, 10), s = x(i.itemGap, 24), c = x(i.rowGap, 8), l = x(i.padding, 8), u = x(i.labelGap, 8), d = Math.max(1, r - l * 2), f = [], p = [], m = 0;
151
- return t.forEach((t) => {
152
- let n = Ve(e, t), r = O(n, a), i = o + u + r, c = m + i + (p.length ? s : 0);
153
- p.length && c > d && (f.push({
154
- items: p,
155
- width: m
156
- }), p = [], m = 0), p.push({
157
- serie: t,
158
- label: n,
159
- itemWidth: i
160
- }), m += i + (p.length > 1 ? s : 0);
161
- }), p.length && f.push({
162
- items: p,
163
- width: m
164
- }), {
165
- rows: f,
166
- fontSize: a,
167
- markerSize: o,
168
- itemGap: s,
169
- labelGap: u,
170
- rowGap: c,
171
- padding: l,
172
- height: f.length * Math.max(o, a) + Math.max(0, f.length - 1) * c + l * 2
173
- };
174
- }
175
- function B(e, t) {
176
- return !S(e.config, "legend.show", !0) || !t.length ? {
177
- rows: [],
178
- height: 0,
179
- padding: 0,
180
- fontSize: 12,
181
- markerSize: 10,
182
- rowGap: 0
183
- } : pe({
184
- state: e,
185
- series: t
186
- });
187
- }
188
- function V(e) {
189
- return !!E(e, "pie", S(e, "pie", !1));
190
- }
191
- function me(e, t) {
192
- let { config: n, width: r, height: i } = e, a = fe(n), o = B(e, t), s = S(n, "legend.show", !0), c = S(n, "legend.position", "bottom"), l = s && c === "top" ? o.height : 0, u = s && c !== "top" ? o.height : 0, d = x(S(n, "padding.top", 24), 24), f = x(S(n, "padding.right", 24), 24), p = x(S(n, "padding.bottom", 24), 24), m = x(S(n, "padding.left", 24), 24), h = {
193
- top: d + a + l,
194
- right: r - f,
195
- bottom: i - p - u,
196
- left: m
197
- };
198
- h.width = Math.max(1, h.right - h.left), h.height = Math.max(1, h.bottom - h.top);
199
- let g = a ? x(E(n, "title.chartOffsetY", 24), 24) : 0, _ = Math.max(1, h.height - g), v = {
200
- x: h.left + h.width / 2,
201
- y: h.top + g / 2 + _ / 2
202
- }, y = x(S(n, "layout.donut.radiusRatio", .35), .35), b = Math.max(.1, Math.min(.50001, y)), C = Math.max(12, Math.min(h.width, _) * b), w = S(n, "layout.donut.radius", null), T = w == null ? C : Math.min(C, x(w, C)), D = x(S(n, "layout.donut.strokeWidth", 64), 64) / 300, O = Math.max(Math.min(T * D * 2, T), 12 * (1 + D)), k = S(n, "layout.donut.thickness", S(n, "layout.donut.size", O)), A = Math.max(0, Math.min(T - 1, k == null ? O : x(k, O)));
203
- return {
204
- ...e,
205
- drawingArea: h,
206
- center: v,
207
- radius: T,
208
- thickness: A,
209
- innerRadius: V(n) ? 0 : Math.max(0, T - A)
210
- };
211
- }
212
- function he(e, t) {
213
- let r = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
214
- return n({ series: t }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, r, V(e.config) ? e.radius : e.thickness).map((e, n) => ({
215
- ...e,
216
- index: n,
217
- color: k(e.color, t[n]?.color),
218
- value: x(e.value, 0),
219
- name: String(e.name ?? t[n]?.name ?? `Serie ${n + 1}`),
220
- patternIndex: e.patternIndex ?? t[n]?.patternIndex ?? n,
221
- seriesIndex: e.seriesIndex ?? t[n]?.seriesIndex ?? n
222
- }));
223
- }
224
- function ge(e, t) {
225
- let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0)))), r = t.map((e) => Math.abs(x(e.value, 0)) / n);
226
- return f({
227
- series: r,
228
- center: e.center,
229
- maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
230
- hasGhost: !1
231
- });
232
- }
233
- function H(e) {
234
- return `gradient_${I()}`;
235
- }
236
- function U(e, t) {
237
- return `polar_gradient_${t}_${I()}`;
238
- }
239
- function _e(e) {
240
- return E(e.config, "type", "classic") !== "classic" || !S(e.config, "useGradient", !1) ? "" : w("circle", {
241
- "data-cy": "donut-gradient-hollow",
242
- cx: e.center.x,
243
- cy: e.center.y,
244
- r: e.radius <= 0 ? 10 : e.radius,
245
- fill: `url(#${H(e)})`
246
- });
247
- }
248
- function W(e) {
249
- return `drop_shadow_${I()}`;
250
- }
251
- function ve(e) {
252
- let { config: t, width: n } = e, r = S(t, "title", {}), i = A(r, "subtitle", {});
253
- if (!r.text) return "";
254
- let a = r.textAlign || "center", o = a === "left" ? x(r.paddingLeft, 12) : a === "right" ? n - x(r.paddingRight, 12) : n / 2, s = a === "left" ? "start" : a === "right" ? "end" : "middle", c = x(r.fontSize, 20), l = x(i.fontSize, 14), u = x(r.paddingTop, 12) + c, d = [N(r.text, {
255
- "data-cy": "donut-div-title",
256
- x: o,
257
- y: u,
258
- "font-size": c,
259
- "font-weight": r.bold ? "700" : "400",
260
- "text-anchor": s,
261
- fill: k(r.color, j(t))
262
- })];
263
- return i.text && d.push(N(i.text, {
264
- "data-cy": "donut-div-subtitle",
265
- x: o,
266
- y: u + l + 4,
267
- "font-size": l,
268
- "font-weight": i.bold ? "700" : "400",
269
- "text-anchor": s,
270
- fill: k(i.color || r.color, j(t))
271
- })), M("g", { "data-layer": "title" }, d.join(""));
272
- }
273
- function ye(e, t) {
274
- let { config: n } = e, i = [], a = !!S(n, "useGradient", !1), o = !!S(n, "layout.donut.useShadow", !1);
275
- if (a) {
276
- let a = E(n, "type", "classic"), o = x(S(n, "gradientIntensity", 30), 30);
277
- if (a === "classic" && Number.isFinite(e.thickness / e.radius)) {
278
- let t = V(n) ? 1 : e.thickness / e.radius;
279
- i.push(M("radialGradient", { id: H(e) }, [
280
- w("stop", {
281
- offset: "0%",
282
- "stop-color": h(L(n), 0),
283
- "stop-opacity": 0
284
- }),
285
- w("stop", {
286
- offset: `${(1 - t) * 100}%`,
287
- "stop-color": h("#FFFFFF", 0),
288
- "stop-opacity": 0
289
- }),
290
- w("stop", {
291
- offset: `${(1 - t / 2) * 100}%`,
292
- "stop-color": h("#FFFFFF", o)
293
- }),
294
- w("stop", {
295
- offset: "100%",
296
- "stop-color": h(L(n), 0),
297
- "stop-opacity": 0
298
- })
299
- ].join("")));
300
- }
301
- a === "polar" && t.forEach((t, n) => {
302
- let a = e.polarAreas?.[n];
303
- a?.middlePoint && i.push(M("radialGradient", {
304
- id: U(e, n),
305
- cx: `${c(a.middlePoint.x / e.width * 100)}%`,
306
- cy: `${c(a.middlePoint.y / e.height * 100)}%`,
307
- r: "62%"
308
- }, [w("stop", {
309
- offset: "0%",
310
- "stop-color": r(t.color, .05),
311
- "stop-opacity": o / 100
312
- }), w("stop", {
313
- offset: "100%",
314
- "stop-color": t.color
315
- })].join("")));
316
- });
317
- }
318
- if (o) {
319
- let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), r = x(S(n, "layout.donut.shadowOpacity", .2), .2), a = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
320
- i.push(M("filter", {
321
- id: W(e),
322
- x: "-50%",
323
- y: "-50%",
324
- width: "200%",
325
- height: "200%"
326
- }, [w("feDropShadow", {
327
- dx: 0,
328
- dy: o,
329
- stdDeviation: a,
330
- "flood-color": t,
331
- "flood-opacity": r
332
- })].join("")));
333
- }
334
- return i.length ? M("defs", { "data-layer": "definitions" }, i.join("")) : "";
335
- }
336
- function be(e, t) {
337
- return t.color;
338
- }
339
- function xe(e, t, n) {
340
- return S(e.config, "useGradient", !1) ? `url(#${U(e, n)})` : t.color;
341
- }
342
- function G(e) {
343
- let { config: t } = e;
344
- return S(t, "layout.donut.borderColorAuto", !0) ? L(t) : k(S(t, "layout.donut.borderColor", L(t)), L(t));
345
- }
346
- function K(e) {
347
- return S(e.config, "layout.donut.useShadow", !1) ? `url(#${W(e)})` : void 0;
348
- }
349
- function Se(e, t) {
350
- if (!t.length) return "";
351
- let n = G(e), r = x(S(e.config, "layout.donut.borderWidth", 1), 1), i = [];
352
- return t.forEach((t, a) => {
353
- x(t.proportion, 0) <= 0 || (i.push(w("path", {
354
- "data-cy": `donut-arc-underlay-${a}`,
355
- d: t.arcSlice,
356
- fill: "#FFFFFF",
357
- stroke: L(e.config)
358
- })), i.push(w("path", {
359
- class: "vue-ui-donut-arc-path",
360
- "data-cy": `donut-arc-${a}`,
361
- d: t.arcSlice,
362
- fill: be(e, t, a),
363
- stroke: n,
364
- "stroke-width": r,
365
- filter: K(e)
366
- })));
367
- }), M("g", { "data-layer": "classic-slices" }, i.join(""));
368
- }
369
- function Ce(e, t, n) {
370
- if (!t.length) return "";
371
- let r = G(e), i = x(S(e.config, "layout.donut.borderWidth", 1), 1), a = [];
372
- return t.forEach((t, o) => {
373
- let s = n[o];
374
- s?.path && (a.push(w("path", {
375
- "data-cy": `polar-arc-underlay-${o}`,
376
- d: s.path,
377
- fill: "#FFFFFF",
378
- stroke: r
379
- })), a.push(w("path", {
380
- class: "vue-ui-donut-arc-path",
381
- "data-cy": `donut-arc-${o}`,
382
- d: s.path,
383
- fill: xe(e, t, o),
384
- stroke: r,
385
- "stroke-width": i,
386
- filter: K(e)
387
- })));
388
- }), M("g", { "data-layer": "polar-slices" }, a.join(""));
389
- }
390
- function q(t, n, r = "layout.labels.value.rounding") {
391
- let { config: i } = t, a = S(i, "layout.labels", {}), o = a.dataLabels ?? {}, s = a.value ?? {}, c = e({
392
- p: o.prefix ?? "",
393
- v: n.value,
394
- s: o.suffix ?? "",
395
- r: x(S(i, r, s.rounding ?? 0), s.rounding ?? 0)
396
- });
397
- return d(s.formatter, n.value, c, { datapoint: n });
398
- }
399
- function J(t, n) {
400
- let { config: r } = t, i = S(r, "layout.labels.percentage", {}), a = x(n.proportion, 0) * 100, o = e({
401
- v: a,
402
- s: "%",
403
- r: x(i.rounding, 0)
404
- });
405
- return d(i.formatter, a, o, { datapoint: n });
406
- }
407
- function Y(e, t) {
408
- let n = S(e.config, "layout.labels", {}), r = !!n.name?.show, i = !!(n.value?.show ?? !0), a = !!(n.percentage?.show ?? !0);
409
- return {
410
- name: r ? String(t.name ?? "") : "",
411
- value: i ? q(e, t) : "",
412
- percentage: a ? J(e, t) : ""
413
- };
414
- }
415
- function we(e, t) {
416
- let { value: n, percentage: r } = Y(e, t);
417
- return r && n ? `${r} (${n})` : r || n || "";
418
- }
419
- function X(e, t) {
420
- let n = S(e.config, "layout.labels", {}), r = n.dataLabels ?? {}, i = !!(n.value?.show ?? !0), a = !!(n.percentage?.show ?? !0), o = i ? q(e, t) : "", s = a ? J(e, t) : "";
421
- return o && s ? r.valuePercentageRatio === "percentageFirst" ? `${s}\n${o}` : `${o}\n${s}` : o || s || "";
422
- }
423
- function Z(e, t) {
424
- let n = S(e.config, "layout.labels", {}).dataLabels ?? {};
425
- if (!E(e.config, "dataLabels.show", n.show ?? !0) || !n.show) return !1;
426
- let r = x(n.hideUnderValue, 0);
427
- return x(t.proportion, 0) * 100 > r;
428
- }
429
- function Te(e, t) {
430
- let n = S(e.config, "layout.labels.dataLabels", {}), r = x(n.smallArcClusterThreshold, 0), i = x(n.hideUnderValue, 0), a = x(t.proportion, 0) * 100;
431
- return a > i && r > 0 && a <= r;
432
- }
433
- function Q(e) {
434
- return !!S(e.config, "layout.curvedMarkers", S(e.config, "layout.donut.curvedMarkers", !1));
435
- }
436
- function Ee(e, t) {
437
- let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, u = o * 1.5, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), h = i + (e.radius + 6), g = Q(e);
438
- function _(e) {
439
- return {
440
- x: c(e.center?.endX ?? e.endX),
441
- y: c(e.center?.endY ?? e.endY)
442
- };
443
- }
444
- function v({ midX: e, midY: t, bandX: n, bandY: r }) {
445
- if (!g) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
446
- let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, m = d / f, h = f + 9;
447
- function _({ x: e, y: t }) {
448
- let n = e - i, r = t - a, o = Math.sqrt(n * n + r * r) || 1;
449
- if (o >= h) return {
450
- x: e,
451
- y: t
452
- };
453
- let s = h / o;
454
- return {
455
- x: i + n * s,
456
- y: a + r * s
457
- };
458
- }
459
- if (l < 56) {
460
- let o = s / l, u = -(c / l), d = o, f = (e + n) * .5, h = (t + r) * .5, g = (f + u - i) ** 2 + (h + d - a) ** 2;
461
- (f - u - i) ** 2 + (h - d - a) ** 2 > g && (u = -u, d = -d);
462
- let v = Math.max(0, Math.min(1, (l - 18) / 44)), y = v * v * (3 - 2 * v), b = e + s * .78, x = t + c * .78, S = _({
463
- x: b + u * (2.5 + y * 4) * .9 + p * (1 + y * 2.5),
464
- y: x + d * (2.5 + y * 4) * .9 + m * (1 + y * 2.5)
465
- });
466
- return `M ${e} ${t} Q ${S.x} ${S.y} ${n} ${r}`;
467
- }
468
- let v = l * .34;
469
- v < 20 && (v = 20), v > 46 && (v = 46);
470
- let y = l * .46;
471
- y < 22 && (y = 22), y > 70 && (y = 70);
472
- let b = _({
473
- x: e + p * v,
474
- y: t + m * v
475
- }), x = i + o * Math.max(Math.abs(n - i), h), S = _({
476
- x: n - o * Math.min(y, Math.abs(x - n) * .75),
477
- y: r
478
- });
479
- return `M ${e} ${t} C ${b.x} ${b.y} ${S.x} ${S.y} ${n} ${r}`;
480
- }
481
- function y(e) {
482
- let t = String(e ?? "").split(/\n/g);
483
- return u + Math.max(0, t.length - 1) * o * 1.2;
484
- }
485
- function b({ arc: e, index: t }) {
486
- let n = _(e);
487
- return {
488
- arc: e,
489
- index: t,
490
- midX: n.x,
491
- midY: n.y,
492
- inlineMarkerX: l(e).x,
493
- inlineMarkerY: m(e) - 3.5,
494
- labelHeight: y(e.name)
495
- };
496
- }
497
- function C(e) {
498
- let t = e.inlineMarkerY < a, n = e.inlineMarkerX < i;
499
- return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
500
- }
501
- function w(e, t) {
502
- let n = t.startsWith("T");
503
- e.sort((e, t) => n ? e.inlineMarkerY - t.inlineMarkerY || e.index - t.index : t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
504
- }
505
- function T({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
506
- return {
507
- side: e,
508
- labelX: e === "left" ? t - 8 : t + 8,
509
- labelY: r + s,
510
- textAnchor: e === "left" ? "end" : "start",
511
- markerX: t,
512
- markerY: n,
513
- connectorPath: i
514
- };
515
- }
516
- function E({ candidateList: e, side: t, bandMarkerX: n, startY: i, direction: a }) {
517
- let o = i;
518
- e.forEach((e) => {
519
- let { index: i, midX: s, midY: c, labelHeight: l } = e, u;
520
- a === "down" ? (u = o, o += l) : (o -= l, u = o);
521
- let d = u, f = v({
522
- midX: s,
523
- midY: c,
524
- bandX: n,
525
- bandY: d
526
- });
527
- r[i] = T({
528
- side: t,
529
- markerX: n,
530
- markerY: d,
531
- labelY: u,
532
- connectorPath: f
533
- });
534
- });
535
- }
536
- let D = {
537
- TL: [],
538
- TR: [],
539
- BL: [],
540
- BR: []
541
- };
542
- return t.map((e, t) => b({
543
- arc: e,
544
- index: t
545
- })).filter(({ arc: t }) => Z(e, t) && Te(e, t)).forEach((e) => {
546
- D[C(e)].push(e);
547
- }), Object.keys(D).forEach((e) => {
548
- w(D[e], e);
549
- }), E({
550
- candidateList: D.TL,
551
- side: "left",
552
- bandMarkerX: p,
553
- startY: d,
554
- direction: "down"
555
- }), E({
556
- candidateList: D.TR,
557
- side: "right",
558
- bandMarkerX: h,
559
- startY: d,
560
- direction: "down"
561
- }), D.BL.length > 1 && E({
562
- candidateList: D.BL,
563
- side: "left",
564
- bandMarkerX: p,
565
- startY: f,
566
- direction: "up"
567
- }), D.BR.length > 1 && E({
568
- candidateList: D.BR,
569
- side: "right",
570
- bandMarkerX: h,
571
- startY: f,
572
- direction: "up"
573
- }), r;
574
- }
575
- function De({ state: e, arc: t, arcIndex: n, smallArcLayout: r, fontSize: i }) {
576
- let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? l(t, !0, 12).x, u = r?.labelY ?? m(t), d = r?.textAnchor ?? l(t, !0, 12).anchor, { name: f } = Y(e, t), h = we(e, t), g = String(f).split(/\n/g), _ = f ? g.map((t, n) => M("tspan", {
577
- class: "vue-data-ui-datalabel-name",
578
- x: n === 0 ? void 0 : c,
579
- dy: n === 0 ? void 0 : i * 1.2,
580
- fill: k(s.color, j(e.config)),
581
- "font-size": i,
582
- "font-weight": s.bold ? "700" : "400"
583
- }, p(t + (n === g.length - 1 ? " " : "")))).join("") : "", v = h ? M("tspan", {
584
- class: "vue-data-ui-datalabel-value",
585
- fill: k(o.color, j(e.config)),
586
- "font-size": i,
587
- "font-weight": o.bold ? "700" : "400"
588
- }, p(h)) : "";
589
- return M("text", {
590
- "data-cy": `donut-label-inline-${n}`,
591
- class: "vue-data-ui-datalabel-inline",
592
- x: c,
593
- y: u,
594
- "text-anchor": d
595
- }, `${_}${v}`);
596
- }
597
- function Oe(e, t) {
598
- let n = S(e.config, "layout.labels", {}), r = n.dataLabels ?? {};
599
- if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
600
- let i = x(r.fontSize ?? n.value?.fontSize ?? 12, 12);
601
- k(r.color ?? n.value?.color ?? j(e.config), j(e.config)), r.bold ?? n.value?.bold;
602
- let a = x(r.offset, 16), o = Ee(e, t), s = [];
603
- return t.forEach((t, n) => {
604
- if (!Z(e, t)) return;
605
- let c = o[n];
606
- if (X(e, t), c) {
607
- s.push(De({
608
- state: e,
609
- arc: t,
610
- arcIndex: n,
611
- smallArcLayout: c,
612
- fontSize: x(r.smallArcClusterFontSize, i)
613
- }));
614
- return;
615
- }
616
- s.push(De({
617
- state: e,
618
- arc: t,
619
- arcIndex: n,
620
- smallArcLayout: {
621
- labelX: l(t, !1, a + i / 2).x,
622
- labelY: m(t, a, a),
623
- textAnchor: l(t).anchor
624
- },
625
- fontSize: i
626
- }));
627
- }), s.length ? M("g", { "data-layer": "data-labels" }, s.join("")) : "";
628
- }
629
- function ke(e, t, n = 42) {
630
- return v({
631
- initX: t.middlePoint.x,
632
- initY: t.middlePoint.y,
633
- offset: n,
634
- centerX: e.center.x,
635
- centerY: e.center.y
636
- });
637
- }
638
- function Ae(e, t) {
639
- return t.x < e.center.x ? "end" : t.x > e.center.x ? "start" : "middle";
640
- }
641
- function je(e, t, n, r) {
642
- let i = S(e.config, "layout.labels", {}), a = i.percentage ?? {}, o = i.name ?? {}, s = x(a.fontSize, i.dataLabels?.fontSize ?? 12), c = x(o.fontSize, i.dataLabels?.fontSize ?? 12), l = M("tspan", {
643
- class: "vue-data-ui-datalabel-value",
644
- fill: k(a.color, j(e.config)),
645
- "font-size": s,
646
- "font-weight": a.bold ? "700" : "400"
647
- }, p(String(X(e, t).replace(/\n/g, " / ")))), u = o.show ? String(t.name ?? "").split(/\n/g).map((t, r) => M("tspan", {
648
- class: "vue-data-ui-datalabel-name",
649
- x: r === 0 ? void 0 : n,
650
- dy: r === 0 ? void 0 : c * 1.2,
651
- fill: k(o.color, j(e.config)),
652
- "font-size": c,
653
- "font-weight": o.bold ? "700" : "400"
654
- }, p(t))).join("") : "";
655
- return r === "end" ? `${u}${l}` : `${l}${u}`;
656
- }
657
- function Me(e, t, n) {
658
- let r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = r.percentage ?? {}, c = r.name ?? {};
659
- if (!E(e.config, "dataLabels.show", i.show ?? !0) || !i.show) return "";
660
- let l = !!i.oneLine, u = x(a.fontSize, i.fontSize ?? 12), d = x(c.fontSize, i.fontSize ?? 12), f = [];
661
- return t.forEach((t, r) => {
662
- let i = n[r];
663
- if (!i || !Z(e, t)) return;
664
- let a = ke(e, i, 42), m = Ae(e, a);
665
- if (l) {
666
- f.push(M("text", {
667
- "data-cy": "polar-label-inline",
668
- class: "vue-data-ui-datalabel-inline",
669
- x: a.x,
670
- y: a.y,
671
- "text-anchor": m
672
- }, je(e, t, a.x, m)));
673
- return;
674
- }
675
- f.push(M("text", {
676
- "data-cy": "polar-label-value",
677
- class: "vue-data-ui-datalabel-value",
678
- x: a.x,
679
- y: a.y,
680
- "font-size": u,
681
- "font-weight": o.bold ? "700" : "400",
682
- "text-anchor": m,
683
- fill: valueFill
684
- }, te({
685
- content: X(e, t),
686
- x: a.x,
687
- fontSize: u,
688
- fill: valueFill,
689
- textAnchor: m
690
- }))), c.show && f.push(M("text", {
691
- "data-cy": "polar-label-name",
692
- class: "vue-data-ui-datalabel-name",
693
- x: a.x,
694
- y: a.y + d * 1.2,
695
- "font-size": d,
696
- "font-weight": c.bold ? "700" : "400",
697
- "text-anchor": m,
698
- fill: k(c.color, j(e.config))
699
- }, s({
700
- content: p(String(t.name ?? "")),
701
- fontSize: d,
702
- fill: k(c.color, j(e.config)),
703
- x: a.x
704
- })));
705
- }), f.length ? M("g", { "data-layer": "polar-data-labels" }, f.join("")) : "";
706
- }
707
- function Ne(e, t, n = null) {
708
- if (n?.connectorPath) return n.connectorPath;
709
- let r = S(e.config, "layout.labels.dataLabels", {}), i = x(r.offset, 16), a = x(r.markerFlatLength, 12), o = Q(e);
710
- return u(t, !1, i, i, !1, !1, 0, a, o);
711
- }
712
- function Pe(e, t) {
713
- let n = S(e.config, "layout.labels.dataLabels", {});
714
- if (!E(e.config, "dataLabels.show", n.show ?? !0) || !n.show) return "";
715
- let r = Ee(e, t), i = [];
716
- return t.forEach((t, a) => {
717
- if (!Z(e, t)) return;
718
- let o = r[a], s = Ne(e, t, o);
719
- s && (i.push(w("path", {
720
- "data-cy": `donut-marker-${a}`,
721
- d: s,
722
- stroke: t.color,
723
- "stroke-width": x(n.markerStrokeWidth, 1),
724
- "stroke-linecap": "round",
725
- "stroke-linejoin": "round",
726
- fill: "none"
727
- })), i.push(w("circle", {
728
- "data-cy": `donut-label-marker-${a}`,
729
- cx: o?.markerX ?? l(t).x,
730
- cy: o?.markerY ?? m(t) - 3.5,
731
- r: x(n.markerRadius, 3),
732
- fill: t.color,
733
- stroke: L(e.config),
734
- "stroke-width": 1
735
- })));
736
- }), i.length ? M("g", { "data-layer": "label-markers" }, i.join("")) : "";
737
- }
738
- function Fe(e, t, n) {
739
- let r = S(e.config, "layout.labels.dataLabels", {});
740
- if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
741
- let i = [];
742
- return t.forEach((t, a) => {
743
- let o = n[a];
744
- if (!o?.middlePoint || !Z(e, t)) return;
745
- let s = v({
746
- initX: o.middlePoint.x,
747
- initY: o.middlePoint.y,
748
- offset: 24,
749
- centerX: e.center.x,
750
- centerY: e.center.y
751
- });
752
- i.push(w("path", {
753
- "data-cy": `polar-marker-${a}`,
754
- d: `M ${s.x},${s.y} ${o.middlePoint.x},${o.middlePoint.y}`,
755
- stroke: t.color,
756
- "stroke-width": x(r.markerStrokeWidth, 1),
757
- "stroke-linecap": "round",
758
- "stroke-linejoin": "round",
759
- fill: "none"
760
- })), i.push(w("circle", {
761
- "data-cy": `polar-label-marker-${a}`,
762
- cx: s.x,
763
- cy: s.y,
764
- r: x(r.markerRadius, 3),
765
- fill: t.color,
766
- stroke: L(e.config),
767
- "stroke-width": 1
768
- }));
769
- }), i.length ? M("g", { "data-layer": "polar-label-markers" }, i.join("")) : "";
770
- }
771
- function $(e, t) {
772
- return e == null || e === "" ? "" : N(e, {
773
- "text-anchor": "middle",
774
- ...t
775
- });
776
- }
777
- function Ie(t, n, r) {
778
- if (E(t.config, "type", "classic") !== "classic" || V(t.config) || !n) return "";
779
- let i = S(t.config, "layout.labels.hollow", {}), a = i.total ?? {}, o = i.average ?? {}, s = [];
780
- if (a.show) {
781
- let r = x(a.fontSize, 14), i = !!o.show, c = t.center.y - (i ? r : 0) + x(a.offsetY, 0), l = a.value ?? {}, u = x(l.fontSize, r), f = d(l.formatter, n, e({
782
- p: l.prefix ?? "",
783
- v: n,
784
- s: l.suffix ?? "",
785
- r: x(l.rounding, 0)
786
- }), { total: n });
787
- s.push($(a.text ?? "", {
788
- "data-cy": "hollow-total-name",
789
- x: t.center.x,
790
- y: c,
791
- fill: k(a.color, j(t.config)),
792
- "font-size": r,
793
- "font-weight": a.bold ? "700" : "400"
794
- })), s.push($(f, {
795
- "data-cy": "hollow-total-value",
796
- x: t.center.x,
797
- y: t.center.y + r - (i ? r : 0) + x(l.offsetY, 0),
798
- fill: k(l.color, k(a.color, j(t.config))),
799
- "font-size": u,
800
- "font-weight": l.bold ? "700" : "400"
801
- }));
802
- }
803
- if (o.show) {
804
- let i = x(o.fontSize, 14), c = !!a.show, l = n / Math.max(1, r.length), u = o.value ?? {}, f = x(u.fontSize, i), p = d(u.formatter, l, e({
805
- p: u.prefix ?? "",
806
- v: l,
807
- s: u.suffix ?? "",
808
- r: x(u.rounding, 0)
809
- }), { average: l });
810
- s.push($(o.text ?? "", {
811
- "data-cy": "hollow-average-name",
812
- x: t.center.x,
813
- y: t.center.y + (c ? i : 0) + x(o.offsetY, 0),
814
- fill: k(o.color, j(t.config)),
815
- "font-size": i,
816
- "font-weight": o.bold ? "700" : "400"
817
- })), s.push($(p, {
818
- "data-cy": "hollow-average-value",
819
- x: t.center.x,
820
- y: t.center.y + (c ? i : 0) + i + x(u.offsetY, 0),
821
- fill: k(u.color, k(o.color, j(t.config))),
822
- "font-size": f,
823
- "font-weight": u.bold ? "700" : "400"
824
- }));
825
- }
826
- return s.filter(Boolean).length ? M("g", {
827
- class: "vue-data-ui-donut-hollow-labels",
828
- "data-layer": "hollow-labels"
829
- }, s.join("")) : "";
830
- }
831
- function Le(t, n) {
832
- let { config: r, center: i } = t, a = S(r, "layout.donut.labels.total", S(r, "layout.labels.total", {}));
833
- if (!a.show || !Number.isFinite(n) || n <= 0) return "";
834
- let o = S(r, "layout.labels.dataLabels", {}), s = x(a.fontSize, 20), c = k(a.color, j(r)), l = d(a.formatter, n, e({
835
- p: o.prefix ?? "",
836
- v: n,
837
- s: o.suffix ?? "",
838
- r: x(a.rounding, 0)
839
- }), { total: n });
840
- return N(l, {
841
- "data-cy": "donut-total",
842
- x: i.x,
843
- y: i.y + s / 3,
844
- "font-size": s,
845
- "font-weight": a.bold ? "700" : "400",
846
- "text-anchor": "middle",
847
- fill: c
848
- });
849
- }
850
- function Re(e, t) {
851
- let n = z(R(e));
852
- return n ? x(t.value, 0) / n * 100 : 0;
853
- }
854
- function ze(t, n) {
855
- let r = S(t.config, "legend", {}), i = S(t.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = e({
856
- p: a.prefix ?? "",
857
- v: n.value,
858
- s: a.suffix ?? "",
859
- r: x(r.roundingValue, o.rounding ?? 0)
860
- });
861
- return d(o.formatter, n.value, s, {
862
- datapoint: n,
863
- serie: n
864
- });
865
- }
866
- function Be(t, n) {
867
- let r = S(t.config, "legend", {}), i = S(t.config, "layout.labels", {}).percentage ?? {}, a = Re(t, n), o = e({
868
- v: a,
869
- s: "%",
870
- r: x(r.roundingPercentage, i.rounding ?? 0)
871
- });
872
- return d(i.formatter, a, o, {
873
- datapoint: n,
874
- serie: n
875
- });
876
- }
877
- function Ve(e, t) {
878
- let n = S(e.config, "legend", {}), r = [], i = n.showPercentage ? Be(e, t) : "", a = n.showValue ? ze(e, t) : "", o = i && n.usePercentageParens ? `(${i})` : i, s = a && n.useValueParens ? `(${a})` : a;
879
- return n.showValueFirst ? (s && r.push(s), o && r.push(o)) : (o && r.push(o), s && r.push(s)), `${t.name}${r.length ? `: ${r.join(" ")}` : ""}`;
880
- }
881
- function He(e, t) {
882
- let n = S(e.config, "legend", {});
883
- if (!n.show || !t.length) return "";
884
- let r = B(e, t), i = k(n.color, j(e.config)), a = n.position || "bottom", o = Math.max(r.markerSize, r.fontSize), s = a === "top" ? r.padding + o : e.height - r.height + r.padding + o, c = [];
885
- return r.rows.forEach((t, a) => {
886
- let l = r.padding + (e.width - r.padding * 2) / 2 - t.width / 2, u = s + a * (o + r.rowGap);
887
- t.items.forEach(({ serie: e, label: t, itemWidth: a }) => {
888
- c.push(w("circle", {
889
- cx: l + r.markerSize / 2,
890
- cy: u,
891
- r: r.markerSize / 2,
892
- fill: e.color,
893
- opacity: e.opacity ?? 1
894
- })), c.push(N(t, {
895
- x: l + r.markerSize + r.labelGap,
896
- y: u + 2,
897
- "font-size": r.fontSize,
898
- "font-weight": n.bold ? "700" : "400",
899
- "dominant-baseline": "middle",
900
- fill: i,
901
- opacity: e.opacity ?? 1
902
- })), l += a + r.itemGap;
903
- });
904
- }), M("g", {
905
- "data-layer": "legend",
906
- "data-cy": "donut-div-legend"
907
- }, c.join(""));
908
- }
909
- function Ue(e) {
910
- return M("g", { "data-layer": "no-data" }, [w("circle", {
911
- cx: e.center.x,
912
- cy: e.center.y,
913
- r: Math.max(1, e.radius),
914
- fill: k(S(e.config, "layout.donut.emptyFill", "#E1E5E8"), "#E1E5E8"),
915
- opacity: .4
916
- })].join(""));
917
- }
918
- function We(e, t) {
919
- let n = e.additionalSvgContent;
920
- return typeof n == "function" ? n({
921
- width: e.width,
922
- height: e.height,
923
- drawingArea: e.drawingArea,
924
- center: e.center,
925
- radius: e.radius,
926
- thickness: e.thickness,
927
- innerRadius: e.innerRadius,
928
- config: e.config,
929
- series: t.map((e) => ({ ...e }))
930
- }) ?? "" : n ?? "";
931
- }
932
- function Ge(e, t, n) {
933
- let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${c(n)}.`;
934
- return M("title", {}, p(r));
935
- }
936
- async function Ke(e) {
937
- let t = e.config, n = x(e.width, S(t, "width", 512)), r = x(e.height, S(t, "height", 512)), i = R(e), a = z(i), o = me({
938
- ...e,
939
- width: n,
940
- height: r
941
- }, i), s = he(o, i), c = ge(o, i), l = E(t, "type", "classic"), u = a > 0 && s.some((e) => x(e.proportion, 0) > 0);
942
- return `
943
- <svg
944
- xmlns="${g}"
945
- width="100%"
946
- viewBox="0 0 ${n} ${r}"
947
- role="img"
948
- >
949
- ${D()}
950
- ${Ge(o, i, a)}
951
- ${C(o)}
952
- ${ye({
953
- ...o,
954
- polarAreas: c
955
- }, s)}
956
- ${ee(o)}
957
- ${ve(o)}
958
- ${u ? l === "polar" ? Ce(o, s, c) : Se(o, s) : Ue(o)}
959
- ${u && l === "classic" ? _e(o) : ""}
960
- ${u ? l === "polar" ? Fe(o, s, c) : Pe(o, s) : ""}
961
- ${u ? Ie(o, a, i) : ""}
962
- ${u ? l === "polar" ? Me(o, s, c) : Oe(o, s) : ""}
963
- ${u ? Le(o, a) : ""}
964
- ${He(o, i)}
965
- ${We(o, s)}
966
- </svg>`.trim();
967
- }
968
- //#endregion
969
- //#region src/svg/vue-ui-donut/index.js
970
- async function qe(e = {}) {
971
- return await Ke(le(e));
972
- }
973
- //#endregion
974
- export { qe as t };