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,2427 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, $t as n, D as r, Et as i, Ft as a, Jt as o, Rt as s, S as c, Vt as l, X as u, Y as ee, at as te, b as ne, et as d, f, h as re, i as p, it as m, j as ie, lt as ae, nt as oe, p as h, qt as se, s as ce, t as le, tn as ue, ut as de, vt as fe, w as pe, zt as g } from "./lib-TWIH5fGr.js";
3
- import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
- import { t as ge } from "./useConfig-DObkR9Aa.js";
5
- import { t as _e } from "./usePrinter-8Y1Rju0Y.js";
6
- import { n as ve, t as ye } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as be } from "./useNestedProp-BxOdWM0c.js";
8
- import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Se } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Ce } from "./img-KURaWjZI.js";
11
- import { n as we } from "./Title-Bd98RysU.js";
12
- import { t as Te } from "./Shape-BZgQLgu5.js";
13
- import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
- import { l as De, t as Oe } from "./useResponsive-ZtArZtUf.js";
15
- import { t as ke } from "./DefGrad-DVBqDjhO.js";
16
- import { t as Ae } from "./BaseLegendToggle-Doa5rYP2.js";
17
- import { t as je } from "./A11yDataTable-DdRsVULz.js";
18
- import { t as Me } from "./useUserOptionState-DK-_1ddE.js";
19
- import { t as Ne } from "./useChartAccessibility-DYqac8yF.js";
20
- import { n as Pe, t as Fe } from "./labelUtils-DShv2Mbg.js";
21
- import { t as Ie } from "./vue_ui_donut-BDGqG07h.js";
22
- import { t as Le } from "./Legend-D9FGXIbQ.js";
23
- import { Fragment as _, Teleport as Re, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as He, guardReactiveProps as C, mergeProps as Ue, nextTick as We, normalizeClass as Ge, normalizeProps as w, normalizeStyle as T, onBeforeUnmount as Ke, onMounted as qe, openBlock as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as Xe, toRefs as Ze, unref as A, useSlots as Qe, vShow as $e, watch as et, withCtx as j, withDirectives as tt } from "vue";
24
- //#region src/useSmallArcLayouts.js
25
- function nt(e) {
26
- let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: te } = e;
27
- return { smallArcLayoutsClassic: v(() => {
28
- if (t.value.type !== "classic") return {};
29
- let e = {}, ne = n.value || [];
30
- if (!ne.length) return e;
31
- let d = r.value.width / 2, f = r.value.height / 2, re = i.value.top + 16, p = r.value.height - i.value.bottom - 16, m = a.value, ie = m / 3, ae = m * 1.5, oe = d - (o.value + 6), h = d + (o.value + 6), se = !!t.value.style.chart.layout.curvedMarkers;
32
- function ce({ midX: e, midY: t, bandX: n, bandY: r }) {
33
- if (!se) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
34
- let i = n < d ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - d, l = t - f, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, te = l / u, ne = u + 9;
35
- function re({ x: e, y: t }) {
36
- let n = e - d, r = t - f, i = Math.sqrt(n * n + r * r) || 1;
37
- if (i >= ne) return {
38
- x: e,
39
- y: t
40
- };
41
- let a = ne / i;
42
- return {
43
- x: d + n * a,
44
- y: f + r * a
45
- };
46
- }
47
- if (s < 56) {
48
- let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, ne = (t + r) * .5, p = u + c, m = ne + l, ie = (p - d) * (p - d) + (m - f) * (m - f), ae = u - c, oe = ne - l;
49
- (ae - d) * (ae - d) + (oe - f) * (oe - f) > ie && (c = -c, l = -l);
50
- let h = .78, se = e + a * h, ce = t + o * h, le = Math.max(0, Math.min(1, (s - 18) / 44)), ue = le * le * (3 - 2 * le), de = 2.5 + ue * 4, fe = 1 + ue * 2.5;
51
- de *= .9;
52
- let pe = re({
53
- x: se + c * de + ee * fe,
54
- y: ce + l * de + te * fe
55
- });
56
- return `M ${e} ${t} Q ${pe.x} ${pe.y} ${n} ${r}`;
57
- }
58
- let p = s * .34;
59
- p < 20 && (p = 20), p > 46 && (p = 46);
60
- let m = s * .46;
61
- m < 22 && (m = 22), m > 70 && (m = 70);
62
- let ie = {
63
- x: e + ee * p,
64
- y: t + te * p
65
- }, ae = d + i * Math.max(Math.abs(n - d), ne), oe = {
66
- x: n - i * Math.min(m, Math.abs(ae - n) * .75),
67
- y: r
68
- }, h = re(ie), ce = re(oe);
69
- return `M ${e} ${t} C ${h.x} ${h.y} ${ce.x} ${ce.y} ${n} ${r}`;
70
- }
71
- function le(e) {
72
- let t = String(e ?? "").split(/\n/g), n = Math.max(0, t.length - 1) * (m * 1.2);
73
- return ae + n;
74
- }
75
- function ue({ arc: e, index: t }) {
76
- let { x: n, y: r } = s(e.path);
77
- return {
78
- arc: e,
79
- index: t,
80
- midX: n,
81
- midY: r,
82
- inlineMarkerX: c(e).x,
83
- inlineMarkerY: l(e) - 3.5,
84
- labelHeight: le(e.name)
85
- };
86
- }
87
- function de(e) {
88
- let { arc: t } = e, n = t.seriesIndex ?? 0;
89
- return u.value === n || ee.value.includes(n) ? !1 : te(t, n);
90
- }
91
- function fe(e) {
92
- let t = e.inlineMarkerY < f, n = e.inlineMarkerX < d;
93
- return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
94
- }
95
- function pe(e, t) {
96
- if (t.startsWith("T")) {
97
- e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
98
- return;
99
- }
100
- e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
101
- }
102
- function g({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
103
- return {
104
- side: e,
105
- labelX: e === "left" ? t - 8 : t + 8,
106
- labelY: r + ie,
107
- textAnchor: e === "left" ? "end" : "start",
108
- markerX: t,
109
- markerY: n,
110
- connectorPath: i
111
- };
112
- }
113
- function me({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
114
- let o = i;
115
- t.forEach((t) => {
116
- let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
117
- a === "down" ? (u = o, o += l) : (o -= l, u = o);
118
- let ee = u, te = ce({
119
- midX: s,
120
- midY: c,
121
- bandX: r,
122
- bandY: ee
123
- });
124
- e[i] = g({
125
- side: n,
126
- markerX: r,
127
- markerY: ee,
128
- labelY: u,
129
- connectorPath: te
130
- });
131
- });
132
- }
133
- let he = ne.map((e, t) => ue({
134
- arc: e,
135
- index: t
136
- })).filter(de), ge = {
137
- TL: [],
138
- TR: [],
139
- BL: [],
140
- BR: []
141
- };
142
- return he.forEach((e) => {
143
- ge[fe(e)].push(e);
144
- }), Object.keys(ge).forEach((e) => {
145
- pe(ge[e], e);
146
- }), me({
147
- candidateList: ge.TL,
148
- side: "left",
149
- bandMarkerX: oe,
150
- startY: re,
151
- direction: "down"
152
- }), me({
153
- candidateList: ge.TR,
154
- side: "right",
155
- bandMarkerX: h,
156
- startY: re,
157
- direction: "down"
158
- }), ge.BL.length > 1 && me({
159
- candidateList: ge.BL,
160
- side: "left",
161
- bandMarkerX: oe,
162
- startY: p,
163
- direction: "up"
164
- }), ge.BR.length > 1 && me({
165
- candidateList: ge.BR,
166
- side: "right",
167
- bandMarkerX: h,
168
- startY: p,
169
- direction: "up"
170
- }), e;
171
- }) };
172
- }
173
- //#endregion
174
- //#region src/components/vue-ui-donut.vue
175
- var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot = ["id"], st = { style: { position: "relative" } }, ct = [
176
- "xmlns",
177
- "aria-describedby",
178
- "viewBox"
179
- ], lt = ["width", "height"], ut = { key: 1 }, dt = { key: 2 }, ft = ["id"], pt = ["id"], mt = ["id"], ht = ["flood-color"], gt = ["id"], _t = ["flood-color"], vt = [
180
- "d",
181
- "stroke",
182
- "filter"
183
- ], yt = [
184
- "d",
185
- "stroke",
186
- "filter"
187
- ], bt = [
188
- "cx",
189
- "cy",
190
- "r",
191
- "fill",
192
- "filter"
193
- ], xt = { key: 6 }, St = ["stroke", "d"], Ct = [
194
- "d",
195
- "fill",
196
- "stroke",
197
- "stroke-width",
198
- "filter"
199
- ], wt = { key: 0 }, Tt = [
200
- "d",
201
- "fill",
202
- "stroke",
203
- "stroke-width",
204
- "filter"
205
- ], Et = { key: 0 }, Dt = ["stroke", "d"], Ot = { key: 0 }, kt = [
206
- "d",
207
- "stroke",
208
- "stroke-width",
209
- "filter"
210
- ], At = { key: 1 }, jt = [
211
- "d",
212
- "fill",
213
- "stroke",
214
- "stroke-width",
215
- "filter"
216
- ], Mt = [
217
- "d",
218
- "fill",
219
- "stroke",
220
- "stroke-width",
221
- "filter"
222
- ], Nt = { key: 1 }, Pt = [
223
- "cx",
224
- "cy",
225
- "r",
226
- "fill",
227
- "stroke",
228
- "stroke-width"
229
- ], Ft = [
230
- "cx",
231
- "cy",
232
- "r",
233
- "fill",
234
- "stroke",
235
- "stroke-width"
236
- ], It = { key: 0 }, Lt = [
237
- "d",
238
- "fill",
239
- "stroke",
240
- "stroke-width"
241
- ], Rt = [
242
- "cx",
243
- "cy",
244
- "r",
245
- "stroke"
246
- ], zt = [
247
- "cx",
248
- "cy",
249
- "r",
250
- "fill"
251
- ], Bt = [
252
- "cx",
253
- "cy",
254
- "r"
255
- ], Vt = { key: 0 }, Ht = [
256
- "d",
257
- "stroke",
258
- "fill",
259
- "onMouseenter",
260
- "onMouseleave",
261
- "onClick"
262
- ], Ut = { key: 1 }, Wt = [
263
- "cx",
264
- "cy",
265
- "r"
266
- ], Gt = [
267
- "x",
268
- "y",
269
- "fill",
270
- "font-size"
271
- ], Kt = [
272
- "x",
273
- "y",
274
- "fill",
275
- "font-size"
276
- ], qt = [
277
- "x",
278
- "y",
279
- "fill",
280
- "font-size"
281
- ], Jt = [
282
- "x",
283
- "y",
284
- "fill",
285
- "font-size"
286
- ], Yt = ["filter", "opacity"], Xt = { key: 0 }, Zt = ["x", "y"], Qt = { key: 1 }, $t = [
287
- "cx",
288
- "cy",
289
- "fill",
290
- "stroke",
291
- "filter",
292
- "onClick",
293
- "onMouseenter",
294
- "onMouseleave"
295
- ], en = [
296
- "text-anchor",
297
- "x",
298
- "y",
299
- "onClick",
300
- "onMouseenter",
301
- "onMouseleave",
302
- "innerHTML"
303
- ], tn = [
304
- "text-anchor",
305
- "x",
306
- "y",
307
- "fill",
308
- "font-size",
309
- "onClick",
310
- "onMouseenter",
311
- "onMouseleave"
312
- ], nn = [
313
- "text-anchor",
314
- "x",
315
- "y",
316
- "fill",
317
- "font-size",
318
- "onClick",
319
- "onMouseenter",
320
- "onMouseleave",
321
- "innerHTML"
322
- ], rn = [
323
- "cx",
324
- "cy",
325
- "fill",
326
- "stroke",
327
- "filter",
328
- "onClick",
329
- "onMouseenter",
330
- "onMouseleave"
331
- ], an = [
332
- "text-anchor",
333
- "x",
334
- "y",
335
- "onClick",
336
- "onMouseenter",
337
- "onMouseleave",
338
- "innerHTML"
339
- ], on = [
340
- "text-anchor",
341
- "x",
342
- "y",
343
- "fill",
344
- "font-size",
345
- "onClick",
346
- "onMouseenter",
347
- "onMouseleave"
348
- ], sn = [
349
- "text-anchor",
350
- "x",
351
- "y",
352
- "fill",
353
- "font-size",
354
- "onClick",
355
- "onMouseenter",
356
- "onMouseleave",
357
- "innerHTML"
358
- ], cn = { key: 2 }, ln = [
359
- "x",
360
- "y",
361
- "width"
362
- ], un = [
363
- "x",
364
- "y",
365
- "width"
366
- ], dn = {
367
- key: 0,
368
- style: {
369
- position: "absolute",
370
- top: "100%",
371
- left: "0",
372
- width: "100%"
373
- },
374
- "data-dom-to-png-ignore": "",
375
- "aria-hidden": "true"
376
- }, fn = {
377
- key: 5,
378
- class: "vue-data-ui-watermark"
379
- }, pn = ["id"], mn = ["onClick"], hn = {
380
- key: 8,
381
- class: "vue-ui-donut-hollow"
382
- }, gn = { key: 0 }, _n = { key: 1 }, vn = /*#__PURE__*/ Ee({
383
- __name: "vue-ui-donut",
384
- props: {
385
- config: {
386
- type: Object,
387
- default() {
388
- return {};
389
- }
390
- },
391
- dataset: {
392
- type: Array,
393
- default() {
394
- return [];
395
- }
396
- }
397
- },
398
- emits: [
399
- "selectLegend",
400
- "selectDatapoint",
401
- "copyAlt"
402
- ],
403
- setup(e, { expose: Ee, emit: rt }) {
404
- let vn = He(() => import("./Tooltip-DmQeI5WE.js")), yn = He(() => import("./BaseIcon-CIK6Sqo3.js").then((e) => e.n)), bn = He(() => import("./vue-ui-accordion-AyyZDab3.js").then((e) => e.n)), xn = He(() => import("./DataTable-B6LDCXBz.js")), Sn = He(() => import("./PenAndPaper-C1EcBgJW.js").then((e) => e.t)), Cn = He(() => import("./UserOptions-B_yBcZ1-.js").then((e) => e.n)), wn = He(() => import("./PackageVersion-CslTvFsC.js").then((e) => e.t)), Tn = He(() => import("./BaseDraggableDialog-BCFCiP_6.js").then((e) => e.n)), { vue_ui_donut: En } = ge(), { isThemeValid: Dn, warnInvalidTheme: On } = xe(), kn = Qe(), M = e, An = v({
405
- get() {
406
- return !!M.dataset && M.dataset.length;
407
- },
408
- set(e) {
409
- return e;
410
- }
411
- }), jn = Ye(null), Mn = D(null), Nn = D(null), Pn = D(null), Fn = Ye(null), In = Ye(null), Ln = Ye(null), Rn = Ye(null), zn = Ye(null), Bn = Ye(null), Vn = D(0), Hn = D(0), Un = D(0), Wn = D(!1), Gn = D(null), Kn = D(null), qn = D(null), Jn = D({
412
- x: 0,
413
- y: 0
414
- }), Yn = D("pointer"), Xn = D(!1), Zn = v({
415
- get: () => I.value.style.chart.layout.labels.percentage.fontSize,
416
- set: (e) => e
417
- }), N = v({
418
- get: () => I.value.style.chart.layout.labels.name.fontSize,
419
- set: (e) => e
420
- }), Qn = v({
421
- get: () => I.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
422
- set: (e) => e
423
- }), $n = !1, er = () => {
424
- I.value.autoSize && !$n && ($n = !0, requestAnimationFrame(() => {
425
- $n = !1;
426
- let e = I.value, t = Mn.value, n = Sr.value;
427
- if (!e.autoSize || !t || !n) return;
428
- let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
429
- x: r,
430
- y: i,
431
- width: a,
432
- height: o
433
- }, c = [
434
- {
435
- selector: ".vue-data-ui-datalabel-value",
436
- baseSize: L.value.percentage.fontSize,
437
- minSize: L.value.percentage.minFontSize,
438
- sizeRef: Zn
439
- },
440
- {
441
- selector: ".vue-data-ui-datalabel-name",
442
- baseSize: L.value.name.fontSize,
443
- minSize: L.value.name.minFontSize,
444
- sizeRef: N
445
- },
446
- {
447
- selector: ".vue-data-ui-datalabel-inline",
448
- baseSize: L.value.dataLabels.smallArcClusterFontSize,
449
- minSize: L.value.name.minFontSize,
450
- sizeRef: Qn
451
- }
452
- ];
453
- c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
454
- t.querySelectorAll(e).forEach((e) => {
455
- i.value = ce({
456
- el: e,
457
- bounds: s,
458
- currentFontSize: n,
459
- minFontSize: r,
460
- attempts: 200,
461
- padding: 1
462
- });
463
- });
464
- });
465
- }));
466
- };
467
- qe(async () => {
468
- Wn.value = !0, rr(), requestAnimationFrame(er);
469
- });
470
- let tr;
471
- qe(() => {
472
- jn.value && (tr = new ResizeObserver((e) => {
473
- for (let t of e) {
474
- let { width: e, height: n } = t.contentRect;
475
- if (e > 0 && n > 0) {
476
- er();
477
- break;
478
- }
479
- }
480
- }), tr.observe(jn.value.parentElement));
481
- }), Ke(() => {
482
- tr?.disconnect();
483
- }), Ke(() => {
484
- Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect());
485
- });
486
- let nr = v(() => I.value.debug);
487
- function rr() {
488
- if (s(M.dataset) ? (te({
489
- componentName: "VueUiDonut",
490
- type: "dataset",
491
- debug: nr.value
492
- }), An.value = !1, pr.value = !0) : (M.dataset.forEach((e, t) => {
493
- fe({
494
- datasetObject: e,
495
- requiredAttributes: ["name", "values"]
496
- }).forEach((e) => {
497
- te({
498
- componentName: "VueUiDonut",
499
- type: "datasetSerieAttribute",
500
- property: e,
501
- index: t,
502
- debug: nr.value
503
- }), An.value = !1, pr.value = !0;
504
- });
505
- }), nr.value && M.dataset.forEach((e, t) => {
506
- (!e.name || e.name === "") && te({
507
- componentName: "VueUiDonut",
508
- type: "datasetAttributeEmpty",
509
- property: "name",
510
- index: t
511
- });
512
- })), s(M.dataset) || (pr.value = I.value.loading), I.value.responsive) {
513
- let e = De(() => {
514
- let { width: e, height: t } = Oe({
515
- chart: jn.value,
516
- title: I.value.style.chart.title.text ? Fn.value : null,
517
- legend: I.value.style.chart.legend.show ? In.value : null,
518
- source: zn.value,
519
- noTitle: Bn.value,
520
- padding: I.value.autoSize ? void 0 : Dr.value
521
- });
522
- requestAnimationFrame(() => {
523
- H.value.width = e, H.value.height = t, er();
524
- });
525
- });
526
- Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect()), Ln.value = new ResizeObserver(e), Rn.value = jn.value.parentNode, Ln.value.observe(Rn.value);
527
- }
528
- }
529
- let P = D(u()), ir = D(!1), ar = D(""), F = D(null), or = D(0);
530
- function sr() {
531
- let e = be({
532
- userConfig: M.config,
533
- defaultConfig: En
534
- }), t = {}, r = e.theme;
535
- if (!r) t = e;
536
- else if (!Dn.value(e)) On(e), t = e;
537
- else {
538
- let i = be({
539
- userConfig: Ie[r] || M.config,
540
- defaultConfig: e
541
- });
542
- t = {
543
- ...be({
544
- userConfig: M.config,
545
- defaultConfig: i
546
- }),
547
- customPalette: e.customPalette.length ? e.customPalette : n[r] || l
548
- };
549
- }
550
- return t;
551
- }
552
- let I = D(sr()), L = v(() => I.value.style.chart.layout.labels), R = v(() => I.value.style.chart.layout.donut), cr = v(() => I.value.style.chart.layout), z = v(() => I.value.style.chart);
553
- me({
554
- config: () => I.value,
555
- dataset: () => M.dataset,
556
- component: "VueUiDonut",
557
- rules: [
558
- he.singleSeries,
559
- he.emptyArray,
560
- {
561
- test: (e) => e.length > 6,
562
- message: [
563
- "👀 The number of series is > 6. Consider:",
564
- "",
565
- "▶️ Grouping small values dynamically into a single \"Other\" series.",
566
- "",
567
- "▶️ Using filters to let users choose a maximum number of series to display.",
568
- "",
569
- "▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read."
570
- ]
571
- }
572
- ]
573
- });
574
- let lr = v(() => I.value.userOptions.useCursorPointer), ur = v(() => ue({
575
- defaultConfig: {
576
- useCssAnimation: !1,
577
- table: { show: !1 },
578
- startAnimation: { show: !1 },
579
- userOptions: { show: !1 },
580
- style: { chart: {
581
- backgroundColor: "#99999930",
582
- layout: { labels: {
583
- dataLabels: { show: !1 },
584
- hollow: {
585
- average: { show: !1 },
586
- total: { show: !1 }
587
- },
588
- value: { show: !1 }
589
- } },
590
- legend: {
591
- backgroundColor: "transparent",
592
- showValue: !1,
593
- showPercentage: !1
594
- },
595
- title: {
596
- color: "#1A1A1A",
597
- subtitle: { color: "#5A5A5A" }
598
- }
599
- } }
600
- },
601
- userConfig: I.value.skeletonConfig ?? {}
602
- })), { loading: dr, FINAL_DATASET: fr, manualLoading: pr, skeletonDataset: mr } = ve({
603
- ...Ze(M),
604
- FINAL_CONFIG: I,
605
- prepareConfig: sr,
606
- skeletonDataset: M.config?.skeletonDataset ?? [
607
- {
608
- name: "",
609
- values: [3],
610
- color: "#BABABA"
611
- },
612
- {
613
- name: "",
614
- values: [2],
615
- color: "#AAAAAA"
616
- },
617
- {
618
- name: "",
619
- values: [1],
620
- color: "#CACACA"
621
- }
622
- ],
623
- skeletonConfig: ue({
624
- defaultConfig: I.value,
625
- userConfig: ur.value
626
- })
627
- }), B = D(!0), hr = D(0), gr = D(!1), _r = null;
628
- function vr(e = 1e3) {
629
- return new Promise((t) => {
630
- let n = performance.now();
631
- function r(i) {
632
- let a = i - n, o = Math.min(a / e, 1), s = m(o);
633
- hr.value = s, o < 1 ? _r = requestAnimationFrame(r) : (hr.value = 1, _r = null, t());
634
- }
635
- _r !== null && cancelAnimationFrame(_r), hr.value = 0, _r = requestAnimationFrame(r);
636
- });
637
- }
638
- et(() => dr.value, async (e) => {
639
- if (e || gr.value) return;
640
- let t = fr.value === mr, n = I.value.startAnimation?.show;
641
- !t && n ? (gr.value = !0, await vr(I.value.startAnimation.durationMs || 1e3)) : hr.value = 1, B.value = !1;
642
- }, { immediate: !0 });
643
- let { userOptionsVisible: yr, setUserOptionsVisibility: br, keepUserOptionState: xr } = Me({ config: I.value }), { svgRef: Sr } = Ne({ config: z.value.title });
644
- function Cr() {
645
- br(!0);
646
- }
647
- function wr() {
648
- br(!1);
649
- }
650
- function Tr(e) {
651
- let t = d(e);
652
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
653
- }
654
- let Er = Tr(M.config);
655
- et(() => M.config, (e, t) => {
656
- let n = Tr(e), r = n !== Er;
657
- Er = n;
658
- let i = sr();
659
- if (!r) {
660
- I.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = I.value.style.chart.tooltip.show;
661
- return;
662
- }
663
- dr.value || (I.value = i), yr.value = !I.value.userOptions.showOnChartHover, rr(), Vn.value += 1, Hn.value += 1, Un.value += 1, V.value.dataLabels.show = L.value.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = z.value.tooltip.show, H.value.height = z.value.height, H.value.width = z.value.width;
664
- }, { deep: !0 });
665
- let Dr = v(() => {
666
- let { top: e, right: t, bottom: n, left: r } = z.value.padding;
667
- return {
668
- css: `padding:${e}px ${t}px ${n}px ${r}px`,
669
- top: e,
670
- right: t,
671
- bottom: n,
672
- left: r
673
- };
674
- }), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } = _e({
675
- elementId: `donut__${P.value}`,
676
- fileName: z.value.title.text || "vue-ui-donut",
677
- options: I.value.userOptions.print
678
- }), Mr = v(() => I.value.userOptions.show && !z.value.title.text), Nr = v(() => pe(I.value.customPalette)), V = D({
679
- dataLabels: { show: L.value.dataLabels.show },
680
- showTable: I.value.table.show,
681
- showTooltip: z.value.tooltip.show
682
- });
683
- et(I, () => {
684
- V.value = {
685
- dataLabels: { show: L.value.dataLabels.show },
686
- showTable: I.value.table.show,
687
- showTooltip: z.value.tooltip.show
688
- };
689
- }, { immediate: !0 });
690
- let H = D({
691
- height: z.value.height,
692
- width: z.value.width
693
- }), Pr = v(() => {
694
- if (I.value.pie) return K.value;
695
- let e = R.value.strokeWidth / 512, t = Math.min(H.value.width, H.value.height) * e, n = t > K.value ? K.value : t;
696
- return Math.max(n, 12 * (1 + e));
697
- }), Fr = rt, U = v(() => fr.value.sort((e, t) => {
698
- let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
699
- return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
700
- }).map((e, t) => ({
701
- name: e.name,
702
- color: c(e.color) || Nr.value[t] || l[t] || l[t % l.length],
703
- value: ne(e.values.reduce((e, t) => e + t, 0)),
704
- absoluteValues: e.values,
705
- comment: e.comment || "",
706
- patternIndex: t,
707
- seriesIndex: t,
708
- ghost: !1,
709
- pattern: `pattern_${P.value}_${t}`
710
- })));
711
- et(() => M.dataset, (e) => {
712
- Array.isArray(e) && e.length > 0 && (pr.value = !1);
713
- }, { immediate: !0 });
714
- let W = Ye(U.value);
715
- et(() => U.value, (e) => {
716
- W.value = e, requestAnimationFrame(er);
717
- });
718
- function Ir() {
719
- return U.value.map((e) => ({
720
- name: e.name,
721
- color: e.color,
722
- value: e.value
723
- }));
724
- }
725
- let G = D([]), Lr = D(!1), Rr = D(null);
726
- function zr() {
727
- Fr("selectLegend", qr.value.map((e) => ({
728
- name: e.name,
729
- color: e.color,
730
- value: e.value
731
- })));
732
- }
733
- function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = m }) {
734
- let o = performance.now();
735
- function s(c) {
736
- let l = Math.min((c - o) / n, 1), u = a(l);
737
- r(e + (t - e) * u, l), l < 1 ? requestAnimationFrame(s) : (r(t, 1), i && i());
738
- }
739
- requestAnimationFrame(s);
740
- }
741
- function Vr() {
742
- G.value.length ? G.value = [] : Jr.value.forEach((e, t) => {
743
- G.value.push(t);
744
- }), zr();
745
- }
746
- function Hr(e) {
747
- let t = U.value.find((t, n) => n === e), n = W.value.find((t, n) => n === e).value;
748
- if (G.value.includes(e)) {
749
- G.value = G.value.filter((t) => t !== e);
750
- let r = t.value;
751
- function i() {
752
- W.value = W.value.map((t, n) => e === n ? {
753
- ...t,
754
- value: r
755
- } : t), zr();
756
- }
757
- function a() {
758
- Lr.value = !0, Rr.value = e, Br({
759
- from: n,
760
- to: r,
761
- duration: I.value.serieToggleAnimation.durationMs,
762
- onUpdate: (t, n) => {
763
- W.value = W.value.map((n, r) => e === r ? {
764
- ...n,
765
- value: t
766
- } : n), requestAnimationFrame(er);
767
- },
768
- onDone: () => {
769
- i(), Lr.value = !1, Rr.value = null;
770
- }
771
- });
772
- }
773
- I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(er));
774
- } else if (G.value.length < U.value.length - 1) {
775
- function t() {
776
- G.value.push(e), W.value = W.value.map((t, n) => e === n ? {
777
- ...t,
778
- value: 0
779
- } : t), zr();
780
- }
781
- function r() {
782
- Lr.value = !0, Rr.value = e, Br({
783
- from: n,
784
- to: 0,
785
- duration: I.value.serieToggleAnimation.durationMs,
786
- onUpdate: (t, n) => {
787
- W.value = W.value.map((n, r) => e === r ? {
788
- ...n,
789
- value: t
790
- } : n), requestAnimationFrame(er);
791
- },
792
- onDone: () => {
793
- t(), requestAnimationFrame(er), Lr.value = !1, Rr.value = null;
794
- }
795
- });
796
- }
797
- I.value.serieToggleAnimation.show && I.value.type === "classic" ? r() : t();
798
- }
799
- }
800
- function Ur(e) {
801
- return U.value.length ? U.value.find((t) => t.name === e) || (nr.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (nr.value && console.warn("VueUiDonut - There are no series to show."), null);
802
- }
803
- function Wr(e) {
804
- let t = Ur(e);
805
- t !== null && G.value.includes(t.seriesIndex) && Hr(t.seriesIndex);
806
- }
807
- function Gr(e) {
808
- let t = Ur(e);
809
- t !== null && (G.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
810
- }
811
- let Kr = v(() => fr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = v(() => {
812
- if (B.value && !dr.value) {
813
- let e = hr.value, t = U.value.map((t) => ({
814
- ...t,
815
- value: t.value * e,
816
- color: t.color,
817
- ghost: !1
818
- })), n = Kr.value * (1 - e);
819
- return n > 0 && t.push({
820
- name: "__ghost__",
821
- value: n,
822
- color: "transparent",
823
- ghost: !0
824
- }), t;
825
- }
826
- return W.value.forEach((e) => {
827
- if ([null, void 0].includes(e.values)) return {
828
- ...e,
829
- values: []
830
- };
831
- }), W.value.map((e, t) => ({
832
- ...e,
833
- seriesIndex: t
834
- })).filter((e, t) => !G.value.includes(t));
835
- }), Jr = v(() => fr.value.map((e, t) => {
836
- let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / fr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
837
- return {
838
- name: e.name,
839
- color: c(e.color) || Nr.value[t] || l[t] || l[t % l.length],
840
- value: n,
841
- shape: "circle",
842
- patternIndex: t,
843
- proportion: r
844
- };
845
- }).map((e, n) => {
846
- let r = p(L.value.value.formatter, e.value, t({
847
- p: L.value.dataLabels.prefix,
848
- v: e.value,
849
- s: L.value.dataLabels.suffix,
850
- r: z.value.legend.roundingValue
851
- }), {
852
- datapoint: e,
853
- index: n
854
- }), i = p(L.value.percentage.formatter, ai(e), t({
855
- v: ai(e),
856
- s: "%",
857
- r: z.value.legend.roundingPercentage
858
- })), a = Si({
859
- val: r,
860
- percentage: G.value.includes(n) ? `${xi(e.proportion * 100)}%` : i,
861
- showVal: z.value.legend.showValue,
862
- showPercentage: z.value.legend.showPercentage,
863
- config: z.value.legend
864
- });
865
- return {
866
- ...e,
867
- opacity: G.value.includes(n) ? .5 : 1,
868
- segregate: () => !Lr.value && Hr(n),
869
- isSegregated: G.value.includes(n),
870
- display: `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${a}`
871
- };
872
- })), Yr = v(() => ({
873
- cy: "donut-div-legend",
874
- backgroundColor: z.value.legend.backgroundColor,
875
- color: z.value.legend.color,
876
- fontSize: z.value.legend.fontSize,
877
- paddingBottom: 12,
878
- fontWeight: z.value.legend.bold ? "bold" : ""
879
- })), K = v(() => {
880
- let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(H.value.width * t, H.value.height * t);
881
- return Math.max(12, n);
882
- }), q = v(() => a({ series: qr.value }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = v(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = v(() => a({ series: [{
883
- value: 1,
884
- color: R.value.emptyFill,
885
- name: "_",
886
- seriesIndex: 0,
887
- patternIndex: -1,
888
- ghost: !1,
889
- absoluteValues: [1]
890
- }] }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), J = v(() => q.value.filter((e) => !e.ghost)), Y = v(() => {
891
- let e = Math.max(...qr.value.map((e) => e.value)), t = qr.value.map((t) => t.value / e);
892
- return ie({
893
- series: t,
894
- center: {
895
- x: H.value.width / 2,
896
- y: H.value.height / 2
897
- },
898
- maxRadius: Math.min(H.value.width, H.value.height) / 3,
899
- hasGhost: B.value
900
- });
901
- });
902
- function Qr(e) {
903
- return e.x > H.value.width / 2 + 6 ? "start" : e.x < H.value.width / 2 - 6 ? "end" : "middle";
904
- }
905
- function $r(e) {
906
- return e.middlePoint.y > H.value.height / 2 ? g({
907
- initX: e.middlePoint.x,
908
- initY: e.middlePoint.y,
909
- offset: 100,
910
- centerX: H.value.width / 2,
911
- centerY: H.value.height / 2
912
- }).y : g({
913
- initX: e.middlePoint.x,
914
- initY: e.middlePoint.y,
915
- offset: 0,
916
- centerX: H.value.width / 2,
917
- centerY: H.value.height / 2
918
- }).y - 100;
919
- }
920
- function X(e) {
921
- return e.proportion * 100 > L.value.dataLabels.hideUnderValue;
922
- }
923
- function ei(e, t) {
924
- let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
925
- return i > n && i <= r;
926
- }
927
- let { smallArcLayoutsClassic: Z } = nt({
928
- FINAL_CONFIG: I,
929
- noGhostDonut: J,
930
- svg: H,
931
- padding: Dr,
932
- labels_inline_fontSize: Qn,
933
- minSize: K,
934
- findArcMidpoint: ae,
935
- calcMarkerOffsetX: f,
936
- calcMarkerOffsetY: h,
937
- animatingIndex: Rr,
938
- segregated: G,
939
- isSmallArc: ei
940
- });
941
- function ti(e, n) {
942
- let r = e.value / ni(n);
943
- return isNaN(r) ? 0 : p(L.value.percentage.formatter, r * 100, t({
944
- v: r * 100,
945
- s: "%",
946
- r: L.value.percentage.rounding
947
- }), { datapoint: e });
948
- }
949
- function ni(e) {
950
- return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
951
- }
952
- let Q = v(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = v(() => {
953
- let e = U.value.reduce((e, t) => e + t.value, 0);
954
- return e <= 0 ? [] : U.value.map((t) => t.value / e);
955
- }), ii = v(() => Q.value / qr.value.length);
956
- function ai(e) {
957
- return Lr.value ? e.proportion * 100 : e.value / Q.value * 100;
958
- }
959
- let oi = D(null), si = D(!1);
960
- function ci({ datapoint: e, seriesIndex: t }) {
961
- I.value.events.datapointLeave && I.value.events.datapointLeave({
962
- datapoint: e,
963
- seriesIndex: t
964
- }), ir.value = !1, F.value = null, qn.value = null, Yn.value = "pointer";
965
- }
966
- function li({ datapoint: e, relativeIndex: n, seriesIndex: r, show: a = !1, triggerMode: o = "pointer" }) {
967
- I.value.events.datapointEnter && I.value.events.datapointEnter({
968
- datapoint: e,
969
- seriesIndex: r
970
- }), Yn.value = o, qn.value = n, oi.value = {
971
- datapoint: e,
972
- seriesIndex: r,
973
- config: I.value,
974
- series: U.value
975
- }, ir.value = a, F.value = n;
976
- let s = "", c = z.value.tooltip.customFormat;
977
- if (si.value = !1, i(c)) try {
978
- let t = c({
979
- seriesIndex: r,
980
- datapoint: e,
981
- series: U.value,
982
- config: I.value
983
- });
984
- typeof t == "string" && (ar.value = t, si.value = !0);
985
- } catch {
986
- console.warn("Custom format cannot be applied."), si.value = !1;
987
- }
988
- si.value || (s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${kn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${r})"/>` : ""}</svg>`, s += `<b>${Si({
989
- showVal: z.value.tooltip.showValue,
990
- showPercentage: z.value.tooltip.showPercentage,
991
- val: `<span>${p(L.value.value.formatter, e.value, t({
992
- p: L.value.dataLabels.prefix,
993
- v: e.value,
994
- s: L.value.dataLabels.suffix,
995
- r: z.value.tooltip.roundingValue
996
- }), {
997
- datapoint: e,
998
- relativeIndex: n,
999
- seriesIndex: r
1000
- })}</span>`,
1001
- percentage: p(L.value.percentage.formatter, e.proportion * 100, t({
1002
- v: e.proportion * 100,
1003
- s: "%",
1004
- r: z.value.tooltip.roundingPercentage
1005
- }), {
1006
- datapoint: e,
1007
- relativeIndex: n,
1008
- seriesIndex: r
1009
- }),
1010
- config: z.value.tooltip
1011
- })}</b></div>`, z.value.comments.showInTooltip && e.comment && (s += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ar.value = `<div>${s}</div>`);
1012
- }
1013
- function ui(e, t) {
1014
- let n = Z.value[t];
1015
- if (n) return {
1016
- textAnchor: n.textAnchor,
1017
- x: n.labelX,
1018
- y: n.labelY
1019
- };
1020
- let r = f(e, !0, 12);
1021
- return {
1022
- textAnchor: r.anchor,
1023
- x: r.x,
1024
- y: h(e)
1025
- };
1026
- }
1027
- function di(e, t, n) {
1028
- let { textAnchor: r, x: i } = ui(e, t), a = Ci(e), o = `
1029
- <tspan
1030
- class="vue-data-ui-datalabel-inline"
1031
- fill="${L.value.percentage.color}"
1032
- font-size="${n ? Qn.value : Zn.value}px"
1033
- style="font-weight:${L.value.percentage.bold ? "bold" : ""}"
1034
- >${a}</tspan>
1035
- `, s = String(e.name ?? "").split(/\n/g), c = "";
1036
- return s.forEach((e, t) => {
1037
- c += t === 0 ? `
1038
- <tspan
1039
- class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1040
- fill="${L.value.name.color}"
1041
- font-size="${n ? Qn.value : N.value}px"
1042
- style="font-weight:${L.value.name.bold ? "bold" : ""}"
1043
- >${e}</tspan>
1044
- ` : `
1045
- <tspan
1046
- class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1047
- x="${i}"
1048
- dy="${(n ? Qn.value : N.value) * 1.2}"
1049
- fill="${L.value.name.color}"
1050
- font-size="${n ? Qn.value : N.value}px"
1051
- style="font-weight:${L.value.name.bold ? "bold" : ""}"
1052
- >${e}</tspan>
1053
- `;
1054
- }), r === "end" ? `${L.value.name.show ? c : ""}${o}` : `${o}${L.value.name.show ? c : ""}`;
1055
- }
1056
- function fi(e, t) {
1057
- let n = Y.value[t].middlePoint, r = Qr(n), i = g({
1058
- initX: n.x,
1059
- initY: n.y,
1060
- offset: 42,
1061
- centerX: H.value.width / 2,
1062
- centerY: H.value.height / 2
1063
- }), a = i.x;
1064
- i.y;
1065
- let o = Ci(e), s = `
1066
- <tspan
1067
- class="vue-data-ui-datalabel-value"
1068
- fill="${L.value.percentage.color}"
1069
- font-size="${Zn.value}px"
1070
- style="font-weight:${L.value.percentage.bold ? "bold" : "normal"}"
1071
- >${o}</tspan>
1072
- `, c = String(e.name ?? "").split(/\n/g), l = "";
1073
- return c.forEach((e, t) => {
1074
- l += t === 0 ? `
1075
- <tspan
1076
- class="vue-data-ui-datalabel-name"
1077
- fill="${L.value.name.color}"
1078
- font-size="${N.value}px"
1079
- style="font-weight:${L.value.name.bold ? "bold" : "normal"}"
1080
- >${e}</tspan>
1081
- ` : `
1082
- <tspan
1083
- class="vue-data-ui-datalabel-name"
1084
- x="${a}"
1085
- dy="${N.value * 1.2}"
1086
- fill="${L.value.name.color}"
1087
- font-size="${N.value}px"
1088
- style="font-weight:${L.value.name.bold ? "bold" : "normal"}"
1089
- >${e}</tspan>
1090
- `;
1091
- }), r === "end" ? `${L.value.name.show ? l : ""}${s}` : `${s}${L.value.name.show ? l : ""}`;
1092
- }
1093
- function pi(e) {
1094
- return I.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== e ? `url(#blur_${P.value})` : "";
1095
- }
1096
- function mi(e) {
1097
- if (!Lr.value || Rr.value === null || e.seriesIndex !== Rr.value) return 1;
1098
- let t = (e.proportion ?? 0) * 100, n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold + 2, i = n;
1099
- return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
1100
- }
1101
- let hi = v(() => ({
1102
- head: qr.value.map((e) => ({
1103
- name: e.name,
1104
- color: e.color
1105
- })),
1106
- body: qr.value.map((e) => e.value)
1107
- }));
1108
- function gi(e = null) {
1109
- We(() => {
1110
- let t = hi.value.head.map((e, t) => [
1111
- [e.name],
1112
- [hi.value.body[t]],
1113
- [isNaN(hi.value.body[t] / Q.value) ? "-" : hi.value.body[t] / Q.value * 100]
1114
- ]), n = [
1115
- [z.value.title.text],
1116
- [z.value.title.subtitle.text],
1117
- [
1118
- [""],
1119
- ["val"],
1120
- ["%"]
1121
- ]
1122
- ].concat(t), i = r(n);
1123
- e ? e(i) : oe({
1124
- csvContent: i,
1125
- title: z.value.title.text || "vue-ui-donut"
1126
- });
1127
- });
1128
- }
1129
- let _i = v(() => {
1130
- let e = [
1131
- "__SUM__",
1132
- t({
1133
- p: L.value.dataLabels.prefix,
1134
- v: Q.value,
1135
- s: L.value.dataLabels.suffix,
1136
- r: I.value.table.td.roundingValue
1137
- }),
1138
- "100%"
1139
- ], n = hi.value.head.map((e, t) => [
1140
- {
1141
- color: e.color,
1142
- name: e.name || "-"
1143
- },
1144
- hi.value.body[t],
1145
- isNaN(hi.value.body[t] / Q.value) ? "-" : (hi.value.body[t] / Q.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
1146
- ]), r = n.map((e) => e.map((e, t) => t === 0 ? e.name : e)), i = {
1147
- th: {
1148
- backgroundColor: I.value.table.th.backgroundColor,
1149
- color: I.value.table.th.color,
1150
- outline: I.value.table.th.outline
1151
- },
1152
- td: {
1153
- backgroundColor: I.value.table.td.backgroundColor,
1154
- color: I.value.table.td.color,
1155
- outline: I.value.table.td.outline
1156
- },
1157
- breakpoint: I.value.table.responsiveBreakpoint
1158
- };
1159
- return {
1160
- colNames: [
1161
- I.value.table.columnNames.series,
1162
- I.value.table.columnNames.value,
1163
- I.value.table.columnNames.percentage
1164
- ],
1165
- head: e,
1166
- body: n,
1167
- a11yBody: r,
1168
- config: i
1169
- };
1170
- }), vi = D(!1);
1171
- function yi(e) {
1172
- vi.value = e, or.value += 1;
1173
- }
1174
- let bi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
1175
- function xi(e) {
1176
- return Pe({
1177
- num: e,
1178
- rounding: z.value.legend.roundingPercentage
1179
- });
1180
- }
1181
- function Si({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
1182
- return Fe({
1183
- config: i,
1184
- val: e,
1185
- percentage: t,
1186
- showVal: n,
1187
- showPercentage: r
1188
- });
1189
- }
1190
- function Ci(e) {
1191
- return Si({
1192
- val: p(L.value.value.formatter, e.value, t({
1193
- p: L.value.dataLabels.prefix,
1194
- v: e.value,
1195
- s: L.value.dataLabels.suffix,
1196
- r: L.value.value.rounding
1197
- }), { datapoint: e }),
1198
- percentage: ti(e, J.value),
1199
- showVal: L.value.value.show,
1200
- showPercentage: L.value.percentage.show,
1201
- config: L.value.dataLabels
1202
- });
1203
- }
1204
- function $(e, t) {
1205
- I.value.events.datapointClick && I.value.events.datapointClick({
1206
- datapoint: e,
1207
- seriesIndex: e.seriesIndex
1208
- }), Fr("selectDatapoint", {
1209
- datapoint: e,
1210
- index: t
1211
- });
1212
- }
1213
- function wi() {
1214
- V.value.showTable = !V.value.showTable;
1215
- }
1216
- function Ti() {
1217
- V.value.dataLabels.show = !V.value.dataLabels.show;
1218
- }
1219
- function Ei() {
1220
- V.value.showTooltip = !V.value.showTooltip;
1221
- }
1222
- let Di = D(!1);
1223
- function Oi() {
1224
- Di.value = !Di.value;
1225
- }
1226
- async function ki({ scale: e = 2 } = {}) {
1227
- if (!jn.value) return;
1228
- let { width: t, height: n } = jn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
1229
- domElement: jn.value,
1230
- base64: !0,
1231
- img: !0,
1232
- scale: e
1233
- });
1234
- return {
1235
- imageUri: i,
1236
- base64: a,
1237
- title: z.value.title.text,
1238
- width: t,
1239
- height: n,
1240
- aspectRatio: r
1241
- };
1242
- }
1243
- function Ai() {
1244
- if (!Mn.value) return;
1245
- let { x: e, y: t, width: n, height: r } = Mn.value.getBBox();
1246
- Sr.value && Sr.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
1247
- }
1248
- let ji = v(() => {
1249
- let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
1250
- return {
1251
- component: e ? Tn : bn,
1252
- title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
1253
- props: e ? {
1254
- backgroundColor: I.value.table.th.backgroundColor,
1255
- color: I.value.table.th.color,
1256
- headerColor: I.value.table.th.color,
1257
- headerBg: I.value.table.th.backgroundColor,
1258
- isFullscreen: vi.value,
1259
- fullscreenParent: jn.value,
1260
- forcedWidth: Math.min(500, window.innerWidth * .8),
1261
- isCursorPointer: lr.value
1262
- } : {
1263
- hideDetails: !0,
1264
- config: {
1265
- open: t,
1266
- maxHeight: 1e4,
1267
- body: {
1268
- backgroundColor: z.value.backgroundColor,
1269
- color: z.value.color
1270
- },
1271
- head: {
1272
- backgroundColor: z.value.backgroundColor,
1273
- color: z.value.color
1274
- }
1275
- }
1276
- }
1277
- };
1278
- });
1279
- et(() => V.value.showTable, (e) => {
1280
- I.value.table.show || (e && I.value.table.useDialog && Gn.value ? Gn.value.open() : "close" in Gn.value && Gn.value.close());
1281
- });
1282
- function Mi() {
1283
- V.value.showTable = !1, Kn.value && Kn.value.setTableIconState(!1);
1284
- }
1285
- let Ni = v(() => Jr.value.map((e) => ({
1286
- ...e,
1287
- name: e.display
1288
- }))), Pi = v(() => z.value.backgroundColor), Fi = v(() => z.value.legend), Ii = v(() => z.value.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Se({
1289
- svg: Sr,
1290
- title: Ii,
1291
- legend: Fi,
1292
- legendItems: Ni,
1293
- backgroundColor: Pi,
1294
- getSvgCallback: () => I.value.userOptions.callbacks.svg,
1295
- generateImage: jr
1296
- });
1297
- async function Vi() {
1298
- if (Fr("copyAlt", {
1299
- config: I.value,
1300
- dataset: W.value
1301
- }), !I.value.userOptions.callbacks.altCopy) {
1302
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1303
- return;
1304
- }
1305
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
1306
- config: I.value,
1307
- dataset: W.value
1308
- }));
1309
- }
1310
- function Hi() {
1311
- qn.value = null, Xn.value = !0;
1312
- }
1313
- function Ui() {
1314
- qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null, Xn.value = !1;
1315
- }
1316
- function Wi(e) {
1317
- if (!Sr.value || Di.value || document.activeElement !== Sr.value || !J.value.length) return;
1318
- let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1319
- if (!t && !n && !r && !i) return;
1320
- if (e.preventDefault(), e.stopPropagation(), i) {
1321
- qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null;
1322
- return;
1323
- }
1324
- if (r) {
1325
- if (qn.value === null) return;
1326
- let e = J.value[qn.value];
1327
- if (!e) return;
1328
- $(e, qn.value);
1329
- return;
1330
- }
1331
- let a = qn.value, o = F.value, s = a !== null && a >= 0 && a < J.value.length, c = o !== null && o >= 0 && o < J.value.length;
1332
- s ? n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= J.value.length && (a = 0), a < 0 && (a = J.value.length - 1)) : a = n ? 0 : J.value.length - 1;
1333
- let l = J.value[a];
1334
- l && (qn.value = a, Gi(a), li({
1335
- datapoint: l,
1336
- relativeIndex: a,
1337
- seriesIndex: l.seriesIndex,
1338
- show: !0,
1339
- triggerMode: "keyboard"
1340
- }));
1341
- }
1342
- function Gi(e) {
1343
- if (!Number.isFinite(e) || !Sr.value) return;
1344
- let t = H.value.width / 2, n = H.value.height / 2;
1345
- if (I.value.type === "classic") {
1346
- let r = J.value[e];
1347
- if (!r?.arcSlice) return;
1348
- let i = ae(r.arcSlice);
1349
- if (!i) return;
1350
- t = i.x, n = i.y;
1351
- } else {
1352
- let r = Y.value[e]?.middlePoint;
1353
- if (!r) return;
1354
- t = r.x, n = r.y;
1355
- }
1356
- let r = Sr.value.getBoundingClientRect();
1357
- Jn.value = {
1358
- x: r.left + t / H.value.width * r.width,
1359
- y: r.top + n / H.value.height * r.height
1360
- };
1361
- }
1362
- let Ki = v(() => ({
1363
- headers: _i.value?.colNames ?? [],
1364
- rows: _i.value?.a11yBody ?? []
1365
- }));
1366
- return Ee({
1367
- autoSize: Ai,
1368
- getData: Ir,
1369
- getImage: ki,
1370
- generatePdf: Ar,
1371
- generateCsv: gi,
1372
- generateImage: jr,
1373
- generateSvg: zi,
1374
- hideSeries: Gr,
1375
- showSeries: Wr,
1376
- toggleTable: wi,
1377
- toggleLabels: Ti,
1378
- toggleTooltip: Ei,
1379
- toggleAnnotator: Oi,
1380
- toggleFullscreen: yi,
1381
- copyAlt: Vi
1382
- }), (n, r) => (E(), x("div", {
1383
- ref_key: "donutChart",
1384
- ref: jn,
1385
- class: Ge(`vue-data-ui-component vue-ui-donut ${vi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1386
- style: T(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
1387
- id: `donut__${P.value}`,
1388
- onMouseenter: Cr,
1389
- onMouseleave: wr
1390
- }, [
1391
- S("div", {
1392
- id: `chart-instructions-${P.value}`,
1393
- class: "sr-only"
1394
- }, [S("p", null, Xe(I.value.a11y.translations.keyboardNavigation), 1)], 8, at),
1395
- Ki.value?.rows?.length ? (E(), y(je, {
1396
- key: 0,
1397
- uid: P.value,
1398
- head: Ki.value.headers,
1399
- body: Ki.value.rows,
1400
- notice: I.value.a11y.translations.tableAvailable,
1401
- caption: I.value.a11y.translations.tableCaption
1402
- }, null, 8, [
1403
- "uid",
1404
- "head",
1405
- "body",
1406
- "notice",
1407
- "caption"
1408
- ])) : b("", !0),
1409
- I.value.userOptions.buttons.annotator && A(Sr) ? (E(), y(A(Sn), {
1410
- key: 1,
1411
- color: z.value.color,
1412
- backgroundColor: z.value.backgroundColor,
1413
- active: Di.value,
1414
- svgRef: A(Sr),
1415
- isCursorPointer: lr.value,
1416
- palette: I.value.userOptions.annotatorPalette,
1417
- onClose: Oi
1418
- }, {
1419
- "annotator-action-close": j(() => [k(n.$slots, "annotator-action-close", {}, void 0, !0)]),
1420
- "annotator-action-color": j(({ color: e }) => [k(n.$slots, "annotator-action-color", w(C({ color: e })), void 0, !0)]),
1421
- "annotator-action-draw": j(({ mode: e }) => [k(n.$slots, "annotator-action-draw", w(C({ mode: e })), void 0, !0)]),
1422
- "annotator-action-undo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-undo", w(C({ disabled: e })), void 0, !0)]),
1423
- "annotator-action-redo": j(({ disabled: e }) => [k(n.$slots, "annotator-action-redo", w(C({ disabled: e })), void 0, !0)]),
1424
- "annotator-action-delete": j(({ disabled: e }) => [k(n.$slots, "annotator-action-delete", w(C({ disabled: e })), void 0, !0)]),
1425
- _: 3
1426
- }, 8, [
1427
- "color",
1428
- "backgroundColor",
1429
- "active",
1430
- "svgRef",
1431
- "isCursorPointer",
1432
- "palette"
1433
- ])) : b("", !0),
1434
- k(n.$slots, "userConfig", {}, void 0, !0),
1435
- Mr.value ? (E(), x("div", {
1436
- key: 2,
1437
- ref_key: "noTitle",
1438
- ref: Bn,
1439
- class: "vue-data-ui-no-title-space",
1440
- style: "height:36px; width: 100%;background:transparent"
1441
- }, null, 512)) : b("", !0),
1442
- z.value.title.text ? (E(), x("div", {
1443
- key: 3,
1444
- ref_key: "chartTitle",
1445
- ref: Fn,
1446
- style: "width:100%;background:transparent;padding-bottom:24px"
1447
- }, [(E(), y(we, {
1448
- key: `title_${Vn.value}`,
1449
- config: {
1450
- title: {
1451
- cy: "donut-div-title",
1452
- ...z.value.title
1453
- },
1454
- subtitle: {
1455
- cy: "donut-div-subtitle",
1456
- ...z.value.title.subtitle
1457
- }
1458
- }
1459
- }, null, 8, ["config"]))], 512)) : b("", !0),
1460
- S("div", { id: `legend-top-${P.value}` }, null, 8, ot),
1461
- I.value.userOptions.show && An.value && (A(xr) || A(yr)) ? (E(), y(A(Cn), {
1462
- ref_key: "userOptionsRef",
1463
- ref: Kn,
1464
- key: `user_option_${or.value}`,
1465
- backgroundColor: z.value.backgroundColor,
1466
- color: z.value.color,
1467
- isPrinting: A(Or),
1468
- isImaging: A(kr),
1469
- uid: P.value,
1470
- hasTooltip: z.value.tooltip.show && I.value.userOptions.buttons.tooltip,
1471
- hasPdf: I.value.userOptions.buttons.pdf,
1472
- hasImg: I.value.userOptions.buttons.img,
1473
- hasSvg: I.value.userOptions.buttons.svg,
1474
- hasXls: I.value.userOptions.buttons.csv,
1475
- hasTable: I.value.userOptions.buttons.table,
1476
- hasLabel: I.value.userOptions.buttons.labels,
1477
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
1478
- hasAltCopy: I.value.userOptions.buttons.altCopy,
1479
- isFullscreen: vi.value,
1480
- chartElement: jn.value,
1481
- position: I.value.userOptions.position,
1482
- callbacks: I.value.userOptions.callbacks,
1483
- isTooltip: V.value.showTooltip,
1484
- titles: { ...I.value.userOptions.buttonTitles },
1485
- hasAnnotator: I.value.userOptions.buttons.annotator,
1486
- isAnnotation: Di.value,
1487
- printScale: I.value.userOptions.print.scale,
1488
- tableDialog: I.value.table.useDialog,
1489
- isCursorPointer: lr.value,
1490
- onToggleFullscreen: yi,
1491
- onGeneratePdf: A(Ar),
1492
- onGenerateCsv: gi,
1493
- onGenerateImage: A(Bi),
1494
- onGenerateSvg: A(zi),
1495
- onToggleTable: wi,
1496
- onToggleLabels: Ti,
1497
- onToggleTooltip: Ei,
1498
- onToggleAnnotator: Oi,
1499
- onCopyAlt: Vi,
1500
- style: T({ visibility: A(xr) ? A(yr) ? "visible" : "hidden" : "visible" })
1501
- }, ze({ _: 2 }, [
1502
- n.$slots.menuIcon ? {
1503
- name: "menuIcon",
1504
- fn: j(({ isOpen: e, color: t }) => [k(n.$slots, "menuIcon", w(C({
1505
- isOpen: e,
1506
- color: t
1507
- })), void 0, !0)]),
1508
- key: "0"
1509
- } : void 0,
1510
- n.$slots.optionTooltip ? {
1511
- name: "optionTooltip",
1512
- fn: j(() => [k(n.$slots, "optionTooltip", {}, void 0, !0)]),
1513
- key: "1"
1514
- } : void 0,
1515
- n.$slots.optionPdf ? {
1516
- name: "optionPdf",
1517
- fn: j(() => [k(n.$slots, "optionPdf", {}, void 0, !0)]),
1518
- key: "2"
1519
- } : void 0,
1520
- n.$slots.optionCsv ? {
1521
- name: "optionCsv",
1522
- fn: j(() => [k(n.$slots, "optionCsv", {}, void 0, !0)]),
1523
- key: "3"
1524
- } : void 0,
1525
- n.$slots.optionImg ? {
1526
- name: "optionImg",
1527
- fn: j(() => [k(n.$slots, "optionImg", {}, void 0, !0)]),
1528
- key: "4"
1529
- } : void 0,
1530
- n.$slots.optionSvg ? {
1531
- name: "optionSvg",
1532
- fn: j(() => [k(n.$slots, "optionSvg", {}, void 0, !0)]),
1533
- key: "5"
1534
- } : void 0,
1535
- n.$slots.optionTable ? {
1536
- name: "optionTable",
1537
- fn: j(() => [k(n.$slots, "optionTable", {}, void 0, !0)]),
1538
- key: "6"
1539
- } : void 0,
1540
- n.$slots.optionLabels ? {
1541
- name: "optionLabels",
1542
- fn: j(() => [k(n.$slots, "optionLabels", {}, void 0, !0)]),
1543
- key: "7"
1544
- } : void 0,
1545
- n.$slots.optionFullscreen ? {
1546
- name: "optionFullscreen",
1547
- fn: j(({ toggleFullscreen: e, isFullscreen: t }) => [k(n.$slots, "optionFullscreen", w(C({
1548
- toggleFullscreen: e,
1549
- isFullscreen: t
1550
- })), void 0, !0)]),
1551
- key: "8"
1552
- } : void 0,
1553
- n.$slots.optionAnnotator ? {
1554
- name: "optionAnnotator",
1555
- fn: j(({ toggleAnnotator: e, isAnnotator: t }) => [k(n.$slots, "optionAnnotator", w(C({
1556
- toggleAnnotator: e,
1557
- isAnnotator: t
1558
- })), void 0, !0)]),
1559
- key: "9"
1560
- } : void 0,
1561
- n.$slots.optionAltCopy ? {
1562
- name: "optionAltCopy",
1563
- fn: j(({ altCopy: e }) => [k(n.$slots, "optionAltCopy", w(C({ altCopy: e })), void 0, !0)]),
1564
- key: "10"
1565
- } : void 0,
1566
- n.$slots["custom-menu-before"] ? {
1567
- name: "custom-menu-before",
1568
- fn: j(() => [k(n.$slots, "custom-menu-before", {}, void 0, !0)]),
1569
- key: "11"
1570
- } : void 0,
1571
- n.$slots["custom-menu-after"] ? {
1572
- name: "custom-menu-after",
1573
- fn: j(() => [k(n.$slots, "custom-menu-after", {}, void 0, !0)]),
1574
- key: "12"
1575
- } : void 0
1576
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : b("", !0),
1577
- S("div", st, [(E(), x("svg", {
1578
- ref_key: "svgRef",
1579
- ref: Sr,
1580
- xmlns: A(le),
1581
- "aria-describedby": `chart-instructions-${P.value}`,
1582
- class: Ge({
1583
- "vue-data-ui-fullscreen--on": vi.value,
1584
- "vue-data-ui-fulscreen--off": !vi.value,
1585
- "vue-data-ui-svg": !0
1586
- }),
1587
- viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
1588
- style: T(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${Dr.value.css}`),
1589
- tabindex: "0",
1590
- onFocus: Hi,
1591
- onBlur: Ui,
1592
- onKeydown: Wi
1593
- }, [S("g", {
1594
- ref_key: "G",
1595
- ref: Mn,
1596
- class: "vue-data-ui-g"
1597
- }, [
1598
- Ve(A(wn)),
1599
- n.$slots["chart-background"] ? (E(), x("foreignObject", {
1600
- key: 0,
1601
- x: 0,
1602
- y: 0,
1603
- width: H.value.width <= 0 ? 10 : H.value.width,
1604
- height: H.value.height <= 0 ? 10 : H.value.height,
1605
- style: { pointerEvents: "none" }
1606
- }, [k(n.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : b("", !0),
1607
- I.value.type === "classic" && !isNaN(Pr.value / K.value) ? (E(), x("defs", ut, [z.value.useGradient ? (E(), y(ke, {
1608
- key: 0,
1609
- t: "radial",
1610
- id: `gradient_${P.value}`,
1611
- stops: [
1612
- [
1613
- "0%",
1614
- A(se)(z.value.backgroundColor, 0),
1615
- 0
1616
- ],
1617
- [
1618
- `${(1 - Pr.value / K.value) * 100}%`,
1619
- A(se)("#FFFFFF", 0),
1620
- 0
1621
- ],
1622
- [
1623
- `${(1 - Pr.value / K.value / 2) * 100}%`,
1624
- A(se)("#FFFFFF", z.value.gradientIntensity),
1625
- 1
1626
- ],
1627
- [
1628
- "100%",
1629
- A(se)(z.value.backgroundColor, 0),
1630
- 0
1631
- ]
1632
- ]
1633
- }, null, 8, ["id", "stops"])) : b("", !0)])) : b("", !0),
1634
- I.value.type === "polar" ? (E(), x("defs", dt, [(E(!0), x(_, null, O(Y.value, (e, t) => (E(), y(ke, {
1635
- t: "radial",
1636
- id: `polar_gradient_${t}_${P.value}`,
1637
- key: `pg_${t}_${P.value}`,
1638
- cx: (isNaN(e.middlePoint.x / H.value.width * 100) ? 0 : e.middlePoint.x / H.value.width * 100) + "%",
1639
- cy: (isNaN(e.middlePoint.y / H.value.height * 100) ? 0 : e.middlePoint.y / H.value.height * 100) + "%",
1640
- r: "62%",
1641
- stops: [[
1642
- "0%",
1643
- A(o)(q.value[t].color, .05),
1644
- z.value.gradientIntensity / 100
1645
- ], [
1646
- "100%",
1647
- q.value[t].color,
1648
- 1
1649
- ]]
1650
- }, null, 8, [
1651
- "id",
1652
- "cx",
1653
- "cy",
1654
- "stops"
1655
- ]))), 128))])) : b("", !0),
1656
- S("defs", null, [
1657
- S("filter", {
1658
- id: `blur_${P.value}`,
1659
- x: "-50%",
1660
- y: "-50%",
1661
- width: "200%",
1662
- height: "200%"
1663
- }, [S("feGaussianBlur", {
1664
- in: "SourceGraphic",
1665
- stdDeviation: 2,
1666
- id: `blur_std_${P.value}`
1667
- }, null, 8, pt), r[5] ||= S("feColorMatrix", {
1668
- type: "saturate",
1669
- values: "0"
1670
- }, null, -1)], 8, ft),
1671
- S("filter", {
1672
- id: `shadow_${P.value}`,
1673
- "color-interpolation-filters": "sRGB"
1674
- }, [S("feDropShadow", {
1675
- dx: "0",
1676
- dy: "0",
1677
- stdDeviation: "10",
1678
- "flood-opacity": "0.5",
1679
- "flood-color": R.value.shadowColor
1680
- }, null, 8, ht)], 8, mt),
1681
- S("filter", {
1682
- id: `drop_shadow_${P.value}`,
1683
- "color-interpolation-filters": "sRGB",
1684
- x: "-50%",
1685
- y: "-50%",
1686
- width: "200%",
1687
- height: "200%"
1688
- }, [S("feDropShadow", {
1689
- dx: "0",
1690
- dy: "0",
1691
- stdDeviation: "3",
1692
- "flood-opacity": "1",
1693
- "flood-color": R.value.shadowColor
1694
- }, null, 8, _t)], 8, gt)
1695
- ]),
1696
- I.value.type === "classic" ? (E(!0), x(_, { key: 3 }, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [X(e) && V.value.dataLabels.show ? (E(), x("path", {
1697
- key: 0,
1698
- d: A(Z)[t]?.connectorPath || A(re)(e, {
1699
- x: H.value.width / 2,
1700
- y: H.value.height / 2
1701
- }, 16, 16, !1, !1, Pr.value, 12, cr.value.curvedMarkers),
1702
- stroke: e.color,
1703
- "stroke-width": "1",
1704
- "stroke-linecap": "round",
1705
- "stroke-linejoin": "round",
1706
- fill: "none",
1707
- filter: pi(t)
1708
- }, null, 8, vt)) : b("", !0)]))), 256)) : b("", !0),
1709
- I.value.type === "polar" ? (E(!0), x(_, { key: 4 }, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", null, [X(e) && V.value.dataLabels.show ? (E(), x("path", {
1710
- key: 0,
1711
- d: `M ${A(g)({
1712
- initX: Y.value[t].middlePoint.x,
1713
- initY: Y.value[t].middlePoint.y,
1714
- offset: 24,
1715
- centerX: H.value.width / 2,
1716
- centerY: H.value.height / 2
1717
- }).x},${A(g)({
1718
- initX: Y.value[t].middlePoint.x,
1719
- initY: Y.value[t].middlePoint.y,
1720
- offset: 24,
1721
- centerX: H.value.width / 2,
1722
- centerY: H.value.height / 2
1723
- }).y} ${Y.value[t].middlePoint.x},${Y.value[t].middlePoint.y}`,
1724
- stroke: e.color,
1725
- "stroke-width": "1",
1726
- "stroke-linecap": "round",
1727
- "stroke-linejoin": "round",
1728
- fill: "none",
1729
- filter: pi(t),
1730
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1731
- }, null, 12, yt)) : b("", !0)]))), 256)) : b("", !0),
1732
- I.value.type === "classic" && R.value.useShadow ? (E(), x("circle", {
1733
- key: 5,
1734
- cx: H.value.width / 2,
1735
- cy: H.value.height / 2,
1736
- r: K.value <= 0 ? 10 : K.value,
1737
- fill: z.value.backgroundColor,
1738
- filter: `url(#shadow_${P.value})`
1739
- }, null, 8, bt)) : b("", !0),
1740
- n.$slots.pattern ? (E(), x("g", xt, [(E(!0), x(_, null, O(e.dataset, (e, t) => (E(), x("defs", { key: `pattern-${e.patternIndex}` }, [k(n.$slots, "pattern", Ue({ ref_for: !0 }, {
1741
- seriesIndex: t,
1742
- patternId: `pattern_${P.value}_${t}`
1743
- }), void 0, !0)]))), 128))])) : b("", !0),
1744
- Q.value && I.value.type === "classic" ? (E(), x(_, { key: 7 }, [
1745
- (E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1746
- stroke: z.value.backgroundColor,
1747
- d: e.arcSlice,
1748
- fill: "#FFFFFF"
1749
- }, null, 8, St))), 256)),
1750
- (E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1751
- class: "vue-ui-donut-arc-path",
1752
- d: e.arcSlice,
1753
- fill: e.color,
1754
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1755
- "stroke-width": R.value.borderWidth,
1756
- filter: pi(t)
1757
- }, null, 8, Ct))), 256)),
1758
- n.$slots.pattern ? (E(), x("g", wt, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1759
- class: "vue-ui-donut-arc-path",
1760
- d: e.arcSlice,
1761
- fill: `url(#${e.pattern})`,
1762
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1763
- "stroke-width": R.value.borderWidth,
1764
- filter: pi(t)
1765
- }, null, 8, Tt))), 256))])) : b("", !0)
1766
- ], 64)) : b("", !0),
1767
- Q.value && I.value.type === "polar" ? (E(), x(_, { key: 8 }, [q.value.length > 1 ? (E(), x("g", Et, [
1768
- (E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1769
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1770
- d: Y.value[t].path,
1771
- fill: "#FFFFFF",
1772
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1773
- }, null, 12, Dt))), 256)),
1774
- R.value.useShadow ? (E(), x("g", Ot, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1775
- class: "vue-ui-donut-arc-path",
1776
- d: Y.value[t].path,
1777
- fill: "transparent",
1778
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
1779
- "stroke-width": R.value.borderWidth,
1780
- filter: `url(#drop_shadow_${P.value})`,
1781
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1782
- }, null, 12, kt))), 256))])) : b("", !0),
1783
- n.$slots.pattern ? (E(), x("g", At, [(E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1784
- class: "vue-ui-donut-arc-path",
1785
- d: Y.value[t].path,
1786
- fill: `url(#${e.pattern})`,
1787
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
1788
- "stroke-width": R.value.borderWidth,
1789
- filter: pi(t),
1790
- style: T({
1791
- transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1792
- transformOrigin: "center"
1793
- })
1794
- }, null, 12, jt))), 256))])) : b("", !0),
1795
- (E(!0), x(_, null, O(J.value, (e, t) => (E(), x("path", {
1796
- class: "vue-ui-donut-arc-path",
1797
- d: Y.value[t].path,
1798
- fill: z.value.useGradient ? `url(#polar_gradient_${t}_${P.value})` : e.color,
1799
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1800
- "stroke-width": R.value.borderWidth,
1801
- filter: pi(t),
1802
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1803
- }, null, 12, Mt))), 256))
1804
- ])) : (E(), x("g", Nt, [n.$slots.pattern ? (E(), x("circle", {
1805
- key: 0,
1806
- cx: H.value.width / 2,
1807
- cy: H.value.height / 2,
1808
- r: K.value,
1809
- fill: `url(#pattern_${P.value}_${q.value[0].patternIndex})`,
1810
- stroke: z.value.backgroundColor,
1811
- "stroke-width": R.value.borderWidth
1812
- }, null, 8, Pt)) : b("", !0), S("circle", {
1813
- cx: H.value.width / 2,
1814
- cy: H.value.height / 2,
1815
- r: K.value,
1816
- fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` : q.value[0].color,
1817
- stroke: z.value.backgroundColor,
1818
- "stroke-width": R.value.borderWidth
1819
- }, null, 8, Ft)]))], 64)) : (E(), x(_, { key: 9 }, [I.value.type === "classic" && !Xr.value ? (E(), x("g", It, [(E(!0), x(_, null, O(Zr.value, (e, t) => (E(), x("path", {
1820
- class: "vue-ui-donut-arc-path",
1821
- d: e.arcSlice,
1822
- fill: e.color,
1823
- stroke: z.value.backgroundColor,
1824
- "stroke-width": R.value.borderWidth
1825
- }, null, 8, Lt))), 256))])) : b("", !0), S("circle", {
1826
- cx: H.value.width / 2,
1827
- cy: H.value.height / 2,
1828
- r: K.value <= 0 ? 10 : K.value,
1829
- fill: "transparent",
1830
- stroke: z.value.backgroundColor
1831
- }, null, 8, Rt)], 64)),
1832
- z.value.useGradient && I.value.type === "classic" ? (E(), x("circle", {
1833
- key: 10,
1834
- cx: H.value.width / 2,
1835
- cy: H.value.height / 2,
1836
- r: K.value <= 0 ? 10 : K.value,
1837
- fill: `url(#gradient_${P.value})`
1838
- }, null, 8, zt)) : b("", !0),
1839
- S("circle", {
1840
- ref_key: "circle_hollow",
1841
- ref: Pn,
1842
- style: { pointerEvents: "none" },
1843
- fill: "none",
1844
- cx: H.value.width / 2,
1845
- cy: H.value.height / 2,
1846
- r: Math.max(.1, Pr.value * 1.7)
1847
- }, null, 8, Bt),
1848
- Q.value ? (E(), x(_, { key: 11 }, [q.value.length > 1 || I.value.type === "classic" ? (E(), x("g", Vt, [(E(!0), x(_, null, O(q.value.filter((e) => !e.ghost), (e, t) => (E(), x("path", {
1849
- d: I.value.type === "classic" ? e.arcSlice : Y.value[t].path,
1850
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1851
- fill: F.value === t ? R.value.selectedColor : "transparent",
1852
- onMouseenter: (n) => li({
1853
- datapoint: e,
1854
- relativeIndex: t,
1855
- seriesIndex: e.seriesIndex,
1856
- show: !0
1857
- }),
1858
- onMouseleave: (t) => ci({
1859
- datapoint: e,
1860
- seriesIndex: e.seriesIndex
1861
- }),
1862
- onClick: (n) => $(e, t)
1863
- }, null, 40, Ht))), 256))])) : (E(), x("g", Ut, [S("circle", {
1864
- cx: H.value.width / 2,
1865
- cy: H.value.height / 2,
1866
- r: K.value,
1867
- fill: "transparent",
1868
- onMouseenter: r[0] ||= (e) => li({
1869
- datapoint: q.value[0],
1870
- relativeIndex: 0,
1871
- seriesIndex: q.value[0].seriesIndex,
1872
- show: !0
1873
- }),
1874
- onMouseleave: r[1] ||= (e) => ci({
1875
- datapoint: q.value[0],
1876
- seriesIndex: q.value[0].seriesIndex
1877
- }),
1878
- onClick: r[2] ||= (e) => $(q.value[0], n.i)
1879
- }, null, 40, Wt)]))], 64)) : b("", !0),
1880
- I.value.type === "classic" ? (E(), x("g", {
1881
- key: 12,
1882
- ref_key: "G_hollow",
1883
- ref: Nn,
1884
- class: "vue-data-ui-donut-hollow-labels"
1885
- }, [
1886
- L.value.hollow.total.show ? (E(), x("text", {
1887
- key: 0,
1888
- "text-anchor": "middle",
1889
- x: H.value.width / 2,
1890
- y: H.value.height / 2 - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.offsetY,
1891
- fill: L.value.hollow.total.color,
1892
- "font-size": L.value.hollow.total.fontSize,
1893
- style: T(`font-weight:${L.value.hollow.total.bold ? "bold" : ""}`)
1894
- }, Xe(L.value.hollow.total.text), 13, Gt)) : b("", !0),
1895
- L.value.hollow.total.show ? (E(), x("text", {
1896
- key: 1,
1897
- "text-anchor": "middle",
1898
- x: H.value.width / 2,
1899
- y: H.value.height / 2 + L.value.hollow.total.fontSize - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.value.offsetY,
1900
- fill: L.value.hollow.total.value.color,
1901
- "font-size": L.value.hollow.total.value.fontSize,
1902
- style: T(`font-weight:${L.value.hollow.total.value.bold ? "bold" : ""}`)
1903
- }, Xe(A(p)(L.value.hollow.total.value.formatter, Q.value, A(t)({
1904
- p: L.value.hollow.total.value.prefix,
1905
- v: Q.value,
1906
- s: L.value.hollow.total.value.suffix
1907
- }))), 13, Kt)) : b("", !0),
1908
- L.value.hollow.average.show ? (E(), x("text", {
1909
- key: 2,
1910
- "text-anchor": "middle",
1911
- x: H.value.width / 2,
1912
- y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.offsetY,
1913
- fill: L.value.hollow.average.color,
1914
- "font-size": L.value.hollow.average.fontSize,
1915
- style: T(`font-weight:${L.value.hollow.average.bold ? "bold" : ""}`)
1916
- }, Xe(L.value.hollow.average.text), 13, qt)) : b("", !0),
1917
- L.value.hollow.average.show ? (E(), x("text", {
1918
- key: 3,
1919
- "text-anchor": "middle",
1920
- x: H.value.width / 2,
1921
- y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.fontSize + L.value.hollow.average.value.offsetY,
1922
- fill: L.value.hollow.average.value.color,
1923
- "font-size": L.value.hollow.average.value.fontSize,
1924
- style: T(`font-weight:${L.value.hollow.average.value.bold ? "bold" : ""}`)
1925
- }, Xe(Lr.value || B.value ? "--" : A(p)(L.value.hollow.average.value.formatter, A(de)(ii.value), A(t)({
1926
- p: L.value.hollow.average.value.prefix,
1927
- v: A(de)(ii.value),
1928
- s: L.value.hollow.average.value.suffix,
1929
- r: L.value.hollow.average.value.rounding
1930
- }))), 13, Jt)) : b("", !0)
1931
- ], 512)) : b("", !0),
1932
- (E(!0), x(_, null, O(J.value.filter((e) => !e.ghost), (e, t) => (E(), x("g", {
1933
- filter: pi(t),
1934
- key: e.seriesIndex,
1935
- opacity: mi(e)
1936
- }, [L.value.dataLabels.useLabelSlots ? (E(), x("g", Xt, [(E(), x("foreignObject", {
1937
- x: A(f)(e, !0).anchor === "end" ? A(f)(e).x - 120 : A(f)(e, !0).anchor === "middle" ? A(f)(e).x - 60 : A(f)(e).x,
1938
- y: A(h)(e) - (bi.value ? 20 : 0),
1939
- width: "120",
1940
- height: "60",
1941
- style: { overflow: "visible" }
1942
- }, [S("div", null, [k(n.$slots, "dataLabel", Ue({ ref_for: !0 }, {
1943
- datapoint: e,
1944
- isBlur: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t,
1945
- isSafari: bi.value,
1946
- isVisible: X(e) && V.value.dataLabels.show,
1947
- textAlign: A(f)(e, !0, 16, !0).anchor,
1948
- flexAlign: A(f)(e, !0, 16).anchor,
1949
- percentage: ti(e, J.value)
1950
- }), void 0, !0)])], 8, Zt))])) : (E(), x("g", Qt, [I.value.type === "classic" ? (E(), x(_, { key: 0 }, [X(e) && V.value.dataLabels.show ? (E(), x("circle", {
1951
- key: 0,
1952
- cx: A(Z)[t]?.markerX ?? A(f)(e).x,
1953
- cy: A(Z)[t]?.markerY ?? A(h)(e) - 3.5,
1954
- fill: e.color,
1955
- stroke: z.value.backgroundColor,
1956
- "stroke-width": 1,
1957
- r: 3,
1958
- filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t ? "" : `url(#blur_${P.value})`,
1959
- onClick: (n) => $(e, t),
1960
- onMouseenter: (n) => li({
1961
- datapoint: e,
1962
- relativeIndex: t,
1963
- seriesIndex: e.seriesIndex,
1964
- show: !0
1965
- }),
1966
- onMouseleave: (t) => ci({
1967
- datapoint: e,
1968
- seriesIndex: e.seriesIndex
1969
- })
1970
- }, null, 40, $t)) : b("", !0), L.value.dataLabels.oneLine || A(Z)[t] ? tt((E(), x("text", {
1971
- key: 1,
1972
- class: "vue-data-ui-datalabel-inline",
1973
- "text-anchor": A(Z)[t]?.textAnchor || A(f)(e, !0, 12).anchor,
1974
- x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
1975
- y: A(Z)[t]?.labelY ?? A(h)(e),
1976
- onClick: (n) => $(e, t),
1977
- onMouseenter: (n) => li({
1978
- datapoint: e,
1979
- relativeIndex: t,
1980
- seriesIndex: e.seriesIndex,
1981
- show: !0
1982
- }),
1983
- onMouseleave: (t) => ci({
1984
- datapoint: e,
1985
- seriesIndex: e.seriesIndex
1986
- }),
1987
- innerHTML: di(e, t, !!A(Z)[t])
1988
- }, null, 40, en)), [[$e, X(e) && V.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [tt(S("text", {
1989
- class: "vue-data-ui-datalabel-value",
1990
- "text-anchor": A(Z)[t]?.textAnchor || A(f)(e, !0, 12).anchor,
1991
- x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
1992
- y: A(Z)[t]?.labelY ?? A(h)(e),
1993
- fill: L.value.percentage.color,
1994
- "font-size": Zn.value + "px",
1995
- style: T(`font-weight:${L.value.percentage.bold ? "bold" : ""}`),
1996
- onClick: (n) => $(e, t),
1997
- onMouseenter: (n) => li({
1998
- datapoint: e,
1999
- relativeIndex: t,
2000
- seriesIndex: e.seriesIndex,
2001
- show: !0
2002
- }),
2003
- onMouseleave: (t) => ci({
2004
- datapoint: e,
2005
- seriesIndex: e.seriesIndex
2006
- })
2007
- }, Xe(Ci(e)), 45, tn), [[$e, X(e) && V.value.dataLabels.show]]), tt(S("text", {
2008
- class: "vue-data-ui-datalabel-name",
2009
- "text-anchor": A(Z)[t]?.textAnchor || A(f)(e).anchor,
2010
- x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
2011
- y: (A(Z)[t]?.labelY ?? A(h)(e)) + N.value * 1.2,
2012
- fill: L.value.name.color,
2013
- "font-size": N.value + "px",
2014
- style: T(`font-weight:${L.value.name.bold ? "bold" : ""}`),
2015
- onClick: (n) => $(e, t),
2016
- onMouseenter: (n) => li({
2017
- datapoint: e,
2018
- relativeIndex: t,
2019
- seriesIndex: e.seriesIndex,
2020
- show: !0
2021
- }),
2022
- onMouseleave: (t) => ci({
2023
- datapoint: e,
2024
- seriesIndex: e.seriesIndex
2025
- }),
2026
- innerHTML: A(ee)({
2027
- content: e.name,
2028
- fontSize: N.value,
2029
- fill: L.value.name.color,
2030
- x: A(Z)[t]?.labelX ?? A(f)(e, !0, 12).x,
2031
- y: (A(Z)[t]?.labelY ?? A(h)(e)) + N.value
2032
- })
2033
- }, null, 44, nn), [[$e, X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show]])], 64))], 64)) : b("", !0), I.value.type === "polar" ? (E(), x(_, { key: 1 }, [X(e) && V.value.dataLabels.show ? (E(), x("circle", {
2034
- key: 0,
2035
- cx: A(g)({
2036
- initX: Y.value[t].middlePoint.x,
2037
- initY: Y.value[t].middlePoint.y,
2038
- offset: 24,
2039
- centerX: H.value.width / 2,
2040
- centerY: H.value.height / 2
2041
- }).x,
2042
- cy: A(g)({
2043
- initX: Y.value[t].middlePoint.x,
2044
- initY: Y.value[t].middlePoint.y,
2045
- offset: 24,
2046
- centerX: H.value.width / 2,
2047
- centerY: H.value.height / 2
2048
- }).y,
2049
- fill: e.color,
2050
- stroke: z.value.backgroundColor,
2051
- "stroke-width": 1,
2052
- r: 3,
2053
- filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === t ? "" : `url(#blur_${P.value})`,
2054
- onClick: (n) => $(e, t),
2055
- onMouseenter: (n) => li({
2056
- datapoint: e,
2057
- relativeIndex: t,
2058
- seriesIndex: e.seriesIndex,
2059
- show: !0
2060
- }),
2061
- onMouseleave: (t) => ci({
2062
- datapoint: e,
2063
- seriesIndex: e.seriesIndex
2064
- }),
2065
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
2066
- }, null, 44, rn)) : b("", !0), L.value.dataLabels.oneLine ? tt((E(), x("text", {
2067
- key: 1,
2068
- class: "vue-data-ui-datalabel-inline",
2069
- "text-anchor": Qr(Y.value[t].middlePoint),
2070
- x: A(g)({
2071
- initX: Y.value[t].middlePoint.x,
2072
- initY: Y.value[t].middlePoint.y,
2073
- offset: 42,
2074
- centerX: H.value.width / 2,
2075
- centerY: H.value.height / 2
2076
- }).x,
2077
- y: A(g)({
2078
- initX: Y.value[t].middlePoint.x,
2079
- initY: Y.value[t].middlePoint.y,
2080
- offset: 42,
2081
- centerX: H.value.width / 2,
2082
- centerY: H.value.height / 2
2083
- }).y,
2084
- style: T({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
2085
- onClick: (n) => $(e, t),
2086
- onMouseenter: (n) => li({
2087
- datapoint: e,
2088
- relativeIndex: t,
2089
- seriesIndex: e.seriesIndex,
2090
- show: !0
2091
- }),
2092
- onMouseleave: (t) => ci({
2093
- datapoint: e,
2094
- seriesIndex: e.seriesIndex
2095
- }),
2096
- innerHTML: fi(e, t)
2097
- }, null, 44, an)), [[$e, X(e) && V.value.dataLabels.show]]) : (E(), x(_, { key: 2 }, [X(e) && V.value.dataLabels.show ? (E(), x("text", {
2098
- key: 0,
2099
- class: "vue-data-ui-datalabel-value",
2100
- "text-anchor": Qr(Y.value[t].middlePoint),
2101
- x: A(g)({
2102
- initX: Y.value[t].middlePoint.x,
2103
- initY: Y.value[t].middlePoint.y,
2104
- offset: 42,
2105
- centerX: H.value.width / 2,
2106
- centerY: H.value.height / 2
2107
- }).x,
2108
- y: A(g)({
2109
- initX: Y.value[t].middlePoint.x,
2110
- initY: Y.value[t].middlePoint.y,
2111
- offset: 42,
2112
- centerX: H.value.width / 2,
2113
- centerY: H.value.height / 2
2114
- }).y,
2115
- fill: L.value.percentage.color,
2116
- "font-size": Zn.value,
2117
- style: T({
2118
- transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2119
- fontWeight: L.value.percentage.bold ? "bold" : "normal"
2120
- }),
2121
- onClick: (n) => $(e, t),
2122
- onMouseenter: (n) => li({
2123
- datapoint: e,
2124
- relativeIndex: t,
2125
- seriesIndex: e.seriesIndex,
2126
- show: !0
2127
- }),
2128
- onMouseleave: (t) => ci({
2129
- datapoint: e,
2130
- seriesIndex: e.seriesIndex
2131
- })
2132
- }, Xe(Ci(e)), 45, on)) : b("", !0), X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show ? (E(), x("text", {
2133
- key: 1,
2134
- class: "vue-data-ui-datalabel-name",
2135
- "text-anchor": Qr(Y.value[t].middlePoint),
2136
- x: A(g)({
2137
- initX: Y.value[t].middlePoint.x,
2138
- initY: Y.value[t].middlePoint.y,
2139
- offset: 42,
2140
- centerX: H.value.width / 2,
2141
- centerY: H.value.height / 2
2142
- }).x,
2143
- y: A(g)({
2144
- initX: Y.value[t].middlePoint.x,
2145
- initY: Y.value[t].middlePoint.y,
2146
- offset: 42,
2147
- centerX: H.value.width / 2,
2148
- centerY: H.value.height / 2
2149
- }).y + N.value * 1.2,
2150
- fill: L.value.name.color,
2151
- "font-size": N.value,
2152
- style: T({
2153
- transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2154
- fontWeight: L.value.name.bold ? "bold" : "normal"
2155
- }),
2156
- onClick: (n) => $(e, t),
2157
- onMouseenter: (n) => li({
2158
- datapoint: e,
2159
- relativeIndex: t,
2160
- seriesIndex: e.seriesIndex,
2161
- show: !0
2162
- }),
2163
- onMouseleave: (t) => ci({
2164
- datapoint: e,
2165
- seriesIndex: e.seriesIndex
2166
- }),
2167
- innerHTML: A(ee)({
2168
- content: e.name,
2169
- fontSize: N.value,
2170
- fill: L.value.name.color,
2171
- x: A(g)({
2172
- initX: Y.value[t].middlePoint.x,
2173
- initY: Y.value[t].middlePoint.y,
2174
- offset: 42,
2175
- centerX: H.value.width / 2,
2176
- centerY: H.value.height / 2
2177
- }).x,
2178
- y: A(g)({
2179
- initX: Y.value[t].middlePoint.x,
2180
- initY: Y.value[t].middlePoint.y,
2181
- offset: 42,
2182
- centerX: H.value.width / 2,
2183
- centerY: H.value.height / 2
2184
- }).y + N.value * 1.2
2185
- })
2186
- }, null, 44, sn)) : b("", !0)], 64))], 64)) : b("", !0)])), V.value.dataLabels.show && z.value.comments.show && e.comment ? (E(), x("g", cn, [X(e) && I.value.type === "classic" ? (E(), x("foreignObject", {
2187
- key: 0,
2188
- x: z.value.comments.offsetX + (A(f)(e, !0).anchor === "end" ? A(f)(e).x - z.value.comments.width : A(f)(e, !0).anchor === "middle" ? A(f)(e).x - z.value.comments.width / 2 : A(f)(e).x),
2189
- y: A(h)(e) + 24 + z.value.comments.offsetY,
2190
- width: z.value.comments.width,
2191
- height: "200",
2192
- style: {
2193
- overflow: "visible",
2194
- "pointer-events": "none"
2195
- }
2196
- }, [S("div", null, [k(n.$slots, "plot-comment", { plot: {
2197
- ...e,
2198
- textAlign: A(f)(e, !0, 16, !0).anchor,
2199
- flexAlign: A(f)(e, !0, 16).anchor,
2200
- isFirstLoad: B.value
2201
- } }, void 0, !0)])], 8, ln)) : b("", !0), X(e) && I.value.type === "polar" ? (E(), x("foreignObject", {
2202
- key: 1,
2203
- x: z.value.comments.offsetX + (Qr(Y.value[t].middlePoint) === "end" ? A(g)({
2204
- initX: Y.value[t].middlePoint.x,
2205
- initY: Y.value[t].middlePoint.y,
2206
- offset: 42,
2207
- centerX: H.value.width / 2,
2208
- centerY: H.value.height / 2
2209
- }).x - z.value.comments.width : Qr(Y.value[t].middlePoint) === "middle" ? A(g)({
2210
- initX: Y.value[t].middlePoint.x,
2211
- initY: Y.value[t].middlePoint.y,
2212
- offset: 42,
2213
- centerX: H.value.width / 2,
2214
- centerY: H.value.height / 2
2215
- }).x - z.value.comments.width / 2 : A(g)({
2216
- initX: Y.value[t].middlePoint.x,
2217
- initY: Y.value[t].middlePoint.y,
2218
- offset: 42,
2219
- centerX: H.value.width / 2,
2220
- centerY: H.value.height / 2
2221
- }).x),
2222
- y: $r(Y.value[t]) + z.value.comments.offsetY,
2223
- width: z.value.comments.width,
2224
- height: "200",
2225
- style: T({
2226
- transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2227
- overflow: "visible",
2228
- pointerEvents: "none"
2229
- })
2230
- }, [S("div", null, [k(n.$slots, "plot-comment", { plot: {
2231
- ...e,
2232
- textAlign: Qr(Y.value[t].middlePoint),
2233
- flexAlign: Qr(Y.value[t].middlePoint),
2234
- isFirstLoad: B.value
2235
- } }, void 0, !0)])], 12, un)) : b("", !0)])) : b("", !0)], 8, Yt))), 128)),
2236
- k(n.$slots, "svg", { svg: {
2237
- ...H.value,
2238
- datapoints: q.value,
2239
- isPrintingImg: A(Or) || A(kr) || A(Li),
2240
- isPrintingSvg: A(Ri)
2241
- } }, void 0, !0)
2242
- ], 512)], 46, ct)), n.$slots.hint ? (E(), x("div", dn, [k(n.$slots, "hint", w(C({
2243
- hint: I.value.a11y.translations.keyboardNavigation,
2244
- isVisible: Xn.value
2245
- })), void 0, !0)])) : b("", !0)]),
2246
- n.$slots.watermark ? (E(), x("div", fn, [k(n.$slots, "watermark", w(C({ isPrinting: A(Or) || A(kr) || A(Li) || A(Ri) })), void 0, !0)])) : b("", !0),
2247
- S("div", { id: `legend-bottom-${P.value}` }, null, 8, pn),
2248
- Wn.value && (z.value.legend.show || n.$slots.legend) ? (E(), y(Re, {
2249
- key: 6,
2250
- to: z.value.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
2251
- }, [S("div", {
2252
- ref_key: "chartLegend",
2253
- ref: In
2254
- }, [k(n.$slots, "legend", { legend: Jr.value }, () => [z.value.legend.show ? (E(), y(Le, {
2255
- key: `legend_${Un.value}`,
2256
- legendSet: Jr.value,
2257
- config: Yr.value,
2258
- onClickMarker: r[3] ||= ({ i: e }) => Hr(e),
2259
- isCursorPointer: lr.value
2260
- }, ze({
2261
- item: j(({ legend: e, index: t }) => [S("div", {
2262
- style: T(`opacity:${G.value.includes(t) ? .5 : 1}`),
2263
- onClick: (t) => e.segregate()
2264
- }, Xe(e.display), 13, mn)]),
2265
- legendToggle: j(() => [Jr.value.length > 2 && z.value.legend.selectAllToggle.show && !A(dr) ? (E(), y(Ae, {
2266
- key: 0,
2267
- backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
2268
- color: z.value.legend.selectAllToggle.color,
2269
- fontSize: z.value.legend.fontSize,
2270
- checked: G.value.length > 0,
2271
- isCursorPointer: lr.value,
2272
- onToggle: Vr
2273
- }, null, 8, [
2274
- "backgroundColor",
2275
- "color",
2276
- "fontSize",
2277
- "checked",
2278
- "isCursorPointer"
2279
- ])) : b("", !0)]),
2280
- _: 2
2281
- }, [n.$slots.pattern ? {
2282
- name: "legend-pattern",
2283
- fn: j(({ legend: e, index: t }) => [Ve(Te, {
2284
- shape: e.shape,
2285
- radius: 30,
2286
- stroke: "none",
2287
- plot: {
2288
- x: 30,
2289
- y: 30
2290
- },
2291
- fill: `url(#pattern_${P.value}_${t})`
2292
- }, null, 8, ["shape", "fill"])]),
2293
- key: "0"
2294
- } : void 0]), 1032, [
2295
- "legendSet",
2296
- "config",
2297
- "isCursorPointer"
2298
- ])) : b("", !0)], !0)], 512)], 8, ["to"])) : b("", !0),
2299
- n.$slots.source ? (E(), x("div", {
2300
- key: 7,
2301
- ref_key: "source",
2302
- ref: zn,
2303
- dir: "auto"
2304
- }, [k(n.$slots, "source", {}, void 0, !0)], 512)) : b("", !0),
2305
- n.$slots.hollow ? (E(), x("div", hn, [k(n.$slots, "hollow", w(C({
2306
- total: Q.value,
2307
- average: ii.value,
2308
- dataset: U.value,
2309
- ...H.value
2310
- })), void 0, !0)])) : b("", !0),
2311
- Ve(A(vn), {
2312
- teleportTo: z.value.tooltip.teleportTo,
2313
- show: V.value.showTooltip && ir.value,
2314
- backgroundColor: z.value.tooltip.backgroundColor,
2315
- color: z.value.tooltip.color,
2316
- fontSize: z.value.tooltip.fontSize,
2317
- borderRadius: z.value.tooltip.borderRadius,
2318
- borderColor: z.value.tooltip.borderColor,
2319
- borderWidth: z.value.tooltip.borderWidth,
2320
- backgroundOpacity: z.value.tooltip.backgroundOpacity,
2321
- position: z.value.tooltip.position,
2322
- offsetX: z.value.tooltip.offsetX,
2323
- offsetY: z.value.tooltip.offsetY,
2324
- parent: jn.value,
2325
- content: ar.value,
2326
- isCustom: si.value,
2327
- isFullscreen: vi.value,
2328
- smooth: z.value.tooltip.smooth,
2329
- backdropFilter: z.value.tooltip.backdropFilter,
2330
- smoothForce: z.value.tooltip.smoothForce,
2331
- smoothSnapThreshold: z.value.tooltip.smoothSnapThrehsold,
2332
- isA11yMode: Yn.value === "keyboard",
2333
- a11yPosition: Jn.value
2334
- }, {
2335
- "tooltip-before": j(() => [k(n.$slots, "tooltip-before", w(C({ ...oi.value })), void 0, !0)]),
2336
- tooltip: j(() => [k(n.$slots, "tooltip", w(C({ ...oi.value })), void 0, !0)]),
2337
- "tooltip-after": j(() => [k(n.$slots, "tooltip-after", w(C({ ...oi.value })), void 0, !0)]),
2338
- _: 3
2339
- }, 8, [
2340
- "teleportTo",
2341
- "show",
2342
- "backgroundColor",
2343
- "color",
2344
- "fontSize",
2345
- "borderRadius",
2346
- "borderColor",
2347
- "borderWidth",
2348
- "backgroundOpacity",
2349
- "position",
2350
- "offsetX",
2351
- "offsetY",
2352
- "parent",
2353
- "content",
2354
- "isCustom",
2355
- "isFullscreen",
2356
- "smooth",
2357
- "backdropFilter",
2358
- "smoothForce",
2359
- "smoothSnapThreshold",
2360
- "isA11yMode",
2361
- "a11yPosition"
2362
- ]),
2363
- An.value && I.value.userOptions.buttons.table ? (E(), y(Je(ji.value.component), Ue({ key: 9 }, ji.value.props, {
2364
- ref_key: "tableUnit",
2365
- ref: Gn,
2366
- onClose: Mi
2367
- }), ze({
2368
- content: j(() => [(E(), y(A(xn), {
2369
- key: `table_${Hn.value}`,
2370
- colNames: _i.value.colNames,
2371
- head: _i.value.head,
2372
- body: _i.value.body,
2373
- config: _i.value.config,
2374
- title: I.value.table.useDialog ? "" : ji.value.title,
2375
- withCloseButton: !I.value.table.useDialog,
2376
- isCursorPointer: lr.value,
2377
- onClose: Mi
2378
- }, {
2379
- th: j(({ th: e }) => [e === "__SUM__" ? (E(), x("div", gn, [Ve(A(yn), {
2380
- name: "sigma",
2381
- stroke: _i.value.config.th.color,
2382
- size: 16
2383
- }, null, 8, ["stroke"])])) : (E(), x("div", _n, Xe(e), 1))]),
2384
- td: j(({ td: e }) => [Be(Xe(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(p)(L.value.percentage.formatter, e, A(t)({
2385
- v: e,
2386
- s: "%",
2387
- r: L.value.percentage.rounding
2388
- })) : A(p)(L.value.value.formatter, e, A(t)({
2389
- p: L.value.dataLabels.prefix,
2390
- v: e,
2391
- s: L.value.dataLabels.suffix,
2392
- r: L.value.value.rounding
2393
- }))), 1)]),
2394
- _: 1
2395
- }, 8, [
2396
- "colNames",
2397
- "head",
2398
- "body",
2399
- "config",
2400
- "title",
2401
- "withCloseButton",
2402
- "isCursorPointer"
2403
- ]))]),
2404
- _: 2
2405
- }, [I.value.table.useDialog ? {
2406
- name: "title",
2407
- fn: j(() => [Be(Xe(ji.value.title), 1)]),
2408
- key: "0"
2409
- } : void 0, I.value.table.useDialog ? {
2410
- name: "actions",
2411
- fn: j(() => [S("button", {
2412
- tabindex: "0",
2413
- class: "vue-ui-user-options-button",
2414
- onClick: r[4] ||= (e) => gi(I.value.userOptions.callbacks.csv),
2415
- style: T({ cursor: lr.value ? "pointer" : "default" })
2416
- }, [Ve(A(yn), {
2417
- name: "fileCsv",
2418
- stroke: ji.value.props.color
2419
- }, null, 8, ["stroke"])], 4)]),
2420
- key: "1"
2421
- } : void 0]), 1040)) : b("", !0),
2422
- k(n.$slots, "skeleton", {}, () => [A(dr) ? (E(), y(ye, { key: 0 })) : b("", !0)], !0)
2423
- ], 46, it));
2424
- }
2425
- }, [["__scopeId", "data-v-f5725be5"]]);
2426
- //#endregion
2427
- export { rt as n, vn as t };