vue-data-ui 3.19.9 → 3.20.1

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 (322) hide show
  1. package/package.json +120 -120
  2. package/dist/A11yDataTable-q2-8fSlJ.js +0 -45
  3. package/dist/Arrow-Cj6W6Xbi.js +0 -116
  4. package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
  5. package/dist/BaseIcon-DM1x8hQF.js +0 -502
  6. package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
  7. package/dist/BaseScanner-C7dmAref.js +0 -27
  8. package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
  9. package/dist/ColorPicker-DTQeqKUV.js +0 -255
  10. package/dist/DataTable-DmE8Oo4i.js +0 -150
  11. package/dist/Legend-Gg5Q4Clb.js +0 -114
  12. package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
  13. package/dist/PackageVersion-Dl9W5zJD.js +0 -11
  14. package/dist/PenAndPaper-DNgm6y3l.js +0 -461
  15. package/dist/RecursiveCircles-DPpLel6f.js +0 -117
  16. package/dist/RecursiveLabels-DBMJf_to.js +0 -56
  17. package/dist/RecursiveLinks-D06dBL4a.js +0 -78
  18. package/dist/Shape-DEGOZ6GG.js +0 -141
  19. package/dist/Slicer-CPWGgGSp.js +0 -1144
  20. package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
  21. package/dist/SparkTooltip-c2DL7gqD.js +0 -93
  22. package/dist/Title-__gWq2g6.js +0 -87
  23. package/dist/Tooltip-CuWEYGr3.js +0 -312
  24. package/dist/UserOptions-D7zR0tnR.js +0 -1411
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
  26. package/dist/canvas-lib-DTaADQOK.js +0 -79
  27. package/dist/components/arrow.js +0 -2
  28. package/dist/components/vue-ui-3d-bar.js +0 -2
  29. package/dist/components/vue-ui-accordion.js +0 -2
  30. package/dist/components/vue-ui-age-pyramid.js +0 -2
  31. package/dist/components/vue-ui-annotator.js +0 -2
  32. package/dist/components/vue-ui-bullet.js +0 -2
  33. package/dist/components/vue-ui-bump.js +0 -2
  34. package/dist/components/vue-ui-candlestick.js +0 -2
  35. package/dist/components/vue-ui-carousel-table.js +0 -2
  36. package/dist/components/vue-ui-chestnut.js +0 -2
  37. package/dist/components/vue-ui-chord.js +0 -2
  38. package/dist/components/vue-ui-circle-pack.js +0 -2
  39. package/dist/components/vue-ui-cursor.js +0 -2
  40. package/dist/components/vue-ui-dag.js +0 -2
  41. package/dist/components/vue-ui-dashboard.js +0 -2
  42. package/dist/components/vue-ui-digits.js +0 -2
  43. package/dist/components/vue-ui-donut-evolution.js +0 -2
  44. package/dist/components/vue-ui-donut.js +0 -2
  45. package/dist/components/vue-ui-dumbbell.js +0 -2
  46. package/dist/components/vue-ui-flow.js +0 -2
  47. package/dist/components/vue-ui-funnel.js +0 -2
  48. package/dist/components/vue-ui-galaxy.js +0 -2
  49. package/dist/components/vue-ui-gauge.js +0 -2
  50. package/dist/components/vue-ui-geo.js +0 -2
  51. package/dist/components/vue-ui-gizmo.js +0 -2
  52. package/dist/components/vue-ui-heatmap.js +0 -2
  53. package/dist/components/vue-ui-history-plot.js +0 -2
  54. package/dist/components/vue-ui-horizontal-bar.js +0 -2
  55. package/dist/components/vue-ui-icon.js +0 -2
  56. package/dist/components/vue-ui-kpi.js +0 -2
  57. package/dist/components/vue-ui-mini-loader.js +0 -2
  58. package/dist/components/vue-ui-molecule.js +0 -2
  59. package/dist/components/vue-ui-mood-radar.js +0 -2
  60. package/dist/components/vue-ui-nested-donuts.js +0 -2
  61. package/dist/components/vue-ui-onion.js +0 -2
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
  63. package/dist/components/vue-ui-pattern-seed.js +0 -2
  64. package/dist/components/vue-ui-pattern.js +0 -2
  65. package/dist/components/vue-ui-quadrant.js +0 -2
  66. package/dist/components/vue-ui-quick-chart.js +0 -2
  67. package/dist/components/vue-ui-radar.js +0 -2
  68. package/dist/components/vue-ui-rating.js +0 -2
  69. package/dist/components/vue-ui-relation-circle.js +0 -2
  70. package/dist/components/vue-ui-ridgeline.js +0 -2
  71. package/dist/components/vue-ui-rings.js +0 -2
  72. package/dist/components/vue-ui-scatter.js +0 -2
  73. package/dist/components/vue-ui-skeleton.js +0 -2
  74. package/dist/components/vue-ui-smiley.js +0 -2
  75. package/dist/components/vue-ui-spark-trend.js +0 -2
  76. package/dist/components/vue-ui-sparkbar.js +0 -2
  77. package/dist/components/vue-ui-sparkgauge.js +0 -2
  78. package/dist/components/vue-ui-sparkhistogram.js +0 -2
  79. package/dist/components/vue-ui-sparkline.js +0 -2
  80. package/dist/components/vue-ui-sparkstackbar.js +0 -2
  81. package/dist/components/vue-ui-stackbar.js +0 -2
  82. package/dist/components/vue-ui-stackline.js +0 -2
  83. package/dist/components/vue-ui-strip-plot.js +0 -2
  84. package/dist/components/vue-ui-table-heatmap.js +0 -2
  85. package/dist/components/vue-ui-table-sparkline.js +0 -2
  86. package/dist/components/vue-ui-table.js +0 -2
  87. package/dist/components/vue-ui-thermometer.js +0 -2
  88. package/dist/components/vue-ui-timer.js +0 -2
  89. package/dist/components/vue-ui-tiremarks.js +0 -2
  90. package/dist/components/vue-ui-treemap.js +0 -2
  91. package/dist/components/vue-ui-vertical-bar.js +0 -2
  92. package/dist/components/vue-ui-waffle.js +0 -2
  93. package/dist/components/vue-ui-wheel.js +0 -2
  94. package/dist/components/vue-ui-word-cloud.js +0 -2
  95. package/dist/components/vue-ui-world.js +0 -2
  96. package/dist/components/vue-ui-xy-canvas.js +0 -2
  97. package/dist/components/vue-ui-xy.js +0 -2
  98. package/dist/dom-to-png-9WSt6hXe.js +0 -237
  99. package/dist/exposedLib-CwWU4zv-.js +0 -19
  100. package/dist/geoProjections-CQIkC70z.js +0 -146
  101. package/dist/img-BjOr008R.js +0 -74
  102. package/dist/labelUtils-Cr97N8E1.js +0 -19
  103. package/dist/lib-BkiwukKO.js +0 -1879
  104. package/dist/llms.txt +0 -232
  105. package/dist/patternUtils-B7BWu5bV.js +0 -258
  106. package/dist/pdf-DSXSFUnK.js +0 -90
  107. package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
  108. package/dist/style.css +0 -2
  109. package/dist/types/arrow.d.ts +0 -4
  110. package/dist/types/utils.d.ts +0 -551
  111. package/dist/types/vue-data-ui.d.ts +0 -15826
  112. package/dist/types/vue-ui-3d-bar.d.ts +0 -78
  113. package/dist/types/vue-ui-accordion.d.ts +0 -11
  114. package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
  115. package/dist/types/vue-ui-annotator.d.ts +0 -12
  116. package/dist/types/vue-ui-bullet.d.ts +0 -72
  117. package/dist/types/vue-ui-bump.d.ts +0 -77
  118. package/dist/types/vue-ui-candlestick.d.ts +0 -93
  119. package/dist/types/vue-ui-carousel-table.d.ts +0 -46
  120. package/dist/types/vue-ui-chestnut.d.ts +0 -79
  121. package/dist/types/vue-ui-chord.d.ts +0 -91
  122. package/dist/types/vue-ui-circle-pack.d.ts +0 -111
  123. package/dist/types/vue-ui-cursor.d.ts +0 -9
  124. package/dist/types/vue-ui-dag.d.ts +0 -106
  125. package/dist/types/vue-ui-dashboard.d.ts +0 -53
  126. package/dist/types/vue-ui-digits.d.ts +0 -12
  127. package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
  128. package/dist/types/vue-ui-donut.d.ts +0 -106
  129. package/dist/types/vue-ui-dumbbell.d.ts +0 -79
  130. package/dist/types/vue-ui-flow.d.ts +0 -93
  131. package/dist/types/vue-ui-funnel.d.ts +0 -66
  132. package/dist/types/vue-ui-galaxy.d.ts +0 -97
  133. package/dist/types/vue-ui-gauge.d.ts +0 -76
  134. package/dist/types/vue-ui-geo.d.ts +0 -81
  135. package/dist/types/vue-ui-gizmo.d.ts +0 -22
  136. package/dist/types/vue-ui-heatmap.d.ts +0 -86
  137. package/dist/types/vue-ui-history-plot.d.ts +0 -97
  138. package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
  139. package/dist/types/vue-ui-icon.d.ts +0 -15
  140. package/dist/types/vue-ui-kpi.d.ts +0 -25
  141. package/dist/types/vue-ui-mini-loader.d.ts +0 -15
  142. package/dist/types/vue-ui-molecule.d.ts +0 -97
  143. package/dist/types/vue-ui-mood-radar.d.ts +0 -79
  144. package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
  145. package/dist/types/vue-ui-onion.d.ts +0 -91
  146. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
  147. package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
  148. package/dist/types/vue-ui-pattern.d.ts +0 -15
  149. package/dist/types/vue-ui-quadrant.d.ts +0 -102
  150. package/dist/types/vue-ui-quick-chart.d.ts +0 -89
  151. package/dist/types/vue-ui-radar.d.ts +0 -101
  152. package/dist/types/vue-ui-rating.d.ts +0 -31
  153. package/dist/types/vue-ui-relation-circle.d.ts +0 -79
  154. package/dist/types/vue-ui-ridgeline.d.ts +0 -85
  155. package/dist/types/vue-ui-rings.d.ts +0 -83
  156. package/dist/types/vue-ui-scatter.d.ts +0 -82
  157. package/dist/types/vue-ui-skeleton.d.ts +0 -11
  158. package/dist/types/vue-ui-smiley.d.ts +0 -12
  159. package/dist/types/vue-ui-spark-trend.d.ts +0 -19
  160. package/dist/types/vue-ui-sparkbar.d.ts +0 -36
  161. package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
  162. package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
  163. package/dist/types/vue-ui-sparkline.d.ts +0 -44
  164. package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
  165. package/dist/types/vue-ui-stackbar.d.ts +0 -97
  166. package/dist/types/vue-ui-stackline.d.ts +0 -93
  167. package/dist/types/vue-ui-strip-plot.d.ts +0 -81
  168. package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
  169. package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
  170. package/dist/types/vue-ui-table.d.ts +0 -25
  171. package/dist/types/vue-ui-thermometer.d.ts +0 -57
  172. package/dist/types/vue-ui-timer.d.ts +0 -36
  173. package/dist/types/vue-ui-tiremarks.d.ts +0 -57
  174. package/dist/types/vue-ui-treemap.d.ts +0 -87
  175. package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
  176. package/dist/types/vue-ui-waffle.d.ts +0 -86
  177. package/dist/types/vue-ui-wheel.d.ts +0 -57
  178. package/dist/types/vue-ui-word-cloud.d.ts +0 -84
  179. package/dist/types/vue-ui-world.d.ts +0 -81
  180. package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
  181. package/dist/types/vue-ui-xy.d.ts +0 -125
  182. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
  183. package/dist/useChartAccessibility-Do37qcw2.js +0 -12
  184. package/dist/useConfig-ByaaSKhz.js +0 -7471
  185. package/dist/useFitSvgText-C-MEdAfe.js +0 -63
  186. package/dist/useNestedProp-Ck4hsrpu.js +0 -10
  187. package/dist/useObjectBindings-BR1sGimd.js +0 -189
  188. package/dist/usePanZoom-B-4M_gmY.js +0 -157
  189. package/dist/usePrefersMotion-BywLbIko.js +0 -15
  190. package/dist/usePrinter-X0yWOynH.js +0 -49
  191. package/dist/useResponsive-CrAInupd.js +0 -19
  192. package/dist/useStableElementSize-0I1IpHPl.js +0 -77
  193. package/dist/useSvgExport-Dtu973wa.js +0 -755
  194. package/dist/useTableResponsive-DrM1xqII.js +0 -24
  195. package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
  196. package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
  197. package/dist/useTimeLabels-C0x7zUXP.js +0 -272
  198. package/dist/useUserOptionState-CjPJPTg2.js +0 -15
  199. package/dist/utils.js +0 -28
  200. package/dist/vClickOutside-CbX_bC9A.js +0 -13
  201. package/dist/vue-data-ui-nsosW-n5.js +0 -274
  202. package/dist/vue-data-ui.js +0 -76
  203. package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
  204. package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
  205. package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
  206. package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
  207. package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
  208. package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
  209. package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
  210. package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
  211. package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
  212. package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
  213. package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
  214. package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
  215. package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
  216. package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
  217. package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
  218. package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
  219. package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
  220. package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
  221. package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
  222. package/dist/vue-ui-funnel-BfY509t-.js +0 -777
  223. package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
  224. package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
  225. package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
  226. package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
  227. package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
  228. package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
  229. package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
  230. package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
  231. package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
  232. package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
  233. package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
  234. package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
  235. package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
  236. package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
  237. package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
  238. package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
  239. package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
  240. package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
  241. package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
  242. package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
  243. package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
  244. package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
  245. package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
  246. package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
  247. package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
  248. package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
  249. package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
  250. package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
  251. package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
  252. package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
  253. package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
  254. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
  255. package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
  256. package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
  257. package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
  258. package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
  259. package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
  260. package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
  261. package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
  262. package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
  263. package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
  264. package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
  265. package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
  266. package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
  267. package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
  268. package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
  269. package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
  270. package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
  271. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
  272. package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
  273. package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
  274. package/dist/vue_ui_bump-frnXaXul.js +0 -201
  275. package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
  276. package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
  277. package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
  278. package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
  279. package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
  280. package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
  281. package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
  282. package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
  283. package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
  284. package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
  285. package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
  286. package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
  287. package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
  288. package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
  289. package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
  290. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
  291. package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
  292. package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
  293. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
  294. package/dist/vue_ui_onion-DTV9cup-.js +0 -293
  295. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
  296. package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
  297. package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
  298. package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
  299. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
  300. package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
  301. package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
  302. package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
  303. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
  304. package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
  305. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
  306. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
  307. package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
  308. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
  309. package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
  310. package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
  311. package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
  312. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
  313. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
  314. package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
  315. package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
  316. package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
  317. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
  318. package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
  319. package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
  320. package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
  321. package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
  322. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
@@ -1,1391 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
- import { G as t, H as n, Ht as r, J as i, Lt as a, S as o, St as s, Tt as c, V as ee, X as l, i as te, ot as ne, r as re, t as ie, x as ae, y as oe, zt as se } from "./lib-BkiwukKO.js";
3
- import { t as ce } from "./useConfig-ByaaSKhz.js";
4
- import { t as le } from "./usePrinter-X0yWOynH.js";
5
- import { n as ue, t as de } from "./BaseScanner-C7dmAref.js";
6
- import { t as fe } from "./useSvgExport-Dtu973wa.js";
7
- import { t as pe } from "./useNestedProp-Ck4hsrpu.js";
8
- import { t as me } from "./useThemeCheck-rFK9Zlb_.js";
9
- import { t as he } from "./img-BjOr008R.js";
10
- import { n as ge } from "./Title-__gWq2g6.js";
11
- import { t as _e } from "./Shape-DEGOZ6GG.js";
12
- import { t as ve } from "./_plugin-vue_export-helper-Dq1MygBL.js";
13
- import { c as ye } from "./canvas-lib-DTaADQOK.js";
14
- import { t as be } from "./useResponsive-CrAInupd.js";
15
- import { t as xe } from "./A11yDataTable-q2-8fSlJ.js";
16
- import { t as Se } from "./useUserOptionState-CjPJPTg2.js";
17
- import { t as Ce } from "./useChartAccessibility-Do37qcw2.js";
18
- import { t as we } from "./Legend-Gg5Q4Clb.js";
19
- import { t as Te } from "./vue_ui_chord-DpyR_b9A.js";
20
- import { Fragment as u, Teleport as Ee, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Me, onMounted as Ne, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as T, toRefs as Ie, unref as E, useCssVars as Le, watch as Re, withCtx as D, withModifiers as ze } from "vue";
21
- //#region src/components/vue-ui-chord.vue
22
- var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue = ["id"], We = [
23
- "xmlns",
24
- "viewBox",
25
- "aria-describedby"
26
- ], Ge = ["width", "height"], Ke = { key: 1 }, qe = ["id", "d"], Je = { key: 2 }, Ye = ["transform"], Xe = [
27
- "d",
28
- "fill",
29
- "stroke",
30
- "stroke-width",
31
- "onMouseenter",
32
- "onMouseleave",
33
- "onClick"
34
- ], Ze = [
35
- "d",
36
- "fill",
37
- "stroke",
38
- "stroke-width"
39
- ], Qe = ["d", "fill"], $e = [
40
- "d",
41
- "fill",
42
- "stroke",
43
- "stroke-width",
44
- "onMouseenter",
45
- "onClick",
46
- "onMouseleave"
47
- ], et = [
48
- "d",
49
- "fill",
50
- "stroke",
51
- "stroke-width"
52
- ], tt = [
53
- "d",
54
- "fill",
55
- "stroke",
56
- "stroke-width"
57
- ], nt = [
58
- "d",
59
- "fill",
60
- "stroke",
61
- "stroke-width"
62
- ], rt = { key: 0 }, it = [
63
- "x1",
64
- "y1",
65
- "x2",
66
- "y2",
67
- "stroke",
68
- "stroke-width"
69
- ], at = [
70
- "x1",
71
- "y1",
72
- "x2",
73
- "y2",
74
- "stroke",
75
- "stroke-width"
76
- ], ot = [
77
- "cx",
78
- "cy",
79
- "r",
80
- "stroke",
81
- "stroke-width",
82
- "fill"
83
- ], st = [
84
- "transform",
85
- "fill",
86
- "text-anchor",
87
- "font-size",
88
- "font-weight"
89
- ], ct = { key: 1 }, lt = [
90
- "font-size",
91
- "font-weight",
92
- "fill"
93
- ], ut = ["href"], dt = [
94
- "transform",
95
- "text-anchor",
96
- "font-size",
97
- "font-weight",
98
- "fill",
99
- "innerHTML"
100
- ], ft = {
101
- key: 5,
102
- style: {
103
- position: "absolute",
104
- top: "100%",
105
- left: "0",
106
- width: "100%"
107
- },
108
- "data-dom-to-png-ignore": "",
109
- "aria-hidden": "true"
110
- }, pt = {
111
- key: 6,
112
- class: "vue-data-ui-watermark"
113
- }, mt = ["id"], ht = ["onClick"], gt = {
114
- key: 9,
115
- "data-dom-to-png-ignore": "",
116
- class: "reset-wrapper"
117
- }, _t = { style: {
118
- "text-align": "right",
119
- width: "100%"
120
- } }, vt = /* @__PURE__ */ ve({
121
- __name: "vue-ui-chord",
122
- props: {
123
- dataset: {
124
- type: Object,
125
- default() {
126
- return {};
127
- }
128
- },
129
- config: {
130
- type: Object,
131
- default() {
132
- return {};
133
- }
134
- }
135
- },
136
- emits: [
137
- "selectLegend",
138
- "selectGroup",
139
- "selectRibbon",
140
- "copyAlt"
141
- ],
142
- setup(e, { expose: ve, emit: Be }) {
143
- Le((e) => ({ v73ba9455: e.slicerColor }));
144
- let vt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), yt = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), bt = g(() => import("./DataTable-DmE8Oo4i.js")), xt = g(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), St = g(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Ct = g(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), wt = g(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = me(), O = e, Ot = Be, k = S(!!O.dataset && Object.hasOwn(O.dataset, "matrix")), A = S(n()), j = S(null), M = S(null), N = S(null), kt = S(0), P = S(null), At = S(null), jt = S(null), Mt = S(null), Nt = S(null), Pt = S(0), Ft = S(0), It = S(0), F = S(!1), I = Fe(null), L = Fe(null), Lt = S(!1), Rt = S(null), zt = S(null), Bt = S(!1), Vt = S(!1), R = S("group"), z = S(null), Ht = S(!1), B = S($t()), V = d(() => B.value.userOptions.useCursorPointer), Ut = d(() => se({
145
- defaultConfig: {
146
- useCssAnimation: !1,
147
- userOptions: { show: !1 },
148
- table: { show: !1 },
149
- style: { chart: {
150
- backgroundColor: "#99999930",
151
- legend: { backgroundColor: "transparent" },
152
- arcs: {
153
- stroke: "#6A6A6A",
154
- labels: { show: !1 }
155
- },
156
- ribbons: {
157
- stroke: "#6A6A6A",
158
- underlayerOpacity: 0,
159
- labels: { show: !1 }
160
- }
161
- } }
162
- },
163
- userConfig: B.value.skeletonConfig ?? {}
164
- })), { loading: Wt, FINAL_DATASET: H, manualLoading: Gt } = ue({
165
- ...Ie(O),
166
- FINAL_CONFIG: B,
167
- prepareConfig: $t,
168
- callback: () => {
169
- Promise.resolve().then(async () => {
170
- await je(), W.value.showTable = B.value.table.show;
171
- });
172
- },
173
- skeletonDataset: O.config?.skeletonDataset ?? {
174
- matrix: [
175
- [
176
- 12e3,
177
- 6e3,
178
- 9e3,
179
- 3e3
180
- ],
181
- [
182
- 2e3,
183
- 1e4,
184
- 2e3,
185
- 6001
186
- ],
187
- [
188
- 8e3,
189
- 1600,
190
- 8e3,
191
- 8001
192
- ],
193
- [
194
- 1e3,
195
- 1e3,
196
- 1e3,
197
- 7001
198
- ]
199
- ],
200
- labels: [],
201
- colors: [
202
- "#DBDBDB",
203
- "#C4C4C4",
204
- "#ADADAD",
205
- "#969696"
206
- ]
207
- },
208
- skeletonConfig: se({
209
- defaultConfig: B.value,
210
- userConfig: Ut.value
211
- })
212
- }), { userOptionsVisible: Kt, setUserOptionsVisibility: qt, keepUserOptionState: Jt } = Se({ config: B.value }), { svgRef: U } = Ce({ config: B.value.style.chart.title }), { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = le({
213
- elementId: `chord_${A.value}`,
214
- fileName: B.value.style.chart.title.text || "vue-ui-chord",
215
- options: B.value.userOptions.print
216
- }), W = S({ showTable: B.value.table.show });
217
- function $t() {
218
- let e = pe({
219
- userConfig: O.config,
220
- defaultConfig: Tt
221
- }), t = e.theme;
222
- if (!t) return e;
223
- if (!Et.value(e)) return Dt(e), e;
224
- let n = pe({
225
- userConfig: Te[t] || O.config,
226
- defaultConfig: e
227
- }), r = pe({
228
- userConfig: O.config,
229
- defaultConfig: n
230
- });
231
- return {
232
- ...r,
233
- customPalette: r.customPalette.length ? r.customPalette : a[t] || c
234
- };
235
- }
236
- Re(() => O.config, (e) => {
237
- Wt.value || (B.value = $t()), Kt.value = !B.value.userOptions.showOnChartHover, nn(), Pt.value += 1, Ft.value += 1, It.value += 1, Y.value = B.value.initialRotation, W.value.showTable = B.value.table.show;
238
- }, { deep: !0 });
239
- let en = d(() => B.value.debug);
240
- Re(() => O.dataset, () => {
241
- tn(), nn(), Pt.value += 1, Ft.value += 1, It.value += 1;
242
- });
243
- function tn() {
244
- if (s(O.dataset)) {
245
- l({
246
- componentName: "VueUiChord",
247
- type: "dataset",
248
- debug: en.value
249
- }), k.value = !1, Gt.value = !0;
250
- return;
251
- }
252
- let e = ne({
253
- datasetObject: O.dataset,
254
- requiredAttributes: ["matrix"]
255
- });
256
- if (e.length) {
257
- e.forEach((e) => {
258
- l({
259
- componentName: "VueUiChord",
260
- type: "datasetAttribute",
261
- property: e,
262
- debug: en.value
263
- });
264
- }), k.value = !1, Gt.value = !0;
265
- return;
266
- }
267
- let t = O.dataset.matrix;
268
- if (!Array.isArray(t) || t.length < 2) {
269
- console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1, Gt.value = !0;
270
- return;
271
- }
272
- let n = t.length, r = t.findIndex((e) => !Array.isArray(e) || e.length !== n);
273
- if (r !== -1) {
274
- console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${r} has ${Array.isArray(t[r]) ? t[r].length : "NaN"} elements instead of the required ${n}
275
-
276
- dataset.matrix[${r}] = [${Array.isArray(t[r]) ? t[r].toString() : "invalid"}]`), k.value = !1, Gt.value = !0;
277
- return;
278
- }
279
- k.value = !0, Gt.value = !1;
280
- }
281
- function nn() {
282
- if (tn(), B.value.responsive) {
283
- let e = ye(() => {
284
- let { width: e, height: t, heightNoTitle: n, heightSource: r, heightTitle: i, heightLegend: a } = be({
285
- chart: P.value,
286
- title: B.value.style.chart.title.text ? At.value : null,
287
- legend: B.value.style.chart.legend.show ? jt.value : null,
288
- source: Mt.value,
289
- noTitle: Nt.value
290
- }), o = i + a + r + n;
291
- e < t ? P.value.style.width = "100%" : (P.value.style.height = "100%", U.value.style.height = `calc(100% - ${o}px)`);
292
- }, 100);
293
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(e), L.value = P.value.parentNode, I.value.observe(L.value), e();
294
- }
295
- an.value = setTimeout(() => {
296
- F.value = !0;
297
- }, 500);
298
- }
299
- function rn() {
300
- if (!H.value || !Object.hasOwn(H.value, "matrix") || H.value.matrix.length < 2) {
301
- console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n\nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1;
302
- return;
303
- }
304
- H.value.matrix.forEach((e, t) => {
305
- e.length !== H.value.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${t} has ${e.length} elements instead of the required ${H.value.matrix.length}\n\ndataset.matrix[${t}] = [${e.toString()}] has a length of ${e.length} but should have the same length as the matrix itself (${H.value.matrix.length})`), k.value = !1);
306
- });
307
- }
308
- let an = S(null);
309
- Ne(() => {
310
- Lt.value = !0, nn();
311
- });
312
- let G = S({
313
- height: 600,
314
- width: 600
315
- }), on = d(() => B.value.userOptions.show && !B.value.style.chart.title.text), sn = d(() => ae(B.value.customPalette)), K = d(() => ({
316
- inner: G.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
317
- outer: G.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
318
- })), cn = d(() => B.value.style.chart.arcs.padAngle / 100), q = d(() => ({
319
- matrix: H.value.matrix ?? [[0]],
320
- labels: H.value.labels ?? [""],
321
- colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => oe(e)) : H.value.matrix.map((e, t) => sn.value[t] || c[t] || c[t % c.length])
322
- }));
323
- function ln(e, t) {
324
- let r = e.length, i = K.value.inner, a = Array(r).fill(0), o = 0;
325
- for (let t = 0; t < r; t += 1) for (let n = 0; n < r; n += 1) a[t] += e[t][n], o += e[t][n];
326
- let s = (2 * Math.PI - t * r) / o, c = [], ee = 0;
327
- for (let e = 0; e < r; e += 1) {
328
- let r = ee, i = r + a[e] * s;
329
- c.push({
330
- index: e,
331
- pattern: `pattern_${A.value}_${e}`,
332
- startAngle: r,
333
- endAngle: i,
334
- name: q.value.labels[e],
335
- id: n(),
336
- color: q.value.colors[e],
337
- proportion: a[e] / o
338
- }), ee = i + t;
339
- }
340
- let l = [];
341
- for (let t = 0; t < r; t += 1) {
342
- let n = e[t].map((e, t) => ({
343
- j: t,
344
- v: e
345
- }));
346
- n.sort((e, t) => t.v - e.v);
347
- let r = c[t].startAngle;
348
- for (let { j: e, v: a } of n) {
349
- let n = r, o = n + a * s;
350
- l.push({
351
- index: t,
352
- subIndex: e,
353
- pattern: `pattern_${A.value}_${t}`,
354
- startAngle: n,
355
- endAngle: o,
356
- value: a,
357
- groupName: q.value.labels[t],
358
- groupId: c[t].id,
359
- groupColor: q.value.colors[t],
360
- midAngle: (n + o) / 2,
361
- midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) * i,
362
- midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) * i
363
- }), r = o;
364
- }
365
- }
366
- let te = [];
367
- for (let e of l) {
368
- let t = l.find((t) => t.index === e.subIndex && t.subIndex === e.index);
369
- te.push({
370
- source: e,
371
- target: t,
372
- id: n()
373
- });
374
- }
375
- return {
376
- groups: c,
377
- chords: te
378
- };
379
- }
380
- let J = d(() => {
381
- let e = ln(q.value.matrix, cn.value);
382
- return rn(), e.chords.sort((e, t) => Math.max(t.source.value, t.target.value) - Math.max(e.source.value, e.target.value)), e;
383
- }), un = d(() => {
384
- let e = K.value.outer + B.value.style.chart.ribbons.labels.offset + 12, t = B.value.style.chart.ribbons.labels.fontSize * .6, n = [];
385
- if (M.value) {
386
- let r = M.value;
387
- if (r.source.value) {
388
- let i = String(r.source.value);
389
- n.push({
390
- id: r.id + "-src",
391
- theta: r.source.midAngle,
392
- w: i.length * t / e,
393
- midBaseX: r.source.midBaseX,
394
- midBaseY: r.source.midBaseY,
395
- groupColor: r.source.groupColor,
396
- value: r.source.value
397
- });
398
- }
399
- if (r.target && r.target.value && r.target.value !== r.source.value) {
400
- let i = String(r.target.value);
401
- n.push({
402
- id: r.id + "-tgt",
403
- theta: r.target.midAngle,
404
- w: i.length * t / e,
405
- midBaseX: r.target.midBaseX,
406
- midBaseY: r.target.midBaseY,
407
- groupColor: r.target.groupColor,
408
- value: r.target.value
409
- });
410
- }
411
- return n;
412
- }
413
- function r(r) {
414
- J.value.chords.filter((e) => e.source.groupId === r && e.source.value).forEach((r) => {
415
- {
416
- let i = String(r.source.value);
417
- n.push({
418
- id: r.id + "-src",
419
- theta: r.source.midAngle,
420
- w: i.length * t / e,
421
- midBaseX: r.source.midBaseX,
422
- midBaseY: r.source.midBaseY,
423
- groupColor: r.source.groupColor,
424
- value: r.source.value
425
- });
426
- }
427
- if (r.target && r.target.value && r.target.value !== r.source.value) {
428
- let i = String(r.target.value);
429
- n.push({
430
- id: r.id + "-tgt",
431
- theta: r.target.midAngle,
432
- w: i.length * t / e,
433
- midBaseX: r.target.midBaseX,
434
- midBaseY: r.target.midBaseY,
435
- groupColor: r.target.groupColor,
436
- value: r.target.value
437
- });
438
- }
439
- });
440
- }
441
- return N.value && r(N.value), j.value && r(j.value.id), n;
442
- }), dn = d(() => {
443
- let e = un.value.map((e) => ({ ...e })).sort((e, t) => e.theta - t.theta), t = B.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180, n = !0, r = 0;
444
- for (; n && r++ < 10;) {
445
- n = !1;
446
- for (let r = 1; r < e.length; r += 1) {
447
- let i = e[r - 1], a = e[r], o = i.theta + i.w + t;
448
- a.theta < o && (a.theta = o, n = !0);
449
- }
450
- let r = e[0], i = e[e.length - 1], a = i.theta + i.w + t - 2 * Math.PI;
451
- r.theta < a && (r.theta = a, n = !0);
452
- }
453
- return e;
454
- });
455
- function fn(e, t, n, r) {
456
- let i = e - Math.PI / 2, a = t - Math.PI / 2, o = Math.cos(i) * n, s = Math.sin(i) * n, c = Math.cos(a) * n, ee = Math.sin(a) * n, l = Math.cos(a) * r, te = Math.sin(a) * r, ne = Math.cos(i) * r, re = Math.sin(i) * r, ie = +(t - e > Math.PI);
457
- return `M${o},${s} A${n},${n} 0 ${ie} 1 ${c},${ee} L${l},${te} A${r},${r} 0 ${ie} 0 ${ne},${re} Z`;
458
- }
459
- function pn(e, t) {
460
- let n = K.value.inner, r = e.startAngle - Math.PI / 2, i = e.endAngle - Math.PI / 2, a = t.startAngle - Math.PI / 2, o = t.endAngle - Math.PI / 2, s = Math.cos(r) * n, c = Math.sin(r) * n, ee = Math.cos(i) * n, l = Math.sin(i) * n, te = Math.cos(a) * n, ne = Math.sin(a) * n, re = Math.cos(o) * n, ie = Math.sin(o) * n;
461
- return `M${s},${c}A${n},${n} 0 ${+(e.endAngle - e.startAngle > Math.PI)} 1 ${ee},${l}Q0,0 ${te},${ne}A${n},${n} 0 ${+(t.endAngle - t.startAngle > Math.PI)} 1 ${re},${ie}Q0,0 ${s},${c}Z`;
462
- }
463
- let mn = d(() => Y.value * Math.PI / 180);
464
- function hn(e) {
465
- return (e.startAngle + e.endAngle) / 2;
466
- }
467
- function gn(e) {
468
- return ((hn(e) + mn.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
469
- }
470
- function _n(e) {
471
- let t = e + mn.value;
472
- return t = (t % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), t > Math.PI ? "end" : "start";
473
- }
474
- function vn(e) {
475
- let t = e - Math.PI / 2;
476
- return `translate(${Math.cos(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)},${Math.sin(t) * (K.value.outer + B.value.style.chart.arcs.labels.offset + 24)})`;
477
- }
478
- function yn(e, t, n) {
479
- let r = e - Math.PI / 2, i = t - Math.PI / 2, a = Math.cos(r) * n, o = Math.sin(r) * n, s = Math.cos(i) * n, c = Math.sin(i) * n;
480
- return `M${a},${o} A${n},${n} 0 ${+(t - e > Math.PI)} 1 ${s},${c}`;
481
- }
482
- let Y = S(B.value.initialRotation), bn = S(!1), xn = 0, Sn = 0;
483
- function Cn(e) {
484
- let t = U.value.getBoundingClientRect(), n = t.left + t.width / 2, r = t.top + t.height / 2, i = e.clientX ?? e.touches[0].clientX, a = e.clientY ?? e.touches[0].clientY;
485
- return Math.atan2(a - r, i - n);
486
- }
487
- function wn(e) {
488
- !B.value.enableRotation || X.value || (e.preventDefault(), bn.value = !0, xn = Y.value, Sn = Cn(e));
489
- }
490
- function Tn(e) {
491
- if (!bn.value) return;
492
- let t = Cn(e);
493
- Y.value = xn + (t - Sn) * 180 / Math.PI;
494
- }
495
- function En() {
496
- bn.value = !1;
497
- }
498
- function Dn(e) {
499
- return te(B.value.style.chart.ribbons.labels.formatter, e, t({
500
- p: B.value.style.chart.ribbons.labels.prefix,
501
- v: e,
502
- s: B.value.style.chart.ribbons.labels.suffix,
503
- r: B.value.style.chart.ribbons.labels.rounding
504
- }));
505
- }
506
- Ne(() => {
507
- window.addEventListener("mousemove", Tn), window.addEventListener("mouseup", En), window.addEventListener("touchmove", Tn, { passive: !1 }), window.addEventListener("touchend", En);
508
- }), Me(() => {
509
- window.removeEventListener("mousemove", Tn), window.removeEventListener("mouseup", En), window.removeEventListener("touchmove", Tn), window.removeEventListener("touchend", En), clearTimeout(an.value), I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
510
- });
511
- let On = S(!1);
512
- function kn(e) {
513
- On.value = e, kt.value += 1;
514
- }
515
- function An(e, t) {
516
- B.value.events.datapointEnter && B.value.events.datapointEnter({
517
- datapoint: e,
518
- seriesIndex: t
519
- }), !N.value && (j.value = e);
520
- }
521
- function jn(e, t) {
522
- j.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
523
- datapoint: e,
524
- seriesIndex: t
525
- });
526
- }
527
- function Mn(e, t) {
528
- Ot("selectGroup", e), B.value.events.datapointClick && B.value.events.datapointClick({
529
- datapoint: e,
530
- seriesIndex: t
531
- });
532
- }
533
- function Nn(e, t) {
534
- B.value.events.datapointEnter && B.value.events.datapointEnter({
535
- datapoint: e,
536
- seriesIndex: t
537
- }), !N.value && (M.value = e);
538
- }
539
- function Pn(e, t) {
540
- M.value = null, B.value.events.datapointLeave && B.value.events.datapointLeave({
541
- datapoint: e,
542
- seriesIndex: t
543
- });
544
- }
545
- function Fn(e, t) {
546
- Ot("selectRibbon", e), B.value.events.datapointClick && B.value.events.datapointClick({
547
- datapoint: e,
548
- seriesIndex: t
549
- });
550
- }
551
- function In(e) {
552
- return !N.value && !j.value && !M.value ? .8 : (N.value ? N.value === e.source.groupId : j.value ? j.value.id === e.source.groupId : M.value?.id === e.id) ? 1 : .1;
553
- }
554
- function Ln(e) {
555
- return !N.value && !j.value && !M.value || (N.value ? N.value === e.id : j.value ? j.value.id === e.id : [M.value?.source.groupId, M.value?.target.groupId].includes(e.id)) ? 1 : .3;
556
- }
557
- let X = S(!1);
558
- function Rn() {
559
- X.value = !X.value;
560
- }
561
- function zn() {
562
- W.value.showTable = !W.value.showTable;
563
- }
564
- function Bn() {
565
- return J.value;
566
- }
567
- let Z = S(null);
568
- function Vn() {
569
- let e = B.value.initialRotation;
570
- Z.value !== null && cancelAnimationFrame(Z.value);
571
- let t = () => {
572
- Y.value += (e - Y.value) * .05, Math.abs(Y.value - e) < .1 ? (Y.value = e, Z.value = null) : Z.value = requestAnimationFrame(t);
573
- };
574
- Z.value = requestAnimationFrame(t);
575
- }
576
- Me(() => {
577
- Z.value !== null && cancelAnimationFrame(Z.value);
578
- });
579
- function Hn(e) {
580
- e === N.value ? (N.value = null, Ot("selectLegend", null)) : (N.value = e, Ot("selectLegend", J.value.groups.find((t) => t.id === e)));
581
- }
582
- let Un = d(() => J.value.groups.map((e, t) => ({
583
- name: e.name,
584
- color: e.color,
585
- shape: "circle",
586
- patternIndex: t,
587
- pattern: `pattern_${A.value}_${t}`,
588
- id: e.id,
589
- select: () => Hn(e.id),
590
- opacity: N.value ? N.value === e.id ? 1 : .3 : 1
591
- }))), Wn = d(() => ({
592
- cy: "chord-div-legend",
593
- backgroundColor: B.value.style.chart.legend.backgroundColor,
594
- color: B.value.style.chart.legend.color,
595
- fontSize: B.value.style.chart.legend.fontSize,
596
- paddingBottom: 12,
597
- fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
598
- })), Q = d(() => ({
599
- head: J.value.groups.map((e, t) => ({
600
- name: e.name || t,
601
- color: e.color
602
- })),
603
- body: q.value.matrix
604
- })), Gn = d(() => {
605
- let e = [{
606
- name: "",
607
- color: null
608
- }, ...Q.value.head];
609
- return {
610
- colNames: e,
611
- head: e,
612
- body: Q.value.body.map((e, t) => [Q.value.head[t], ...Q.value.body[t]]),
613
- config: {
614
- th: {
615
- backgroundColor: B.value.table.th.backgroundColor,
616
- color: B.value.table.th.color,
617
- outline: B.value.table.th.outline
618
- },
619
- td: {
620
- backgroundColor: B.value.table.td.backgroundColor,
621
- color: B.value.table.td.color,
622
- outline: B.value.table.td.outline
623
- },
624
- breakpoint: B.value.table.responsiveBreakpoint
625
- }
626
- };
627
- });
628
- function Kn(e = null) {
629
- je(() => {
630
- let t = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), n = o([
631
- [B.value.style.chart.title.text],
632
- [B.value.style.chart.title.subtitle.text],
633
- [[""], ...q.value.labels.map((e, t) => [e || t])]
634
- ].concat(t));
635
- e ? e(n) : i({
636
- csvContent: n,
637
- title: B.value.style.chart.title.text || "vue-ui-chord"
638
- });
639
- });
640
- }
641
- async function qn({ scale: e = 2 } = {}) {
642
- if (!P.value) return;
643
- let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
644
- domElement: P.value,
645
- base64: !0,
646
- img: !0,
647
- scale: e
648
- });
649
- return {
650
- imageUri: i,
651
- base64: a,
652
- title: B.value.style.chart.title.text,
653
- width: t,
654
- height: n,
655
- aspectRatio: r
656
- };
657
- }
658
- function Jn(e, n) {
659
- return `${q.value.labels[n]}${B.value.style.chart.arcs.labels.showPercentage ? t({
660
- p: " (",
661
- v: isNaN(e.proportion) ? 0 : e.proportion * 100,
662
- s: "%)",
663
- r: B.value.style.chart.arcs.labels.roundingPercentage
664
- }) : ""}`;
665
- }
666
- let Yn = d(() => {
667
- let e = B.value.table.useDialog && !B.value.table.show, t = W.value.showTable;
668
- return {
669
- component: e ? wt : vt,
670
- title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
671
- props: e ? {
672
- backgroundColor: B.value.table.th.backgroundColor,
673
- color: B.value.table.th.color,
674
- headerColor: B.value.table.th.color,
675
- headerBg: B.value.table.th.backgroundColor,
676
- isFullscreen: On.value,
677
- fullscreenParent: P.value,
678
- forcedWidth: Math.min(800, window.innerWidth * .8),
679
- isCursorPointer: V.value
680
- } : {
681
- hideDetails: !0,
682
- config: {
683
- open: t,
684
- maxHeight: 1e4,
685
- body: {
686
- backgroundColor: B.value.style.chart.backgroundColor,
687
- color: B.value.style.chart.color
688
- },
689
- head: {
690
- backgroundColor: B.value.style.chart.backgroundColor,
691
- color: B.value.style.chart.color
692
- }
693
- }
694
- }
695
- };
696
- });
697
- Re(() => W.value.showTable, (e) => {
698
- B.value.table.show || (e && B.value.table.useDialog && Rt.value ? Rt.value.open() : "close" in Rt.value && Rt.value.close());
699
- });
700
- function Xn() {
701
- W.value.showTable = !1, zt.value && zt.value.setTableIconState(!1);
702
- }
703
- let Zn = d(() => B.value.style.chart.backgroundColor), Qn = d(() => B.value.style.chart.legend), { exportSvg: $n, getSvg: er } = fe({
704
- svg: U,
705
- title: d(() => B.value.style.chart.title),
706
- legend: Qn,
707
- legendItems: Un,
708
- backgroundColor: Zn
709
- });
710
- async function tr({ isCb: e }) {
711
- Vt.value = !0, await je();
712
- try {
713
- if (e) {
714
- let { blob: e, url: t, text: n, dataUrl: r } = await er();
715
- await Promise.resolve(B.value.userOptions.callbacks.svg({
716
- blob: e,
717
- url: t,
718
- text: n,
719
- dataUrl: r
720
- }));
721
- } else await Promise.resolve($n());
722
- } finally {
723
- Vt.value = !1;
724
- }
725
- }
726
- function nr(e) {
727
- if (e?.stage === "start") {
728
- Bt.value = !0;
729
- return;
730
- }
731
- if (e?.stage === "end") {
732
- Bt.value = !1;
733
- return;
734
- }
735
- Qt();
736
- }
737
- async function rr() {
738
- if (Ot("copyAlt", {
739
- config: B.value,
740
- dataset: q.value
741
- }), !B.value.userOptions.callbacks.altCopy) {
742
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
743
- return;
744
- }
745
- await Promise.resolve(B.value.userOptions.callbacks.altCopy({
746
- config: B.value,
747
- dataset: q.value
748
- }));
749
- }
750
- let ir = d(() => (j.value ? J.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? J.value.chords.filter((e) => e.source.groupId === N.value) : J.value.chords).filter((e) => e.source.value)), $ = d(() => ({
751
- groups: J.value.groups.map((e, t) => ({
752
- type: "group",
753
- index: t,
754
- item: e
755
- })),
756
- ribbons: ir.value.map((e, t) => ({
757
- type: "ribbon",
758
- index: t,
759
- item: {
760
- ...e,
761
- path: pn(e.source, e.target),
762
- color: q.value.colors[e.source.index]
763
- }
764
- }))
765
- })), ar = d(() => ({
766
- headers: ["", ...Q.value.head.map((e) => e.name)],
767
- rows: Q.value.body.map((e, t) => [Q.value.head[t]?.name ?? `${t}`, ...e.map((e) => Dn(e))])
768
- }));
769
- function or(e) {
770
- let t = $.value.groups[e];
771
- t && (R.value = "group", z.value = e, M.value = null, j.value = t.item);
772
- }
773
- function sr(e) {
774
- let t = $.value.ribbons[e];
775
- t && (R.value = "ribbon", z.value = e, j.value = null, M.value = t.item);
776
- }
777
- function cr() {
778
- z.value = null, R.value = "group", j.value = null, M.value = null;
779
- }
780
- function lr() {
781
- Ht.value = !0, R.value = "group", z.value = null;
782
- }
783
- function ur() {
784
- Ht.value = !1, cr();
785
- }
786
- function dr(e) {
787
- if (!U.value || X.value || document.activeElement !== U.value) return;
788
- let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
789
- if (!t && !n && !r && !i && !a && !o) return;
790
- if (e.preventDefault(), e.stopPropagation(), o) {
791
- cr();
792
- return;
793
- }
794
- if (r) {
795
- R.value = "group", $.value.groups.length && or(z.value === null ? 0 : Math.min(z.value, $.value.groups.length - 1));
796
- return;
797
- }
798
- if (i) {
799
- if (!$.value.ribbons.length) return;
800
- R.value = "ribbon", sr(z.value === null ? 0 : Math.min(z.value, $.value.ribbons.length - 1));
801
- return;
802
- }
803
- if (a) {
804
- if (R.value === "group") {
805
- let e = $.value.groups[z.value];
806
- e && Mn(e.item, e.index);
807
- } else {
808
- let e = $.value.ribbons[z.value];
809
- e && Fn(e.item, e.index);
810
- }
811
- return;
812
- }
813
- let s = R.value === "group" ? $.value.groups : $.value.ribbons;
814
- if (!s.length) return;
815
- let c = z.value;
816
- c === null || c < 0 || c >= s.length ? c = n ? 0 : s.length - 1 : n ? (c += 1, c >= s.length && (c = 0)) : t && (--c, c < 0 && (c = s.length - 1)), R.value === "group" ? or(c) : sr(c);
817
- }
818
- return ve({
819
- getData: Bn,
820
- getImage: qn,
821
- generateCsv: Kn,
822
- generateImage: Qt,
823
- generateSvg: tr,
824
- generatePdf: Zt,
825
- toggleAnnotator: Rn,
826
- toggleTable: zn,
827
- toggleFullscreen: kn,
828
- copyAlt: rr
829
- }), (e, n) => (x(), m("div", {
830
- ref_key: "chordChart",
831
- ref: P,
832
- class: v({
833
- "vue-data-ui-component": !0,
834
- "vue-ui-chord": !0,
835
- "vue-data-ui-wrapper-fullscreen": On.value,
836
- "vue-data-ui-responsive": B.value.responsive
837
- }),
838
- style: b(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.chart.backgroundColor}`),
839
- id: `chord_${A.value}`,
840
- onMouseenter: n[2] ||= () => E(qt)(!0),
841
- onMouseleave: n[3] ||= () => E(qt)(!1)
842
- }, [
843
- h("div", {
844
- id: `chart-instructions-${A.value}`,
845
- class: "sr-only"
846
- }, [h("p", null, T(B.value.a11y.translations.keyboardNavigation), 1)], 8, He),
847
- ar.value?.rows?.length ? (x(), f(xe, {
848
- key: 0,
849
- uid: A.value,
850
- head: ar.value.headers,
851
- body: ar.value.rows,
852
- notice: B.value.a11y.translations.tableAvailable,
853
- caption: B.value.a11y.translations.tableCaption
854
- }, null, 8, [
855
- "uid",
856
- "head",
857
- "body",
858
- "notice",
859
- "caption"
860
- ])) : p("", !0),
861
- B.value.userOptions.buttons.annotator && E(U) ? (x(), f(E(St), {
862
- key: 1,
863
- color: B.value.style.chart.color,
864
- backgroundColor: B.value.style.chart.backgroundColor,
865
- active: X.value,
866
- svgRef: E(U),
867
- isCursorPointer: V.value,
868
- onClose: Rn
869
- }, {
870
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
871
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
872
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
873
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
874
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
875
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
876
- _: 3
877
- }, 8, [
878
- "color",
879
- "backgroundColor",
880
- "active",
881
- "svgRef",
882
- "isCursorPointer"
883
- ])) : p("", !0),
884
- w(e.$slots, "userConfig", {}, void 0, !0),
885
- on.value ? (x(), m("div", {
886
- key: 2,
887
- ref_key: "noTitle",
888
- ref: Nt,
889
- class: "vue-data-ui-no-title-space",
890
- style: "height:36px; width: 100%;background:transparent"
891
- }, null, 512)) : p("", !0),
892
- B.value.style.chart.title.text ? (x(), m("div", {
893
- key: 3,
894
- ref_key: "chartTitle",
895
- ref: At,
896
- style: "width:100%;background:transparent;padding-bottom:24px"
897
- }, [(x(), f(ge, {
898
- key: `title_${Pt.value}`,
899
- config: {
900
- title: {
901
- cy: "chord-div-title",
902
- ...B.value.style.chart.title
903
- },
904
- subtitle: {
905
- cy: "chord-div-subtitle",
906
- ...B.value.style.chart.title.subtitle
907
- }
908
- }
909
- }, null, 8, ["config"]))], 512)) : p("", !0),
910
- h("div", { id: `legend-top-${A.value}` }, null, 8, Ue),
911
- B.value.userOptions.show && k.value && (E(Jt) || E(Kt)) ? (x(), f(E(Ct), {
912
- ref_key: "userOptionsRef",
913
- ref: zt,
914
- key: `user_option_${kt.value}`,
915
- backgroundColor: B.value.style.chart.backgroundColor,
916
- color: B.value.style.chart.color,
917
- isPrinting: E(Yt),
918
- isImaging: E(Xt),
919
- uid: A.value,
920
- hasTooltip: !1,
921
- hasPdf: B.value.userOptions.buttons.pdf,
922
- hasImg: B.value.userOptions.buttons.img,
923
- hasSvg: B.value.userOptions.buttons.svg,
924
- hasXls: B.value.userOptions.buttons.csv,
925
- hasTable: B.value.userOptions.buttons.table,
926
- hasLabel: !1,
927
- hasFullscreen: B.value.userOptions.buttons.fullscreen,
928
- hasAltCopy: B.value.userOptions.buttons.altCopy,
929
- isFullscreen: On.value,
930
- chartElement: P.value,
931
- position: B.value.userOptions.position,
932
- titles: { ...B.value.userOptions.buttonTitles },
933
- hasAnnotator: B.value.userOptions.buttons.annotator,
934
- isAnnotation: X.value,
935
- callbacks: B.value.userOptions.callbacks,
936
- printScale: B.value.userOptions.print.scale,
937
- tableDialog: B.value.table.useDialog,
938
- isCursorPointer: V.value,
939
- onToggleFullscreen: kn,
940
- onGeneratePdf: E(Zt),
941
- onGenerateCsv: Kn,
942
- onGenerateImage: nr,
943
- onGenerateSvg: tr,
944
- onToggleTable: zn,
945
- onToggleAnnotator: Rn,
946
- onCopyAlt: rr,
947
- style: b({ visibility: E(Jt) ? E(Kt) ? "visible" : "hidden" : "visible" })
948
- }, De({ _: 2 }, [
949
- e.$slots.menuIcon ? {
950
- name: "menuIcon",
951
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
952
- isOpen: t,
953
- color: n
954
- })), void 0, !0)]),
955
- key: "0"
956
- } : void 0,
957
- e.$slots.optionPdf ? {
958
- name: "optionPdf",
959
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
960
- key: "1"
961
- } : void 0,
962
- e.$slots.optionCsv ? {
963
- name: "optionCsv",
964
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
965
- key: "2"
966
- } : void 0,
967
- e.$slots.optionImg ? {
968
- name: "optionImg",
969
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
970
- key: "3"
971
- } : void 0,
972
- e.$slots.optionSvg ? {
973
- name: "optionSvg",
974
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
975
- key: "4"
976
- } : void 0,
977
- e.$slots.optionTable ? {
978
- name: "optionTable",
979
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
980
- key: "5"
981
- } : void 0,
982
- e.$slots.optionFullscreen ? {
983
- name: "optionFullscreen",
984
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
985
- toggleFullscreen: t,
986
- isFullscreen: n
987
- })), void 0, !0)]),
988
- key: "6"
989
- } : void 0,
990
- e.$slots.optionAnnotator ? {
991
- name: "optionAnnotator",
992
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
993
- toggleAnnotator: t,
994
- isAnnotator: n
995
- })), void 0, !0)]),
996
- key: "7"
997
- } : void 0,
998
- e.$slots.optionAltCopy ? {
999
- name: "optionAltCopy",
1000
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1001
- key: "8"
1002
- } : void 0,
1003
- e.$slots["custom-menu-before"] ? {
1004
- name: "custom-menu-before",
1005
- fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1006
- key: "9"
1007
- } : void 0,
1008
- e.$slots["custom-menu-after"] ? {
1009
- name: "custom-menu-after",
1010
- fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1011
- key: "10"
1012
- } : void 0
1013
- ]), 1032, [
1014
- "backgroundColor",
1015
- "color",
1016
- "isPrinting",
1017
- "isImaging",
1018
- "uid",
1019
- "hasPdf",
1020
- "hasImg",
1021
- "hasSvg",
1022
- "hasXls",
1023
- "hasTable",
1024
- "hasFullscreen",
1025
- "hasAltCopy",
1026
- "isFullscreen",
1027
- "chartElement",
1028
- "position",
1029
- "titles",
1030
- "hasAnnotator",
1031
- "isAnnotation",
1032
- "callbacks",
1033
- "printScale",
1034
- "tableDialog",
1035
- "isCursorPointer",
1036
- "onGeneratePdf",
1037
- "style"
1038
- ])) : p("", !0),
1039
- (x(), m("svg", {
1040
- xmlns: E(ie),
1041
- ref_key: "svgRef",
1042
- ref: U,
1043
- viewBox: `0 0 ${G.value.width} ${G.value.height}`,
1044
- "aria-describedby": `chart-instructions-${A.value}`,
1045
- tabindex: "0",
1046
- preserveAspectRatio: "xMidYMid meet",
1047
- style: { overflow: "visible" },
1048
- class: v({
1049
- "vue-ui-chord-rotating": bn.value,
1050
- "vue-ui-chord-idle": !bn.value
1051
- }),
1052
- onMousedown: ze(wn, ["prevent"]),
1053
- onTouchstart: ze(wn, ["prevent"]),
1054
- onFocus: lr,
1055
- onBlur: ur,
1056
- onKeydown: dr
1057
- }, [
1058
- ke(E(xt)),
1059
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1060
- key: 0,
1061
- x: 0,
1062
- y: 0,
1063
- width: G.value.width <= 0 ? 10 : G.value.width,
1064
- height: G.value.height <= 0 ? 10 : G.value.height,
1065
- style: { pointerEvents: "none" }
1066
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
1067
- B.value.style.chart.arcs.labels.curved ? (x(), m("defs", Ke, [(x(!0), m(u, null, C(J.value.groups, (e, t) => (x(), m("path", {
1068
- key: `labelPath-${t}`,
1069
- id: `labelPath-${t}_${A.value}`,
1070
- d: yn(e.startAngle, e.endAngle, (K.value.inner + K.value.outer) / 2 + B.value.style.chart.arcs.labels.offset),
1071
- fill: "none"
1072
- }, null, 8, qe))), 128))])) : p("", !0),
1073
- e.$slots.pattern ? (x(), m("g", Je, [(x(!0), m(u, null, C(J.value.groups, (t, n) => (x(), m("defs", null, [w(e.$slots, "pattern", Ae({ ref_for: !0 }, {
1074
- seriesIndex: t.index,
1075
- patternId: `pattern_${A.value}_${n}`
1076
- }), void 0, !0)]))), 256))])) : p("", !0),
1077
- h("g", { transform: `translate(${G.value.width / 2}, ${G.value.height / 2}) rotate(${Y.value})` }, [
1078
- (x(!0), m(u, null, C(J.value.groups, (t, n) => (x(), m("g", null, [(x(), m("path", {
1079
- class: v({
1080
- "vue-ui-chord-arc": !0,
1081
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1082
- }),
1083
- key: `arc-${n}`,
1084
- d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1085
- fill: q.value.colors[n],
1086
- stroke: B.value.style.chart.arcs.stroke,
1087
- "stroke-width": B.value.style.chart.arcs.strokeWidth,
1088
- "stroke-linecap": "round",
1089
- "stroke-linejoin": "round",
1090
- style: b({ opacity: Ln(t) }),
1091
- onMouseenter: (e) => An(t, n),
1092
- onMouseleave: (e) => jn(t, n),
1093
- onClick: (e) => Mn(t, n)
1094
- }, null, 46, Xe)), e.$slots.pattern ? (x(), m("path", {
1095
- class: v({
1096
- "vue-ui-chord-arc": !0,
1097
- "vue-ui-chord-arc-animated": B.value.useCssAnimation && !F.value
1098
- }),
1099
- key: `arc-${n}`,
1100
- d: fn(t.startAngle, t.endAngle, K.value.outer, K.value.inner),
1101
- fill: `url(#${t.pattern})`,
1102
- stroke: B.value.style.chart.arcs.stroke,
1103
- "stroke-width": B.value.style.chart.arcs.strokeWidth,
1104
- "stroke-linecap": "round",
1105
- "stroke-linejoin": "round",
1106
- style: b({
1107
- opacity: Ln(t),
1108
- pointerEvents: "none"
1109
- })
1110
- }, null, 14, Ze)) : p("", !0)]))), 256)),
1111
- h("g", null, [
1112
- (x(!0), m(u, null, C(j.value ? J.value.chords.filter((e) => e.source.groupId === j.value.id) : N.value ? J.value.chords.filter((e) => e.source.groupId === N.value) : J.value.chords, (t, n) => (x(), m(u, { key: `ribbon-${t.id}` }, [
1113
- t.source.value ? (x(), m("path", {
1114
- key: 0,
1115
- class: v({
1116
- "vue-ui-chord-ribbon": !0,
1117
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1118
- }),
1119
- d: pn(t.source, t.target),
1120
- fill: B.value.style.chart.backgroundColor,
1121
- style: b({ opacity: B.value.style.chart.ribbons.underlayerOpacity })
1122
- }, null, 14, Qe)) : p("", !0),
1123
- t.source.value ? (x(), m("path", {
1124
- key: 1,
1125
- class: v({
1126
- "vue-ui-chord-ribbon": !0,
1127
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1128
- }),
1129
- d: pn(t.source, t.target),
1130
- fill: q.value.colors[t.source.index],
1131
- stroke: B.value.style.chart.ribbons.stroke,
1132
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1133
- "stroke-linecap": "round",
1134
- "stroke-linejoin": "round",
1135
- style: b({ opacity: In(t) }),
1136
- onMouseenter: (e) => Nn({
1137
- ...t,
1138
- path: pn(t.source, t.target),
1139
- color: q.value.colors[t.source.index]
1140
- }, n),
1141
- onClick: (e) => Fn({
1142
- ...t,
1143
- color: q.value.colors[t.source.index]
1144
- }, n),
1145
- onMouseleave: (e) => Pn({
1146
- ...t,
1147
- color: q.value.colors[t.source.index]
1148
- }, n)
1149
- }, null, 46, $e)) : p("", !0),
1150
- t.source.value && e.$slots.pattern ? (x(), m("path", {
1151
- key: 2,
1152
- class: v({
1153
- "vue-ui-chord-ribbon": !0,
1154
- "vue-ui-chord-ribbon-animated": B.value.useCssAnimation && !F.value
1155
- }),
1156
- d: pn(t.source, t.target),
1157
- fill: `url(#pattern_${A.value}_${t.source.index})`,
1158
- stroke: B.value.style.chart.ribbons.stroke,
1159
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1160
- "stroke-linecap": "round",
1161
- "stroke-linejoin": "round",
1162
- style: b({
1163
- opacity: In(t),
1164
- pointerEvents: "none"
1165
- })
1166
- }, null, 14, et)) : p("", !0)
1167
- ], 64))), 128)),
1168
- M.value ? (x(), m("path", {
1169
- key: 0,
1170
- d: M.value.path,
1171
- fill: M.value.color,
1172
- stroke: B.value.style.chart.ribbons.stroke,
1173
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1174
- "stroke-linecap": "round",
1175
- "stroke-linejoin": "round",
1176
- class: v({ "vue-ui-chord-ribbon": !0 }),
1177
- style: { pointerEvents: "none" }
1178
- }, null, 8, tt)) : p("", !0),
1179
- M.value && e.$slots.pattern ? (x(), m("path", {
1180
- key: 1,
1181
- d: M.value.path,
1182
- fill: `url(#${M.value.source.pattern})`,
1183
- stroke: B.value.style.chart.ribbons.stroke,
1184
- "stroke-width": B.value.style.chart.ribbons.strokeWidth,
1185
- "stroke-linecap": "round",
1186
- "stroke-linejoin": "round",
1187
- class: v({ "vue-ui-chord-ribbon": !0 }),
1188
- style: { pointerEvents: "none" }
1189
- }, null, 8, nt)) : p("", !0)
1190
- ]),
1191
- (j.value || M.value || N.value) && B.value.style.chart.ribbons.labels.show ? (x(), m("g", rt, [(x(!0), m(u, null, C(dn.value, (e) => (x(), m(u, { key: e.id }, [
1192
- h("line", {
1193
- x1: e.midBaseX,
1194
- y1: e.midBaseY,
1195
- x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1196
- y2: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1197
- stroke: B.value.style.chart.backgroundColor,
1198
- "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
1199
- "pointer-events": "none"
1200
- }, null, 8, it),
1201
- h("line", {
1202
- x1: e.midBaseX,
1203
- y1: e.midBaseY,
1204
- x2: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1205
- y2: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1206
- stroke: B.value.style.chart.ribbons.labels.connector.stroke,
1207
- "stroke-width": B.value.style.chart.ribbons.labels.connector.strokeWidth,
1208
- "pointer-events": "none"
1209
- }, null, 8, at),
1210
- B.value.style.chart.ribbons.labels.marker.show ? (x(), m("circle", {
1211
- key: 0,
1212
- cx: Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1213
- cy: Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 12),
1214
- r: B.value.style.chart.ribbons.labels.marker.radius,
1215
- stroke: B.value.style.chart.ribbons.labels.marker.stroke,
1216
- "stroke-width": B.value.style.chart.ribbons.labels.marker.strokeWidth,
1217
- fill: e.groupColor,
1218
- "pointer-events": "none"
1219
- }, null, 8, ot)) : p("", !0),
1220
- h("text", {
1221
- transform: `
1222
- translate(
1223
- ${Math.cos(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)},
1224
- ${Math.sin(e.theta - Math.PI / 2) * (K.value.outer + B.value.style.chart.ribbons.labels.offset + 24)}
1225
- ) rotate(${-Y.value})
1226
- `,
1227
- fill: B.value.style.chart.ribbons.labels.useSerieColor ? e.groupColor : B.value.style.chart.ribbons.labels.color,
1228
- "text-anchor": _n(e.theta),
1229
- "font-size": B.value.style.chart.ribbons.labels.fontSize,
1230
- "font-weight": B.value.style.chart.ribbons.labels.bold ? "bold" : "normal",
1231
- dy: ".35em",
1232
- "pointer-events": "none"
1233
- }, T(Dn(e.value)), 9, st)
1234
- ], 64))), 128))])) : p("", !0),
1235
- B.value.style.chart.arcs.labels.show ? (x(), m("g", ct, [B.value.style.chart.arcs.labels.curved ? (x(!0), m(u, { key: 0 }, C(J.value.groups, (e, n) => (x(), m("text", {
1236
- class: "vue-ui-chord-label-curved",
1237
- key: `curved-label-${n}`,
1238
- "font-size": B.value.style.chart.arcs.labels.fontSize,
1239
- "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1240
- fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? E(re)(q.value.colors[n]) : B.value.style.chart.arcs.labels.color
1241
- }, [h("textPath", {
1242
- href: `#labelPath-${n}_${A.value}`,
1243
- startOffset: "50%",
1244
- "text-anchor": "middle"
1245
- }, T(q.value.labels[n]) + T(B.value.style.chart.arcs.labels.showPercentage ? E(t)({
1246
- p: " (",
1247
- v: isNaN(e.proportion) ? 0 : e.proportion * 100,
1248
- s: "%)",
1249
- r: B.value.style.chart.arcs.labels.roundingPercentage
1250
- }) : ""), 9, ut)], 8, lt))), 128)) : !j.value && !M.value && !N.value ? (x(!0), m(u, { key: 1 }, C(J.value.groups, (e, t) => (x(), m("text", {
1251
- class: "vue-ui-chord-label-straight",
1252
- key: `label-${t}`,
1253
- transform: `
1254
- ${vn((e.startAngle + e.endAngle) / 2)}
1255
- rotate(${-Y.value})
1256
- `,
1257
- dy: ".35em",
1258
- "text-anchor": gn(e) > Math.PI ? "end" : "start",
1259
- "font-size": B.value.style.chart.arcs.labels.fontSize,
1260
- "font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
1261
- fill: B.value.style.chart.arcs.labels.color,
1262
- innerHTML: E(ee)({
1263
- content: E(r)(Jn(e, t)),
1264
- fontSize: B.value.style.chart.arcs.labels.fontSize,
1265
- fill: B.value.style.chart.arcs.labels.color,
1266
- x: 0,
1267
- y: 0
1268
- })
1269
- }, null, 8, dt))), 128)) : p("", !0)])) : p("", !0)
1270
- ], 8, Ye),
1271
- w(e.$slots, "svg", { svg: {
1272
- height: 600,
1273
- width: 600,
1274
- isPrintingImg: E(Yt) || E(Xt) || Bt.value,
1275
- isPrintingSvg: Vt.value
1276
- } }, void 0, !0)
1277
- ], 42, We)),
1278
- e.$slots.hint ? (x(), m("div", ft, [w(e.$slots, "hint", y(_({
1279
- hint: B.value.a11y.translations.keyboardNavigation,
1280
- isVisible: Ht.value
1281
- })), void 0, !0)])) : p("", !0),
1282
- e.$slots.watermark ? (x(), m("div", pt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Yt) || E(Xt) || Bt.value || Vt.value })), void 0, !0)])) : p("", !0),
1283
- h("div", { id: `legend-bottom-${A.value}` }, null, 8, mt),
1284
- Lt.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Ee, {
1285
- key: 7,
1286
- to: B.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
1287
- }, [h("div", {
1288
- ref_key: "chartLegend",
1289
- ref: jt
1290
- }, [w(e.$slots, "legend", { legend: Un.value }, () => [B.value.style.chart.legend.show ? (x(), f(we, {
1291
- key: `legend_${It.value}`,
1292
- legendSet: Un.value,
1293
- config: Wn.value,
1294
- isCursorPointer: V.value,
1295
- onClickMarker: n[0] ||= ({ legend: e }) => Hn(e.id)
1296
- }, De({
1297
- item: D(({ legend: e }) => [h("div", {
1298
- style: b({ opacity: N.value ? N.value === e.id ? 1 : .3 : 1 }),
1299
- onClick: (t) => e.select()
1300
- }, T(e.name), 13, ht)]),
1301
- _: 2
1302
- }, [e.$slots.pattern ? {
1303
- name: "legend-pattern",
1304
- fn: D(({ legend: e, index: t }) => [ke(_e, {
1305
- shape: e.shape,
1306
- radius: 30,
1307
- stroke: "none",
1308
- plot: {
1309
- x: 30,
1310
- y: 30
1311
- },
1312
- fill: `url(#pattern_${A.value}_${t})`
1313
- }, null, 8, ["shape", "fill"])]),
1314
- key: "0"
1315
- } : void 0]), 1032, [
1316
- "legendSet",
1317
- "config",
1318
- "isCursorPointer"
1319
- ])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
1320
- e.$slots.source ? (x(), m("div", {
1321
- key: 8,
1322
- ref_key: "source",
1323
- ref: Mt,
1324
- dir: "auto"
1325
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1326
- Y.value === B.value.initialRotation ? p("", !0) : (x(), m("div", gt, [w(e.$slots, "reset-action", { reset: Vn }, () => [h("button", {
1327
- "data-cy-reset": "",
1328
- tabindex: "0",
1329
- role: "button",
1330
- class: "vue-data-ui-refresh-button",
1331
- style: b({
1332
- background: B.value.style.chart.backgroundColor,
1333
- cursor: V.value ? "pointer" : "default"
1334
- }),
1335
- onClick: Vn
1336
- }, [ke(E(yt), {
1337
- name: "refresh",
1338
- stroke: B.value.style.chart.color
1339
- }, null, 8, ["stroke"])], 4)], !0)])),
1340
- k.value && B.value.userOptions.buttons.table ? (x(), f(Pe(Yn.value.component), Ae({ key: 10 }, Yn.value.props, {
1341
- ref_key: "tableUnit",
1342
- ref: Rt,
1343
- onClose: Xn
1344
- }), De({
1345
- content: D(() => [(x(), f(E(bt), {
1346
- key: `table_${Ft.value}`,
1347
- colNames: Gn.value.colNames,
1348
- head: Gn.value.head,
1349
- body: Gn.value.body,
1350
- config: Gn.value.config,
1351
- title: B.value.table.useDialog ? "" : Yn.value.title,
1352
- withCloseButton: !B.value.table.useDialog,
1353
- isCursorPointer: V.value,
1354
- onClose: Xn
1355
- }, {
1356
- th: D(({ th: e }) => [Oe(T(e.name), 1)]),
1357
- td: D(({ td: e }) => [h("div", _t, T(e.name ? e.name : Dn(e)), 1)]),
1358
- _: 1
1359
- }, 8, [
1360
- "colNames",
1361
- "head",
1362
- "body",
1363
- "config",
1364
- "title",
1365
- "withCloseButton",
1366
- "isCursorPointer"
1367
- ]))]),
1368
- _: 2
1369
- }, [B.value.table.useDialog ? {
1370
- name: "title",
1371
- fn: D(() => [Oe(T(Yn.value.title), 1)]),
1372
- key: "0"
1373
- } : void 0, B.value.table.useDialog ? {
1374
- name: "actions",
1375
- fn: D(() => [h("button", {
1376
- tabindex: "0",
1377
- class: "vue-ui-user-options-button",
1378
- onClick: n[1] ||= (e) => Kn(B.value.userOptions.callbacks.csv),
1379
- style: b({ cursor: V.value ? "pointer" : "default" })
1380
- }, [ke(E(yt), {
1381
- name: "fileCsv",
1382
- stroke: Yn.value.props.color
1383
- }, null, 8, ["stroke"])], 4)]),
1384
- key: "1"
1385
- } : void 0]), 1040)) : p("", !0),
1386
- w(e.$slots, "skeleton", {}, () => [E(Wt) ? (x(), f(de, { key: 0 })) : p("", !0)], !0)
1387
- ], 46, Ve));
1388
- }
1389
- }, [["__scopeId", "data-v-2716f6ca"]]);
1390
- //#endregion
1391
- export { Be as n, vt as t };