vue-data-ui 3.20.1 → 3.20.2

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/dist/A11yDataTable-BCbtxMU6.js +45 -0
  2. package/dist/Arrow-D6j6ocXm.js +116 -0
  3. package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
  4. package/dist/BaseIcon-DfLoHNUj.js +502 -0
  5. package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
  6. package/dist/BaseScanner-Dr2a1Msy.js +27 -0
  7. package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
  8. package/dist/ColorPicker-Bjwxnvfh.js +255 -0
  9. package/dist/DataTable-B--IN22e.js +150 -0
  10. package/dist/Legend-Cz2uQ5gs.js +114 -0
  11. package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
  12. package/dist/PackageVersion-f0MuYk3R.js +11 -0
  13. package/dist/PenAndPaper-DqrClVfb.js +461 -0
  14. package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
  15. package/dist/RecursiveLabels-D9rfID6q.js +56 -0
  16. package/dist/RecursiveLinks-BygcpDiT.js +78 -0
  17. package/dist/Shape-BPCJfphn.js +141 -0
  18. package/dist/Slicer-SHBj0VaV.js +1144 -0
  19. package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
  20. package/dist/SparkTooltip-CfE6yCad.js +93 -0
  21. package/dist/Title-NWp4qB4K.js +87 -0
  22. package/dist/Tooltip-BENq327o.js +312 -0
  23. package/dist/UserOptions-C1NgoGu6.js +1411 -0
  24. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  25. package/dist/canvas-lib-BOP_HS11.js +79 -0
  26. package/dist/components/arrow.js +2 -0
  27. package/dist/components/vue-ui-3d-bar.js +2 -0
  28. package/dist/components/vue-ui-accordion.js +2 -0
  29. package/dist/components/vue-ui-age-pyramid.js +2 -0
  30. package/dist/components/vue-ui-annotator.js +2 -0
  31. package/dist/components/vue-ui-bullet.js +2 -0
  32. package/dist/components/vue-ui-bump.js +2 -0
  33. package/dist/components/vue-ui-candlestick.js +2 -0
  34. package/dist/components/vue-ui-carousel-table.js +2 -0
  35. package/dist/components/vue-ui-chestnut.js +2 -0
  36. package/dist/components/vue-ui-chord.js +2 -0
  37. package/dist/components/vue-ui-circle-pack.js +2 -0
  38. package/dist/components/vue-ui-cursor.js +2 -0
  39. package/dist/components/vue-ui-dag.js +2 -0
  40. package/dist/components/vue-ui-dashboard.js +2 -0
  41. package/dist/components/vue-ui-digits.js +2 -0
  42. package/dist/components/vue-ui-donut-evolution.js +2 -0
  43. package/dist/components/vue-ui-donut.js +2 -0
  44. package/dist/components/vue-ui-dumbbell.js +2 -0
  45. package/dist/components/vue-ui-flow.js +2 -0
  46. package/dist/components/vue-ui-funnel.js +2 -0
  47. package/dist/components/vue-ui-galaxy.js +2 -0
  48. package/dist/components/vue-ui-gauge.js +2 -0
  49. package/dist/components/vue-ui-geo.js +2 -0
  50. package/dist/components/vue-ui-gizmo.js +2 -0
  51. package/dist/components/vue-ui-heatmap.js +2 -0
  52. package/dist/components/vue-ui-history-plot.js +2 -0
  53. package/dist/components/vue-ui-horizontal-bar.js +2 -0
  54. package/dist/components/vue-ui-icon.js +2 -0
  55. package/dist/components/vue-ui-kpi.js +2 -0
  56. package/dist/components/vue-ui-mini-loader.js +2 -0
  57. package/dist/components/vue-ui-molecule.js +2 -0
  58. package/dist/components/vue-ui-mood-radar.js +2 -0
  59. package/dist/components/vue-ui-nested-donuts.js +2 -0
  60. package/dist/components/vue-ui-onion.js +2 -0
  61. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
  62. package/dist/components/vue-ui-pattern-seed.js +2 -0
  63. package/dist/components/vue-ui-pattern.js +2 -0
  64. package/dist/components/vue-ui-quadrant.js +2 -0
  65. package/dist/components/vue-ui-quick-chart.js +2 -0
  66. package/dist/components/vue-ui-radar.js +2 -0
  67. package/dist/components/vue-ui-rating.js +2 -0
  68. package/dist/components/vue-ui-relation-circle.js +2 -0
  69. package/dist/components/vue-ui-ridgeline.js +2 -0
  70. package/dist/components/vue-ui-rings.js +2 -0
  71. package/dist/components/vue-ui-scatter.js +2 -0
  72. package/dist/components/vue-ui-skeleton.js +2 -0
  73. package/dist/components/vue-ui-smiley.js +2 -0
  74. package/dist/components/vue-ui-spark-trend.js +2 -0
  75. package/dist/components/vue-ui-sparkbar.js +2 -0
  76. package/dist/components/vue-ui-sparkgauge.js +2 -0
  77. package/dist/components/vue-ui-sparkhistogram.js +2 -0
  78. package/dist/components/vue-ui-sparkline.js +2 -0
  79. package/dist/components/vue-ui-sparkstackbar.js +2 -0
  80. package/dist/components/vue-ui-stackbar.js +2 -0
  81. package/dist/components/vue-ui-stackline.js +2 -0
  82. package/dist/components/vue-ui-strip-plot.js +2 -0
  83. package/dist/components/vue-ui-table-heatmap.js +2 -0
  84. package/dist/components/vue-ui-table-sparkline.js +2 -0
  85. package/dist/components/vue-ui-table.js +2 -0
  86. package/dist/components/vue-ui-thermometer.js +2 -0
  87. package/dist/components/vue-ui-timer.js +2 -0
  88. package/dist/components/vue-ui-tiremarks.js +2 -0
  89. package/dist/components/vue-ui-treemap.js +2 -0
  90. package/dist/components/vue-ui-vertical-bar.js +2 -0
  91. package/dist/components/vue-ui-waffle.js +2 -0
  92. package/dist/components/vue-ui-wheel.js +2 -0
  93. package/dist/components/vue-ui-word-cloud.js +2 -0
  94. package/dist/components/vue-ui-world.js +2 -0
  95. package/dist/components/vue-ui-xy-canvas.js +2 -0
  96. package/dist/components/vue-ui-xy.js +2 -0
  97. package/dist/dom-to-png-BYtB4BF3.js +237 -0
  98. package/dist/exposedLib-CI8ji8G-.js +19 -0
  99. package/dist/geoProjections-Czak6Jn1.js +145 -0
  100. package/dist/img-1cKsci8e.js +74 -0
  101. package/dist/labelUtils-CUctkYoA.js +19 -0
  102. package/dist/lib-DUeYQsS0.js +1882 -0
  103. package/dist/llms.txt +232 -0
  104. package/dist/patternUtils-CS7hn6at.js +258 -0
  105. package/dist/pdf-D0eZ99cP.js +90 -0
  106. package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
  107. package/dist/style.css +2 -0
  108. package/dist/types/arrow.d.ts +4 -0
  109. package/dist/types/utils.d.ts +551 -0
  110. package/dist/types/vue-data-ui.d.ts +17190 -0
  111. package/dist/types/vue-ui-3d-bar.d.ts +93 -0
  112. package/dist/types/vue-ui-accordion.d.ts +11 -0
  113. package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
  114. package/dist/types/vue-ui-annotator.d.ts +34 -0
  115. package/dist/types/vue-ui-bullet.d.ts +85 -0
  116. package/dist/types/vue-ui-bump.d.ts +92 -0
  117. package/dist/types/vue-ui-candlestick.d.ts +106 -0
  118. package/dist/types/vue-ui-carousel-table.d.ts +59 -0
  119. package/dist/types/vue-ui-chestnut.d.ts +98 -0
  120. package/dist/types/vue-ui-chord.d.ts +110 -0
  121. package/dist/types/vue-ui-circle-pack.d.ts +126 -0
  122. package/dist/types/vue-ui-cursor.d.ts +9 -0
  123. package/dist/types/vue-ui-dag.d.ts +125 -0
  124. package/dist/types/vue-ui-dashboard.d.ts +68 -0
  125. package/dist/types/vue-ui-digits.d.ts +12 -0
  126. package/dist/types/vue-ui-donut-evolution.d.ts +96 -0
  127. package/dist/types/vue-ui-donut.d.ts +123 -0
  128. package/dist/types/vue-ui-dumbbell.d.ts +94 -0
  129. package/dist/types/vue-ui-flow.d.ts +106 -0
  130. package/dist/types/vue-ui-funnel.d.ts +79 -0
  131. package/dist/types/vue-ui-galaxy.d.ts +114 -0
  132. package/dist/types/vue-ui-gauge.d.ts +89 -0
  133. package/dist/types/vue-ui-geo.d.ts +94 -0
  134. package/dist/types/vue-ui-gizmo.d.ts +22 -0
  135. package/dist/types/vue-ui-heatmap.d.ts +101 -0
  136. package/dist/types/vue-ui-history-plot.d.ts +114 -0
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
  138. package/dist/types/vue-ui-icon.d.ts +15 -0
  139. package/dist/types/vue-ui-kpi.d.ts +25 -0
  140. package/dist/types/vue-ui-mini-loader.d.ts +15 -0
  141. package/dist/types/vue-ui-molecule.d.ts +112 -0
  142. package/dist/types/vue-ui-mood-radar.d.ts +92 -0
  143. package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
  144. package/dist/types/vue-ui-onion.d.ts +106 -0
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
  146. package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
  147. package/dist/types/vue-ui-pattern.d.ts +15 -0
  148. package/dist/types/vue-ui-quadrant.d.ts +125 -0
  149. package/dist/types/vue-ui-quick-chart.d.ts +108 -0
  150. package/dist/types/vue-ui-radar.d.ts +116 -0
  151. package/dist/types/vue-ui-rating.d.ts +42 -0
  152. package/dist/types/vue-ui-relation-circle.d.ts +92 -0
  153. package/dist/types/vue-ui-ridgeline.d.ts +106 -0
  154. package/dist/types/vue-ui-rings.d.ts +98 -0
  155. package/dist/types/vue-ui-scatter.d.ts +97 -0
  156. package/dist/types/vue-ui-skeleton.d.ts +11 -0
  157. package/dist/types/vue-ui-smiley.d.ts +28 -0
  158. package/dist/types/vue-ui-spark-trend.d.ts +19 -0
  159. package/dist/types/vue-ui-sparkbar.d.ts +49 -0
  160. package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
  162. package/dist/types/vue-ui-sparkline.d.ts +59 -0
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
  164. package/dist/types/vue-ui-stackbar.d.ts +118 -0
  165. package/dist/types/vue-ui-stackline.d.ts +114 -0
  166. package/dist/types/vue-ui-strip-plot.d.ts +96 -0
  167. package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
  168. package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
  169. package/dist/types/vue-ui-table.d.ts +38 -0
  170. package/dist/types/vue-ui-thermometer.d.ts +70 -0
  171. package/dist/types/vue-ui-timer.d.ts +49 -0
  172. package/dist/types/vue-ui-tiremarks.d.ts +70 -0
  173. package/dist/types/vue-ui-treemap.d.ts +104 -0
  174. package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
  175. package/dist/types/vue-ui-waffle.d.ts +101 -0
  176. package/dist/types/vue-ui-wheel.d.ts +70 -0
  177. package/dist/types/vue-ui-word-cloud.d.ts +97 -0
  178. package/dist/types/vue-ui-world.d.ts +98 -0
  179. package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
  180. package/dist/types/vue-ui-xy.d.ts +146 -0
  181. package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
  182. package/dist/useChartAccessibility-DYqac8yF.js +12 -0
  183. package/dist/useConfig-DAyQk86L.js +7479 -0
  184. package/dist/useFitSvgText-CT3nmlaS.js +63 -0
  185. package/dist/useNestedProp-CNcoy38D.js +10 -0
  186. package/dist/useObjectBindings-BI7hP-BC.js +189 -0
  187. package/dist/usePanZoom-CYU3B4T3.js +157 -0
  188. package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
  189. package/dist/usePrinter-C1Gqt_Sp.js +49 -0
  190. package/dist/useResponsive-BfnK0KxU.js +19 -0
  191. package/dist/useStableElementSize-C7KADDKj.js +77 -0
  192. package/dist/useSvgExport-SVIsDot8.js +755 -0
  193. package/dist/useTableResponsive-B24Uwt2E.js +24 -0
  194. package/dist/useThemeCheck-C43Tcqmk.js +24 -0
  195. package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
  196. package/dist/useTimeLabels-BmBRv27Y.js +272 -0
  197. package/dist/useUserOptionState-DK-_1ddE.js +15 -0
  198. package/dist/utils.js +28 -0
  199. package/dist/vClickOutside-DUrZWttG.js +13 -0
  200. package/dist/vue-data-ui-C3m9eNp0.js +274 -0
  201. package/dist/vue-data-ui.js +76 -0
  202. package/dist/vue-ui-3d-bar-Bfcitq55.js +1757 -0
  203. package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
  204. package/dist/vue-ui-age-pyramid-Dgzd45Ol.js +1238 -0
  205. package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
  206. package/dist/vue-ui-bullet-DAeyHSHC.js +710 -0
  207. package/dist/vue-ui-bump-DsiXfIFL.js +1249 -0
  208. package/dist/vue-ui-candlestick-BadEBUcF.js +1826 -0
  209. package/dist/vue-ui-carousel-table-_LCF7RFm.js +455 -0
  210. package/dist/vue-ui-chestnut-BTuAvc7L.js +2010 -0
  211. package/dist/vue-ui-chord-CAyRIJlh.js +1391 -0
  212. package/dist/vue-ui-circle-pack-BWzwg8Qb.js +1608 -0
  213. package/dist/vue-ui-cursor-C6t7nAT4.js +283 -0
  214. package/dist/vue-ui-dag-8Puv77-a.js +2909 -0
  215. package/dist/vue-ui-dashboard-CXDvRu27.js +513 -0
  216. package/dist/vue-ui-digits-BlHqILF0.js +209 -0
  217. package/dist/vue-ui-donut-CclzduCs.js +2410 -0
  218. package/dist/vue-ui-donut-evolution-DEfY2Zvy.js +1510 -0
  219. package/dist/vue-ui-dumbbell-BG5C4Hdg.js +1530 -0
  220. package/dist/vue-ui-flow-B73dHBrL.js +1235 -0
  221. package/dist/vue-ui-funnel-Bn3c5lWX.js +777 -0
  222. package/dist/vue-ui-galaxy-eBY55Fue.js +1077 -0
  223. package/dist/vue-ui-gauge-s8pl305B.js +920 -0
  224. package/dist/vue-ui-geo-Ca2ZPVhH.js +1516 -0
  225. package/dist/vue-ui-gizmo-CBNDeAzT.js +225 -0
  226. package/dist/vue-ui-heatmap-V79kNqUi.js +1568 -0
  227. package/dist/vue-ui-history-plot-jiJh8oaM.js +1554 -0
  228. package/dist/vue-ui-horizontal-bar-60b88qqU.js +1681 -0
  229. package/dist/vue-ui-kpi-DnfazUeY.js +96 -0
  230. package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
  231. package/dist/vue-ui-molecule-BeIVS2yp.js +925 -0
  232. package/dist/vue-ui-mood-radar-DHY1ry9I.js +1148 -0
  233. package/dist/vue-ui-nested-donuts-GNR6O-Z_.js +1487 -0
  234. package/dist/vue-ui-onion-DghkeKRu.js +1200 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-DqfRRSnD.js +1416 -0
  236. package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
  237. package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
  238. package/dist/vue-ui-quadrant-BBucQ_8r.js +1978 -0
  239. package/dist/vue-ui-quick-chart-DxxGq-5d.js +2469 -0
  240. package/dist/vue-ui-radar-B0gW_Iur.js +1229 -0
  241. package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
  242. package/dist/vue-ui-relation-circle-C-fNOxJM.js +924 -0
  243. package/dist/vue-ui-ridgeline-CzDR20s3.js +1622 -0
  244. package/dist/vue-ui-rings-DNRdTVqV.js +1246 -0
  245. package/dist/vue-ui-scatter-CRgFebuE.js +2413 -0
  246. package/dist/vue-ui-skeleton-iNzRGgRn.js +2556 -0
  247. package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
  248. package/dist/vue-ui-spark-trend-CPgTOFNY.js +438 -0
  249. package/dist/vue-ui-sparkbar-B4C_YxU-.js +393 -0
  250. package/dist/vue-ui-sparkgauge-DDkSKiba.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-qtb6-Th8.js +560 -0
  252. package/dist/vue-ui-sparkline-TTSEEs7R.js +1507 -0
  253. package/dist/vue-ui-sparkstackbar-DXEnV79Y.js +662 -0
  254. package/dist/vue-ui-stackbar-CwFVpEgH.js +2270 -0
  255. package/dist/vue-ui-stackline-Bph0kD43.js +2398 -0
  256. package/dist/vue-ui-strip-plot-D2_WSwTF.js +1340 -0
  257. package/dist/vue-ui-table-BzmQMHxi.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
  259. package/dist/vue-ui-table-sparkline-CXNxbqIw.js +707 -0
  260. package/dist/vue-ui-thermometer-Cqw2_Jpi.js +763 -0
  261. package/dist/vue-ui-timer-BHP_5wgz.js +439 -0
  262. package/dist/vue-ui-tiremarks-D8wFTxXl.js +552 -0
  263. package/dist/vue-ui-treemap-DbSebes7.js +1587 -0
  264. package/dist/vue-ui-waffle-CAIBpbY0.js +1362 -0
  265. package/dist/vue-ui-wheel-B5Cyopnp.js +885 -0
  266. package/dist/vue-ui-word-cloud-BaGDKrKL.js +1656 -0
  267. package/dist/vue-ui-world-DLcVBwLg.js +14264 -0
  268. package/dist/vue-ui-xy-CyP5FAo8.js +4578 -0
  269. package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
  270. package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
  272. package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
  273. package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
  274. package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
  275. package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
  276. package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
  277. package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
  278. package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
  279. package/dist/vue_ui_donut-BDGqG07h.js +358 -0
  280. package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
  281. package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
  282. package/dist/vue_ui_flow-BewZjjKG.js +238 -0
  283. package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
  284. package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
  285. package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
  286. package/dist/vue_ui_geo-B8TODs-G.js +248 -0
  287. package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
  288. package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
  290. package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
  291. package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
  292. package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
  293. package/dist/vue_ui_onion-1FTFFS46.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
  295. package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
  296. package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
  297. package/dist/vue_ui_radar-jafTED5j.js +306 -0
  298. package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
  299. package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
  300. package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
  301. package/dist/vue_ui_scatter-I0POnicu.js +479 -0
  302. package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
  303. package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
  304. package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
  306. package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
  308. package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
  309. package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
  310. package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
  311. package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
  312. package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
  313. package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
  314. package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
  315. package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
  317. package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
  318. package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
  319. package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
  320. package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
  321. package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
  322. package/package.json +120 -120
@@ -0,0 +1,1340 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { B as t, Bt as n, Ct as r, Et as i, G as a, H as o, J as s, Rt as c, S as ee, Ut as te, W as ne, X as re, bt as ie, h as ae, i as oe, nt as se, ot as ce, pt as le, t as ue, v as de, x as fe, y as pe, zt as me } from "./lib-DUeYQsS0.js";
3
+ import { t as he } from "./useConfig-DAyQk86L.js";
4
+ import { t as ge } from "./usePrinter-C1Gqt_Sp.js";
5
+ import { n as _e, t as ve } from "./BaseScanner-Dr2a1Msy.js";
6
+ import { t as ye } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as be } from "./useNestedProp-CNcoy38D.js";
8
+ import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as Ce } from "./img-1cKsci8e.js";
11
+ import { n as we } from "./Title-NWp4qB4K.js";
12
+ import { t as Te } from "./Shape-BPCJfphn.js";
13
+ import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
14
+ import { c as De } from "./canvas-lib-BOP_HS11.js";
15
+ import { t as Oe } from "./useResponsive-BfnK0KxU.js";
16
+ import { t as ke } from "./A11yDataTable-BCbtxMU6.js";
17
+ import { t as Ae } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as je } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Me } from "./vue_ui_strip_plot-CtJe8_gq.js";
20
+ import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Ne, createTextVNode as Pe, createVNode as Fe, defineAsyncComponent as h, guardReactiveProps as g, mergeProps as Ie, nextTick as Le, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as Re, onMounted as ze, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Be, shallowRef as Ve, toDisplayString as w, toRefs as He, unref as T, watch as Ue, watchEffect as We, withCtx as E } from "vue";
21
+ //#region src/components/vue-ui-strip-plot.vue
22
+ var Ge = /* @__PURE__ */ e({ default: () => xt }), Ke = ["id"], qe = ["id"], Je = { style: { position: "relative" } }, Ye = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], Xe = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height"
31
+ ], Ze = { key: 1 }, Qe = { key: 0 }, $e = [
32
+ "x1",
33
+ "x2",
34
+ "y1",
35
+ "y2",
36
+ "stroke",
37
+ "stroke-width",
38
+ "stroke-dasharray"
39
+ ], et = { key: 1 }, tt = [
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width",
46
+ "stroke-dasharray"
47
+ ], nt = [
48
+ "x1",
49
+ "x2",
50
+ "y1",
51
+ "y2",
52
+ "stroke",
53
+ "stroke-width"
54
+ ], rt = [
55
+ "x1",
56
+ "x2",
57
+ "y1",
58
+ "y2",
59
+ "stroke",
60
+ "stroke-width"
61
+ ], it = [
62
+ "x",
63
+ "y",
64
+ "fill",
65
+ "font-size"
66
+ ], at = [
67
+ "transform",
68
+ "font-size",
69
+ "fill",
70
+ "text-anchor"
71
+ ], ot = [
72
+ "transform",
73
+ "font-size",
74
+ "fill",
75
+ "text-anchor",
76
+ "innerHTML"
77
+ ], st = [
78
+ "fill",
79
+ "font-size",
80
+ "transform"
81
+ ], ct = [
82
+ "fill",
83
+ "font-size",
84
+ "x",
85
+ "y"
86
+ ], lt = [
87
+ "x1",
88
+ "x2",
89
+ "y1",
90
+ "y2",
91
+ "stroke"
92
+ ], ut = [
93
+ "cx",
94
+ "cy",
95
+ "fill"
96
+ ], dt = [
97
+ "cx",
98
+ "cy",
99
+ "fill"
100
+ ], ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], ht = ["stop-color"], gt = { key: 0 }, _t = [
101
+ "x",
102
+ "y",
103
+ "font-size",
104
+ "fill"
105
+ ], vt = {
106
+ key: 0,
107
+ style: {
108
+ position: "absolute",
109
+ top: "100%",
110
+ left: "0",
111
+ width: "100%"
112
+ },
113
+ "data-dom-to-png-ignore": "",
114
+ "aria-hidden": "true"
115
+ }, yt = {
116
+ key: 5,
117
+ class: "vue-data-ui-watermark"
118
+ }, bt = ["innerHTML"], xt = /* @__PURE__ */ Ee({
119
+ __name: "vue-ui-strip-plot",
120
+ props: {
121
+ config: {
122
+ type: Object,
123
+ default() {
124
+ return {};
125
+ }
126
+ },
127
+ dataset: {
128
+ type: Array,
129
+ default() {
130
+ return [];
131
+ }
132
+ }
133
+ },
134
+ emits: ["selectDatapoint", "copyAlt"],
135
+ setup(e, { expose: Ee, emit: Ge }) {
136
+ let xt = h(() => import("./Tooltip-BENq327o.js")), St = h(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), Ct = h(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), wt = h(() => import("./DataTable-B--IN22e.js")), Tt = h(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), Et = h(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), Dt = h(() => import("./PackageVersion-f0MuYk3R.js").then((e) => e.t)), Ot = h(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_strip_plot: kt } = he(), { isThemeValid: At, warnInvalidTheme: jt } = xe(), D = e, Mt = Ge, O = u({
137
+ get() {
138
+ return !!D.dataset && D.dataset.length;
139
+ },
140
+ set(e) {
141
+ return e;
142
+ }
143
+ }), k = x(o()), Nt = x(0), Pt = x(!1), Ft = x(""), A = x(null), It = x(null), Lt = x(null), Rt = x(null), zt = x(!1), Bt = x(0), Vt = x(0), j = x(null), Ht = x(null), Ut = x(!1), Wt = x(!1), Gt = x(null), Kt = x(null), qt = x(null), Jt = x(null), M = x(null), N = x(null), P = x("pointer"), Yt = x({
144
+ x: 0,
145
+ y: 0
146
+ }), Xt = x(!1), F = x(an()), I = u(() => F.value.userOptions.useCursorPointer), Zt = u(() => n({
147
+ defaultConfig: {
148
+ userOptions: { show: !1 },
149
+ table: { show: !1 },
150
+ style: { chart: {
151
+ backgroundColor: "#99999930",
152
+ padding: {
153
+ top: 24,
154
+ left: 24,
155
+ right: 24,
156
+ bottom: 24
157
+ },
158
+ grid: {
159
+ stroke: "#6A6A6A",
160
+ horizontalGrid: { stroke: "#6A6A6A" },
161
+ verticalGrid: { stroke: "#6A6A6A" }
162
+ },
163
+ plots: { stroke: "#6A6A6A" },
164
+ labels: {
165
+ bestPlotLabel: { show: !1 },
166
+ axis: {
167
+ xLabel: "",
168
+ yLabel: ""
169
+ },
170
+ xAxisLabels: { show: !1 },
171
+ yAxisLabels: { show: !1 }
172
+ }
173
+ } }
174
+ },
175
+ userConfig: F.value.skeletonConfig ?? {}
176
+ })), { loading: Qt, FINAL_DATASET: $t, manualLoading: en } = _e({
177
+ ...He(D),
178
+ FINAL_CONFIG: F,
179
+ prepareConfig: an,
180
+ skeletonDataset: D.config?.skeletonDataset ?? [
181
+ {
182
+ name: "_",
183
+ color: "#DBDBDB",
184
+ plots: [
185
+ {
186
+ name: "_",
187
+ value: 1
188
+ },
189
+ {
190
+ name: "_",
191
+ value: 2
192
+ },
193
+ {
194
+ name: "_",
195
+ value: 3
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ name: "_",
201
+ color: "#C4C4C4",
202
+ plots: [
203
+ {
204
+ name: "_",
205
+ value: 3
206
+ },
207
+ {
208
+ name: "_",
209
+ value: 5
210
+ },
211
+ {
212
+ name: "_",
213
+ value: 8
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ name: "_",
219
+ color: "#ADADAD",
220
+ plots: [
221
+ {
222
+ name: "_",
223
+ value: 8
224
+ },
225
+ {
226
+ name: "_",
227
+ value: 13
228
+ },
229
+ {
230
+ name: "_",
231
+ value: 21
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ name: "_",
237
+ color: "#969696",
238
+ plots: [
239
+ {
240
+ name: "_",
241
+ value: 21
242
+ },
243
+ {
244
+ name: "_",
245
+ value: 34
246
+ },
247
+ {
248
+ name: "_",
249
+ value: 55
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ name: "_",
255
+ color: "#808080",
256
+ plots: [
257
+ {
258
+ name: "_",
259
+ value: 55
260
+ },
261
+ {
262
+ name: "_",
263
+ value: 89
264
+ },
265
+ {
266
+ name: "_",
267
+ value: 144
268
+ }
269
+ ]
270
+ }
271
+ ],
272
+ skeletonConfig: n({
273
+ defaultConfig: F.value,
274
+ userConfig: Zt.value
275
+ })
276
+ }), { userOptionsVisible: tn, setUserOptionsVisibility: nn, keepUserOptionState: rn } = Ae({ config: F.value }), { svgRef: L } = je({ config: F.value.style.chart.title });
277
+ function an() {
278
+ let e = be({
279
+ userConfig: D.config,
280
+ defaultConfig: kt
281
+ }), t = e.theme;
282
+ if (!t) return e;
283
+ if (!At.value(e)) return jt(e), e;
284
+ let n = be({
285
+ userConfig: Me[t] || D.config,
286
+ defaultConfig: e
287
+ }), r = be({
288
+ userConfig: D.config,
289
+ defaultConfig: n
290
+ });
291
+ return {
292
+ ...r,
293
+ customPalette: r.customPalette.length ? r.customPalette : c[t] || i
294
+ };
295
+ }
296
+ Ue(() => D.config, async (e) => {
297
+ Qt.value || (F.value = an()), tn.value = !F.value.userOptions.showOnChartHover, sn(), Bt.value += 1, Vt.value += 1, W.value.dataLabels.show = F.value.style.chart.labels.bestPlotLabel.show, W.value.showTable = F.value.table.show, W.value.showTooltip = F.value.style.chart.tooltip.show, V.value = F.value.style.chart.width, H.value = F.value.style.chart.height, U.value = F.value.style.chart.plots.radius;
298
+ }, { deep: !0 }), Ue(() => D.dataset, (e) => {
299
+ Array.isArray(e) && e.length > 0 && (en.value = !1);
300
+ }, { deep: !0 });
301
+ let R = Ve(null), z = Ve(null);
302
+ ze(() => {
303
+ sn();
304
+ });
305
+ let on = u(() => !!F.value.debug);
306
+ function sn() {
307
+ if (r(D.dataset) ? (re({
308
+ componentName: "VueUiStripPlot",
309
+ type: "dataset",
310
+ debug: on.value
311
+ }), en.value = !0) : D.dataset.forEach((e, t) => {
312
+ ce({
313
+ datasetObject: e,
314
+ requiredAttributes: ["name", "plots"]
315
+ }).forEach((e) => {
316
+ O.value = !1, re({
317
+ componentName: "VueUiStripPlot",
318
+ type: "datasetSerieAttribute",
319
+ property: e,
320
+ index: t,
321
+ debug: on.value
322
+ });
323
+ }), e.plots && e.plots.forEach((e, n) => {
324
+ ce({
325
+ datasetObject: e,
326
+ requiredAttributes: ["name", "value"]
327
+ }).forEach((e) => {
328
+ O.value = !1, re({
329
+ componentName: "VueUiStripPlot",
330
+ type: "datasetSerieAttribute",
331
+ property: e,
332
+ index: `${t},${n}`,
333
+ debug: on.value
334
+ });
335
+ });
336
+ });
337
+ }), r(D.dataset) || (en.value = F.value.loading), F.value.responsive) {
338
+ let e = De(() => {
339
+ let { width: e, height: t } = Oe({
340
+ chart: A.value,
341
+ title: F.value.style.chart.title.text ? It.value : null,
342
+ source: Lt.value,
343
+ noTitle: Rt.value
344
+ });
345
+ requestAnimationFrame(() => {
346
+ hn.value = t, V.value = Math.max(.1, e), H.value = Math.max(.1, t - 12), F.value.responsiveProportionalSizing ? U.value = me({
347
+ relator: Math.min(t, e),
348
+ adjuster: 600,
349
+ source: F.value.style.chart.plots.radius,
350
+ threshold: 6,
351
+ fallback: 6
352
+ }) : U.value = F.value.style.chart.plots.radius;
353
+ });
354
+ });
355
+ R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = A.value.parentNode, R.value.observe(z.value);
356
+ }
357
+ zt.value = !0, setTimeout(() => {
358
+ B.value = !1;
359
+ }, Sn.value * 50);
360
+ }
361
+ Re(() => {
362
+ R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
363
+ });
364
+ let { isPrinting: cn, isImaging: ln, generatePdf: un, generateImage: dn } = ge({
365
+ elementId: `strip-plot_${k.value}`,
366
+ fileName: F.value.style.chart.title.text || "vue-ui-strip-plot",
367
+ options: F.value.userOptions.print
368
+ }), fn = u(() => F.value.userOptions.show && !F.value.style.chart.title.text), pn = u(() => fe(F.value.customPalette)), B = x(F.value.useCssAnimation), mn = x({
369
+ top: F.value.style.chart.padding.top,
370
+ bottom: F.value.style.chart.padding.bottom,
371
+ left: F.value.style.chart.padding.left,
372
+ right: F.value.style.chart.padding.right
373
+ }), V = x(F.value.style.chart.width), H = x(F.value.style.chart.height), hn = x(F.value.style.chart.height), U = x(F.value.style.chart.plots.radius), W = x({
374
+ showTable: F.value.table.show,
375
+ dataLabels: { show: F.value.style.chart.labels.bestPlotLabel.show },
376
+ showTooltip: F.value.style.chart.tooltip.show
377
+ });
378
+ Ue(F, () => {
379
+ W.value = {
380
+ showTable: F.value.table.show,
381
+ dataLabels: { show: F.value.style.chart.labels.bestPlotLabel.show },
382
+ showTooltip: F.value.style.chart.tooltip.show
383
+ }, V.value = F.value.style.chart.width, H.value = F.value.style.chart.height, U.value = F.value.style.chart.plots.radius;
384
+ }, { immediate: !0 });
385
+ let gn = u(() => Math.min(U.value, G.value.stripWidth / 2 * .9));
386
+ function _n() {
387
+ let e = 0;
388
+ Jt.value && (e = Array.from(Jt.value.querySelectorAll("text")).reduce((e, t) => {
389
+ let n = t.getComputedTextLength();
390
+ return n > e ? n : e;
391
+ }, 0));
392
+ let t = Kt.value ? Kt.value.getBoundingClientRect().width : 0;
393
+ return e + t + (t ? 24 : 0);
394
+ }
395
+ let vn = x(0), yn = De((e) => {
396
+ vn.value = e;
397
+ }, 100);
398
+ We((e) => {
399
+ let t = qt.value;
400
+ if (!t) return;
401
+ let n = new ResizeObserver((e) => {
402
+ yn(e[0].contentRect.height);
403
+ });
404
+ n.observe(t), e(() => n.disconnect());
405
+ }), Re(() => {
406
+ vn.value = 0;
407
+ });
408
+ let bn = u(() => {
409
+ let e = 0;
410
+ Gt.value && (e = Gt.value.getBBox().height + F.value.style.chart.labels.axis.fontSize / 3 + 12 + F.value.style.chart.labels.axis.xLabelOffsetY);
411
+ let t = 0;
412
+ return qt.value && (t = vn.value + 12), e + t;
413
+ }), G = u(() => {
414
+ let e = _n(), t = mn.value.left + e + F.value.style.chart.labels.axis.yLabelOffsetX + 5, n = V.value - mn.value.right, r = Math.max(0, n - t), i = mn.value.top + F.value.style.chart.plots.radius + F.value.style.chart.labels.bestPlotLabel.fontSize, a = H.value - mn.value.bottom - bn.value, o = Math.max(0, a - i), s = Array.isArray($t.value) ? $t.value.length : 0;
415
+ return {
416
+ left: t,
417
+ right: n,
418
+ top: i,
419
+ bottom: a,
420
+ width: r,
421
+ height: o,
422
+ stripWidth: s > 0 ? r / s : 0,
423
+ absoluteHeight: H.value
424
+ };
425
+ }), xn = u(() => $t.value.map((e, t) => {
426
+ let n = o();
427
+ return {
428
+ ...e,
429
+ id: n,
430
+ color: e.color ? pe(e.color) : pn.value[t] || i[t] || i[t % i.length],
431
+ plots: e.plots.map((r, a) => ({
432
+ ...r,
433
+ value: de(r.value),
434
+ parentId: n,
435
+ parentName: e.name,
436
+ parentIndex: t,
437
+ plotIndex: a,
438
+ color: e.color ? pe(e.color) : pn.value[t] || i[t] || i[t % i.length],
439
+ id: o()
440
+ })).sort((e, t) => e.value - t.value)
441
+ };
442
+ })), K = u(() => (xn.value || []).map((e, t) => ({
443
+ ...e,
444
+ plots: e.plots.map((e) => ({
445
+ ...e,
446
+ x: G.value.left + (t + 1) * G.value.stripWidth - G.value.stripWidth / 2
447
+ }))
448
+ }))), Sn = u(() => Math.max(...K.value.map((e) => e.plots.length))), Cn = u(() => {
449
+ let e = K.value.flatMap((e) => e.plots.map((e) => e.value));
450
+ return {
451
+ max: Math.max(...e),
452
+ min: Math.min(...e)
453
+ };
454
+ }), q = u(() => ae(Cn.value.min < 0 ? Cn.value.min : 0, Cn.value.max, F.value.style.chart.grid.scaleSteps)), J = u(() => (K.value || []).map((e, t) => ({
455
+ ...e,
456
+ plots: e.plots.map((e) => ({
457
+ ...e,
458
+ y: G.value.bottom - (e.value + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min)) * G.value.height
459
+ }))
460
+ }))), wn = u(() => q.value.ticks.map((e) => ({
461
+ y: G.value.bottom - G.value.height * ((e + Math.abs(q.value.min)) / (q.value.max + Math.abs(q.value.min))),
462
+ x1: G.value.left,
463
+ x2: G.value.right,
464
+ value: e
465
+ }))), Tn = x(null), Y = x(null);
466
+ function En({ datapoint: e, seriesIndex: t }) {
467
+ P.value !== "keyboard" && (Pt.value = !1, Y.value = null, F.value.events.datapointLeave && F.value.events.datapointLeave({
468
+ datapoint: e,
469
+ seriesIndex: t
470
+ }));
471
+ }
472
+ function Dn({ datapoint: e, seriesIndex: t }) {
473
+ Mt("selectDatapoint", e), F.value.events.datapointClick && F.value.events.datapointClick({
474
+ datapoint: e,
475
+ seriesIndex: t
476
+ });
477
+ }
478
+ function On({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
479
+ F.value.events.datapointEnter && F.value.events.datapointEnter({
480
+ datapoint: e,
481
+ seriesIndex: t
482
+ }), P.value = n, Tn.value = {
483
+ datapoint: e,
484
+ seriesIndex: t,
485
+ config: F.value,
486
+ series: xn.value
487
+ }, Pt.value = !0, Y.value = e;
488
+ let r = F.value.style.chart.tooltip.customFormat;
489
+ if (le(r) && se(() => r({
490
+ seriesIndex: t,
491
+ datapoint: e,
492
+ series: xn.value,
493
+ config: F.value
494
+ }))) Ft.value = r({
495
+ seriesIndex: t,
496
+ datapoint: e,
497
+ series: xn.value,
498
+ config: F.value
499
+ });
500
+ else {
501
+ let n = "";
502
+ 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="${F.value.style.chart.plots.gradient.show ? `url(#${e.parentId})` : e.color}"/></svg>${e.name}</div>`, n += `<div>${oe(F.value.style.chart.labels.formatter, e.value, a({
503
+ p: F.value.style.chart.labels.prefix,
504
+ v: e.value,
505
+ s: F.value.style.chart.labels.suffix,
506
+ r: F.value.style.chart.tooltip.roundingValue
507
+ }), {
508
+ datapoint: e,
509
+ seriesIndex: t
510
+ })}</div>`, Ft.value = `<div>${n}</div>`;
511
+ }
512
+ }
513
+ let kn = u(() => ({
514
+ head: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((t) => ({
515
+ name: `${e.name} - ${t.name}`,
516
+ color: t.color
517
+ }))),
518
+ body: K.value.flatMap((e) => JSON.parse(JSON.stringify(e.plots)).sort((e, t) => t.value - e.value).map((e) => e.value))
519
+ }));
520
+ function An(e = null) {
521
+ Le(() => {
522
+ let t = kn.value.head.map((e, t) => [[e.name], [kn.value.body[t]]]), n = ee([
523
+ [F.value.style.chart.title.text],
524
+ [F.value.style.chart.title.subtitle.text],
525
+ [[F.value.table.columnNames.series], [F.value.table.columnNames.value]]
526
+ ].concat(t));
527
+ e ? e(n) : s({
528
+ csvContent: n,
529
+ title: F.value.style.chart.title.text || "vue-ui-strip-plot"
530
+ });
531
+ });
532
+ }
533
+ let X = u(() => {
534
+ let e = [F.value.table.columnNames.series, F.value.table.columnNames.value], t = kn.value.head.map((e, t) => {
535
+ let n = a({
536
+ p: F.value.style.chart.labels.prefix,
537
+ v: kn.value.body[t],
538
+ s: F.value.style.chart.labels.suffix,
539
+ r: F.value.table.td.roundingValue
540
+ });
541
+ return [{
542
+ color: e.color,
543
+ name: e.name
544
+ }, n];
545
+ }), n = {
546
+ th: {
547
+ backgroundColor: F.value.table.th.backgroundColor,
548
+ color: F.value.table.th.color,
549
+ outline: F.value.table.th.outline
550
+ },
551
+ td: {
552
+ backgroundColor: F.value.table.td.backgroundColor,
553
+ color: F.value.table.td.color,
554
+ outline: F.value.table.td.outline
555
+ },
556
+ breakpoint: F.value.table.responsiveBreakpoint
557
+ };
558
+ return {
559
+ colNames: [F.value.table.columnNames.series, F.value.table.columnNames.value],
560
+ head: e,
561
+ body: t,
562
+ config: n
563
+ };
564
+ }), Z = x(!1);
565
+ function jn(e) {
566
+ Z.value = e, Nt.value += 1;
567
+ }
568
+ function Mn() {
569
+ return K.value;
570
+ }
571
+ function Nn() {
572
+ W.value.showTable = !W.value.showTable;
573
+ }
574
+ function Pn() {
575
+ W.value.dataLabels.show = !W.value.dataLabels.show;
576
+ }
577
+ function Fn() {
578
+ W.value.showTooltip = !W.value.showTooltip;
579
+ }
580
+ let Q = x(!1);
581
+ function In() {
582
+ Q.value = !Q.value;
583
+ }
584
+ async function Ln({ scale: e = 2 } = {}) {
585
+ if (!A.value) return;
586
+ let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
587
+ domElement: A.value,
588
+ base64: !0,
589
+ img: !0,
590
+ scale: e
591
+ });
592
+ return {
593
+ imageUri: i,
594
+ base64: a,
595
+ title: F.value.style.chart.title.text,
596
+ width: t,
597
+ height: n,
598
+ aspectRatio: r
599
+ };
600
+ }
601
+ let Rn = u(() => K.value.map((e) => e.name));
602
+ Se({
603
+ timeLabelsEls: qt,
604
+ timeLabels: Rn,
605
+ slicer: x({
606
+ start: 0,
607
+ end: K.value.length
608
+ }),
609
+ configRef: F,
610
+ rotationPath: [
611
+ "style",
612
+ "chart",
613
+ "labels",
614
+ "xAxisLabels",
615
+ "rotation"
616
+ ],
617
+ autoRotatePath: [
618
+ "style",
619
+ "chart",
620
+ "labels",
621
+ "xAxisLabels",
622
+ "autoRotate",
623
+ "enable"
624
+ ],
625
+ isAutoSize: !1,
626
+ width: V,
627
+ height: H,
628
+ targetClass: ".vue-ui-strip-plot-category-name",
629
+ rotation: F.value.style.chart.labels.xAxisLabels.autoRotate.angle
630
+ });
631
+ let $ = u(() => {
632
+ let e = F.value.table.useDialog && !F.value.table.show, t = W.value.showTable;
633
+ return {
634
+ component: e ? Ot : Ct,
635
+ title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
636
+ props: e ? {
637
+ backgroundColor: F.value.table.th.backgroundColor,
638
+ color: F.value.table.th.color,
639
+ headerColor: F.value.table.th.color,
640
+ headerBg: F.value.table.th.backgroundColor,
641
+ isFullscreen: Z.value,
642
+ fullscreenParent: A.value,
643
+ forcedWidth: Math.min(800, window.innerWidth * .8),
644
+ isCursorPointer: I.value
645
+ } : {
646
+ hideDetails: !0,
647
+ config: {
648
+ open: t,
649
+ maxHeight: 1e4,
650
+ body: {
651
+ backgroundColor: F.value.style.chart.backgroundColor,
652
+ color: F.value.style.chart.color
653
+ },
654
+ head: {
655
+ backgroundColor: F.value.style.chart.backgroundColor,
656
+ color: F.value.style.chart.color
657
+ }
658
+ }
659
+ }
660
+ };
661
+ });
662
+ Ue(() => W.value.showTable, (e) => {
663
+ F.value.table.show || (e && F.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
664
+ });
665
+ function zn() {
666
+ W.value.showTable = !1, Ht.value && Ht.value.setTableIconState(!1);
667
+ }
668
+ let Bn = u(() => F.value.style.chart.backgroundColor), { exportSvg: Vn, getSvg: Hn } = ye({
669
+ svg: L,
670
+ title: u(() => F.value.style.chart.title),
671
+ backgroundColor: Bn
672
+ });
673
+ async function Un({ isCb: e }) {
674
+ Wt.value = !0, await Le();
675
+ try {
676
+ if (e) {
677
+ let { blob: e, url: t, text: n, dataUrl: r } = await Hn();
678
+ await Promise.resolve(F.value.userOptions.callbacks.svg({
679
+ blob: e,
680
+ url: t,
681
+ text: n,
682
+ dataUrl: r
683
+ }));
684
+ } else await Promise.resolve(Vn());
685
+ } finally {
686
+ Wt.value = !1;
687
+ }
688
+ }
689
+ function Wn(e) {
690
+ if (e?.stage === "start") {
691
+ Ut.value = !0;
692
+ return;
693
+ }
694
+ if (e?.stage === "end") {
695
+ Ut.value = !1;
696
+ return;
697
+ }
698
+ dn();
699
+ }
700
+ async function Gn() {
701
+ if (Mt("copyAlt", {
702
+ config: F.value,
703
+ dataset: J.value
704
+ }), !F.value.userOptions.callbacks.altCopy) {
705
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
706
+ return;
707
+ }
708
+ await Promise.resolve(F.value.userOptions.callbacks.altCopy({
709
+ config: F.value,
710
+ dataset: J.value
711
+ }));
712
+ }
713
+ function Kn() {
714
+ return J.value.length;
715
+ }
716
+ function qn(e) {
717
+ return J.value[e]?.plots ?? [];
718
+ }
719
+ function Jn(e = M.value, t = N.value) {
720
+ return !Number.isInteger(e) || !Number.isInteger(t) ? null : qn(e)[t] ?? null;
721
+ }
722
+ function Yn() {
723
+ M.value = null, N.value = null, P.value = "pointer", Pt.value = !1, Y.value = null;
724
+ }
725
+ function Xn(e) {
726
+ if (!e || !L.value) return;
727
+ let t = L.value.getBoundingClientRect();
728
+ Yt.value = {
729
+ x: t.left + e.x / V.value * t.width,
730
+ y: t.top + e.y / H.value * t.height
731
+ };
732
+ }
733
+ function Zn(e, t) {
734
+ let n = Jn(e, t);
735
+ n && (M.value = e, N.value = t, P.value = "keyboard", Xn(n), On({
736
+ datapoint: n,
737
+ seriesIndex: e,
738
+ triggerMode: "keyboard"
739
+ }));
740
+ }
741
+ function Qn() {
742
+ Xt.value = !0, M.value = null, N.value = null;
743
+ }
744
+ function $n() {
745
+ Xt.value = !1, Yn();
746
+ }
747
+ function er(e) {
748
+ if (!L.value || Q.value || document.activeElement !== L.value || !Kn()) return;
749
+ 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";
750
+ if (!t && !n && !r && !i && !a && !o) return;
751
+ if (e.preventDefault(), e.stopPropagation(), o) {
752
+ Yn();
753
+ return;
754
+ }
755
+ let s = M.value, c = N.value;
756
+ if (s === null || c === null) s = 0, c = 0;
757
+ else if (t || n) {
758
+ let e = Kn();
759
+ s = n ? (s + 1) % e : (s - 1 + e) % e;
760
+ let t = qn(s);
761
+ if (!t.length) return;
762
+ c = Math.min(c, t.length - 1);
763
+ } else if (r || i) {
764
+ let e = qn(s);
765
+ if (!e.length) return;
766
+ c = r ? (c + 1) % e.length : (c - 1 + e.length) % e.length;
767
+ }
768
+ if (a) {
769
+ let e = Jn();
770
+ if (!e) return;
771
+ Dn({
772
+ datapoint: e,
773
+ seriesIndex: M.value
774
+ });
775
+ return;
776
+ }
777
+ Zn(s, c);
778
+ }
779
+ let tr = u(() => ({
780
+ headers: X.value?.colNames ?? [],
781
+ rows: X.value?.body?.map((e) => e.map((e) => e && typeof e == "object" && "name" in e ? e.name : e)) ?? []
782
+ }));
783
+ return Ee({
784
+ getData: Mn,
785
+ getImage: Ln,
786
+ generatePdf: un,
787
+ generateCsv: An,
788
+ generateImage: dn,
789
+ generateSvg: Un,
790
+ toggleTable: Nn,
791
+ toggleLabels: Pn,
792
+ toggleTooltip: Fn,
793
+ toggleAnnotator: In,
794
+ toggleFullscreen: jn,
795
+ copyAlt: Gn
796
+ }), (e, n) => (b(), p("div", {
797
+ ref_key: "stripPlotChart",
798
+ ref: A,
799
+ class: _(`vue-data-ui-component vue-ui-strip-plot ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${F.value.useCssAnimation ? "" : "vue-ui-dna"}`),
800
+ style: y(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor};${F.value.responsive ? "height:100%" : ""}`),
801
+ id: `strip-plot_${k.value}`,
802
+ onMouseenter: n[1] ||= () => T(nn)(!0),
803
+ onMouseleave: n[2] ||= () => T(nn)(!1)
804
+ }, [
805
+ m("div", {
806
+ id: `chart-instructions-${k.value}`,
807
+ class: "sr-only"
808
+ }, [m("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
809
+ tr.value?.rows?.length ? (b(), d(ke, {
810
+ key: 0,
811
+ uid: k.value,
812
+ head: tr.value.headers,
813
+ body: tr.value.rows,
814
+ notice: F.value.a11y.translations.tableAvailable,
815
+ caption: F.value.a11y.translations.tableCaption
816
+ }, null, 8, [
817
+ "uid",
818
+ "head",
819
+ "body",
820
+ "notice",
821
+ "caption"
822
+ ])) : f("", !0),
823
+ F.value.userOptions.buttons.annotator ? (b(), d(T(Et), {
824
+ key: 1,
825
+ svgRef: T(L),
826
+ backgroundColor: F.value.style.chart.backgroundColor,
827
+ color: F.value.style.chart.color,
828
+ active: Q.value,
829
+ isCursorPointer: I.value,
830
+ onClose: In
831
+ }, {
832
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
833
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
834
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
835
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
836
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
837
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
838
+ _: 3
839
+ }, 8, [
840
+ "svgRef",
841
+ "backgroundColor",
842
+ "color",
843
+ "active",
844
+ "isCursorPointer"
845
+ ])) : f("", !0),
846
+ fn.value ? (b(), p("div", {
847
+ key: 2,
848
+ ref_key: "noTitle",
849
+ ref: Rt,
850
+ class: "vue-data-ui-no-title-space",
851
+ style: "height:36px; width: 100%;background:transparent"
852
+ }, null, 512)) : f("", !0),
853
+ F.value.style.chart.title.text ? (b(), p("div", {
854
+ key: 3,
855
+ ref_key: "chartTitle",
856
+ ref: It,
857
+ style: "width:100%;background:transparent;padding-bottom:24px"
858
+ }, [(b(), d(we, {
859
+ key: `title_${Bt.value}`,
860
+ config: {
861
+ title: {
862
+ cy: "donut-div-title",
863
+ ...F.value.style.chart.title
864
+ },
865
+ subtitle: {
866
+ cy: "donut-div-subtitle",
867
+ ...F.value.style.chart.title.subtitle
868
+ }
869
+ }
870
+ }, null, 8, ["config"]))], 512)) : f("", !0),
871
+ F.value.userOptions.show && O.value && (T(rn) || T(tn)) ? (b(), d(T(Tt), {
872
+ ref_key: "userOptionsRef",
873
+ ref: Ht,
874
+ key: `user_option_${Nt.value}`,
875
+ backgroundColor: F.value.style.chart.backgroundColor,
876
+ color: F.value.style.chart.color,
877
+ isPrinting: T(cn),
878
+ isImaging: T(ln),
879
+ uid: k.value,
880
+ hasTooltip: F.value.userOptions.buttons.tooltip && F.value.style.chart.tooltip.show,
881
+ hasPdf: F.value.userOptions.buttons.pdf,
882
+ hasXls: F.value.userOptions.buttons.csv,
883
+ hasImg: F.value.userOptions.buttons.img,
884
+ hasSvg: F.value.userOptions.buttons.svg,
885
+ hasTable: F.value.userOptions.buttons.table,
886
+ hasLabel: F.value.userOptions.buttons.labels,
887
+ hasFullscreen: F.value.userOptions.buttons.fullscreen,
888
+ hasAltCopy: F.value.userOptions.buttons.altCopy,
889
+ isTooltip: W.value.showTooltip,
890
+ isFullscreen: Z.value,
891
+ titles: { ...F.value.userOptions.buttonTitles },
892
+ chartElement: A.value,
893
+ position: F.value.userOptions.position,
894
+ hasAnnotator: F.value.userOptions.buttons.annotator,
895
+ isAnnotation: Q.value,
896
+ callbacks: F.value.userOptions.callbacks,
897
+ printScale: F.value.userOptions.print.scale,
898
+ tableDialog: F.value.table.useDialog,
899
+ isCursorPointer: I.value,
900
+ onToggleFullscreen: jn,
901
+ onGeneratePdf: T(un),
902
+ onGenerateCsv: An,
903
+ onGenerateImage: Wn,
904
+ onGenerateSvg: Un,
905
+ onToggleTable: Nn,
906
+ onToggleLabels: Pn,
907
+ onToggleTooltip: Fn,
908
+ onToggleAnnotator: In,
909
+ onCopyAlt: Gn,
910
+ style: y({ visibility: T(rn) ? T(tn) ? "visible" : "hidden" : "visible" })
911
+ }, Ne({ _: 2 }, [
912
+ e.$slots.menuIcon ? {
913
+ name: "menuIcon",
914
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
915
+ isOpen: t,
916
+ color: n
917
+ })), void 0, !0)]),
918
+ key: "0"
919
+ } : void 0,
920
+ e.$slots.optionTooltip ? {
921
+ name: "optionTooltip",
922
+ fn: E(() => [C(e.$slots, "optionTooltip", {}, void 0, !0)]),
923
+ key: "1"
924
+ } : void 0,
925
+ e.$slots.optionPdf ? {
926
+ name: "optionPdf",
927
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
928
+ key: "2"
929
+ } : void 0,
930
+ e.$slots.optionCsv ? {
931
+ name: "optionCsv",
932
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
933
+ key: "3"
934
+ } : void 0,
935
+ e.$slots.optionImg ? {
936
+ name: "optionImg",
937
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
938
+ key: "4"
939
+ } : void 0,
940
+ e.$slots.optionSvg ? {
941
+ name: "optionSvg",
942
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
943
+ key: "5"
944
+ } : void 0,
945
+ e.$slots.optionTable ? {
946
+ name: "optionTable",
947
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
948
+ key: "6"
949
+ } : void 0,
950
+ e.$slots.optionLabels ? {
951
+ name: "optionLabels",
952
+ fn: E(() => [C(e.$slots, "optionLabels", {}, void 0, !0)]),
953
+ key: "7"
954
+ } : void 0,
955
+ e.$slots.optionFullscreen ? {
956
+ name: "optionFullscreen",
957
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
958
+ toggleFullscreen: t,
959
+ isFullscreen: n
960
+ })), void 0, !0)]),
961
+ key: "8"
962
+ } : void 0,
963
+ e.$slots.optionAnnotator ? {
964
+ name: "optionAnnotator",
965
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
966
+ toggleAnnotator: t,
967
+ isAnnotator: n
968
+ })), void 0, !0)]),
969
+ key: "9"
970
+ } : void 0,
971
+ e.$slots.optionAltCopy ? {
972
+ name: "optionAltCopy",
973
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
974
+ key: "10"
975
+ } : void 0,
976
+ e.$slots["custom-menu-before"] ? {
977
+ name: "custom-menu-before",
978
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
979
+ key: "11"
980
+ } : void 0,
981
+ e.$slots["custom-menu-after"] ? {
982
+ name: "custom-menu-after",
983
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
984
+ key: "12"
985
+ } : void 0
986
+ ]), 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.style".split("."))) : f("", !0),
987
+ m("div", Je, [(b(), p("svg", {
988
+ ref_key: "svgRef",
989
+ ref: L,
990
+ xmlns: T(ue),
991
+ class: _({
992
+ "vue-data-ui-fullscreen--on": Z.value,
993
+ "vue-data-ui-fulscreen--off": !Z.value
994
+ }),
995
+ viewBox: `0 0 ${V.value} ${H.value}`,
996
+ style: y(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color};`),
997
+ "aria-describedby": `chart-instructions-${k.value}`,
998
+ tabindex: "0",
999
+ onFocus: Qn,
1000
+ onBlur: $n,
1001
+ onKeydown: er
1002
+ }, [
1003
+ Fe(T(Dt)),
1004
+ e.$slots["chart-background"] ? (b(), p("foreignObject", {
1005
+ key: 0,
1006
+ x: G.value.left,
1007
+ y: G.value.top,
1008
+ width: Math.max(.1, G.value.width),
1009
+ height: Math.max(.1, G.value.height),
1010
+ style: { pointerEvents: "none" }
1011
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Xe)) : f("", !0),
1012
+ F.value.style.chart.grid.show ? (b(), p("g", Ze, [
1013
+ F.value.style.chart.grid.horizontalGrid.show ? (b(), p("g", Qe, [(b(!0), p(l, null, S(wn.value, (e) => (b(), p("line", {
1014
+ x1: e.x1,
1015
+ x2: e.x2,
1016
+ y1: e.y,
1017
+ y2: e.y,
1018
+ stroke: F.value.style.chart.grid.horizontalGrid.stroke,
1019
+ "stroke-width": F.value.style.chart.grid.horizontalGrid.strokeWidth,
1020
+ "stroke-dasharray": F.value.style.chart.grid.horizontalGrid.strokeDasharray,
1021
+ "stroke-linecap": "round"
1022
+ }, null, 8, $e))), 256))])) : f("", !0),
1023
+ F.value.style.chart.grid.verticalGrid.show ? (b(), p("g", et, [(b(!0), p(l, null, S(K.value, (e, t) => (b(), p("line", {
1024
+ x1: G.value.left + (t + 1) * G.value.stripWidth,
1025
+ x2: G.value.left + (t + 1) * G.value.stripWidth,
1026
+ y1: G.value.top,
1027
+ y2: G.value.bottom,
1028
+ stroke: F.value.style.chart.grid.verticalGrid.stroke,
1029
+ "stroke-width": F.value.style.chart.grid.verticalGrid.strokeWidth,
1030
+ "stroke-dasharray": F.value.style.chart.grid.verticalGrid.strokeDasharray,
1031
+ "stroke-linecap": "round"
1032
+ }, null, 8, tt))), 256))])) : f("", !0),
1033
+ m("line", {
1034
+ x1: G.value.left,
1035
+ x2: G.value.left,
1036
+ y1: G.value.top,
1037
+ y2: G.value.bottom,
1038
+ stroke: F.value.style.chart.grid.stroke,
1039
+ "stroke-width": F.value.style.chart.grid.strokeWidth,
1040
+ "stroke-linecap": "round"
1041
+ }, null, 8, nt),
1042
+ m("line", {
1043
+ x1: G.value.left,
1044
+ x2: G.value.right,
1045
+ y1: G.value.bottom,
1046
+ y2: G.value.bottom,
1047
+ stroke: F.value.style.chart.grid.stroke,
1048
+ "stroke-width": F.value.style.chart.grid.strokeWidth,
1049
+ "stroke-linecap": "round"
1050
+ }, null, 8, rt)
1051
+ ])) : f("", !0),
1052
+ F.value.style.chart.labels.yAxisLabels.show ? (b(), p("g", {
1053
+ key: 2,
1054
+ ref_key: "scaleLabels",
1055
+ ref: Jt
1056
+ }, [(b(!0), p(l, null, S(wn.value, (e, t) => (b(), p("text", {
1057
+ x: e.x1 + F.value.style.chart.labels.yAxisLabels.offsetX - 5,
1058
+ y: e.y + F.value.style.chart.labels.yAxisLabels.fontSize / 3,
1059
+ fill: F.value.style.chart.labels.yAxisLabels.color,
1060
+ "font-size": F.value.style.chart.labels.yAxisLabels.fontSize,
1061
+ "text-anchor": "end"
1062
+ }, w(T(oe)(F.value.style.chart.labels.formatter, e.value, T(a)({
1063
+ p: F.value.style.chart.labels.prefix,
1064
+ v: e.value,
1065
+ s: F.value.style.chart.labels.suffix,
1066
+ r: F.value.style.chart.labels.yAxisLabels.rounding
1067
+ }), {
1068
+ datapoint: e,
1069
+ seriesIndex: t
1070
+ })), 9, it))), 256))], 512)) : f("", !0),
1071
+ F.value.style.chart.labels.xAxisLabels.show ? (b(), p("g", {
1072
+ key: 3,
1073
+ ref_key: "timeLabelsEls",
1074
+ ref: qt
1075
+ }, [(b(!0), p(l, null, S(Rn.value, (e, n) => (b(), p("g", null, [String(e).includes("\n") ? (b(), p("text", {
1076
+ key: 1,
1077
+ class: "vue-ui-strip-plot-category-name",
1078
+ transform: `translate(${G.value.left + (n + 1) * G.value.stripWidth - G.value.stripWidth / 2}, ${G.value.bottom + F.value.style.chart.labels.xAxisLabels.fontSize * 2 + F.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${F.value.style.chart.labels.xAxisLabels.rotation})`,
1079
+ "font-size": F.value.style.chart.labels.xAxisLabels.fontSize,
1080
+ fill: F.value.style.chart.labels.xAxisLabels.color,
1081
+ "text-anchor": F.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : F.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
1082
+ innerHTML: T(t)({
1083
+ content: T(te)(String(e)),
1084
+ fontSize: F.value.style.chart.labels.xAxisLabels.fontSize,
1085
+ fill: F.value.style.chart.labels.xAxisLabels.color,
1086
+ x: 0,
1087
+ y: 0
1088
+ })
1089
+ }, null, 8, ot)) : (b(), p("text", {
1090
+ key: 0,
1091
+ class: "vue-ui-strip-plot-category-name",
1092
+ transform: `translate(${G.value.left + (n + 1) * G.value.stripWidth - G.value.stripWidth / 2}, ${G.value.bottom + F.value.style.chart.labels.xAxisLabels.fontSize * 2 + F.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${F.value.style.chart.labels.xAxisLabels.rotation})`,
1093
+ "font-size": F.value.style.chart.labels.xAxisLabels.fontSize,
1094
+ fill: F.value.style.chart.labels.xAxisLabels.color,
1095
+ "text-anchor": F.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : F.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
1096
+ }, w(String(e)), 9, at))]))), 256))], 512)) : f("", !0),
1097
+ F.value.style.chart.labels.axis.yLabel ? (b(), p("text", {
1098
+ key: 4,
1099
+ ref_key: "yAxisLabel",
1100
+ ref: Kt,
1101
+ fill: F.value.style.chart.labels.axis.color,
1102
+ "font-size": F.value.style.chart.labels.axis.fontSize,
1103
+ transform: `translate(${F.value.style.chart.labels.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1104
+ "text-anchor": "middle"
1105
+ }, w(F.value.style.chart.labels.axis.yLabel), 9, st)) : f("", !0),
1106
+ F.value.style.chart.labels.axis.xLabel ? (b(), p("text", {
1107
+ key: 5,
1108
+ ref_key: "xAxisLabel",
1109
+ ref: Gt,
1110
+ fill: F.value.style.chart.labels.axis.color,
1111
+ "font-size": F.value.style.chart.labels.axis.fontSize,
1112
+ x: G.value.left + G.value.width / 2,
1113
+ y: H.value - F.value.style.chart.labels.axis.fontSize / 3,
1114
+ "text-anchor": "middle"
1115
+ }, w(F.value.style.chart.labels.axis.xLabel), 9, ct)) : f("", !0),
1116
+ Y.value ? (b(), p(l, { key: 6 }, [
1117
+ m("line", {
1118
+ x1: G.value.left,
1119
+ x2: G.value.right,
1120
+ y1: Y.value.y,
1121
+ y2: Y.value.y,
1122
+ stroke: Y.value.color,
1123
+ "stroke-width": 1,
1124
+ class: _({ "select-circle": F.value.useCssAnimation })
1125
+ }, null, 10, lt),
1126
+ m("circle", {
1127
+ cx: G.value.left,
1128
+ cy: Y.value.y,
1129
+ r: 3,
1130
+ fill: Y.value.color,
1131
+ class: _({ "select-circle": F.value.useCssAnimation })
1132
+ }, null, 10, ut),
1133
+ m("circle", {
1134
+ cx: G.value.right,
1135
+ cy: Y.value.y,
1136
+ r: 3,
1137
+ fill: Y.value.color,
1138
+ class: _({ "select-circle": F.value.useCssAnimation })
1139
+ }, null, 10, dt)
1140
+ ], 64)) : f("", !0),
1141
+ m("defs", null, [(b(!0), p(l, null, S(K.value, (e) => (b(), p("radialGradient", {
1142
+ id: e.id,
1143
+ fy: "30%"
1144
+ }, [
1145
+ m("stop", {
1146
+ offset: "10%",
1147
+ "stop-color": T(ie)(e.color, F.value.style.chart.plots.gradient.intensity / 100)
1148
+ }, null, 8, pt),
1149
+ m("stop", {
1150
+ offset: "90%",
1151
+ "stop-color": T(ne)(e.color, .1)
1152
+ }, null, 8, mt),
1153
+ m("stop", {
1154
+ offset: "100%",
1155
+ "stop-color": e.color
1156
+ }, null, 8, ht)
1157
+ ], 8, ft))), 256))]),
1158
+ (b(!0), p(l, null, S(J.value, (t, n) => (b(), p(l, null, [(b(!0), p(l, null, S(t.plots, (n, r) => (b(), d(Te, Ie({ ref_for: !0 }, e.$attrs, {
1159
+ plot: {
1160
+ x: n.x,
1161
+ y: zt.value ? n.y : G.value.top
1162
+ },
1163
+ radius: Y.value && Y.value.id === n.id ? gn.value * 1.5 : gn.value,
1164
+ shape: F.value.style.chart.plots.shape,
1165
+ stroke: F.value.style.chart.plots.stroke,
1166
+ strokeWidth: F.value.style.chart.plots.strokeWidth,
1167
+ color: F.value.style.chart.plots.gradient.show ? `url(#${t.id})` : t.color,
1168
+ style: `transition: all 0.2s ease-in-out; opacity:${Y.value ? Y.value.id === n.id ? 1 : .2 : F.value.style.chart.plots.opacity};${B.value ? `transition-delay:${r * 50}ms` : ""}`,
1169
+ class: {
1170
+ "vue-ui-strip-plot-animated": F.value.useCssAnimation && B.value && !T(Qt),
1171
+ "vue-ui-strip-plot-select-circle": F.value.useCssAnimation && !B.value
1172
+ },
1173
+ onMouseenter: (e) => On({
1174
+ datapoint: n,
1175
+ seriesIndex: r,
1176
+ triggerMode: "pointer"
1177
+ }),
1178
+ onMouseleave: (e) => En({
1179
+ datapoint: n,
1180
+ seriesIndex: r
1181
+ }),
1182
+ onClick: (e) => Dn({
1183
+ datapoint: n,
1184
+ seriesIndex: r
1185
+ })
1186
+ }), null, 16, [
1187
+ "plot",
1188
+ "radius",
1189
+ "shape",
1190
+ "stroke",
1191
+ "strokeWidth",
1192
+ "color",
1193
+ "style",
1194
+ "class",
1195
+ "onMouseenter",
1196
+ "onMouseleave",
1197
+ "onClick"
1198
+ ]))), 256)), W.value.dataLabels.show ? (b(), p("g", gt, [(b(!0), p(l, null, S(t.plots, (e, n) => (b(), p(l, null, [n === t.plots.length - 1 || Y.value && Y.value.id === e.id && !W.value.showTooltip ? (b(), p("text", {
1199
+ key: 0,
1200
+ x: e.x,
1201
+ y: e.y + F.value.style.chart.labels.bestPlotLabel.offsetY - gn.value * (Y.value && Y.value.id === e.id && !W.value.showTooltip ? 2 : 1.5),
1202
+ "font-size": F.value.style.chart.labels.bestPlotLabel.fontSize,
1203
+ fill: F.value.style.chart.labels.bestPlotLabel.color,
1204
+ "text-anchor": "middle",
1205
+ style: y(`opacity:${F.value.useCssAnimation ? +!B.value : 1};transition:opacity 0.2s ease-in;`)
1206
+ }, w(e.name) + " " + w(F.value.style.chart.labels.bestPlotLabel.showValue ? T(oe)(F.value.style.chart.labels.formatter, e.value, T(a)({
1207
+ p: `(${F.value.style.chart.labels.prefix}`,
1208
+ v: e.value,
1209
+ s: `${F.value.style.chart.labels.suffix})`,
1210
+ r: F.value.style.chart.labels.bestPlotLabel.rounding
1211
+ }), {
1212
+ datapoint: e,
1213
+ seriesIndex: n
1214
+ }) : ""), 13, _t)) : f("", !0)], 64))), 256))])) : f("", !0)], 64))), 256)),
1215
+ C(e.$slots, "svg", { svg: {
1216
+ ...G.value,
1217
+ isPrintingImg: T(cn) || T(ln) || Ut.value,
1218
+ isPrintingSvg: Wt.value
1219
+ } }, void 0, !0)
1220
+ ], 46, Ye)), e.$slots.hint ? (b(), p("div", vt, [C(e.$slots, "hint", v(g({
1221
+ hint: F.value.a11y.translations.keyboardNavigation,
1222
+ isVisible: Xt.value
1223
+ })), void 0, !0)])) : f("", !0)]),
1224
+ e.$slots.watermark ? (b(), p("div", yt, [C(e.$slots, "watermark", v(g({ isPrinting: T(cn) || T(ln) || Ut.value || Wt.value })), void 0, !0)])) : f("", !0),
1225
+ e.$slots.source ? (b(), p("div", {
1226
+ key: 6,
1227
+ ref_key: "source",
1228
+ ref: Lt,
1229
+ dir: "auto"
1230
+ }, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1231
+ Fe(T(xt), {
1232
+ teleportTo: F.value.style.chart.tooltip.teleportTo,
1233
+ show: W.value.showTooltip && Pt.value,
1234
+ backgroundColor: F.value.style.chart.tooltip.backgroundColor,
1235
+ color: F.value.style.chart.tooltip.color,
1236
+ borderRadius: F.value.style.chart.tooltip.borderRadius,
1237
+ borderColor: F.value.style.chart.tooltip.borderColor,
1238
+ borderWidth: F.value.style.chart.tooltip.borderWidth,
1239
+ fontSize: F.value.style.chart.tooltip.fontSize,
1240
+ backgroundOpacity: F.value.style.chart.tooltip.backgroundOpacity,
1241
+ position: F.value.style.chart.tooltip.position,
1242
+ offsetX: F.value.style.chart.tooltip.offsetX,
1243
+ offsetY: F.value.style.chart.tooltip.offsetY,
1244
+ parent: A.value,
1245
+ content: Ft.value,
1246
+ isFullscreen: Z.value,
1247
+ isCustom: T(le)(F.value.style.chart.tooltip.customFormat),
1248
+ smooth: F.value.style.chart.tooltip.smooth,
1249
+ backdropFilter: F.value.style.chart.tooltip.backdropFilter,
1250
+ smoothForce: F.value.style.chart.tooltip.smoothForce,
1251
+ smoothSnapThreshold: F.value.style.chart.tooltip.smoothSnapThreshold,
1252
+ isA11yMode: P.value === "keyboard",
1253
+ a11yPosition: Yt.value
1254
+ }, {
1255
+ "tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...Tn.value })), void 0, !0)]),
1256
+ tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...Tn.value })), void 0, !0)]),
1257
+ "tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...Tn.value })), void 0, !0)]),
1258
+ _: 3
1259
+ }, 8, [
1260
+ "teleportTo",
1261
+ "show",
1262
+ "backgroundColor",
1263
+ "color",
1264
+ "borderRadius",
1265
+ "borderColor",
1266
+ "borderWidth",
1267
+ "fontSize",
1268
+ "backgroundOpacity",
1269
+ "position",
1270
+ "offsetX",
1271
+ "offsetY",
1272
+ "parent",
1273
+ "content",
1274
+ "isFullscreen",
1275
+ "isCustom",
1276
+ "smooth",
1277
+ "backdropFilter",
1278
+ "smoothForce",
1279
+ "smoothSnapThreshold",
1280
+ "isA11yMode",
1281
+ "a11yPosition"
1282
+ ]),
1283
+ O.value && F.value.userOptions.buttons.table ? (b(), d(Be($.value.component), Ie({ key: 7 }, $.value.props, {
1284
+ ref_key: "tableUnit",
1285
+ ref: j,
1286
+ onClose: zn
1287
+ }), Ne({
1288
+ content: E(() => [(b(), d(T(wt), {
1289
+ key: `table_${Vt.value}`,
1290
+ colNames: X.value.colNames,
1291
+ head: X.value.head,
1292
+ body: X.value.body,
1293
+ config: X.value.config,
1294
+ title: F.value.table.useDialog ? "" : $.value.title,
1295
+ withCloseButton: !F.value.table.useDialog,
1296
+ isCursorPointer: I.value,
1297
+ onClose: zn
1298
+ }, {
1299
+ th: E(({ th: e }) => [m("div", {
1300
+ innerHTML: e,
1301
+ style: {
1302
+ display: "flex",
1303
+ "align-items": "center"
1304
+ }
1305
+ }, null, 8, bt)]),
1306
+ td: E(({ td: e }) => [Pe(w(e.name || e), 1)]),
1307
+ _: 1
1308
+ }, 8, [
1309
+ "colNames",
1310
+ "head",
1311
+ "body",
1312
+ "config",
1313
+ "title",
1314
+ "withCloseButton",
1315
+ "isCursorPointer"
1316
+ ]))]),
1317
+ _: 2
1318
+ }, [F.value.table.useDialog ? {
1319
+ name: "title",
1320
+ fn: E(() => [Pe(w($.value.title), 1)]),
1321
+ key: "0"
1322
+ } : void 0, F.value.table.useDialog ? {
1323
+ name: "actions",
1324
+ fn: E(() => [m("button", {
1325
+ tabindex: "0",
1326
+ class: "vue-ui-user-options-button",
1327
+ onClick: n[0] ||= (e) => An(F.value.userOptions.callbacks.csv),
1328
+ style: y({ cursor: I.value ? "pointer" : "default" })
1329
+ }, [Fe(T(St), {
1330
+ name: "fileCsv",
1331
+ stroke: $.value.props.color
1332
+ }, null, 8, ["stroke"])], 4)]),
1333
+ key: "1"
1334
+ } : void 0]), 1040)) : f("", !0),
1335
+ C(e.$slots, "skeleton", {}, () => [T(Qt) ? (b(), d(ve, { key: 0 })) : f("", !0)], !0)
1336
+ ], 46, Ke));
1337
+ }
1338
+ }, [["__scopeId", "data-v-e4162040"]]);
1339
+ //#endregion
1340
+ export { Ge as n, xt as t };