vue-data-ui 3.27.0 → 3.27.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 (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-C2W0uGrq.js +1 -0
  3. package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
  4. package/dist/BaseIcon-DdIyewwY.js +1 -0
  5. package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-DoYifY2y.js +1 -0
  8. package/dist/ColorPicker-MLwiwxl5.js +1 -0
  9. package/dist/DataTable-WNecJMcY.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-CHg1AQ3p.js +1 -0
  12. package/dist/Legend-D8YoT1RJ.js +1 -0
  13. package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
  14. package/dist/PackageVersion-CdkxOy58.js +1 -0
  15. package/dist/PenAndPaper-IMw576MC.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-Bp9YNtPc.js +1 -0
  20. package/dist/SlicerPreview-CNUciSbY.js +1 -0
  21. package/dist/SparkTooltip-C5JMcBXT.js +1 -0
  22. package/dist/Title-BGYFqulv.js +1 -0
  23. package/dist/Tooltip-Cus2-XNQ.js +1 -0
  24. package/dist/UserOptions-DTxMeZv3.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-CIvU_04o.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-D8t3Bm7s.js +3 -0
  103. package/dist/exposedLib-DHtyEc_G.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-DiT4ivZ5.js +1 -0
  106. package/dist/labelUtils-CG3uVXoZ.js +1 -0
  107. package/dist/lib-CV_IANZ6.js +12 -0
  108. package/dist/package-DE5cU1Rg.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-BQSB1V3H.js +1 -0
  111. package/dist/render-common-BdZ5aRyn.js +1 -0
  112. package/dist/resolveChartConfig-DZg-korK.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +17961 -17958
  123. package/dist/types/vue-ui-3d-bar.d.ts +24 -91
  124. package/dist/types/vue-ui-accordion.d.ts +2 -10
  125. package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
  126. package/dist/types/vue-ui-annotator.d.ts +12 -88
  127. package/dist/types/vue-ui-bullet.d.ts +21 -83
  128. package/dist/types/vue-ui-bump.d.ts +23 -90
  129. package/dist/types/vue-ui-candlestick.d.ts +27 -108
  130. package/dist/types/vue-ui-carousel-table.d.ts +11 -57
  131. package/dist/types/vue-ui-chestnut.d.ts +27 -96
  132. package/dist/types/vue-ui-chord.d.ts +31 -108
  133. package/dist/types/vue-ui-circle-pack.d.ts +30 -124
  134. package/dist/types/vue-ui-cursor.d.ts +2 -8
  135. package/dist/types/vue-ui-dag.d.ts +35 -125
  136. package/dist/types/vue-ui-dashboard.d.ts +18 -66
  137. package/dist/types/vue-ui-digits.d.ts +2 -11
  138. package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
  139. package/dist/types/vue-ui-donut.d.ts +31 -121
  140. package/dist/types/vue-ui-dumbbell.d.ts +24 -92
  141. package/dist/types/vue-ui-flow.d.ts +28 -104
  142. package/dist/types/vue-ui-funnel.d.ts +18 -77
  143. package/dist/types/vue-ui-galaxy.d.ts +30 -112
  144. package/dist/types/vue-ui-gauge.d.ts +22 -87
  145. package/dist/types/vue-ui-geo.d.ts +22 -92
  146. package/dist/types/vue-ui-gizmo.d.ts +5 -20
  147. package/dist/types/vue-ui-heatmap.d.ts +25 -101
  148. package/dist/types/vue-ui-hill.d.ts +22 -88
  149. package/dist/types/vue-ui-history-plot.d.ts +30 -112
  150. package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
  151. package/dist/types/vue-ui-icon.d.ts +1 -13
  152. package/dist/types/vue-ui-kpi.d.ts +5 -23
  153. package/dist/types/vue-ui-label.d.ts +11 -48
  154. package/dist/types/vue-ui-mini-loader.d.ts +4 -13
  155. package/dist/types/vue-ui-molecule.d.ts +27 -110
  156. package/dist/types/vue-ui-mood-radar.d.ts +23 -90
  157. package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
  158. package/dist/types/vue-ui-onion.d.ts +26 -104
  159. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
  160. package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
  161. package/dist/types/vue-ui-pattern.d.ts +1 -13
  162. package/dist/types/vue-ui-quadrant.d.ts +33 -123
  163. package/dist/types/vue-ui-quick-chart.d.ts +30 -110
  164. package/dist/types/vue-ui-radar.d.ts +31 -114
  165. package/dist/types/vue-ui-rating.d.ts +8 -40
  166. package/dist/types/vue-ui-relation-circle.d.ts +26 -90
  167. package/dist/types/vue-ui-ridgeline.d.ts +27 -104
  168. package/dist/types/vue-ui-rings.d.ts +21 -96
  169. package/dist/types/vue-ui-scatter.d.ts +22 -95
  170. package/dist/types/vue-ui-skeleton.d.ts +2 -10
  171. package/dist/types/vue-ui-smiley.d.ts +6 -26
  172. package/dist/types/vue-ui-spark-trend.d.ts +2 -18
  173. package/dist/types/vue-ui-sparkbar.d.ts +10 -47
  174. package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
  175. package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
  176. package/dist/types/vue-ui-sparkline.d.ts +16 -61
  177. package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
  178. package/dist/types/vue-ui-stackbar.d.ts +36 -130
  179. package/dist/types/vue-ui-stackline.d.ts +29 -116
  180. package/dist/types/vue-ui-strip-plot.d.ts +22 -96
  181. package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
  182. package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
  183. package/dist/types/vue-ui-table.d.ts +9 -36
  184. package/dist/types/vue-ui-thermometer.d.ts +14 -68
  185. package/dist/types/vue-ui-timer.d.ts +10 -47
  186. package/dist/types/vue-ui-tiremarks.d.ts +14 -68
  187. package/dist/types/vue-ui-treemap.d.ts +26 -105
  188. package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
  189. package/dist/types/vue-ui-waffle.d.ts +23 -99
  190. package/dist/types/vue-ui-wheel.d.ts +14 -68
  191. package/dist/types/vue-ui-word-cloud.d.ts +20 -95
  192. package/dist/types/vue-ui-world.d.ts +22 -96
  193. package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
  194. package/dist/types/vue-ui-xy.d.ts +42 -146
  195. package/dist/unpackTheme-CNsFKCeq.js +1 -0
  196. package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
  197. package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
  198. package/dist/useChartExport-DtPNpc9M.js +1 -0
  199. package/dist/useConfig-CKdzPrcf.js +1 -0
  200. package/dist/useFitSvgText-C1QC4P5G.js +1 -0
  201. package/dist/useHints-BH9r_0Vd.js +6 -0
  202. package/dist/useNestedProp-CB186vF2.js +1 -0
  203. package/dist/useObjectBindings-Dse7YyAf.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-hLW3cv4N.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-DyYgLIZN.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
  222. package/dist/vue-ui-accordion-BNvevckx.js +1 -0
  223. package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
  224. package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
  225. package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
  226. package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
  227. package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
  228. package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
  229. package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
  230. package/dist/vue-ui-chord-B6_veyvO.js +21 -0
  231. package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
  232. package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
  233. package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
  234. package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
  235. package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
  236. package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
  237. package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
  238. package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
  239. package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
  240. package/dist/vue-ui-flow-Dru76A2O.js +3 -0
  241. package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
  242. package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
  243. package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
  244. package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
  245. package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
  246. package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
  247. package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
  248. package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
  250. package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
  251. package/dist/vue-ui-label-B4pkXBxc.js +7 -0
  252. package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
  253. package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
  254. package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
  255. package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
  256. package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.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-BaKSTJDv.js +2 -0
  261. package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
  262. package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
  263. package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
  264. package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
  265. package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
  266. package/dist/vue-ui-rings-BOti0NGb.js +1 -0
  267. package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
  268. package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
  269. package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
  270. package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
  271. package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
  272. package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
  274. package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
  276. package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
  277. package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
  278. package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
  279. package/dist/vue-ui-table-CaFVLHxE.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
  281. package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
  282. package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
  283. package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
  284. package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
  285. package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
  286. package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
  287. package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
  288. package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
  289. package/dist/vue-ui-world-DjMy_utm.js +19 -0
  290. package/dist/vue-ui-xy-DaozHMfg.js +31 -0
  291. package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
  292. package/dist/vue-ui-xy-rGHSI1am.js +24 -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-CVoh3twl.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-BRfcRW6Z.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-DKO1l8oR.js +0 -116
  350. package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
  351. package/dist/BaseIcon-Cx9FD751.js +0 -484
  352. package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
  353. package/dist/BaseScanner-Dzc8VT3j.js +0 -30
  354. package/dist/BaseZoomControls-vNi8YykO.js +0 -111
  355. package/dist/ColorPicker-hmC2bvwS.js +0 -257
  356. package/dist/DataTable-CjF_An2h.js +0 -150
  357. package/dist/DefGrad-DVBqDjhO.js +0 -48
  358. package/dist/HillActions-DqqGB33u.js +0 -187
  359. package/dist/Legend-CulFgjUY.js +0 -156
  360. package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
  361. package/dist/PackageVersion-D7H9nfK0.js +0 -12
  362. package/dist/PenAndPaper-CNiuGw6k.js +0 -906
  363. package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
  364. package/dist/RecursiveLabels-D9rfID6q.js +0 -56
  365. package/dist/RecursiveLinks-BygcpDiT.js +0 -78
  366. package/dist/Shape-DSwamtmO.js +0 -143
  367. package/dist/SlicerPreview-k5YerMA9.js +0 -1730
  368. package/dist/SparkTooltip-D35KVv6N.js +0 -93
  369. package/dist/Title-BMCuINbv.js +0 -87
  370. package/dist/Tooltip-C4ZTwkLF.js +0 -312
  371. package/dist/UserOptions-CORYQiif.js +0 -1412
  372. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
  373. package/dist/dom-to-png-CBusMkua.js +0 -237
  374. package/dist/exposedLib-UNxZlnAS.js +0 -28
  375. package/dist/geoProjections-BYthUA8l.js +0 -302
  376. package/dist/img-Bb5rHcpO.js +0 -129
  377. package/dist/labelUtils-Ccn9kK7T.js +0 -19
  378. package/dist/lib-D4wK6ljP.js +0 -2146
  379. package/dist/package-DmQufM0G.js +0 -4
  380. package/dist/patternUtils-CS7hn6at.js +0 -258
  381. package/dist/pdf-BzIQHx-F.js +0 -90
  382. package/dist/render-common-BtfjXdkJ.js +0 -152
  383. package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
  384. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
  385. package/dist/useChartAccessibility-DYqac8yF.js +0 -12
  386. package/dist/useChartExport-iwOqiIWX.js +0 -803
  387. package/dist/useConfig-D_6ZrPMD.js +0 -8090
  388. package/dist/useFitSvgText-CXTzBplU.js +0 -65
  389. package/dist/useHints-Dq_w2E8B.js +0 -66
  390. package/dist/useNestedProp-DR_8JPol.js +0 -12
  391. package/dist/useObjectBindings-DvasYMGu.js +0 -191
  392. package/dist/usePanZoom-CYU3B4T3.js +0 -157
  393. package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
  394. package/dist/usePrinter-DdW2GSm0.js +0 -49
  395. package/dist/useResponsive-ZtArZtUf.js +0 -97
  396. package/dist/useStableElementSize-C7KADDKj.js +0 -77
  397. package/dist/useTableResponsive-BAqJPR68.js +0 -25
  398. package/dist/useThemeCheck-C43Tcqmk.js +0 -24
  399. package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
  400. package/dist/useTimeLabels-d2f-W1L4.js +0 -270
  401. package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
  402. package/dist/useTransitions-g_zBREk2.js +0 -39
  403. package/dist/useUserOptionState-DK-_1ddE.js +0 -15
  404. package/dist/vClickOutside-DUrZWttG.js +0 -13
  405. package/dist/vue-data-ui-Df7WV80w.js +0 -191
  406. package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
  407. package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
  408. package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
  409. package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
  410. package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
  411. package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
  412. package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
  413. package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
  414. package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
  415. package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
  416. package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
  417. package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
  418. package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
  419. package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
  420. package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
  421. package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
  422. package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
  423. package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
  424. package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
  425. package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
  426. package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
  427. package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
  428. package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
  429. package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
  430. package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
  431. package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
  432. package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
  433. package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
  434. package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
  435. package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
  436. package/dist/vue-ui-label-r3-QloJL.js +0 -1451
  437. package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
  438. package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
  439. package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
  440. package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
  441. package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
  442. package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
  443. package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
  444. package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
  445. package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
  446. package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
  447. package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
  448. package/dist/vue-ui-rating-C_iTttXB.js +0 -359
  449. package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
  450. package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
  451. package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
  452. package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
  453. package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
  454. package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
  455. package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
  456. package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
  457. package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
  458. package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
  459. package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
  460. package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
  461. package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
  462. package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
  463. package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
  464. package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
  465. package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
  466. package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
  467. package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
  468. package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
  469. package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
  470. package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
  471. package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
  472. package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
  473. package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
  474. package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
  475. package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
  476. package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
  477. package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
  478. package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
  479. package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
  480. package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
  481. package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
  482. package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
  483. package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
  484. package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
  485. package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
  486. package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
  487. package/dist/vue_ui_donut-BDGqG07h.js +0 -358
  488. package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
  489. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
  490. package/dist/vue_ui_flow-BewZjjKG.js +0 -238
  491. package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
  492. package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
  493. package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
  494. package/dist/vue_ui_geo-B8TODs-G.js +0 -248
  495. package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
  496. package/dist/vue_ui_hill-dnltu0L-.js +0 -368
  497. package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
  498. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
  499. package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
  500. package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
  501. package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
  502. package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
  503. package/dist/vue_ui_onion-1FTFFS46.js +0 -293
  504. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
  505. package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
  506. package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
  507. package/dist/vue_ui_radar-jafTED5j.js +0 -306
  508. package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
  509. package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
  510. package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
  511. package/dist/vue_ui_scatter-I0POnicu.js +0 -479
  512. package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
  513. package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
  514. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
  515. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
  516. package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
  517. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
  518. package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
  519. package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
  520. package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
  521. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
  522. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
  523. package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
  524. package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
  525. package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
  526. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
  527. package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
  528. package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
  529. package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
  530. package/dist/vue_ui_xy-CcJADijP.js +0 -614
  531. package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
@@ -1,1752 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Dt as r, Ft as i, Ht as a, J as o, Q as s, S as c, X as l, _ as ee, an as te, at as ne, b as re, en as ie, et as ae, i as oe, nn as se, nt as ce, pt as le, t as ue, tn as de, v as fe, w as pe, x as me, yt as he, zt as ge } from "./lib-D4wK6ljP.js";
3
- import { n as _e, t as ve } from "./useHints-Dq_w2E8B.js";
4
- import { t as ye } from "./useConfig-D_6ZrPMD.js";
5
- import { t as be } from "./usePrinter-DdW2GSm0.js";
6
- import { n as xe, t as Se } from "./BaseScanner-Dzc8VT3j.js";
7
- import { t as Ce } from "./useNestedProp-DR_8JPol.js";
8
- import { t as we } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as Te } from "./useChartExport-iwOqiIWX.js";
10
- import { t as Ee } from "./useTransitions-g_zBREk2.js";
11
- import { t as De } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
- import { t as Oe } from "./img-Bb5rHcpO.js";
13
- import { n as ke } from "./Title-BMCuINbv.js";
14
- import { t as Ae } from "./Shape-DSwamtmO.js";
15
- import { t as je } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
- import { l as Me, t as Ne } from "./useResponsive-ZtArZtUf.js";
17
- import { t as Pe } from "./DefGrad-DVBqDjhO.js";
18
- import { t as Fe } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as Ie } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Le } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as Re } from "./vue_ui_strip_plot-BaHbnnwN.js";
22
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as He, nextTick as Ue, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as We, onMounted as Ge, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as T, toRefs as Je, unref as E, watch as Ye, watchEffect as Xe, withCtx as D } from "vue";
23
- //#region src/components/vue-ui-strip-plot.vue
24
- var Ze = /* @__PURE__ */ e({ default: () => kt }), Qe = ["id"], $e = ["id"], et = { style: { position: "relative" } }, tt = [
25
- "xmlns",
26
- "viewBox",
27
- "aria-describedby"
28
- ], nt = [
29
- "x",
30
- "y",
31
- "width",
32
- "height"
33
- ], rt = { key: 1 }, it = { key: 0 }, at = [
34
- "x1",
35
- "x2",
36
- "y1",
37
- "y2",
38
- "stroke",
39
- "stroke-width",
40
- "stroke-dasharray"
41
- ], ot = { key: 1 }, st = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width",
48
- "stroke-dasharray"
49
- ], ct = [
50
- "x1",
51
- "x2",
52
- "y1",
53
- "y2",
54
- "stroke",
55
- "stroke-width"
56
- ], lt = [
57
- "x1",
58
- "x2",
59
- "y1",
60
- "y2",
61
- "stroke",
62
- "stroke-width"
63
- ], ut = [
64
- "transform",
65
- "fill",
66
- "font-size"
67
- ], dt = [
68
- "transform",
69
- "font-size",
70
- "fill",
71
- "text-anchor"
72
- ], ft = [
73
- "transform",
74
- "font-size",
75
- "fill",
76
- "text-anchor",
77
- "innerHTML"
78
- ], pt = [
79
- "fill",
80
- "font-size",
81
- "transform"
82
- ], mt = [
83
- "fill",
84
- "font-size",
85
- "x",
86
- "y"
87
- ], ht = [
88
- "x1",
89
- "x2",
90
- "y1",
91
- "y2",
92
- "stroke"
93
- ], gt = [
94
- "cx",
95
- "cy",
96
- "fill"
97
- ], _t = [
98
- "cx",
99
- "cy",
100
- "fill"
101
- ], vt = [
102
- "d",
103
- "fill",
104
- "stroke",
105
- "fill-opacity",
106
- "stroke-opacity",
107
- "stroke-width",
108
- "onMouseenter"
109
- ], yt = [
110
- "x1",
111
- "x2",
112
- "y1",
113
- "y2",
114
- "stroke",
115
- "stroke-opacity",
116
- "stroke-width"
117
- ], bt = ["onMouseenter"], xt = [
118
- "x1",
119
- "x2",
120
- "y1",
121
- "y2",
122
- "stroke",
123
- "stroke-width"
124
- ], St = [
125
- "x",
126
- "y",
127
- "width",
128
- "height",
129
- "fill",
130
- "stroke",
131
- "stroke-width",
132
- "rx"
133
- ], Ct = [
134
- "cx",
135
- "cy",
136
- "r",
137
- "fill",
138
- "stroke"
139
- ], wt = { key: 1 }, Tt = [
140
- "x",
141
- "y",
142
- "font-size",
143
- "fill"
144
- ], Et = {
145
- key: 0,
146
- style: {
147
- position: "absolute",
148
- top: "100%",
149
- left: "0",
150
- width: "100%"
151
- },
152
- "data-dom-to-png-ignore": "",
153
- "aria-hidden": "true"
154
- }, Dt = {
155
- key: 5,
156
- class: "vue-data-ui-watermark"
157
- }, Ot = { style: {
158
- display: "flex",
159
- "align-items": "center"
160
- } }, kt = /*#__PURE__*/ je({
161
- __name: "vue-ui-strip-plot",
162
- props: {
163
- config: {
164
- type: Object,
165
- default() {
166
- return {};
167
- }
168
- },
169
- dataset: {
170
- type: Array,
171
- default() {
172
- return [];
173
- }
174
- }
175
- },
176
- emits: ["selectDatapoint", "copyAlt"],
177
- setup(e, { expose: je, emit: Ze }) {
178
- let kt = g(() => import("./Tooltip-C4ZTwkLF.js")), At = g(() => import("./BaseIcon-Cx9FD751.js").then((e) => e.n)), jt = g(() => import("./vue-ui-accordion-CaoNWreI.js").then((e) => e.n)), Mt = g(() => import("./DataTable-CjF_An2h.js")), Nt = g(() => import("./UserOptions-CORYQiif.js").then((e) => e.n)), Pt = g(() => import("./PenAndPaper-CNiuGw6k.js").then((e) => e.t)), Ft = g(() => import("./PackageVersion-D7H9nfK0.js").then((e) => e.t)), It = g(() => import("./BaseDraggableDialog-C50TEJFv.js").then((e) => e.n)), Lt = [
179
- "classic",
180
- "scatter",
181
- "violin"
182
- ], { vue_ui_strip_plot: Rt } = ye(), { isThemeValid: zt, warnInvalidTheme: Bt } = we(), O = e, Vt = Ze, Ht = d({
183
- get() {
184
- return !!O.dataset && O.dataset.length;
185
- },
186
- set(e) {
187
- return e;
188
- }
189
- }), Ut = S(l()), Wt = S(0), Gt = S(!1), Kt = S(""), k = S(null), qt = S(null), Jt = S(null), Yt = S(null), Xt = S(!1), Zt = S(0), Qt = S(0), $t = S(null), en = S(null), tn = S(null), nn = S(null), rn = S(null), an = S(null), on = S(null), sn = S(null), A = S("pointer"), cn = S({
190
- x: 0,
191
- y: 0
192
- }), ln = S(!1), j = S(yn()), M = d(() => j.value.userOptions), N = d(() => j.value.style.chart.tooltip), P = d(() => j.value.style.chart.labels), F = d(() => j.value.style.chart.violin), I = d(() => j.value.style.chart.grid), L = d(() => j.value.style.chart);
193
- _e({
194
- config: () => j.value,
195
- dataset: () => O.dataset,
196
- component: "VueUiStripPlot",
197
- rules: [ve.emptyArray, {
198
- test: (e) => e.length > 12,
199
- message: [
200
- "👀 The number of series is > 12. Consider:",
201
- "",
202
- "▶️ Using filters to let users choose a maximum number of series to display.",
203
- "",
204
- "▶️ Using multiple instances of the chart to display related series."
205
- ]
206
- }]
207
- });
208
- let { transitionEnabled: un } = Ee({
209
- config: () => j.value.transitions,
210
- dataset: () => O.dataset
211
- }), dn = d(() => bn(j.value.type)), R = d(() => j.value.userOptions.useCursorPointer), fn = d(() => se({
212
- defaultConfig: {
213
- userOptions: { show: !1 },
214
- table: { show: !1 },
215
- style: { chart: {
216
- backgroundColor: "#99999930",
217
- padding: {
218
- top: 24,
219
- left: 24,
220
- right: 24,
221
- bottom: 24
222
- },
223
- grid: {
224
- stroke: "#6A6A6A",
225
- horizontalGrid: { stroke: "#6A6A6A" },
226
- verticalGrid: { stroke: "#6A6A6A" }
227
- },
228
- plots: { stroke: "#6A6A6A" },
229
- labels: {
230
- bestPlotLabel: { show: !1 },
231
- axis: {
232
- xLabel: "",
233
- yLabel: ""
234
- },
235
- xAxisLabels: { show: !1 },
236
- yAxisLabels: { show: !1 }
237
- }
238
- } }
239
- },
240
- userConfig: j.value.skeletonConfig ?? {}
241
- })), { loading: pn, FINAL_DATASET: mn, manualLoading: hn } = xe({
242
- ...Je(O),
243
- FINAL_CONFIG: j,
244
- prepareConfig: yn,
245
- skeletonDataset: O.config?.skeletonDataset ?? [
246
- {
247
- name: "_",
248
- color: "#DBDBDB",
249
- plots: [
250
- {
251
- name: "_",
252
- value: 1
253
- },
254
- {
255
- name: "_",
256
- value: 2
257
- },
258
- {
259
- name: "_",
260
- value: 3
261
- }
262
- ]
263
- },
264
- {
265
- name: "_",
266
- color: "#C4C4C4",
267
- plots: [
268
- {
269
- name: "_",
270
- value: 3
271
- },
272
- {
273
- name: "_",
274
- value: 5
275
- },
276
- {
277
- name: "_",
278
- value: 8
279
- }
280
- ]
281
- },
282
- {
283
- name: "_",
284
- color: "#ADADAD",
285
- plots: [
286
- {
287
- name: "_",
288
- value: 8
289
- },
290
- {
291
- name: "_",
292
- value: 13
293
- },
294
- {
295
- name: "_",
296
- value: 21
297
- }
298
- ]
299
- },
300
- {
301
- name: "_",
302
- color: "#969696",
303
- plots: [
304
- {
305
- name: "_",
306
- value: 21
307
- },
308
- {
309
- name: "_",
310
- value: 34
311
- },
312
- {
313
- name: "_",
314
- value: 55
315
- }
316
- ]
317
- },
318
- {
319
- name: "_",
320
- color: "#808080",
321
- plots: [
322
- {
323
- name: "_",
324
- value: 55
325
- },
326
- {
327
- name: "_",
328
- value: 89
329
- },
330
- {
331
- name: "_",
332
- value: 144
333
- }
334
- ]
335
- }
336
- ],
337
- skeletonConfig: se({
338
- defaultConfig: j.value,
339
- userConfig: fn.value
340
- })
341
- }), { userOptionsVisible: gn, setUserOptionsVisibility: _n, keepUserOptionState: vn } = Ie({ config: j.value }), { svgRef: z } = Le({ config: L.value.title });
342
- function yn() {
343
- let e = Ce({
344
- userConfig: O.config,
345
- defaultConfig: Rt
346
- }), t = e.theme;
347
- if (!t) return e;
348
- if (!zt.value(e)) return Bt(e), e;
349
- let n = Ce({
350
- userConfig: Re[t] || O.config,
351
- defaultConfig: e
352
- }), r = Ce({
353
- userConfig: O.config,
354
- defaultConfig: n
355
- });
356
- return {
357
- ...r,
358
- customPalette: r.customPalette.length ? r.customPalette : ie[t] || a
359
- };
360
- }
361
- function bn(e) {
362
- return Lt.includes(e) ? e : "classic";
363
- }
364
- function xn(e) {
365
- let t = ae(e);
366
- return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
367
- }
368
- let Sn = xn(O.config);
369
- Ye(() => O.config, async (e, t) => {
370
- let n = xn(e), r = n !== Sn;
371
- Sn = n;
372
- let i = yn();
373
- if (!r) {
374
- j.value.style.chart.tooltip = i.style.chart.tooltip, U.value.showTooltip = j.value.style.chart.tooltip.show;
375
- return;
376
- }
377
- pn.value || (j.value = i), gn.value = !j.value.userOptions.showOnChartHover, Tn(), Zt.value += 1, Qt.value += 1, U.value.dataLabels.show = P.value.bestPlotLabel.show, U.value.showTable = j.value.table.show, U.value.showTooltip = N.value.show, V.value = L.value.width, H.value = L.value.height, Fn.value = L.value.plots.radius;
378
- }, { deep: !0 }), Ye(() => O.dataset, (e) => {
379
- Array.isArray(e) && e.length > 0 && (hn.value = !1);
380
- }, { deep: !0 });
381
- let B = qe(null), Cn = qe(null);
382
- Ge(() => {
383
- Tn();
384
- });
385
- let wn = d(() => j.value.debug);
386
- function Tn() {
387
- if (ge(O.dataset) ? (ne({
388
- componentName: "VueUiStripPlot",
389
- type: "dataset",
390
- debug: wn.value
391
- }), hn.value = !0) : O.dataset.forEach((e, t) => {
392
- he({
393
- datasetObject: e,
394
- requiredAttributes: ["name", "plots"]
395
- }).forEach((e) => {
396
- Ht.value = !1, ne({
397
- componentName: "VueUiStripPlot",
398
- type: "datasetSerieAttribute",
399
- property: e,
400
- index: t,
401
- debug: wn.value
402
- });
403
- }), e.plots && e.plots.forEach((e, n) => {
404
- he({
405
- datasetObject: e,
406
- requiredAttributes: ["name", "value"]
407
- }).forEach((e) => {
408
- Ht.value = !1, ne({
409
- componentName: "VueUiStripPlot",
410
- type: "datasetSerieAttribute",
411
- property: e,
412
- index: `${t},${n}`,
413
- debug: wn.value
414
- });
415
- });
416
- });
417
- }), ge(O.dataset) || (hn.value = j.value.loading), j.value.responsive) {
418
- let e = Me(() => {
419
- let { width: e, height: t } = Ne({
420
- chart: k.value,
421
- title: L.value.title.text ? qt.value : null,
422
- source: Jt.value,
423
- noTitle: Yt.value
424
- });
425
- requestAnimationFrame(() => {
426
- Pn.value = t, V.value = Math.max(.1, e), H.value = Math.max(.1, t - 12), j.value.responsiveProportionalSizing ? Fn.value = de({
427
- relator: Math.min(t, e),
428
- adjuster: 600,
429
- source: L.value.plots.radius,
430
- threshold: 6,
431
- fallback: 6
432
- }) : Fn.value = L.value.plots.radius;
433
- });
434
- });
435
- B.value && (Cn.value && B.value.unobserve(Cn.value), B.value.disconnect()), B.value = new ResizeObserver(e), Cn.value = k.value.parentNode, B.value.observe(Cn.value);
436
- }
437
- Xt.value = !0, setTimeout(() => {
438
- Mn.value = !1;
439
- }, Un.value * 50);
440
- }
441
- We(() => {
442
- B.value && (Cn.value && B.value.unobserve(Cn.value), B.value.disconnect());
443
- });
444
- let { isPrinting: En, isImaging: Dn, generatePdf: On, generateImage: kn } = be({
445
- elementId: `strip-plot_${Ut.value}`,
446
- fileName: L.value.title.text || "vue-ui-strip-plot",
447
- options: j.value.userOptions.print
448
- }), An = d(() => j.value.userOptions.show && !L.value.title.text), jn = d(() => pe(j.value.customPalette)), Mn = S(j.value.useCssAnimation), Nn = S({
449
- top: L.value.padding.top,
450
- bottom: L.value.padding.bottom,
451
- left: L.value.padding.left,
452
- right: L.value.padding.right
453
- }), V = S(L.value.width), H = S(L.value.height), Pn = S(L.value.height), Fn = S(L.value.plots.radius), U = S({
454
- showTable: j.value.table.show,
455
- dataLabels: { show: P.value.bestPlotLabel.show },
456
- showTooltip: N.value.show
457
- });
458
- Ye(j, () => {
459
- U.value = {
460
- showTable: j.value.table.show,
461
- dataLabels: { show: P.value.bestPlotLabel.show },
462
- showTooltip: N.value.show
463
- }, V.value = L.value.width, H.value = L.value.height, Fn.value = L.value.plots.radius;
464
- }, { immediate: !0 });
465
- let W = d(() => Math.min(Fn.value, K.value.stripWidth / 2 * .9));
466
- function G(e) {
467
- return Number.isFinite(e) ? Number(e.toFixed(2)) : 0;
468
- }
469
- function In() {
470
- return Math.max(0, (K.value.stripWidth / 2 - W.value * 1.8) * .86) * Math.min(1, F.value.widthRatio);
471
- }
472
- function Ln() {
473
- let e = 0;
474
- an.value && (e = Array.from(an.value.querySelectorAll("text")).reduce((e, t) => {
475
- let n = t.getComputedTextLength();
476
- return n > e ? n : e;
477
- }, 0));
478
- let t = nn.value ? nn.value.getBoundingClientRect().width : 0;
479
- return e + t + (t ? 24 : 0);
480
- }
481
- let Rn = S(0), zn = Me((e) => {
482
- Rn.value = e;
483
- }, 100);
484
- Xe((e) => {
485
- let t = rn.value;
486
- if (!t) return;
487
- let n = new ResizeObserver((e) => {
488
- zn(e[0].contentRect.height);
489
- });
490
- n.observe(t), e(() => n.disconnect());
491
- }), We(() => {
492
- Rn.value = 0;
493
- });
494
- let Bn = d(() => {
495
- let e = 0;
496
- tn.value && (e = tn.value.getBBox().height + P.value.axis.fontSize / 3 + 12 + P.value.axis.xLabelOffsetY);
497
- let t = 0;
498
- return rn.value && (t = Rn.value + 12), e + t;
499
- }), K = d(() => {
500
- let e = Ln(), t = Nn.value.left + e + P.value.axis.yLabelOffsetX + 5, n = V.value - Nn.value.right, r = Math.max(0, n - t), i = Nn.value.top + L.value.plots.radius + P.value.bestPlotLabel.fontSize, a = H.value - Nn.value.bottom - Bn.value, o = Math.max(0, a - i), s = Array.isArray(mn.value) ? mn.value.length : 0;
501
- return {
502
- left: t,
503
- right: n,
504
- top: i,
505
- bottom: a,
506
- width: r,
507
- height: o,
508
- stripWidth: s > 0 ? r / s : 0,
509
- absoluteHeight: H.value
510
- };
511
- });
512
- function Vn(e) {
513
- return K.value.left + (e + 1) * K.value.stripWidth - K.value.stripWidth / 2;
514
- }
515
- let Hn = d(() => mn.value.map((e, t) => {
516
- let n = l();
517
- return {
518
- ...e,
519
- id: n,
520
- color: e.color ? c(e.color) : jn.value[t] || a[t] || a[t % a.length],
521
- plots: e.plots.map((r, i) => ({
522
- ...r,
523
- value: re(r.value),
524
- parentId: n,
525
- parentName: e.name,
526
- parentIndex: t,
527
- plotIndex: i,
528
- color: e.color ? c(e.color) : jn.value[t] || a[t] || a[t % a.length],
529
- id: l()
530
- })).sort((e, t) => e.value - t.value)
531
- };
532
- })), q = d(() => (Hn.value || []).map((e, t) => ({
533
- ...e,
534
- plots: e.plots.map((e) => ({
535
- ...e,
536
- x: Vn(t)
537
- }))
538
- }))), Un = d(() => Math.max(...q.value.map((e) => e.plots.length))), Wn = d(() => {
539
- let e = q.value.flatMap((e) => e.plots.map((e) => e.value));
540
- return {
541
- max: Math.max(...e),
542
- min: Math.min(...e)
543
- };
544
- }), Gn = d(() => {
545
- let e = I.value.scaleMin, t = I.value.scaleMax, n = Math.max(2, I.value.scaleSteps), r = Wn.value.min < 0 ? Wn.value.min : 0, i = Wn.value.max;
546
- if (e === null && t === null) return ee(r, i, n);
547
- if (e !== null && t !== null) return fe(e, t, n);
548
- let a = ee(e === null ? r : e, t === null ? i : t, n);
549
- return fe(e === null ? a.min : e, t === null ? a.max : t, n);
550
- });
551
- function J(e) {
552
- let t = Gn.value.max - Gn.value.min;
553
- return t ? K.value.bottom - (e - Gn.value.min) / t * K.value.height : K.value.bottom;
554
- }
555
- let Y = d(() => (q.value || []).map((e, t) => {
556
- let n = e.plots.map((e) => ({
557
- ...e,
558
- y: J(e.value)
559
- })), r = dn.value === "classic" ? n.map(() => 0) : Xn(n);
560
- return {
561
- ...e,
562
- plots: n.map((e, t) => ({
563
- ...e,
564
- x: e.x + r[t]
565
- }))
566
- };
567
- })), X = d(() => dn.value === "violin" && !!F.value?.boxPlot?.show);
568
- function Kn(e, t) {
569
- if (!e.length) return 0;
570
- if (e.length === 1) return e[0];
571
- let n = (e.length - 1) * t, r = Math.floor(n), i = n - r, a = e[r + 1];
572
- return a === void 0 ? e[r] : e[r] + i * (a - e[r]);
573
- }
574
- let qn = d(() => X.value ? Y.value.map((e, t) => {
575
- let n = e.plots.map((e) => e.value).sort((e, t) => e - t), r = Kn(n, .25), i = Kn(n, .5), a = Kn(n, .75), o = a - r, s = r - o * 1.5, c = a + o * 1.5, l = n.find((e) => e >= s), ee = n.slice().reverse().find((e) => e <= c), te = Vn(t), ne = Math.max(W.value * 2.8, Math.min(In() * .32, K.value.stripWidth * .12)) * Math.min(1.5, F.value.boxPlot.widthRatio);
576
- return {
577
- id: e.id,
578
- boxPlotColor: F.value.boxPlot.useSerieColor ? e.color : F.value.boxPlot.color,
579
- color: e.color,
580
- name: e.name,
581
- count: n.length,
582
- lowerAdjacent: l ?? n[0],
583
- q1: r,
584
- median: i,
585
- q3: a,
586
- upperAdjacent: ee ?? n[n.length - 1],
587
- iqr: o,
588
- lowerFence: s,
589
- upperFence: c,
590
- centerX: te,
591
- boxLeft: te - ne / 2,
592
- boxWidth: ne,
593
- q1Y: J(r),
594
- medianY: J(i),
595
- q3Y: J(a),
596
- lowerY: J(l ?? n[0]),
597
- upperY: J(ee ?? n[n.length - 1])
598
- };
599
- }) : []), Jn = d(() => [
600
- j.value.table.columnNames.series,
601
- F.value.tooltipLabels.lowerAdjacent,
602
- F.value.tooltipLabels.q1,
603
- F.value.tooltipLabels.median,
604
- F.value.tooltipLabels.q3,
605
- F.value.tooltipLabels.upperAdjacent,
606
- F.value.tooltipLabels.iqr,
607
- F.value.tooltipLabels.count
608
- ]);
609
- function Yn(e) {
610
- return t({
611
- p: P.value.prefix,
612
- v: e,
613
- s: P.value.suffix,
614
- r: j.value.table.td.roundingValue
615
- });
616
- }
617
- function Xn(e) {
618
- let t = dn.value === "violin" ? Math.max(0, In() - W.value * 1.15) : Math.max(0, K.value.stripWidth / 2 - W.value * 1.5);
619
- if (!e.length || !t) return e.map(() => 0);
620
- let n = e.map(() => 0), r = W.value * 2.1, i = Math.min(t, r), a = [0];
621
- for (let e = i; e <= t + i / 2; e += i) a.push(-Math.min(e, t)), a.push(Math.min(e, t));
622
- let o = [];
623
- return e.forEach((e, t) => {
624
- let i = a.find((t) => o.every((n) => {
625
- let i = t - n.offset, a = e.y - n.y;
626
- return Math.hypot(i, a) >= r;
627
- })) ?? 0;
628
- n[t] = i, o.push({
629
- y: e.y,
630
- offset: i
631
- });
632
- }), n;
633
- }
634
- let Zn = d(() => dn.value === "violin" ? Y.value.map((e, t) => ({
635
- id: e.id,
636
- color: F.value.useSerieColor ? e.color : F.value.stroke,
637
- fill: F.value.useSerieColor ? e.color : F.value.fill,
638
- path: Qn(e.plots, t),
639
- connectors: $n(e.plots, t)
640
- })) : []);
641
- function Qn(e, t) {
642
- let n = In();
643
- if (!e.length || !K.value.height || !n) return "";
644
- let r = Vn(t), i = e.map((e) => e.y), a = Z(i), o = tr({
645
- yValues: i,
646
- bandwidth: a
647
- });
648
- return o.length > 1 ? o.map((e) => rr({
649
- yValues: e,
650
- centerX: r,
651
- maxWidth: er({
652
- clusterLength: e.length,
653
- totalLength: i.length,
654
- maxWidth: n
655
- }),
656
- bandwidth: Z(e)
657
- })).join(" ") : rr({
658
- yValues: i,
659
- centerX: r,
660
- maxWidth: n,
661
- bandwidth: a
662
- });
663
- }
664
- function $n(e, t) {
665
- if (!e.length) return [];
666
- let n = Vn(t), r = e.map((e) => e.y), i = tr({
667
- yValues: r,
668
- bandwidth: Z(r)
669
- });
670
- return i.length < 2 ? [] : i.slice(1).map((e, t) => {
671
- let r = i[t], a = Z(r), o = Z(e), s = me(Math.max(...r) + a * 2.35, K.value.top, K.value.bottom), c = me(Math.min(...e) - o * 2.35, K.value.top, K.value.bottom);
672
- return {
673
- x: G(n),
674
- y1: G(s),
675
- y2: G(c)
676
- };
677
- });
678
- }
679
- function er({ clusterLength: e, totalLength: t, maxWidth: n }) {
680
- let r = (e / t) ** .6, i = e <= 2 ? .72 : 1;
681
- return Math.max(W.value * 2.2, n * me(r * i, .18, 1));
682
- }
683
- function Z(e) {
684
- let t = e.reduce((e, t) => e + t, 0) / Math.max(1, e.length), n = e.reduce((e, n) => e + (n - t) ** 2, 0) / Math.max(1, e.length), r = Math.sqrt(n), i = e.length < 2 ? Math.max(W.value * 2.6, K.value.height / 48) : W.value * 2.1;
685
- return me(1.06 * r * e.length ** -.2, i, K.value.height / 5);
686
- }
687
- function tr({ yValues: e, bandwidth: t }) {
688
- if (e.length < 2) return [e];
689
- let n = [...e].sort((e, t) => e - t), r = Math.max(t * 1.45, W.value * 5), i = [], a = [n[0]];
690
- for (let e = 1; e < n.length; e += 1) Math.abs(n[e] - n[e - 1]) > r ? (i.push(a), a = [n[e]]) : a.push(n[e]);
691
- return i.push(a), nr(i);
692
- }
693
- function nr(e) {
694
- return e.reduce((e, t) => {
695
- let n = e[e.length - 1];
696
- if (!n) return e.push(t), e;
697
- let r = Z(n), i = Z(t);
698
- return Math.max(...n) + r * 2.35 >= Math.min(...t) - i * 2.35 ? n.push(...t) : e.push(t), e;
699
- }, []);
700
- }
701
- function rr({ yValues: e, centerX: t, maxWidth: n, bandwidth: r }) {
702
- let i = me(Math.min(...e) - r * 2.35, K.value.top, K.value.bottom), a = me(Math.max(...e) + r * 2.35, K.value.top, K.value.bottom), o = Math.max(48, Math.min(120, Math.round((a - i) / Math.max(1, r / 4)))), s = Array.from({ length: o }, (t, n) => {
703
- let s = i + (a - i) * n / Math.max(1, o - 1);
704
- return {
705
- y: s,
706
- density: e.reduce((e, t) => {
707
- let n = (s - t) / r;
708
- return e + Math.exp(-.5 * n * n);
709
- }, 0)
710
- };
711
- }), c = Math.max(...s.map((e) => e.density));
712
- if (!c) return "";
713
- let l = s.map((e, t) => {
714
- let r = t === 0 || t === s.length - 1 ? 0 : e.density / c * n;
715
- return {
716
- y: G(e.y),
717
- width: G(r)
718
- };
719
- }), ee = l.map((e) => ({
720
- x: G(t - e.width),
721
- y: e.y
722
- })), te = l.slice(0, -1).reverse().map((e) => ({
723
- x: G(t + e.width),
724
- y: e.y
725
- }));
726
- return `${ir([...ee, ...te])} Z`;
727
- }
728
- function ir(e) {
729
- if (!e.length) return "";
730
- if (e.length === 1) return `M ${e[0].x} ${e[0].y}`;
731
- let t = `M ${e[0].x} ${e[0].y}`;
732
- for (let n = 1; n < e.length - 1; n += 1) {
733
- let r = e[n], i = e[n + 1], a = G((r.x + i.x) / 2), o = G((r.y + i.y) / 2);
734
- t += ` Q ${r.x} ${r.y} ${a} ${o}`;
735
- }
736
- let n = e[e.length - 1];
737
- return `${t} L ${n.x} ${n.y}`;
738
- }
739
- let ar = d(() => Gn.value.ticks.map((e) => ({
740
- y: J(e),
741
- x1: K.value.left,
742
- x2: K.value.right,
743
- value: e
744
- }))), or = S(null), Q = S(null);
745
- function sr({ datapoint: e, seriesIndex: t }) {
746
- A.value !== "keyboard" && (Gt.value = !1, Q.value = null, j.value.events.datapointLeave && j.value.events.datapointLeave({
747
- datapoint: e,
748
- seriesIndex: t
749
- }));
750
- }
751
- function cr({ datapoint: e, seriesIndex: t }) {
752
- Vt("selectDatapoint", e), j.value.events.datapointClick && j.value.events.datapointClick({
753
- datapoint: e,
754
- seriesIndex: t
755
- });
756
- }
757
- function lr(e, n = {}) {
758
- return oe(P.value.formatter, e, t({
759
- p: P.value.prefix,
760
- v: e,
761
- s: P.value.suffix,
762
- r: N.value.roundingValue
763
- }), n);
764
- }
765
- function ur({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
766
- j.value.events.datapointEnter && j.value.events.datapointEnter({
767
- datapoint: e,
768
- seriesIndex: t
769
- }), A.value = n, or.value = {
770
- datapoint: e,
771
- seriesIndex: t,
772
- config: j.value,
773
- series: Hn.value
774
- }, Gt.value = !0, Q.value = e;
775
- let i = N.value.customFormat;
776
- if (r(i) && le(() => i({
777
- seriesIndex: t,
778
- datapoint: e,
779
- series: Hn.value,
780
- config: j.value
781
- }))) Kt.value = i({
782
- seriesIndex: t,
783
- datapoint: e,
784
- series: Hn.value,
785
- config: j.value
786
- });
787
- else {
788
- let n = "";
789
- n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${L.value.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${lr(e.value, {
790
- datapoint: e,
791
- seriesIndex: t
792
- })}</div>`, Kt.value = `<div>${n}</div>`;
793
- }
794
- }
795
- function dr() {
796
- A.value !== "keyboard" && (Gt.value = !1, Q.value = null);
797
- }
798
- function fr({ boxPlot: e, seriesIndex: t, triggerMode: n = "pointer" }) {
799
- A.value = n, Q.value = null, Gt.value = !0, or.value = {
800
- boxPlot: e,
801
- seriesIndex: t,
802
- config: j.value,
803
- series: Hn.value
804
- };
805
- let i = N.value.customFormat;
806
- if (r(i)) try {
807
- let n = {
808
- boxPlot: e,
809
- seriesIndex: t,
810
- series: Hn.value,
811
- config: j.value
812
- };
813
- if (le(() => i(n))) {
814
- Kt.value = i(n);
815
- return;
816
- }
817
- } catch {}
818
- let a = [
819
- [F.value.tooltipLabels.upperAdjacent, e.upperAdjacent],
820
- [F.value.tooltipLabels.q3, e.q3],
821
- [F.value.tooltipLabels.median, e.median],
822
- [F.value.tooltipLabels.q1, e.q1],
823
- [F.value.tooltipLabels.lowerAdjacent, e.lowerAdjacent],
824
- [F.value.tooltipLabels.iqr, e.iqr]
825
- ], o = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="1" y="1" width="10" height="10" rx="2" stroke="none" fill="${e.color}"/></svg>`, s = a.map(([n, r]) => `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;"><span>${n}</span><b>${lr(r, {
826
- boxPlot: e,
827
- seriesIndex: t
828
- })}</b></div>`).join("");
829
- Kt.value = `<div style="min-width:160px;"><div style="display:flex;flex-direction:row;gap:6px;align-items:center;margin-bottom:6px;">${o}${e.name}</div>` + s + `<div style="display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:space-between;margin-top:6px;"><span>${F.value.tooltipLabels.count}</span><b>${e.count}</b></div></div>`;
830
- }
831
- let pr = d(() => ({
832
- head: q.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
833
- name: `${e.name} - ${t.name}`,
834
- color: t.color
835
- }))),
836
- body: q.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
837
- }));
838
- function mr(e = null) {
839
- Ue(() => {
840
- let t = [], r = [j.value.table.columnNames.series, j.value.table.columnNames.value];
841
- X.value ? (r = Jn.value, t = qn.value.map((e) => [
842
- [e.name],
843
- [e.lowerAdjacent],
844
- [e.q1],
845
- [e.median],
846
- [e.q3],
847
- [e.upperAdjacent],
848
- [e.iqr],
849
- [e.count]
850
- ])) : t = pr.value.head.map((e, t) => [[e.name], [pr.value.body[t]]]);
851
- let i = [
852
- [L.value.title.text],
853
- [L.value.title.subtitle.text],
854
- r.map((e) => [e])
855
- ].concat(t), a = n(i);
856
- e ? e(a) : ce({
857
- csvContent: a,
858
- title: L.value.title.text || "vue-ui-strip-plot"
859
- });
860
- });
861
- }
862
- let hr = d(() => {
863
- if (X.value) {
864
- let e = Jn.value;
865
- return {
866
- colNames: e,
867
- head: e,
868
- body: qn.value.map((e) => [
869
- {
870
- color: e.color,
871
- name: e.name
872
- },
873
- Yn(e.lowerAdjacent),
874
- Yn(e.q1),
875
- Yn(e.median),
876
- Yn(e.q3),
877
- Yn(e.upperAdjacent),
878
- Yn(e.iqr),
879
- e.count
880
- ]),
881
- config: {
882
- th: {
883
- backgroundColor: j.value.table.th.backgroundColor,
884
- color: j.value.table.th.color,
885
- outline: j.value.table.th.outline
886
- },
887
- td: {
888
- backgroundColor: j.value.table.td.backgroundColor,
889
- color: j.value.table.td.color,
890
- outline: j.value.table.td.outline
891
- },
892
- breakpoint: j.value.table.responsiveBreakpoint
893
- }
894
- };
895
- }
896
- let e = [j.value.table.columnNames.series, j.value.table.columnNames.value], n = pr.value.head.map((e, n) => {
897
- let r = t({
898
- p: P.value.prefix,
899
- v: pr.value.body[n],
900
- s: P.value.suffix,
901
- r: j.value.table.td.roundingValue
902
- });
903
- return [{
904
- color: e.color,
905
- name: e.name
906
- }, r];
907
- }), r = {
908
- th: {
909
- backgroundColor: j.value.table.th.backgroundColor,
910
- color: j.value.table.th.color,
911
- outline: j.value.table.th.outline
912
- },
913
- td: {
914
- backgroundColor: j.value.table.td.backgroundColor,
915
- color: j.value.table.td.color,
916
- outline: j.value.table.td.outline
917
- },
918
- breakpoint: j.value.table.responsiveBreakpoint
919
- };
920
- return {
921
- colNames: [j.value.table.columnNames.series, j.value.table.columnNames.value],
922
- head: e,
923
- body: n,
924
- config: r
925
- };
926
- }), $ = S(!1);
927
- function gr(e) {
928
- $.value = e, Wt.value += 1;
929
- }
930
- function _r() {
931
- return q.value;
932
- }
933
- function vr() {
934
- U.value.showTable = !U.value.showTable;
935
- }
936
- function yr() {
937
- U.value.dataLabels.show = !U.value.dataLabels.show;
938
- }
939
- function br() {
940
- U.value.showTooltip = !U.value.showTooltip;
941
- }
942
- let xr = S(!1);
943
- function Sr() {
944
- xr.value = !xr.value;
945
- }
946
- async function Cr({ scale: e = 2 } = {}) {
947
- if (!k.value) return;
948
- let { width: t, height: n } = k.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Oe({
949
- domElement: k.value,
950
- base64: !0,
951
- img: !0,
952
- scale: e
953
- });
954
- return {
955
- imageUri: i,
956
- base64: a,
957
- title: L.value.title.text,
958
- width: t,
959
- height: n,
960
- aspectRatio: r
961
- };
962
- }
963
- let wr = d(() => q.value.map((e) => e.name)), Tr = S({
964
- start: 0,
965
- end: q.value.length
966
- });
967
- De({
968
- timeLabelsEls: rn,
969
- timeLabels: wr,
970
- slicer: Tr,
971
- configRef: j,
972
- rotationPath: [
973
- "style",
974
- "chart",
975
- "labels",
976
- "xAxisLabels",
977
- "rotation"
978
- ],
979
- autoRotatePath: [
980
- "style",
981
- "chart",
982
- "labels",
983
- "xAxisLabels",
984
- "autoRotate",
985
- "enable"
986
- ],
987
- isAutoSize: !1,
988
- width: V,
989
- height: H,
990
- targetClass: ".vue-ui-strip-plot-category-name",
991
- rotation: P.value.xAxisLabels.autoRotate.angle
992
- });
993
- let Er = d(() => {
994
- let e = j.value.table.useDialog && !j.value.table.show, t = U.value.showTable;
995
- return {
996
- component: e ? It : jt,
997
- title: `${L.value.title.text}${L.value.title.subtitle.text ? `: ${L.value.title.subtitle.text}` : ""}`,
998
- props: e ? {
999
- backgroundColor: j.value.table.th.backgroundColor,
1000
- color: j.value.table.th.color,
1001
- headerColor: j.value.table.th.color,
1002
- headerBg: j.value.table.th.backgroundColor,
1003
- isFullscreen: $.value,
1004
- fullscreenParent: k.value,
1005
- forcedWidth: Math.min(800, window.innerWidth * .8),
1006
- isCursorPointer: R.value
1007
- } : {
1008
- hideDetails: !0,
1009
- config: {
1010
- open: t,
1011
- maxHeight: 1e4,
1012
- body: {
1013
- backgroundColor: L.value.backgroundColor,
1014
- color: L.value.color
1015
- },
1016
- head: {
1017
- backgroundColor: L.value.backgroundColor,
1018
- color: L.value.color
1019
- }
1020
- }
1021
- }
1022
- };
1023
- });
1024
- Ye(() => U.value.showTable, (e) => {
1025
- j.value.table.show || (e && j.value.table.useDialog && $t.value ? $t.value.open() : "close" in $t.value && $t.value.close());
1026
- });
1027
- function Dr() {
1028
- U.value.showTable = !1, en.value && en.value.setTableIconState(!1);
1029
- }
1030
- let Or = d(() => L.value.backgroundColor), kr = d(() => L.value.title), { isCallbackImaging: Ar, isCallbackSvg: jr, generateSvg: Mr, onGenerateImage: Nr } = Te({
1031
- svg: z,
1032
- title: kr,
1033
- legend: null,
1034
- legendItems: null,
1035
- backgroundColor: Or,
1036
- getSvgCallback: () => j.value.userOptions.callbacks.svg,
1037
- generateImage: kn
1038
- });
1039
- async function Pr() {
1040
- if (Vt("copyAlt", {
1041
- config: j.value,
1042
- dataset: Y.value
1043
- }), !j.value.userOptions.callbacks.altCopy) {
1044
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1045
- return;
1046
- }
1047
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
1048
- config: j.value,
1049
- dataset: Y.value
1050
- }));
1051
- }
1052
- function Fr() {
1053
- return Y.value.length;
1054
- }
1055
- function Ir(e) {
1056
- return Y.value[e]?.plots ?? [];
1057
- }
1058
- function Lr(e = on.value, t = sn.value) {
1059
- return !Number.isInteger(e) || !Number.isInteger(t) ? null : Ir(e)[t] ?? null;
1060
- }
1061
- function Rr() {
1062
- on.value = null, sn.value = null, A.value = "pointer", Gt.value = !1, Q.value = null;
1063
- }
1064
- function zr(e) {
1065
- if (!e || !z.value) return;
1066
- let t = z.value.getBoundingClientRect();
1067
- cn.value = {
1068
- x: t.left + e.x / V.value * t.width,
1069
- y: t.top + e.y / H.value * t.height
1070
- };
1071
- }
1072
- function Br(e, t) {
1073
- let n = Lr(e, t);
1074
- n && (on.value = e, sn.value = t, A.value = "keyboard", zr(n), ur({
1075
- datapoint: n,
1076
- seriesIndex: e,
1077
- triggerMode: "keyboard"
1078
- }));
1079
- }
1080
- function Vr() {
1081
- ln.value = !0, on.value = null, sn.value = null;
1082
- }
1083
- function Hr() {
1084
- ln.value = !1, Rr();
1085
- }
1086
- function Ur(e) {
1087
- if (!z.value || xr.value || document.activeElement !== z.value || !Fr()) return;
1088
- 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";
1089
- if (!t && !n && !r && !i && !a && !o) return;
1090
- if (e.preventDefault(), e.stopPropagation(), o) {
1091
- Rr();
1092
- return;
1093
- }
1094
- let s = on.value, c = sn.value;
1095
- if (s === null || c === null) s = 0, c = 0;
1096
- else if (t || n) {
1097
- let e = Fr();
1098
- s = n ? (s + 1) % e : (s - 1 + e) % e;
1099
- let t = Ir(s);
1100
- if (!t.length) return;
1101
- c = Math.min(c, t.length - 1);
1102
- } else if (r || i) {
1103
- let e = Ir(s);
1104
- if (!e.length) return;
1105
- c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
1106
- }
1107
- if (a) {
1108
- let e = Lr();
1109
- if (!e) return;
1110
- cr({
1111
- datapoint: e,
1112
- seriesIndex: on.value
1113
- });
1114
- return;
1115
- }
1116
- Br(s, c);
1117
- }
1118
- let Wr = d(() => ({
1119
- headers: hr.value?.colNames ?? [],
1120
- rows: hr.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
1121
- }));
1122
- return je({
1123
- getData: _r,
1124
- getImage: Cr,
1125
- generatePdf: On,
1126
- generateCsv: mr,
1127
- generateImage: kn,
1128
- generateSvg: Mr,
1129
- toggleTable: vr,
1130
- toggleLabels: yr,
1131
- toggleTooltip: br,
1132
- toggleAnnotator: Sr,
1133
- toggleFullscreen: gr,
1134
- copyAlt: Pr
1135
- }), (e, n) => (x(), m("div", {
1136
- ref_key: "stripPlotChart",
1137
- ref: k,
1138
- class: v(`vue-data-ui-component vue-ui-strip-plot ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${j.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1139
- style: b(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${L.value.backgroundColor};${j.value.responsive ? "height:100%" : ""}`),
1140
- id: `strip-plot_${Ut.value}`,
1141
- onMouseenter: n[2] ||= () => E(_n)(!0),
1142
- onMouseleave: n[3] ||= () => E(_n)(!1)
1143
- }, [
1144
- h("div", {
1145
- id: `chart-instructions-${Ut.value}`,
1146
- class: "sr-only"
1147
- }, [h("p", null, T(j.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
1148
- Wr.value?.rows?.length ? (x(), f(Fe, {
1149
- key: 0,
1150
- uid: Ut.value,
1151
- head: Wr.value.headers,
1152
- body: Wr.value.rows,
1153
- notice: j.value.a11y.translations.tableAvailable,
1154
- caption: j.value.a11y.translations.tableCaption
1155
- }, null, 8, [
1156
- "uid",
1157
- "head",
1158
- "body",
1159
- "notice",
1160
- "caption"
1161
- ])) : p("", !0),
1162
- M.value.buttons.annotator ? (x(), f(E(Pt), {
1163
- key: 1,
1164
- svgRef: E(z),
1165
- backgroundColor: L.value.backgroundColor,
1166
- color: L.value.color,
1167
- active: xr.value,
1168
- isCursorPointer: R.value,
1169
- palette: M.value.annotatorPalette,
1170
- onClose: Sr
1171
- }, {
1172
- "annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1173
- "annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
1174
- "annotator-action-draw": D(({ mode: t }) => [w(e.$slots, "annotator-action-draw", y(_({ mode: t })), void 0, !0)]),
1175
- "annotator-action-undo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-undo", y(_({ disabled: t })), void 0, !0)]),
1176
- "annotator-action-redo": D(({ disabled: t }) => [w(e.$slots, "annotator-action-redo", y(_({ disabled: t })), void 0, !0)]),
1177
- "annotator-action-delete": D(({ disabled: t }) => [w(e.$slots, "annotator-action-delete", y(_({ disabled: t })), void 0, !0)]),
1178
- _: 3
1179
- }, 8, [
1180
- "svgRef",
1181
- "backgroundColor",
1182
- "color",
1183
- "active",
1184
- "isCursorPointer",
1185
- "palette"
1186
- ])) : p("", !0),
1187
- An.value ? (x(), m("div", {
1188
- key: 2,
1189
- ref_key: "noTitle",
1190
- ref: Yt,
1191
- class: "vue-data-ui-no-title-space",
1192
- style: "height:36px; width: 100%;background:transparent"
1193
- }, null, 512)) : p("", !0),
1194
- L.value.title.text ? (x(), m("div", {
1195
- key: 3,
1196
- ref_key: "chartTitle",
1197
- ref: qt,
1198
- style: "width:100%;background:transparent;padding-bottom:24px"
1199
- }, [(x(), f(ke, {
1200
- key: `title_${Zt.value}`,
1201
- config: {
1202
- title: {
1203
- cy: "donut-div-title",
1204
- ...L.value.title
1205
- },
1206
- subtitle: {
1207
- cy: "donut-div-subtitle",
1208
- ...L.value.title.subtitle
1209
- }
1210
- }
1211
- }, null, 8, ["config"]))], 512)) : p("", !0),
1212
- M.value.show && Ht.value && (E(vn) || E(gn)) ? (x(), f(E(Nt), {
1213
- ref_key: "userOptionsRef",
1214
- ref: en,
1215
- key: `user_option_${Wt.value}`,
1216
- backgroundColor: L.value.backgroundColor,
1217
- color: L.value.color,
1218
- isPrinting: E(En),
1219
- isImaging: E(Dn),
1220
- uid: Ut.value,
1221
- hasTooltip: M.value.buttons.tooltip && N.value.show,
1222
- hasPdf: M.value.buttons.pdf,
1223
- hasXls: M.value.buttons.csv,
1224
- hasImg: M.value.buttons.img,
1225
- hasSvg: M.value.buttons.svg,
1226
- hasTable: M.value.buttons.table,
1227
- hasLabel: M.value.buttons.labels && j.value.type !== "violin",
1228
- hasFullscreen: M.value.buttons.fullscreen,
1229
- hasAltCopy: M.value.buttons.altCopy,
1230
- isTooltip: U.value.showTooltip,
1231
- isFullscreen: $.value,
1232
- titles: { ...M.value.buttonTitles },
1233
- chartElement: k.value,
1234
- position: M.value.position,
1235
- hasAnnotator: M.value.buttons.annotator,
1236
- isAnnotation: xr.value,
1237
- callbacks: M.value.callbacks,
1238
- printScale: M.value.print.scale,
1239
- tableDialog: j.value.table.useDialog,
1240
- isCursorPointer: R.value,
1241
- onToggleFullscreen: gr,
1242
- onGeneratePdf: E(On),
1243
- onGenerateCsv: mr,
1244
- onGenerateImage: E(Nr),
1245
- onGenerateSvg: E(Mr),
1246
- onToggleTable: vr,
1247
- onToggleLabels: yr,
1248
- onToggleTooltip: br,
1249
- onToggleAnnotator: Sr,
1250
- onCopyAlt: Pr,
1251
- style: b({ visibility: E(vn) ? E(gn) ? "visible" : "hidden" : "visible" })
1252
- }, ze({ _: 2 }, [
1253
- e.$slots.menuIcon ? {
1254
- name: "menuIcon",
1255
- fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
1256
- isOpen: t,
1257
- color: n
1258
- })), void 0, !0)]),
1259
- key: "0"
1260
- } : void 0,
1261
- e.$slots.optionTooltip ? {
1262
- name: "optionTooltip",
1263
- fn: D(() => [w(e.$slots, "optionTooltip", {}, void 0, !0)]),
1264
- key: "1"
1265
- } : void 0,
1266
- e.$slots.optionPdf ? {
1267
- name: "optionPdf",
1268
- fn: D(() => [w(e.$slots, "optionPdf", {}, void 0, !0)]),
1269
- key: "2"
1270
- } : void 0,
1271
- e.$slots.optionCsv ? {
1272
- name: "optionCsv",
1273
- fn: D(() => [w(e.$slots, "optionCsv", {}, void 0, !0)]),
1274
- key: "3"
1275
- } : void 0,
1276
- e.$slots.optionImg ? {
1277
- name: "optionImg",
1278
- fn: D(() => [w(e.$slots, "optionImg", {}, void 0, !0)]),
1279
- key: "4"
1280
- } : void 0,
1281
- e.$slots.optionSvg ? {
1282
- name: "optionSvg",
1283
- fn: D(() => [w(e.$slots, "optionSvg", {}, void 0, !0)]),
1284
- key: "5"
1285
- } : void 0,
1286
- e.$slots.optionTable ? {
1287
- name: "optionTable",
1288
- fn: D(() => [w(e.$slots, "optionTable", {}, void 0, !0)]),
1289
- key: "6"
1290
- } : void 0,
1291
- e.$slots.optionLabels ? {
1292
- name: "optionLabels",
1293
- fn: D(() => [w(e.$slots, "optionLabels", {}, void 0, !0)]),
1294
- key: "7"
1295
- } : void 0,
1296
- e.$slots.optionFullscreen ? {
1297
- name: "optionFullscreen",
1298
- fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [w(e.$slots, "optionFullscreen", y(_({
1299
- toggleFullscreen: t,
1300
- isFullscreen: n
1301
- })), void 0, !0)]),
1302
- key: "8"
1303
- } : void 0,
1304
- e.$slots.optionAnnotator ? {
1305
- name: "optionAnnotator",
1306
- fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [w(e.$slots, "optionAnnotator", y(_({
1307
- toggleAnnotator: t,
1308
- isAnnotator: n
1309
- })), void 0, !0)]),
1310
- key: "9"
1311
- } : void 0,
1312
- e.$slots.optionAltCopy ? {
1313
- name: "optionAltCopy",
1314
- fn: D(({ altCopy: t }) => [w(e.$slots, "optionAltCopy", y(_({ altCopy: t })), void 0, !0)]),
1315
- key: "10"
1316
- } : void 0,
1317
- e.$slots["custom-menu-before"] ? {
1318
- name: "custom-menu-before",
1319
- fn: D(() => [w(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1320
- key: "11"
1321
- } : void 0,
1322
- e.$slots["custom-menu-after"] ? {
1323
- name: "custom-menu-after",
1324
- fn: D(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1325
- key: "12"
1326
- } : void 0
1327
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasLabel.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
1328
- h("div", et, [(x(), m("svg", {
1329
- ref_key: "svgRef",
1330
- ref: z,
1331
- xmlns: E(ue),
1332
- class: v({
1333
- "vue-data-ui-fullscreen--on": $.value,
1334
- "vue-data-ui-fulscreen--off": !$.value,
1335
- "vue-data-ui-no-transition": !E(un)
1336
- }),
1337
- viewBox: `0 0 ${V.value} ${H.value}`,
1338
- style: b(`max-width:100%; overflow: visible; background:transparent;color:${L.value.color};`),
1339
- "aria-describedby": `chart-instructions-${Ut.value}`,
1340
- tabindex: "0",
1341
- onFocus: Vr,
1342
- onBlur: Hr,
1343
- onKeydown: Ur
1344
- }, [
1345
- Ve(E(Ft)),
1346
- e.$slots["chart-background"] ? (x(), m("foreignObject", {
1347
- key: 0,
1348
- x: K.value.left,
1349
- y: K.value.top,
1350
- width: Math.max(.1, K.value.width),
1351
- height: Math.max(.1, K.value.height),
1352
- style: { pointerEvents: "none" }
1353
- }, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : p("", !0),
1354
- I.value.show ? (x(), m("g", rt, [
1355
- I.value.horizontalGrid.show ? (x(), m("g", it, [(x(!0), m(u, null, C(ar.value, (e) => (x(), m("line", {
1356
- x1: e.x1,
1357
- x2: e.x2,
1358
- y1: e.y,
1359
- y2: e.y,
1360
- stroke: I.value.horizontalGrid.stroke,
1361
- "stroke-width": I.value.horizontalGrid.strokeWidth,
1362
- "stroke-dasharray": I.value.horizontalGrid.strokeDasharray,
1363
- "stroke-linecap": "round"
1364
- }, null, 8, at))), 256))])) : p("", !0),
1365
- I.value.verticalGrid.show ? (x(), m("g", ot, [(x(!0), m(u, null, C(q.value, (e, t) => (x(), m("line", {
1366
- x1: K.value.left + (t + 1) * K.value.stripWidth,
1367
- x2: K.value.left + (t + 1) * K.value.stripWidth,
1368
- y1: K.value.top,
1369
- y2: K.value.bottom,
1370
- stroke: I.value.verticalGrid.stroke,
1371
- "stroke-width": I.value.verticalGrid.strokeWidth,
1372
- "stroke-dasharray": I.value.verticalGrid.strokeDasharray,
1373
- "stroke-linecap": "round"
1374
- }, null, 8, st))), 256))])) : p("", !0),
1375
- h("line", {
1376
- x1: K.value.left,
1377
- x2: K.value.left,
1378
- y1: K.value.top,
1379
- y2: K.value.bottom,
1380
- stroke: I.value.stroke,
1381
- "stroke-width": I.value.strokeWidth,
1382
- "stroke-linecap": "round"
1383
- }, null, 8, ct),
1384
- h("line", {
1385
- x1: K.value.left,
1386
- x2: K.value.right,
1387
- y1: K.value.bottom,
1388
- y2: K.value.bottom,
1389
- stroke: I.value.stroke,
1390
- "stroke-width": I.value.strokeWidth,
1391
- "stroke-linecap": "round"
1392
- }, null, 8, lt)
1393
- ])) : p("", !0),
1394
- P.value.yAxisLabels.show ? (x(), m("g", {
1395
- key: 2,
1396
- ref_key: "scaleLabels",
1397
- ref: an
1398
- }, [(x(!0), m(u, null, C(ar.value, (e, n) => (x(), m("text", {
1399
- class: v({ "vue-data-ui-transition": E(un) }),
1400
- key: `sl_${n}`,
1401
- transform: `translate(${e.x1 + P.value.yAxisLabels.offsetX - 5}, ${e.y + P.value.yAxisLabels.fontSize / 3})`,
1402
- fill: P.value.yAxisLabels.color,
1403
- "font-size": P.value.yAxisLabels.fontSize,
1404
- "text-anchor": "end"
1405
- }, T(E(oe)(P.value.formatter, e.value, E(t)({
1406
- p: P.value.prefix,
1407
- v: e.value,
1408
- s: P.value.suffix,
1409
- r: P.value.yAxisLabels.rounding
1410
- }), {
1411
- datapoint: e,
1412
- seriesIndex: n
1413
- })), 11, ut))), 128))], 512)) : p("", !0),
1414
- P.value.xAxisLabels.show ? (x(), m("g", {
1415
- key: 3,
1416
- ref_key: "timeLabelsEls",
1417
- ref: rn
1418
- }, [(x(!0), m(u, null, C(wr.value, (e, t) => (x(), m("g", null, [String(e).includes("\n") ? (x(), m("text", {
1419
- key: 1,
1420
- class: "vue-ui-strip-plot-category-name",
1421
- transform: `translate(${K.value.left + (t + 1) * K.value.stripWidth - K.value.stripWidth / 2}, ${K.value.bottom + P.value.xAxisLabels.fontSize * 2 + P.value.xAxisLabels.offsetY}), rotate(${P.value.xAxisLabels.rotation})`,
1422
- "font-size": P.value.xAxisLabels.fontSize,
1423
- fill: P.value.xAxisLabels.color,
1424
- "text-anchor": P.value.xAxisLabels.rotation > 0 ? "start" : P.value.xAxisLabels.rotation < 0 ? "end" : "middle",
1425
- innerHTML: E(o)({
1426
- content: E(te)(String(e)),
1427
- fontSize: P.value.xAxisLabels.fontSize,
1428
- fill: P.value.xAxisLabels.color,
1429
- x: 0,
1430
- y: 0
1431
- })
1432
- }, null, 8, ft)) : (x(), m("text", {
1433
- key: 0,
1434
- class: "vue-ui-strip-plot-category-name",
1435
- transform: `translate(${K.value.left + (t + 1) * K.value.stripWidth - K.value.stripWidth / 2}, ${K.value.bottom + P.value.xAxisLabels.fontSize * 2 + P.value.xAxisLabels.offsetY}), rotate(${P.value.xAxisLabels.rotation})`,
1436
- "font-size": P.value.xAxisLabels.fontSize,
1437
- fill: P.value.xAxisLabels.color,
1438
- "text-anchor": P.value.xAxisLabels.rotation > 0 ? "start" : P.value.xAxisLabels.rotation < 0 ? "end" : "middle"
1439
- }, T(String(e)), 9, dt))]))), 256))], 512)) : p("", !0),
1440
- P.value.axis.yLabel ? (x(), m("text", {
1441
- key: 4,
1442
- ref_key: "yAxisLabel",
1443
- ref: nn,
1444
- fill: P.value.axis.color,
1445
- "font-size": P.value.axis.fontSize,
1446
- transform: `translate(${P.value.axis.fontSize}, ${K.value.top + K.value.height / 2}) rotate(-90)`,
1447
- "text-anchor": "middle"
1448
- }, T(P.value.axis.yLabel), 9, pt)) : p("", !0),
1449
- P.value.axis.xLabel ? (x(), m("text", {
1450
- key: 5,
1451
- ref_key: "xAxisLabel",
1452
- ref: tn,
1453
- fill: P.value.axis.color,
1454
- "font-size": P.value.axis.fontSize,
1455
- x: K.value.left + K.value.width / 2,
1456
- y: H.value - P.value.axis.fontSize / 3,
1457
- "text-anchor": "middle"
1458
- }, T(P.value.axis.xLabel), 9, mt)) : p("", !0),
1459
- Q.value ? (x(), m(u, { key: 6 }, [
1460
- h("line", {
1461
- x1: K.value.left,
1462
- x2: K.value.right,
1463
- y1: Q.value.y,
1464
- y2: Q.value.y,
1465
- stroke: Q.value.color,
1466
- "stroke-width": 1,
1467
- class: v({ "select-circle": j.value.useCssAnimation })
1468
- }, null, 10, ht),
1469
- h("circle", {
1470
- cx: K.value.left,
1471
- cy: Q.value.y,
1472
- r: 3,
1473
- fill: Q.value.color,
1474
- class: v({ "select-circle": j.value.useCssAnimation })
1475
- }, null, 10, gt),
1476
- h("circle", {
1477
- cx: K.value.right,
1478
- cy: Q.value.y,
1479
- r: 3,
1480
- fill: Q.value.color,
1481
- class: v({ "select-circle": j.value.useCssAnimation })
1482
- }, null, 10, _t)
1483
- ], 64)) : p("", !0),
1484
- h("defs", null, [(x(!0), m(u, null, C(q.value, (e) => (x(), f(Pe, {
1485
- t: "radial",
1486
- id: e.id,
1487
- key: `r_${e.id}`,
1488
- fy: "30%",
1489
- stops: [
1490
- [
1491
- "10%",
1492
- E(i)(e.color, L.value.plots.gradient.intensity / 100),
1493
- 1
1494
- ],
1495
- [
1496
- "90%",
1497
- E(s)(e.color, .1),
1498
- 1
1499
- ],
1500
- [
1501
- "100%",
1502
- e.color,
1503
- 1
1504
- ]
1505
- ]
1506
- }, null, 8, ["id", "stops"]))), 128))]),
1507
- (x(!0), m(u, null, C(Zn.value, (e, t) => (x(), m(u, { key: e.id }, [e.path ? (x(), m("path", {
1508
- key: 0,
1509
- d: e.path,
1510
- fill: e.fill,
1511
- stroke: e.color,
1512
- "fill-opacity": F.value.opacity,
1513
- "stroke-opacity": F.value.strokeOpacity,
1514
- "stroke-width": F.value.strokeWidth,
1515
- style: b({
1516
- pointerEvents: X.value ? "auto" : "none",
1517
- cursor: X.value && R.value ? "pointer" : "default"
1518
- }),
1519
- onMouseenter: (e) => X.value && qn.value[t] && fr({
1520
- boxPlot: qn.value[t],
1521
- seriesIndex: t,
1522
- triggerMode: "pointer"
1523
- }),
1524
- onMouseleave: n[0] ||= (e) => X.value && dr()
1525
- }, null, 44, vt)) : p("", !0), (x(!0), m(u, null, C(e.connectors, (t, n) => (x(), m("line", {
1526
- key: `violin_connector_${e.id}_${n}`,
1527
- x1: t.x,
1528
- x2: t.x,
1529
- y1: t.y1,
1530
- y2: t.y2,
1531
- stroke: e.color,
1532
- "stroke-opacity": F.value.strokeOpacity,
1533
- "stroke-width": F.value.strokeWidth,
1534
- "stroke-linecap": "round",
1535
- style: { "pointer-events": "none" }
1536
- }, null, 8, yt))), 128))], 64))), 128)),
1537
- (x(!0), m(u, null, C(qn.value, (e, t) => (x(), m("g", {
1538
- key: `boxplot_${e.id}`,
1539
- style: b({ cursor: R.value ? "pointer" : "default" }),
1540
- onMouseenter: (n) => fr({
1541
- boxPlot: e,
1542
- seriesIndex: t,
1543
- triggerMode: "pointer"
1544
- }),
1545
- onMouseleave: dr
1546
- }, [
1547
- h("line", {
1548
- x1: e.centerX,
1549
- x2: e.centerX,
1550
- y1: e.upperY,
1551
- y2: e.lowerY,
1552
- stroke: E(s)(e.boxPlotColor, .2),
1553
- "stroke-width": Math.max(1, F.value.strokeWidth),
1554
- "stroke-linecap": "round"
1555
- }, null, 8, xt),
1556
- h("rect", {
1557
- x: e.boxLeft,
1558
- y: Math.min(e.q1Y, e.q3Y),
1559
- width: e.boxWidth,
1560
- height: Math.max(1, Math.abs(e.q3Y - e.q1Y)),
1561
- fill: e.boxPlotColor,
1562
- stroke: E(s)(e.boxPlotColor, .2),
1563
- "stroke-width": Math.max(1, F.value.strokeWidth),
1564
- rx: e.boxWidth / 20
1565
- }, null, 8, St),
1566
- h("circle", {
1567
- cx: e.boxLeft + e.boxWidth / 2,
1568
- cy: e.medianY,
1569
- r: e.boxWidth / 3 * Math.min(1, F.value.boxPlot.medianCircleRadiusRatio),
1570
- fill: F.value.boxPlot.medianCircleFill,
1571
- stroke: E(s)(e.boxPlotColor, .2)
1572
- }, null, 8, Ct)
1573
- ], 44, bt))), 128)),
1574
- (x(!0), m(u, null, C(Y.value, (n, r) => (x(), m(u, null, [X.value ? p("", !0) : (x(!0), m(u, { key: 0 }, C(n.plots, (t, r) => (x(), f(Ae, He({ ref_for: !0 }, e.$attrs, {
1575
- plot: {
1576
- x: t.x,
1577
- y: Xt.value ? t.y : K.value.top
1578
- },
1579
- radius: Q.value && Q.value.id === t.id ? W.value * 1.5 : W.value,
1580
- shape: L.value.plots.shape,
1581
- stroke: L.value.plots.stroke,
1582
- strokeWidth: L.value.plots.strokeWidth,
1583
- color: L.value.plots.gradient.show ? `url(#${n.id})` : n.color,
1584
- style: `transition: all 0.2s ease-in-out; opacity:${Q.value ? Q.value.id === t.id ? 1 : .2 : L.value.plots.opacity};${Mn.value ? `transition-delay:${r * 50}ms` : ""}`,
1585
- class: {
1586
- "vue-ui-strip-plot-animated": j.value.useCssAnimation && Mn.value && !E(pn),
1587
- "vue-ui-strip-plot-select-circle": j.value.useCssAnimation && !Mn.value
1588
- },
1589
- onMouseenter: (e) => ur({
1590
- datapoint: t,
1591
- seriesIndex: r,
1592
- triggerMode: "pointer"
1593
- }),
1594
- onMouseleave: (e) => sr({
1595
- datapoint: t,
1596
- seriesIndex: r
1597
- }),
1598
- onClick: (e) => cr({
1599
- datapoint: t,
1600
- seriesIndex: r
1601
- })
1602
- }), null, 16, [
1603
- "plot",
1604
- "radius",
1605
- "shape",
1606
- "stroke",
1607
- "strokeWidth",
1608
- "color",
1609
- "style",
1610
- "class",
1611
- "onMouseenter",
1612
- "onMouseleave",
1613
- "onClick"
1614
- ]))), 256)), U.value.dataLabels.show && !X.value ? (x(), m("g", wt, [(x(!0), m(u, null, C(n.plots, (e, r) => (x(), m(u, null, [r === n.plots.length - 1 || Q.value && Q.value.id === e.id && !U.value.showTooltip ? (x(), m("text", {
1615
- key: 0,
1616
- x: e.x,
1617
- y: e.y + P.value.bestPlotLabel.offsetY - W.value * (Q.value && Q.value.id === e.id && !U.value.showTooltip ? 2 : 1.5),
1618
- "font-size": P.value.bestPlotLabel.fontSize,
1619
- fill: P.value.bestPlotLabel.color,
1620
- "text-anchor": "middle",
1621
- style: b(`opacity:${j.value.useCssAnimation ? +!Mn.value : 1};transition:opacity 0.2s ease-in;`)
1622
- }, T(e.name) + " " + T(P.value.bestPlotLabel.showValue ? E(oe)(P.value.formatter, e.value, E(t)({
1623
- p: `(${P.value.prefix}`,
1624
- v: e.value,
1625
- s: `${P.value.suffix})`,
1626
- r: L.value.labels.bestPlotLabel.rounding
1627
- }), {
1628
- datapoint: e,
1629
- seriesIndex: r
1630
- }) : ""), 13, Tt)) : p("", !0)], 64))), 256))])) : p("", !0)], 64))), 256)),
1631
- w(e.$slots, "svg", { svg: {
1632
- ...K.value,
1633
- isPrintingImg: E(En) || E(Dn) || E(Ar),
1634
- isPrintingSvg: E(jr),
1635
- boxPlotSummaries: qn.value,
1636
- series: q.value
1637
- } }, void 0, !0)
1638
- ], 46, tt)), e.$slots.hint ? (x(), m("div", Et, [w(e.$slots, "hint", y(_({
1639
- hint: j.value.a11y.translations.keyboardNavigation,
1640
- isVisible: ln.value
1641
- })), void 0, !0)])) : p("", !0)]),
1642
- e.$slots.watermark ? (x(), m("div", Dt, [w(e.$slots, "watermark", y(_({ isPrinting: E(En) || E(Dn) || E(Ar) || E(jr) })), void 0, !0)])) : p("", !0),
1643
- e.$slots.source ? (x(), m("div", {
1644
- key: 6,
1645
- ref_key: "source",
1646
- ref: Jt,
1647
- dir: "auto"
1648
- }, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1649
- Ve(E(kt), {
1650
- teleportTo: N.value.teleportTo,
1651
- show: U.value.showTooltip && Gt.value,
1652
- backgroundColor: N.value.backgroundColor,
1653
- color: N.value.color,
1654
- borderRadius: N.value.borderRadius,
1655
- borderColor: N.value.borderColor,
1656
- borderWidth: N.value.borderWidth,
1657
- fontSize: N.value.fontSize,
1658
- backgroundOpacity: N.value.backgroundOpacity,
1659
- position: N.value.position,
1660
- offsetX: N.value.offsetX,
1661
- offsetY: N.value.offsetY,
1662
- parent: k.value,
1663
- content: Kt.value,
1664
- isFullscreen: $.value,
1665
- isCustom: E(r)(N.value.customFormat),
1666
- smooth: N.value.smooth,
1667
- backdropFilter: N.value.backdropFilter,
1668
- smoothForce: N.value.smoothForce,
1669
- smoothSnapThreshold: N.value.smoothSnapThreshold,
1670
- isA11yMode: A.value === "keyboard",
1671
- a11yPosition: cn.value
1672
- }, {
1673
- "tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...or.value })), void 0, !0)]),
1674
- tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...or.value })), void 0, !0)]),
1675
- "tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...or.value })), void 0, !0)]),
1676
- _: 3
1677
- }, 8, [
1678
- "teleportTo",
1679
- "show",
1680
- "backgroundColor",
1681
- "color",
1682
- "borderRadius",
1683
- "borderColor",
1684
- "borderWidth",
1685
- "fontSize",
1686
- "backgroundOpacity",
1687
- "position",
1688
- "offsetX",
1689
- "offsetY",
1690
- "parent",
1691
- "content",
1692
- "isFullscreen",
1693
- "isCustom",
1694
- "smooth",
1695
- "backdropFilter",
1696
- "smoothForce",
1697
- "smoothSnapThreshold",
1698
- "isA11yMode",
1699
- "a11yPosition"
1700
- ]),
1701
- Ht.value && M.value.buttons.table ? (x(), f(Ke(Er.value.component), He({ key: 7 }, Er.value.props, {
1702
- ref_key: "tableUnit",
1703
- ref: $t,
1704
- onClose: Dr
1705
- }), ze({
1706
- content: D(() => [(x(), f(E(Mt), {
1707
- key: `table_${Qt.value}`,
1708
- colNames: hr.value.colNames,
1709
- head: hr.value.head,
1710
- body: hr.value.body,
1711
- config: hr.value.config,
1712
- title: j.value.table.useDialog ? "" : Er.value.title,
1713
- withCloseButton: !j.value.table.useDialog,
1714
- isCursorPointer: R.value,
1715
- onClose: Dr
1716
- }, {
1717
- th: D(({ th: e }) => [h("div", Ot, T(e), 1)]),
1718
- td: D(({ td: e }) => [Be(T(e.name || e), 1)]),
1719
- _: 1
1720
- }, 8, [
1721
- "colNames",
1722
- "head",
1723
- "body",
1724
- "config",
1725
- "title",
1726
- "withCloseButton",
1727
- "isCursorPointer"
1728
- ]))]),
1729
- _: 2
1730
- }, [j.value.table.useDialog ? {
1731
- name: "title",
1732
- fn: D(() => [Be(T(Er.value.title), 1)]),
1733
- key: "0"
1734
- } : void 0, j.value.table.useDialog ? {
1735
- name: "actions",
1736
- fn: D(() => [h("button", {
1737
- tabindex: "0",
1738
- class: "vue-ui-user-options-button",
1739
- onClick: n[1] ||= (e) => mr(M.value.callbacks.csv),
1740
- style: b({ cursor: R.value ? "pointer" : "default" })
1741
- }, [Ve(E(At), {
1742
- name: "fileCsv",
1743
- stroke: Er.value.props.color
1744
- }, null, 8, ["stroke"])], 4)]),
1745
- key: "1"
1746
- } : void 0]), 1040)) : p("", !0),
1747
- w(e.$slots, "skeleton", {}, () => [E(pn) ? (x(), f(Se, { key: 0 })) : p("", !0)], !0)
1748
- ], 46, Qe));
1749
- }
1750
- }, [["__scopeId", "data-v-e8da9344"]]);
1751
- //#endregion
1752
- export { Ze as n, kt as t };