vue-data-ui 3.27.0 → 3.27.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (531) hide show
  1. package/dist/A11yDataTable-DWNlWXzs.js +1 -0
  2. package/dist/Arrow-CJeSufxg.js +1 -0
  3. package/dist/BaseDraggableDialog-T1gEsQid.js +1 -0
  4. package/dist/BaseIcon-Cz30ODFA.js +1 -0
  5. package/dist/BaseLegendToggle-Dn_tNvn4.js +1 -0
  6. package/dist/BaseScanner-8NdoBs7B.js +1 -0
  7. package/dist/BaseZoomControls-xq3tWD3j.js +1 -0
  8. package/dist/ColorPicker-CUjEw53A.js +1 -0
  9. package/dist/DataTable-DSUA5M9p.js +1 -0
  10. package/dist/DefGrad-DKMq1REY.js +1 -0
  11. package/dist/HillActions-DdvXld3a.js +1 -0
  12. package/dist/Legend-DokTll4u.js +1 -0
  13. package/dist/NonSvgPenAndPaper-BLzQuIm6.js +1 -0
  14. package/dist/PackageVersion-D6pKL176.js +1 -0
  15. package/dist/PenAndPaper-DvJJaeU2.js +1 -0
  16. package/dist/RecursiveCircles-BftI1kwF.js +1 -0
  17. package/dist/RecursiveLabels-B0d04xSj.js +1 -0
  18. package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
  19. package/dist/Shape-tkp65OcG.js +1 -0
  20. package/dist/SlicerPreview-GFRs2EWB.js +1 -0
  21. package/dist/SparkTooltip-BlJLvizH.js +1 -0
  22. package/dist/Title-BRAjxtjG.js +1 -0
  23. package/dist/Tooltip-BUXB0i6z.js +1 -0
  24. package/dist/UserOptions-D65t74CM.js +1 -0
  25. package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
  26. package/dist/annotationSlots-BRR85CqJ.js +1 -0
  27. package/dist/chartImage-NwZO-elv.js +1 -0
  28. package/dist/components/arrow.js +1 -2
  29. package/dist/components/vue-ui-3d-bar.js +1 -2
  30. package/dist/components/vue-ui-accordion.js +1 -2
  31. package/dist/components/vue-ui-age-pyramid.js +1 -2
  32. package/dist/components/vue-ui-annotator.js +1 -2
  33. package/dist/components/vue-ui-bullet.js +1 -2
  34. package/dist/components/vue-ui-bump.js +1 -2
  35. package/dist/components/vue-ui-candlestick.js +1 -2
  36. package/dist/components/vue-ui-carousel-table.js +1 -2
  37. package/dist/components/vue-ui-chestnut.js +1 -2
  38. package/dist/components/vue-ui-chord.js +1 -2
  39. package/dist/components/vue-ui-circle-pack.js +1 -2
  40. package/dist/components/vue-ui-cursor.js +1 -2
  41. package/dist/components/vue-ui-dag.js +1 -2
  42. package/dist/components/vue-ui-dashboard.js +1 -2
  43. package/dist/components/vue-ui-digits.js +1 -2
  44. package/dist/components/vue-ui-donut-evolution.js +1 -2
  45. package/dist/components/vue-ui-donut.js +1 -2
  46. package/dist/components/vue-ui-dumbbell.js +1 -2
  47. package/dist/components/vue-ui-flow.js +1 -2
  48. package/dist/components/vue-ui-funnel.js +1 -2
  49. package/dist/components/vue-ui-galaxy.js +1 -2
  50. package/dist/components/vue-ui-gauge.js +1 -2
  51. package/dist/components/vue-ui-geo.js +1 -2
  52. package/dist/components/vue-ui-gizmo.js +1 -2
  53. package/dist/components/vue-ui-heatmap.js +1 -2
  54. package/dist/components/vue-ui-hill.js +1 -2
  55. package/dist/components/vue-ui-history-plot.js +1 -2
  56. package/dist/components/vue-ui-horizontal-bar.js +1 -2
  57. package/dist/components/vue-ui-icon.js +1 -2
  58. package/dist/components/vue-ui-kpi.js +1 -2
  59. package/dist/components/vue-ui-label.js +1 -2
  60. package/dist/components/vue-ui-mini-loader.js +1 -2
  61. package/dist/components/vue-ui-molecule.js +1 -2
  62. package/dist/components/vue-ui-mood-radar.js +1 -2
  63. package/dist/components/vue-ui-nested-donuts.js +1 -2
  64. package/dist/components/vue-ui-onion.js +1 -2
  65. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
  66. package/dist/components/vue-ui-pattern-seed.js +1 -2
  67. package/dist/components/vue-ui-pattern.js +1 -2
  68. package/dist/components/vue-ui-quadrant.js +1 -2
  69. package/dist/components/vue-ui-quick-chart.js +1 -2
  70. package/dist/components/vue-ui-radar.js +1 -2
  71. package/dist/components/vue-ui-rating.js +1 -2
  72. package/dist/components/vue-ui-relation-circle.js +1 -2
  73. package/dist/components/vue-ui-ridgeline.js +1 -2
  74. package/dist/components/vue-ui-rings.js +1 -2
  75. package/dist/components/vue-ui-scatter.js +1 -2
  76. package/dist/components/vue-ui-skeleton.js +1 -2
  77. package/dist/components/vue-ui-smiley.js +1 -2
  78. package/dist/components/vue-ui-spark-trend.js +1 -2
  79. package/dist/components/vue-ui-sparkbar.js +1 -2
  80. package/dist/components/vue-ui-sparkgauge.js +1 -2
  81. package/dist/components/vue-ui-sparkhistogram.js +1 -2
  82. package/dist/components/vue-ui-sparkline.js +1 -2
  83. package/dist/components/vue-ui-sparkstackbar.js +1 -2
  84. package/dist/components/vue-ui-stackbar.js +1 -2
  85. package/dist/components/vue-ui-stackline.js +1 -2
  86. package/dist/components/vue-ui-strip-plot.js +1 -2
  87. package/dist/components/vue-ui-table-heatmap.js +1 -2
  88. package/dist/components/vue-ui-table-sparkline.js +1 -2
  89. package/dist/components/vue-ui-table.js +1 -2
  90. package/dist/components/vue-ui-thermometer.js +1 -2
  91. package/dist/components/vue-ui-timer.js +1 -2
  92. package/dist/components/vue-ui-tiremarks.js +1 -2
  93. package/dist/components/vue-ui-treemap.js +1 -2
  94. package/dist/components/vue-ui-vertical-bar.js +1 -2
  95. package/dist/components/vue-ui-waffle.js +1 -2
  96. package/dist/components/vue-ui-wheel.js +1 -2
  97. package/dist/components/vue-ui-word-cloud.js +1 -2
  98. package/dist/components/vue-ui-world.js +1 -2
  99. package/dist/components/vue-ui-xy-canvas.js +1 -2
  100. package/dist/components/vue-ui-xy.js +1 -2
  101. package/dist/composables.js +1 -5
  102. package/dist/dom-to-png-Cp3WLHmJ.js +3 -0
  103. package/dist/exposedLib-CMTeSmyW.js +1 -0
  104. package/dist/geoProjections-Bvj-eMvq.js +1 -0
  105. package/dist/img-8sM3sVWU.js +1 -0
  106. package/dist/labelUtils-Djp5nJtN.js +1 -0
  107. package/dist/lib-zDxoqrgo.js +12 -0
  108. package/dist/package-DIR2F6AE.js +1 -0
  109. package/dist/patternUtils-_q3ArM3g.js +1 -0
  110. package/dist/pdf-Dlv_ks7R.js +1 -0
  111. package/dist/render-common-DOYi0f4Z.js +1 -0
  112. package/dist/resolveChartConfig-BSo1Oe9n.js +1 -0
  113. package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
  114. package/dist/ssr/vue-ui-donut.js +1 -2
  115. package/dist/ssr/vue-ui-xy.js +1 -2
  116. package/dist/ssr.js +1 -3
  117. package/dist/style.css +1 -1
  118. package/dist/tableIntegration-CNoJ1CIY.js +1 -0
  119. package/dist/types/composables.d.ts +12 -12
  120. package/dist/types/ssr.d.ts +84 -84
  121. package/dist/types/utils.d.ts +82 -73
  122. package/dist/types/vue-data-ui.d.ts +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-CT9phgWx.js +1 -0
  203. package/dist/useObjectBindings-DM3xDKV3.js +1 -0
  204. package/dist/usePanZoom-BdjP5Suc.js +1 -0
  205. package/dist/usePrefersMotion-XLHwega2.js +1 -0
  206. package/dist/usePrinter-CnyKPIFM.js +1 -0
  207. package/dist/useResponsive-D2CPcpda.js +1 -0
  208. package/dist/useStableElementSize-CegFbRlF.js +1 -0
  209. package/dist/useTableResponsive-uSz_qZOB.js +1 -0
  210. package/dist/useThemeCheck-BKNRbGeC.js +1 -0
  211. package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
  212. package/dist/useTimeLabels-Das5O74F.js +1 -0
  213. package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
  214. package/dist/useTransitions-DfSHzsdz.js +1 -0
  215. package/dist/useUserOptionState-CXlFnwPv.js +1 -0
  216. package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
  217. package/dist/utils.js +1 -30
  218. package/dist/vClickOutside-BxNzkY17.js +1 -0
  219. package/dist/vue-data-ui-BG41UScx.js +1 -0
  220. package/dist/vue-data-ui.js +1 -79
  221. package/dist/vue-ui-3d-bar-DiaiNy-k.js +19 -0
  222. package/dist/vue-ui-accordion-Dy5OVFKr.js +1 -0
  223. package/dist/vue-ui-age-pyramid-OeUr1yxi.js +1 -0
  224. package/dist/vue-ui-annotator-DA_xAFql.js +331 -0
  225. package/dist/vue-ui-bullet-B9lcCTVb.js +34 -0
  226. package/dist/vue-ui-bump-DYajIrva.js +10 -0
  227. package/dist/vue-ui-candlestick-CdAZuNxo.js +22 -0
  228. package/dist/vue-ui-carousel-table-ihGH0LDH.js +1 -0
  229. package/dist/vue-ui-chestnut-B2aNXFNO.js +1 -0
  230. package/dist/vue-ui-chord-fAckHfOW.js +21 -0
  231. package/dist/vue-ui-circle-pack-BWHVImkS.js +13 -0
  232. package/dist/vue-ui-cursor-DdXKXmhr.js +1 -0
  233. package/dist/vue-ui-dag-a0fNoIcJ.js +9 -0
  234. package/dist/vue-ui-dashboard-DkdYMB7n.js +1 -0
  235. package/dist/vue-ui-digits-CL9SuIEI.js +42 -0
  236. package/dist/vue-ui-donut-BaEodt-3.js +22 -0
  237. package/dist/vue-ui-donut-DaYxdQmP.js +47 -0
  238. package/dist/vue-ui-donut-evolution-T8cRXKRQ.js +2 -0
  239. package/dist/vue-ui-dumbbell-B6HJxEZp.js +9 -0
  240. package/dist/vue-ui-flow-BlTCVFr3.js +3 -0
  241. package/dist/vue-ui-funnel-WgLFJadZ.js +1 -0
  242. package/dist/vue-ui-galaxy-B3nuI6E8.js +1 -0
  243. package/dist/vue-ui-gauge-BwTP65O4.js +1 -0
  244. package/dist/vue-ui-geo-CX3yH18H.js +1 -0
  245. package/dist/vue-ui-gizmo-CNHcBsku.js +1 -0
  246. package/dist/vue-ui-heatmap-CTdeoar7.js +1 -0
  247. package/dist/vue-ui-hill-DR5k8GWZ.js +1 -0
  248. package/dist/vue-ui-history-plot-C-9uH-Uj.js +2 -0
  249. package/dist/vue-ui-horizontal-bar-qqF7pL7U.js +4 -0
  250. package/dist/vue-ui-kpi-DVcLXGqG.js +1 -0
  251. package/dist/vue-ui-label-D1Aog-zO.js +7 -0
  252. package/dist/vue-ui-mini-loader-CX0Dx9tT.js +1 -0
  253. package/dist/vue-ui-molecule-B13qVX71.js +1 -0
  254. package/dist/vue-ui-mood-radar-C1BtB8lg.js +1 -0
  255. package/dist/vue-ui-nested-donuts-B90yrlJG.js +19 -0
  256. package/dist/vue-ui-onion-UMVO2DE_.js +5 -0
  257. package/dist/vue-ui-parallel-coordinate-plot-C0ofFivm.js +9 -0
  258. package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
  259. package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
  260. package/dist/vue-ui-quadrant-CPG6yAiu.js +2 -0
  261. package/dist/vue-ui-quick-chart-BTPb-Iz8.js +17 -0
  262. package/dist/vue-ui-radar-Hd-pE9ih.js +1 -0
  263. package/dist/vue-ui-rating-C_YxQYa_.js +1 -0
  264. package/dist/vue-ui-relation-circle-CHYG7ZJl.js +1 -0
  265. package/dist/vue-ui-ridgeline-DS1Gvljt.js +2 -0
  266. package/dist/vue-ui-rings-B-Hb13Uu.js +1 -0
  267. package/dist/vue-ui-scatter-BTgvOmuo.js +9 -0
  268. package/dist/vue-ui-skeleton-B-Acw3CC.js +41 -0
  269. package/dist/vue-ui-smiley-Ciwqt6ek.js +1 -0
  270. package/dist/vue-ui-spark-trend-CYqy6c0S.js +1 -0
  271. package/dist/vue-ui-sparkbar-CTXIgjmP.js +1 -0
  272. package/dist/vue-ui-sparkgauge-CObOL6s2.js +1 -0
  273. package/dist/vue-ui-sparkhistogram-ClFyDez-.js +1 -0
  274. package/dist/vue-ui-sparkline-DP_nYlW8.js +1 -0
  275. package/dist/vue-ui-sparkstackbar-B2f0ePMg.js +1 -0
  276. package/dist/vue-ui-stackbar-nMWHZ-f0.js +29 -0
  277. package/dist/vue-ui-stackline-B95y6Zc5.js +39 -0
  278. package/dist/vue-ui-strip-plot-gFNC4r-X.js +2 -0
  279. package/dist/vue-ui-table-Br2JgD_L.js +14 -0
  280. package/dist/vue-ui-table-heatmap-Btu2ejF4.js +1 -0
  281. package/dist/vue-ui-table-sparkline-B9mYHAxp.js +1 -0
  282. package/dist/vue-ui-thermometer-C6u1eLfo.js +1 -0
  283. package/dist/vue-ui-timer-DLgsfB1U.js +64 -0
  284. package/dist/vue-ui-tiremarks-8B9uE1Bx.js +1 -0
  285. package/dist/vue-ui-treemap-C4Mot-Os.js +1 -0
  286. package/dist/vue-ui-waffle-BwcwNpf7.js +1 -0
  287. package/dist/vue-ui-wheel-B3OGCXg7.js +1 -0
  288. package/dist/vue-ui-word-cloud-BPIyMBXq.js +4 -0
  289. package/dist/vue-ui-world-Cp0DeauH.js +19 -0
  290. package/dist/vue-ui-xy-BOE1jvUS.js +31 -0
  291. package/dist/vue-ui-xy-DSyKSn4L.js +24 -0
  292. package/dist/vue-ui-xy-canvas-CaxxiKSa.js +9 -0
  293. package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
  294. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
  295. package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
  296. package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
  297. package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
  298. package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
  299. package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
  300. package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
  301. package/dist/vue_ui_dag-1b_dLSym.js +1 -0
  302. package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
  303. package/dist/vue_ui_donut_evolution-nzVwNQYv.js +1 -0
  304. package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
  305. package/dist/vue_ui_flow-kvV56Es9.js +1 -0
  306. package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
  307. package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
  308. package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
  309. package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
  310. package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
  311. package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
  312. package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
  313. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
  314. package/dist/vue_ui_label-dtPqyFsj.js +1 -0
  315. package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
  316. package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
  317. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
  318. package/dist/vue_ui_onion-C9BedU_-.js +1 -0
  319. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
  320. package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
  321. package/dist/vue_ui_quick_chart-Da1GwklM.js +1 -0
  322. package/dist/vue_ui_radar-68iK9Fam.js +1 -0
  323. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
  324. package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
  325. package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
  326. package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
  327. package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
  328. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
  329. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
  330. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
  331. package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
  332. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
  333. package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
  334. package/dist/vue_ui_stackline-D7b63K84.js +1 -0
  335. package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
  336. package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
  337. package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
  338. package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
  339. package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
  340. package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
  341. package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
  342. package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
  343. package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
  344. package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
  345. package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
  346. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
  347. package/package.json +2 -2
  348. package/dist/A11yDataTable-DdRsVULz.js +0 -45
  349. package/dist/Arrow-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,1451 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { X as t, kt as n, x as r } from "./lib-D4wK6ljP.js";
3
- import { t as i } from "./useConfig-D_6ZrPMD.js";
4
- import { t as a } from "./useNestedProp-DR_8JPol.js";
5
- import { t as o } from "./useThemeCheck-C43Tcqmk.js";
6
- import { t as s } from "./Shape-DSwamtmO.js";
7
- import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
8
- import { t as l } from "./vue_ui_label-B0QoxQrJ.js";
9
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ee, getCurrentInstance as te, guardReactiveProps as ne, nextTick as h, normalizeClass as re, normalizeProps as ie, normalizeStyle as ae, onBeforeUnmount as oe, onMounted as se, openBlock as g, ref as _, renderList as ce, renderSlot as le, toDisplayString as ue, unref as de, useTemplateRef as v, watch as fe, withModifiers as pe } from "vue";
10
- //#region src/components/vue-ui-label.vue
11
- var me = /* @__PURE__ */ e({ default: () => D }), he = [
12
- "d",
13
- "stroke",
14
- "stroke-width",
15
- "stroke-dasharray"
16
- ], ge = [
17
- "cx",
18
- "cy",
19
- "r",
20
- "fill",
21
- "stroke",
22
- "stroke-width"
23
- ], _e = [
24
- "id",
25
- "data-position",
26
- "data-overflow",
27
- "data-overlap",
28
- "data-target-x",
29
- "data-target-y",
30
- "data-box-position-x",
31
- "data-box-position-y",
32
- "data-link-length",
33
- "data-box-show",
34
- "data-box-max-width",
35
- "data-box-padding-top",
36
- "data-box-padding-right",
37
- "data-box-padding-bottom",
38
- "data-box-padding-left",
39
- "data-drag-enabled",
40
- "data-drag-handle-position",
41
- "data-drag-handle-size"
42
- ], ve = [
43
- "x",
44
- "y",
45
- "width",
46
- "height",
47
- "rx",
48
- "fill",
49
- "stroke",
50
- "stroke-width"
51
- ], ye = [
52
- "x",
53
- "y",
54
- "width",
55
- "height",
56
- "rx",
57
- "aria-label"
58
- ], be = [
59
- "font-size",
60
- "font-weight",
61
- "text-anchor",
62
- "fill"
63
- ], xe = ["x", "y"], Se = [
64
- "font-size",
65
- "font-weight",
66
- "text-anchor",
67
- "fill"
68
- ], Ce = ["x", "y"], we = ["aria-label"], Te = [
69
- "x",
70
- "y",
71
- "width",
72
- "height"
73
- ], Ee = [
74
- "x",
75
- "y",
76
- "width",
77
- "height",
78
- "rx"
79
- ], De = [
80
- "d",
81
- "stroke",
82
- "stroke-width"
83
- ], Oe = [
84
- "d",
85
- "stroke",
86
- "stroke-width",
87
- "opacity"
88
- ], ke = 8, y = 4, Ae = 12, je = 24, Me = 1, Ne = 10, b = "__vueUiLabelLayoutOrder", Pe = "__vueUiLabelNextLayoutOrder", x = "__vueUiLabelLayoutRaf", Fe = "__vueUiLabelSetLayoutRect", Ie = "__vueUiLabelMeasureElement", Le = "__vueUiLabelEmitDragEnd", S = "__vueUiLabelPersistedOffset", C = "__vueUiLabelDragRequestedOffset", w = "__vueUiLabelDragging", Re = "__vueUiLabelDragPriority", ze = "__vueUiLabelNextDragPriority", Be = "__vueUiLabelLastLayoutRect", T = "__vueUiLabelLastLayoutOffset", E = "__vueUiLabelDisplacedLabels", D = /*#__PURE__*/ c({
89
- __name: "vue-ui-label",
90
- props: {
91
- dataset: {
92
- type: Object,
93
- default() {
94
- return {
95
- x: null,
96
- y: null,
97
- position: {
98
- x: null,
99
- y: null
100
- }
101
- };
102
- }
103
- },
104
- config: {
105
- type: Object,
106
- default() {
107
- return {};
108
- }
109
- }
110
- },
111
- emits: [
112
- "dragStart",
113
- "drag",
114
- "dragEnd",
115
- "click",
116
- "mouseenter",
117
- "mouseleave",
118
- "focus",
119
- "blur"
120
- ],
121
- setup(e, { expose: c, emit: me }) {
122
- let D = e, O = me, { vue_ui_label: Ve } = i(), { isThemeValid: He, warnInvalidTheme: Ue } = o();
123
- function We() {
124
- let e = a({
125
- userConfig: D.config,
126
- defaultConfig: Ve
127
- }), t = {}, n = e.theme;
128
- return n ? He.value(e) ? t = a({
129
- userConfig: l[n] || D.config,
130
- defaultConfig: e
131
- }) : (Ue(e), t = e) : t = e, t;
132
- }
133
- let k = d(() => We()), Ge = te(), Ke = t(), qe = v("wrapperRef"), A = v("labelRef"), Je = v("contentRef"), Ye = v("boxRef"), Xe = v("titleTextRef"), Ze = v("contentTextRef"), j = _(null), M = _(null), N = _(null), P = _({
134
- x: 0,
135
- y: 0
136
- }), Qe = _(!1), F = _(!1), $e = _("pointer"), et = d(() => k.value.title.fontSize), tt = d(() => k.value.title.lineHeight), nt = d(() => k.value.content.fontSize), rt = d(() => k.value.content.lineHeight), it = d(() => k.value.title.gap), at = d(() => k.value.drag.handleWidth), ot = d(() => k.value.collisionGap), st = null, ct = null, I = null, L = {
137
- inputType: null,
138
- touchId: null,
139
- startPointer: null,
140
- startOffset: null,
141
- lastRequestedOffset: null
142
- }, lt = d(() => ({
143
- x: D.dataset?.x ?? null,
144
- y: D.dataset?.y ?? null
145
- })), R = d(() => n(lt.value.x) && n(lt.value.y)), z = d(() => Number(lt.value.x)), B = d(() => Number(lt.value.y)), V = d(() => k.value.link), H = d(() => k.value.box), ut = d(() => k.value.drag), U = d(() => k.value.title.marker), dt = d(() => k.value.overlap === !0), W = d(() => ut.value?.enable === !0), ft = d(() => !!(Ge?.vnode?.props ?? {}).onClick), pt = d(() => ft.value), mt = d(() => [String(k.value.title?.text ?? "").trim(), String(k.value.content?.text ?? "").trim()].filter(Boolean).join(", ") || "Label"), ht = d(() => `Move ${mt.value}`), gt = `label_${Ke}_drag_instructions`, _t = d(() => k.value.a11y.translations.keyboardNavigation), vt = d(() => n(ut.value?.iconSize) ? Math.max(0, Number(ut.value.iconSize)) : 0), yt = d(() => vt.value * .15), bt = d(() => {
146
- let e = ut.value?.handlePosition;
147
- return [
148
- "left",
149
- "right",
150
- "top",
151
- "bottom"
152
- ].includes(e) ? e : "left";
153
- }), xt = d(() => {
154
- let e = D.dataset?.position;
155
- return !e || !n(e.x) || !n(e.y) ? null : {
156
- x: Number(e.x),
157
- y: Number(e.y)
158
- };
159
- }), St = d(() => Qe.value ? null : xt.value), Ct = d(() => n(V.value.length) ? Math.max(0, Number(V.value.length)) : ke), wt = d(() => Hn(k.value.title.textAlign)), Tt = d(() => Hn(k.value.content.textAlign)), Et = d(() => Un(wt.value)), Dt = d(() => Un(Tt.value)), Ot = d(() => U.value?.color !== null && U.value?.color !== void 0 && String(k.value.title.text ?? "") !== ""), kt = d(() => Ot.value && n(U.value?.size) ? Math.max(0, Number(U.value.size)) : 0), At = d(() => kt.value / 2), jt = d(() => U.value?.beforeText !== !1), Mt = d(() => Ot.value && kt.value > 0 ? 6 : 0), Nt = d(() => kt.value > 0 ? kt.value + Mt.value : 0), G = d(() => {
160
- let e = H.value.padding ?? {};
161
- return {
162
- top: n(e.top) ? Math.max(0, Number(e.top)) : 0,
163
- right: n(e.right) ? Math.max(0, Number(e.right)) : 0,
164
- bottom: n(e.bottom) ? Math.max(0, Number(e.bottom)) : 0,
165
- left: n(e.left) ? Math.max(0, Number(e.left)) : 0
166
- };
167
- }), Pt = d(() => n(H.value.borderWidth) ? Math.max(0, Number(H.value.borderWidth)) : 0), Ft = d(() => n(H.value.borderRadius) ? Math.max(0, Number(H.value.borderRadius)) : 0), K = d(() => n(H.value.maxWidth) ? Math.max(0, Number(H.value.maxWidth)) : null), It = d(() => W.value && H.value.show ? at.value : 0), Lt = d(() => ["left", "right"].includes(bt.value)), Rt = d(() => {
168
- if (!H.value.show || !n(K.value) || K.value <= 0) return null;
169
- let e = Lt.value ? It.value : 0;
170
- return Math.max(1, K.value - G.value.left - G.value.right - e);
171
- }), zt = d(() => Rt.value ? Math.max(1, Rt.value - Nt.value) : null), q = d(() => {
172
- if (!H.value.show || !N.value) return null;
173
- let e = Pt.value / 2, t = Math.max(0, N.value.width - Pt.value), n = Math.max(0, N.value.height - Pt.value);
174
- return {
175
- x: N.value.x + e,
176
- y: N.value.y + e,
177
- width: t,
178
- height: n,
179
- rx: Math.min(Ft.value, t / 2, n / 2)
180
- };
181
- }), Bt = d(() => {
182
- if (!W.value || !q.value) return null;
183
- let e = bt.value, t = ["left", "right"].includes(e), n = Math.min(at.value, Math.max(0, t ? q.value.width : q.value.height));
184
- if (n <= 0 || q.value.width <= 0 || q.value.height <= 0) return null;
185
- let r = q.value.x, i = q.value.y, a = q.value.width, o = q.value.height, s = "", c = "";
186
- if (e === "left" || e === "right") {
187
- a = n, r = e === "left" ? q.value.x : q.value.x + q.value.width - n;
188
- let t = e === "left" ? r + n : r, l = r + n / 2, u = i + o / 2;
189
- s = `
190
- M ${t} ${i}
191
- V ${i + o}
192
- `;
193
- let d = vt.value, f = yt.value / 2, p = Math.max(0, d / 2 - f), m = d * .14;
194
- c = [
195
- -.7,
196
- 0,
197
- .7
198
- ].flatMap((e) => {
199
- let t = u + p * e;
200
- return [`M ${l - m} ${t} h 0`, `M ${l + m} ${t} h 0`];
201
- }).join(" ");
202
- } else {
203
- o = n, i = e === "top" ? q.value.y : q.value.y + q.value.height - n;
204
- let t = e === "top" ? i + n : i, l = r + a / 2, u = i + n / 2;
205
- s = `
206
- M ${r} ${t}
207
- H ${r + a}
208
- `;
209
- let d = vt.value, f = yt.value / 2, p = Math.max(0, d / 2 - f), m = d * .14;
210
- c = [
211
- -.7,
212
- 0,
213
- .7
214
- ].flatMap((e) => {
215
- let t = l + p * e;
216
- return [`M ${t} ${u - m} h 0`, `M ${t} ${u + m} h 0`];
217
- }).join(" ");
218
- }
219
- return {
220
- x: r,
221
- y: i,
222
- width: a,
223
- height: o,
224
- separatorPath: s,
225
- gripPath: c,
226
- position: e
227
- };
228
- }), J = d(() => {
229
- let e = Bt.value;
230
- if (!e) return null;
231
- let t = Math.max(je, e.width), n = Math.max(je, e.height), r = e.x, i = e.y;
232
- return e.position === "left" ? r = e.x + e.width - t : e.position === "top" && (i = e.y + e.height - n), e.position === "left" || e.position === "right" ? i = e.y + e.height / 2 - n / 2 : r = e.x + e.width / 2 - t / 2, {
233
- x: r,
234
- y: i,
235
- width: t,
236
- height: n
237
- };
238
- }), Y = d(() => {
239
- if (!pt.value) return null;
240
- let e = null;
241
- if (q.value ? e = { ...q.value } : M.value && (e = {
242
- x: M.value.x - P.value.x,
243
- y: M.value.y - P.value.y,
244
- width: M.value.width,
245
- height: M.value.height,
246
- rx: 0
247
- }), !e) return null;
248
- let t = Bt.value;
249
- return t && (t.position === "left" ? (e.x += t.width, e.width -= t.width) : t.position === "right" ? e.width -= t.width : (t.position === "top" && (e.y += t.height), e.height -= t.height)), e.width <= 0 || e.height <= 0 ? null : e;
250
- }), X = _(Gn(k.value.title.text)), Vt = _(Gn(k.value.content.text)), Z = _(0), Ht = _(0), Ut = _(0), Wt = d(() => Z.value + Nt.value), Gt = d(() => z.value - Ut.value / 2), Kt = d(() => z.value + Ut.value / 2), qt = d(() => wt.value === "left" ? Gt.value : wt.value === "right" ? Kt.value - Wt.value : z.value - Wt.value / 2), Jt = d(() => {
251
- let e = qt.value + (jt.value ? Nt.value : 0);
252
- return wt.value === "left" ? e : wt.value === "right" ? e + Z.value : e + Z.value / 2;
253
- }), Yt = d(() => !Ot.value || At.value <= 0 ? null : {
254
- x: jt.value ? qt.value + At.value : qt.value + Z.value + Mt.value + At.value,
255
- y: B.value - et.value * .35 + U.value.offsetY
256
- }), Xt = d(() => Wn(Tt.value)), Zt = d(() => X.value.length ? B.value + X.value.length * tt.value + it.value : B.value), Qt = d(() => {
257
- if (!V.value.show || !R.value || !M.value) return null;
258
- let e = M.value, t = z.value, n = B.value, i = e.x + e.width / 2, a = e.y + e.height / 2, o = i - t, s = a - n, c, l, u, d = H.value.show ? Math.min(Ft.value, e.width / 2, e.height / 2) : 0, f = Math.abs(i - t) < .001, p = Math.abs(a - n) < .001;
259
- return Math.abs(o) >= Math.abs(s) ? (o >= 0 ? (u = "left", c = e.x) : (u = "right", c = e.x + e.width), l = p ? a : r(n, e.y + d, e.y + e.height - d)) : (s >= 0 ? (u = "top", l = e.y) : (u = "bottom", l = e.y + e.height), c = f ? i : r(t, e.x + d, e.x + e.width - d)), {
260
- d: `M ${t} ${n} L ${c} ${l}`,
261
- side: u,
262
- start: {
263
- x: t,
264
- y: n
265
- },
266
- end: {
267
- x: c,
268
- y: l
269
- }
270
- };
271
- });
272
- function $t(e, t) {
273
- let n = j.value;
274
- if (!n?.createSVGPoint || !Number.isFinite(e) || !Number.isFinite(t)) return null;
275
- let r = n.getScreenCTM?.();
276
- if (!r) return null;
277
- let i = n.createSVGPoint();
278
- i.x = e, i.y = t;
279
- try {
280
- let e = i.matrixTransform(r.inverse());
281
- return !Number.isFinite(e.x) || !Number.isFinite(e.y) ? null : {
282
- x: e.x,
283
- y: e.y
284
- };
285
- } catch {
286
- return null;
287
- }
288
- }
289
- function en(e = P.value) {
290
- return {
291
- dataset: D.dataset,
292
- offset: {
293
- x: Number(e?.x) || 0,
294
- y: Number(e?.y) || 0
295
- },
296
- rect: M.value ? { ...M.value } : null
297
- };
298
- }
299
- function tn(e) {
300
- let t = j.value;
301
- t && e && (Number.isFinite(t[ze]) || (t[ze] = 0), t[ze] += 1, e[Re] = t[ze]);
302
- }
303
- function nn() {
304
- window.addEventListener("mousemove", gn, !0), window.addEventListener("mouseup", _n, !0);
305
- }
306
- function rn() {
307
- window.removeEventListener("mousemove", gn, !0), window.removeEventListener("mouseup", _n, !0);
308
- }
309
- function an() {
310
- window.addEventListener("touchmove", yn, {
311
- capture: !0,
312
- passive: !1
313
- }), window.addEventListener("touchend", bn, !0), window.addEventListener("touchcancel", xn, !0);
314
- }
315
- function on() {
316
- window.removeEventListener("touchmove", yn, !0), window.removeEventListener("touchend", bn, !0), window.removeEventListener("touchcancel", xn, !0);
317
- }
318
- function sn() {
319
- rn(), on();
320
- }
321
- function cn({ event: e, inputType: t, touchId: n = null, pointer: r }) {
322
- if (F.value || !W.value || !A.value || !j.value || !r) return;
323
- e.preventDefault(), e.stopPropagation();
324
- let i = A.value, a = {
325
- x: Number(P.value?.x) || 0,
326
- y: Number(P.value?.y) || 0
327
- };
328
- L.inputType = t, L.touchId = n, L.startPointer = r, L.startOffset = a, L.lastRequestedOffset = a, F.value = !0, i[w] = !0, i[S] = { ...a }, i[C] = { ...a }, j.value[E] = /* @__PURE__ */ new Map(), tn(i), t === "mouse" ? nn() : an(), O("dragStart", en(a));
329
- }
330
- function ln(e) {
331
- e.button === 0 && cn({
332
- event: e,
333
- inputType: "mouse",
334
- pointer: $t(e.clientX, e.clientY)
335
- });
336
- }
337
- function un(e) {
338
- let t = e.changedTouches?.[0] ?? e.touches?.[0];
339
- t && cn({
340
- event: e,
341
- inputType: "touch",
342
- touchId: t.identifier,
343
- pointer: $t(t.clientX, t.clientY)
344
- });
345
- }
346
- function dn() {
347
- if (I || typeof document > "u") return I;
348
- let e = document.createElement("div");
349
- return e.setAttribute("role", "status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), e.style.position = "fixed", e.style.width = "1px", e.style.height = "1px", e.style.padding = "0", e.style.margin = "-1px", e.style.overflow = "hidden", e.style.clip = "rect(0, 0, 0, 0)", e.style.whiteSpace = "nowrap", e.style.border = "0", document.body.append(e), I = e, I;
350
- }
351
- function fn(e) {
352
- let t = dn();
353
- if (!t) return;
354
- let n = Number(e?.x) || 0, r = Number(e?.y) || 0, i = (e) => Number.isInteger(e) ? String(e) : e.toFixed(2);
355
- t.textContent = "", requestAnimationFrame(() => {
356
- I && (I.textContent = `${mt.value} moved to x ${i(n)}, y ${i(r)}.`);
357
- });
358
- }
359
- function pn(e, t) {
360
- let n = A.value, r = j.value;
361
- if (F.value || !W.value || !n || !r?.isConnected) return;
362
- let i = {
363
- x: Number(P.value?.x) || 0,
364
- y: Number(P.value?.y) || 0
365
- }, a = {
366
- x: i.x + e,
367
- y: i.y + t
368
- };
369
- L.inputType = "keyboard", L.touchId = null, L.startPointer = null, L.startOffset = i, L.lastRequestedOffset = a, F.value = !0, n[w] = !0, n[S] = { ...i }, n[C] = { ...a }, r[E] = /* @__PURE__ */ new Map(), tn(n), O("dragStart", en(i)), O("drag", en(a)), Cr(r), Sn();
370
- }
371
- function mn(e) {
372
- if (!W.value) return;
373
- let t = {
374
- ArrowUp: [0, -1],
375
- ArrowDown: [0, 1],
376
- ArrowLeft: [-1, 0],
377
- ArrowRight: [1, 0]
378
- }[e.key];
379
- if (!t) return;
380
- e.preventDefault(), e.stopPropagation();
381
- let n = e.shiftKey ? Ne : Me;
382
- pn(t[0] * n, t[1] * n);
383
- }
384
- function hn(e, t = null) {
385
- if (!F.value || !L.startPointer || !L.startOffset || !A.value || !e) return;
386
- t && (t.cancelable && t.preventDefault(), t.stopPropagation());
387
- let n = {
388
- x: L.startOffset.x + (e.x - L.startPointer.x),
389
- y: L.startOffset.y + (e.y - L.startPointer.y)
390
- };
391
- L.lastRequestedOffset = n, A.value[C] = { ...n }, $(j.value), O("drag", en(n));
392
- }
393
- function gn(e) {
394
- F.value && L.inputType === "mouse" && hn($t(e.clientX, e.clientY), e);
395
- }
396
- function _n(e) {
397
- F.value && L.inputType === "mouse" && Sn(e);
398
- }
399
- function vn(e) {
400
- if (!e || L.touchId === null) return null;
401
- for (let t of e) if (t.identifier === L.touchId) return t;
402
- return null;
403
- }
404
- function yn(e) {
405
- if (!F.value || L.inputType !== "touch") return;
406
- let t = vn(e.touches);
407
- t && hn($t(t.clientX, t.clientY), e);
408
- }
409
- function bn(e) {
410
- F.value && L.inputType === "touch" && vn(e.changedTouches) && Sn(e);
411
- }
412
- function xn(e) {
413
- F.value && L.inputType === "touch" && vn(e.changedTouches) && Sn(e);
414
- }
415
- function Sn(e = null) {
416
- if (!F.value) return;
417
- e && (e.cancelable && e.preventDefault(), e.stopPropagation());
418
- let t = A.value, n = j.value, r = L.inputType;
419
- n?.[x] && (cancelAnimationFrame(n[x]), n[x] = null), n?.isConnected && t && Cr(n);
420
- let i = t ? fr(t) ?? {
421
- x: Number(P.value?.x) || 0,
422
- y: Number(P.value?.y) || 0
423
- } : {
424
- x: Number(P.value?.x) || 0,
425
- y: Number(P.value?.y) || 0
426
- }, a = M.value ? {
427
- x: M.value.x,
428
- y: M.value.y
429
- } : N.value ? {
430
- x: N.value.x + i.x,
431
- y: N.value.y + i.y
432
- } : {
433
- x: z.value + i.x,
434
- y: B.value + i.y
435
- }, o = xr(n, t);
436
- t && (t[S] = {
437
- x: i.x,
438
- y: i.y
439
- }, t[w] = !1, delete t[C]), P.value = {
440
- x: i.x,
441
- y: i.y
442
- }, sn(), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null, requestAnimationFrame(() => {
443
- O("dragEnd", wn(a)), r === "keyboard" && fn(a);
444
- for (let e of o) e.emitDragEnd(e.position);
445
- });
446
- }
447
- function Cn(e = P.value) {
448
- return M.value ? {
449
- x: M.value.x,
450
- y: M.value.y
451
- } : N.value ? {
452
- x: N.value.x + (Number(e?.x) || 0),
453
- y: N.value.y + (Number(e?.y) || 0)
454
- } : {
455
- x: z.value + (Number(e?.x) || 0),
456
- y: B.value + (Number(e?.y) || 0)
457
- };
458
- }
459
- function wn(e = Cn()) {
460
- return {
461
- ...D.dataset,
462
- position: {
463
- x: Number(e?.x) || 0,
464
- y: Number(e?.y) || 0
465
- }
466
- };
467
- }
468
- function Tn(e) {
469
- O(e, wn());
470
- }
471
- function En() {
472
- Tn("mouseenter");
473
- }
474
- function Dn() {
475
- Tn("mouseleave");
476
- }
477
- function On() {
478
- if ($e.value !== "pointer") return;
479
- let e = document.activeElement;
480
- (e === A.value || e === qe.value) && e.blur?.();
481
- }
482
- function kn() {
483
- On(), Tn("click");
484
- }
485
- function An() {
486
- $e.value = "keyboard";
487
- }
488
- function jn() {
489
- $e.value = "pointer";
490
- }
491
- function Mn() {
492
- $e.value = "pointer";
493
- let e = document.activeElement, t = qe.value;
494
- t && e && t.contains(e) && typeof e.blur == "function" && e.blur();
495
- }
496
- function Nn(e) {
497
- pt.value && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), Tn("click"));
498
- }
499
- function Pn(e) {
500
- let t = qe.value;
501
- t && !t.contains(e.relatedTarget) && Tn("focus");
502
- }
503
- function Fn(e) {
504
- let t = qe.value;
505
- t && !t.contains(e.relatedTarget) && Tn("blur");
506
- }
507
- function In(e) {
508
- let t = e.viewBox?.baseVal;
509
- if (t?.width > 0 && t?.height > 0) return {
510
- x: t.x,
511
- y: t.y,
512
- width: t.width,
513
- height: t.height
514
- };
515
- let n = e.getBoundingClientRect();
516
- return {
517
- x: 0,
518
- y: 0,
519
- width: e.clientWidth || n.width,
520
- height: e.clientHeight || n.height
521
- };
522
- }
523
- function Ln(e) {
524
- return {
525
- x: e.x,
526
- y: e.y,
527
- width: e.width,
528
- height: e.height
529
- };
530
- }
531
- function Rn(e, { top: t = 0, right: n = 0, bottom: r = 0, left: i = 0 } = {}) {
532
- return {
533
- x: e.x - i,
534
- y: e.y - t,
535
- width: e.width + i + n,
536
- height: e.height + t + r
537
- };
538
- }
539
- function Q(e, t) {
540
- return {
541
- x: e.x + t.x,
542
- y: e.y + t.y,
543
- width: e.width,
544
- height: e.height
545
- };
546
- }
547
- function zn(e, t, n = 0) {
548
- return e.x < t.x + t.width + n && e.x + e.width + n > t.x && e.y < t.y + t.height + n && e.y + e.height + n > t.y;
549
- }
550
- function Bn(e, t) {
551
- return Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)) * Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
552
- }
553
- function Vn(e, t, n = 0) {
554
- return e.x >= t.x + n && e.y >= t.y + n && e.x + e.width <= t.x + t.width - n && e.y + e.height <= t.y + t.height - n;
555
- }
556
- function Hn(e) {
557
- return [
558
- "left",
559
- "center",
560
- "right"
561
- ].includes(e) ? e : "center";
562
- }
563
- function Un(e) {
564
- return e === "left" ? "start" : e === "right" ? "end" : "middle";
565
- }
566
- function Wn(e) {
567
- return e === "left" ? Gt.value : e === "right" ? Kt.value : z.value;
568
- }
569
- function Gn(e) {
570
- return e ? String(e).split(/\r?\n/) : [];
571
- }
572
- function Kn(e, t) {
573
- let n = String(e ?? "");
574
- if (!n) return 0;
575
- let r = Number(t?.getAttribute?.("font-size"));
576
- if (!Number.isFinite(r) || r <= 0) try {
577
- r = Number.parseFloat(window.getComputedStyle(t).fontSize);
578
- } catch {
579
- r = 0;
580
- }
581
- return (!Number.isFinite(r) || r <= 0) && (r = 12), Array.from(n).reduce((e, t) => {
582
- if (/\s/u.test(t)) return e + r * .33;
583
- if (/[ilI1.,'`:;|!]/u.test(t)) return e + r * .3;
584
- if (/[MW@#%&]/u.test(t)) return e + r * .9;
585
- let n = t.codePointAt(0) ?? 0;
586
- return e + r * (n >= 4352 && n <= 4607 || n >= 11904 && n <= 40959 || n >= 44032 && n <= 55215 || n >= 63744 && n <= 64255 || n >= 127744 && n <= 129791 ? 1 : .56);
587
- }, 0);
588
- }
589
- function qn(e, t = "", n = null) {
590
- if (!e) return Kn(t, n);
591
- try {
592
- let t = e.getComputedTextLength?.();
593
- if (Number.isFinite(t) && t > 0) return t;
594
- } catch {}
595
- try {
596
- let t = e.getBBox?.().width;
597
- if (Number.isFinite(t) && t > 0) return t;
598
- } catch {}
599
- try {
600
- let t = e.getBoundingClientRect?.().width, n = e.getScreenCTM?.(), r = n ? Math.hypot(n.a, n.b) : 0;
601
- if (Number.isFinite(t) && t > 0 && Number.isFinite(r) && r > 0) return t / r;
602
- } catch {}
603
- return Kn(t, n);
604
- }
605
- function Jn(e) {
606
- if (!e?.isConnected) return null;
607
- let t = e.parentNode;
608
- if (!t) return null;
609
- let n = e.cloneNode(!1);
610
- return n.removeAttribute("id"), n.setAttribute("opacity", "0"), n.setAttribute("pointer-events", "none"), n.setAttribute("text-anchor", "start"), n.setAttribute("x", "0"), n.setAttribute("y", "0"), n.setAttribute("aria-hidden", "true"), t.append(n), {
611
- measure(t) {
612
- let r = String(t ?? "");
613
- return r ? (n.textContent = r, qn(n, r, e)) : 0;
614
- },
615
- destroy() {
616
- n.remove();
617
- }
618
- };
619
- }
620
- function Yn(e, t, n) {
621
- if (!e) return [""];
622
- if (n(e) <= t) return [e];
623
- let r = [], i = "";
624
- for (let a of Array.from(e)) {
625
- let e = i + a;
626
- i && n(e) > t ? (r.push(i), i = a) : i = e;
627
- }
628
- return i && r.push(i), r.length ? r : [e];
629
- }
630
- function Xn(e, t, n) {
631
- if (e === "") return [""];
632
- if (n(e) <= t) return [e];
633
- let r = e.trim().split(/\s+/).filter(Boolean);
634
- if (!r.length) return [""];
635
- let i = [], a = "";
636
- for (let e of r) {
637
- let r = Yn(e, t, n);
638
- for (let e of r) {
639
- let r = a ? `${a} ${e}` : e;
640
- if (!a || n(r) <= t) {
641
- a = r;
642
- continue;
643
- }
644
- i.push(a), a = e;
645
- }
646
- }
647
- return a && i.push(a), i.length ? i : [""];
648
- }
649
- function Zn(e, t, r) {
650
- let i = Gn(e);
651
- if (!i.length || !n(t) || t <= 0) return i;
652
- let a = Jn(r);
653
- if (!a) return i;
654
- try {
655
- return i.flatMap((e) => Xn(e, t, a.measure));
656
- } finally {
657
- a.destroy();
658
- }
659
- }
660
- function Qn(e, t) {
661
- if (!e.length) return 0;
662
- let n = Jn(t);
663
- if (!n) return 0;
664
- try {
665
- return e.reduce((e, t) => Math.max(e, n.measure(t)), 0);
666
- } finally {
667
- n.destroy();
668
- }
669
- }
670
- function $n(e) {
671
- if (!e) return 0;
672
- let t = Array.from(e.querySelectorAll("tspan"));
673
- return t.length ? t.reduce((t, n) => Math.max(t, qn(n, n.textContent ?? "", e)), 0) : qn(e, e.textContent ?? "", e);
674
- }
675
- function er(e, t, r) {
676
- if (!n(e) || !n(t) || !n(r) || e <= 0 || t <= r) return e;
677
- let i = r / t;
678
- return Math.max(1, e * i * .985);
679
- }
680
- function tr() {
681
- let e = $n(Xe.value), t = $n(Ze.value);
682
- Z.value = e || Qn(X.value, Xe.value), Ht.value = t || Qn(Vt.value, Ze.value), Ut.value = Math.max(Z.value + Nt.value, Ht.value, 0);
683
- }
684
- async function nr() {
685
- await h();
686
- let e = Rt.value;
687
- if (!e) {
688
- X.value = Gn(k.value.title.text), Vt.value = Gn(k.value.content.text), await h(), tr(), await h(), $();
689
- return;
690
- }
691
- let t = zt.value ?? e, n = e, r = t, i = n;
692
- for (let e = 0; e < 8; e += 1) {
693
- X.value = Zn(k.value.title.text, r, Xe.value), Vt.value = Zn(k.value.content.text, i, Ze.value), await h();
694
- let e = $n(Xe.value), a = $n(Ze.value), o = !k.value.title.text || e <= t + .25, s = !k.value.content.text || a <= n + .25;
695
- if (o && s) break;
696
- o || (r = er(r, e, t)), s || (i = er(i, a, n));
697
- }
698
- tr(), await h(), $();
699
- }
700
- function rr(e, t, n) {
701
- let i = n.x + y - e.x, a = n.x + n.width - y - (e.x + e.width), o = n.y + y - e.y, s = n.y + n.height - y - (e.y + e.height), c, l;
702
- return c = i <= a ? r(t.x, i, a) : n.x + n.width / 2 - (e.x + e.width / 2), l = o <= s ? r(t.y, o, s) : n.y + n.height / 2 - (e.y + e.height / 2), {
703
- x: c,
704
- y: l
705
- };
706
- }
707
- function ir(e, t) {
708
- let r = [{
709
- x: 0,
710
- y: 0,
711
- direction: "none"
712
- }], i = e.x + e.width / 2, a = e.y + e.height / 2;
713
- for (let o of t) {
714
- let t = n(o.gap) ? Math.max(0, Number(o.gap)) : ot.value, s = o.x + o.width / 2, c = o.y + o.height / 2, l = o.y - t - (e.y + e.height), u = o.y + o.height + t - e.y, d = o.x - t - (e.x + e.width), f = o.x + o.width + t - e.x;
715
- r.push({
716
- x: 0,
717
- y: l,
718
- direction: "top"
719
- }, {
720
- x: 0,
721
- y: u,
722
- direction: "bottom"
723
- }, {
724
- x: d,
725
- y: 0,
726
- direction: "left"
727
- }, {
728
- x: f,
729
- y: 0,
730
- direction: "right"
731
- }, {
732
- x: s - i,
733
- y: l,
734
- direction: "top"
735
- }, {
736
- x: s - i,
737
- y: u,
738
- direction: "bottom"
739
- }, {
740
- x: d,
741
- y: c - a,
742
- direction: "left"
743
- }, {
744
- x: f,
745
- y: c - a,
746
- direction: "right"
747
- });
748
- }
749
- let o = Math.max(e.width * .5 + ot.value, 12), s = Math.max(e.height * .5 + ot.value, 12);
750
- for (let e = 1; e <= Ae; e += 1) {
751
- let t = o * e, n = s * e;
752
- r.push({
753
- x: 0,
754
- y: -n,
755
- direction: "top"
756
- }, {
757
- x: -t,
758
- y: -n,
759
- direction: "top"
760
- }, {
761
- x: t,
762
- y: -n,
763
- direction: "top"
764
- }, {
765
- x: 0,
766
- y: n,
767
- direction: "bottom"
768
- }, {
769
- x: -t,
770
- y: n,
771
- direction: "bottom"
772
- }, {
773
- x: t,
774
- y: n,
775
- direction: "bottom"
776
- }, {
777
- x: -t,
778
- y: 0,
779
- direction: "left"
780
- }, {
781
- x: -t,
782
- y: -n,
783
- direction: "left"
784
- }, {
785
- x: -t,
786
- y: n,
787
- direction: "left"
788
- }, {
789
- x: t,
790
- y: 0,
791
- direction: "right"
792
- }, {
793
- x: t,
794
- y: -n,
795
- direction: "right"
796
- }, {
797
- x: t,
798
- y: n,
799
- direction: "right"
800
- });
801
- }
802
- return r;
803
- }
804
- function ar(e) {
805
- let t = /* @__PURE__ */ new Set();
806
- return e.filter((e) => {
807
- let n = [e.x.toFixed(3), e.y.toFixed(3)].join(":");
808
- return !t.has(n) && (t.add(n), !0);
809
- });
810
- }
811
- function or(e, t, n) {
812
- if (e.preferred) return -(2 ** 53 - 1);
813
- let r = Math.hypot(e.x, e.y);
814
- return t === "auto" || e.direction === "none" || e.direction === t ? r : r + Math.max(n.width, n.height) * 2;
815
- }
816
- function sr(e, t) {
817
- return t.some((t) => zn(e, t, n(t.gap) ? Math.max(0, Number(t.gap)) : ke));
818
- }
819
- function cr(e) {
820
- let t = n(e?.gap) ? Math.max(0, Number(e.gap)) : ke;
821
- return {
822
- x: e.x - t,
823
- y: e.y - t,
824
- width: e.width + t * 2,
825
- height: e.height + t * 2
826
- };
827
- }
828
- function lr({ baseRect: e, requestedOffset: t, previousOffset: r = null, hardObstacles: i, bounds: a, overflow: o }) {
829
- let s = {
830
- x: n(t?.x) ? Number(t.x) : 0,
831
- y: n(t?.y) ? Number(t.y) : 0
832
- };
833
- o || (s = rr(e, s, a));
834
- for (let t of i) {
835
- let n = cr(t), i = Q(e, s);
836
- if (!zn(i, n)) continue;
837
- let c = [
838
- {
839
- x: s.x + n.x - (i.x + i.width),
840
- y: s.y
841
- },
842
- {
843
- x: s.x + n.x + n.width - i.x,
844
- y: s.y
845
- },
846
- {
847
- x: s.x,
848
- y: s.y + n.y - (i.y + i.height)
849
- },
850
- {
851
- x: s.x,
852
- y: s.y + n.y + n.height - i.y
853
- }
854
- ], l = o ? c : c.filter((t) => Vn(Q(e, t), a, y)), u = l.length ? l : c;
855
- u.sort((e, t) => {
856
- let n = Math.hypot(e.x - s.x, e.y - s.y), i = Math.hypot(t.x - s.x, t.y - s.y);
857
- return n === i ? r ? Math.hypot(e.x - r.x, e.y - r.y) - Math.hypot(t.x - r.x, t.y - r.y) : 0 : n - i;
858
- }), s = u[0] ?? s;
859
- }
860
- return s;
861
- }
862
- function ur({ baseRect: e, occupiedRects: t, hardObstacles: r, bounds: i, position: a, overflow: o, preferredOffset: s = null, ignoreOccupied: c = !1 }) {
863
- let l = ir(e, c ? [...r] : [...t, ...r]);
864
- s && n(s.x) && n(s.y) && l.unshift({
865
- x: Number(s.x),
866
- y: Number(s.y),
867
- direction: "manual",
868
- preferred: !0
869
- }), o || (l = l.map((t) => {
870
- let n = rr(e, t, i);
871
- return {
872
- ...t,
873
- x: n.x,
874
- y: n.y
875
- };
876
- })), l = ar(l), l.sort((e, t) => or(e, a, i) - or(t, a, i));
877
- function u(n) {
878
- let a = Q(e, n);
879
- return !(!o && !Vn(a, i, y) || sr(a, r) || !c && t.some((e) => zn(a, e, ot.value)));
880
- }
881
- for (let t of l) if (u(t)) {
882
- if (!t.preferred && [
883
- "top",
884
- "bottom",
885
- "left",
886
- "right"
887
- ].includes(t.direction) && r.length) {
888
- let n = r[0], i = n.x + n.width / 2, a = n.y + n.height / 2, o = e.x + e.width / 2, s = e.y + e.height / 2, c = { ...t };
889
- if (t.direction === "top" || t.direction === "bottom" ? c.x = i - o : c.y = a - s, u(c)) return c;
890
- }
891
- return t;
892
- }
893
- let d = null, f = Infinity, p = Infinity;
894
- for (let n of l) {
895
- let s = Q(e, n);
896
- if (!o && !Vn(s, i, y) || sr(s, r)) continue;
897
- let l = c ? 0 : t.reduce((e, t) => e + Bn(s, t), 0), u = or(n, a, i);
898
- (l < f || l === f && u < p) && (f = l, p = u, d = n);
899
- }
900
- if (d) return d;
901
- let m = ar(ir(e, r)).sort((e, t) => or(e, a, i) - or(t, a, i));
902
- for (let t of m) if (!sr(Q(e, t), r)) return t;
903
- return {
904
- x: 0,
905
- y: 0,
906
- direction: "none"
907
- };
908
- }
909
- function dr(e, t) {
910
- let r = e?.[t];
911
- return !r || !n(r.x) || !n(r.y) ? null : {
912
- x: Number(r.x),
913
- y: Number(r.y)
914
- };
915
- }
916
- function fr(e) {
917
- return dr(e, S);
918
- }
919
- function pr(e) {
920
- return dr(e, C);
921
- }
922
- function mr(e) {
923
- let t = e?.dataset?.boxPositionX, r = e?.dataset?.boxPositionY;
924
- return t === "" || r === "" || !n(t) || !n(r) ? null : {
925
- x: Number(t),
926
- y: Number(r)
927
- };
928
- }
929
- function hr(e) {
930
- return Number.isFinite(e?.[Re]) ? e[Re] : -1;
931
- }
932
- function gr(e) {
933
- let t = [...e.querySelectorAll(".vue-ui-label")].filter((t) => t.ownerSVGElement === e);
934
- Number.isFinite(e[Pe]) || (e[Pe] = 0);
935
- for (let n of t) Number.isFinite(n[b]) || (n[b] = e[Pe], e[Pe] += 1);
936
- return t.sort((e, t) => e[b] - t[b]);
937
- }
938
- function _r(e) {
939
- let t = Number(e.dataset.targetX), r = Number(e.dataset.targetY);
940
- return !Number.isFinite(t) || !Number.isFinite(r) ? null : {
941
- x: t,
942
- y: r,
943
- width: 0,
944
- height: 0,
945
- gap: n(e.dataset.linkLength) ? Math.max(0, Number(e.dataset.linkLength)) : ke
946
- };
947
- }
948
- function vr(e, t, n = null, r = null) {
949
- let i = e?.[Fe];
950
- typeof i == "function" && i({
951
- layoutRect: t,
952
- boxRect: n,
953
- offset: r
954
- });
955
- }
956
- function yr(e, t, n = .001) {
957
- return !e || !t ? !1 : Math.abs(Number(e.x) - Number(t.x)) > n || Math.abs(Number(e.y) - Number(t.y)) > n;
958
- }
959
- function br(e, t, n, r, i) {
960
- if (!e || !t || !n || !r || !yr(n, r)) return;
961
- let a = e[E];
962
- a instanceof Map || (a = /* @__PURE__ */ new Map(), e[E] = a), a.has(t) || a.set(t, {
963
- x: n.x,
964
- y: n.y
965
- }), t[T] = {
966
- x: Number(i?.x) || 0,
967
- y: Number(i?.y) || 0
968
- };
969
- }
970
- function xr(e, t) {
971
- let n = e?.[E];
972
- if (!(n instanceof Map)) return [];
973
- let r = [];
974
- for (let [e, i] of n.entries()) {
975
- if (!e?.isConnected || e === t) continue;
976
- let n = e[Be], a = e[T], o = e[Le];
977
- n && yr(i, n) && typeof o == "function" && (a && (e[S] = {
978
- x: Number(a.x) || 0,
979
- y: Number(a.y) || 0
980
- }), r.push({
981
- emitDragEnd: o,
982
- position: {
983
- x: n.x,
984
- y: n.y
985
- }
986
- }));
987
- }
988
- return n.clear(), delete e[E], r;
989
- }
990
- function Sr({ baseRect: e, offset: t, occupiedRects: n, hardObstacles: r, bounds: i, overflow: a, ignoreOccupied: o = !1 }) {
991
- if (!t) return !1;
992
- let s = Q(e, t);
993
- return !(!a && !Vn(s, i, y) || sr(s, r) || !o && n.some((e) => zn(s, e, 0)));
994
- }
995
- function Cr(e) {
996
- if (!e?.isConnected) return;
997
- let t = gr(e);
998
- if (!t.length) return;
999
- let r = In(e);
1000
- for (let e of t) e.setAttribute("transform", "translate(0 0)");
1001
- let i = [];
1002
- for (let e of t) {
1003
- let t = e[Ie] ?? e, r;
1004
- try {
1005
- r = t.getBBox();
1006
- } catch {
1007
- vr(e, null, null, null);
1008
- continue;
1009
- }
1010
- if (!Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) || r.width <= 0 || r.height <= 0) {
1011
- vr(e, null, null, null);
1012
- continue;
1013
- }
1014
- let a = Ln(r), o = e.dataset.boxShow === "true", s = {
1015
- top: n(e.dataset.boxPaddingTop) ? Math.max(0, Number(e.dataset.boxPaddingTop)) : 0,
1016
- right: n(e.dataset.boxPaddingRight) ? Math.max(0, Number(e.dataset.boxPaddingRight)) : 0,
1017
- bottom: n(e.dataset.boxPaddingBottom) ? Math.max(0, Number(e.dataset.boxPaddingBottom)) : 0,
1018
- left: n(e.dataset.boxPaddingLeft) ? Math.max(0, Number(e.dataset.boxPaddingLeft)) : 0
1019
- }, c = o ? Rn(a, s) : a, l = o && n(e.dataset.boxMaxWidth) && Number(e.dataset.boxMaxWidth) > 0 ? Number(e.dataset.boxMaxWidth) : null, u = e.dataset.dragEnabled === "true", d = e.dataset.dragHandlePosition, f = [
1020
- "left",
1021
- "right",
1022
- "top",
1023
- "bottom"
1024
- ].includes(d) ? d : "right", p = o && u && n(e.dataset.dragHandleSize) ? Math.max(0, Number(e.dataset.dragHandleSize)) : 0;
1025
- if (p > 0 && (c = f === "left" ? {
1026
- ...c,
1027
- x: c.x - p,
1028
- width: c.width + p
1029
- } : f === "right" ? {
1030
- ...c,
1031
- width: c.width + p
1032
- } : f === "top" ? {
1033
- ...c,
1034
- y: c.y - p,
1035
- height: c.height + p
1036
- } : {
1037
- ...c,
1038
- height: c.height + p
1039
- }), l !== null && c.width > l) {
1040
- let e = c.x + c.width / 2;
1041
- c = {
1042
- ...c,
1043
- x: e - l / 2,
1044
- width: l
1045
- };
1046
- }
1047
- i.push({
1048
- label: e,
1049
- baseRect: c,
1050
- boxShow: o,
1051
- position: e.dataset.position || "auto",
1052
- overflow: e.dataset.overflow === "true",
1053
- overlap: e.dataset.overlap === "true",
1054
- dragHandlePosition: f,
1055
- dragHandleSize: p,
1056
- targetObstacle: _r(e),
1057
- persistedOffset: fr(e),
1058
- datasetPosition: mr(e),
1059
- requestedDragOffset: pr(e),
1060
- dragging: e[w] === !0,
1061
- dragPriority: hr(e)
1062
- });
1063
- }
1064
- i.sort((e, t) => {
1065
- if (e.dragging !== t.dragging) return e.dragging ? -1 : 1;
1066
- let n = !!e.datasetPosition || !!e.persistedOffset, r = !!t.datasetPosition || !!t.persistedOffset;
1067
- return n === r ? n && r && e.dragPriority !== t.dragPriority ? t.dragPriority - e.dragPriority : e.label[b] - t.label[b] : n ? -1 : 1;
1068
- });
1069
- let a = i.some((e) => e.dragging), o = i.some((e) => e.dragging && e.overlap), s = [];
1070
- for (let t of i) {
1071
- let n = t.targetObstacle ? [t.targetObstacle] : [], i;
1072
- if (t.dragging) i = lr({
1073
- baseRect: t.baseRect,
1074
- requestedOffset: t.requestedDragOffset ?? t.persistedOffset,
1075
- previousOffset: t.persistedOffset,
1076
- hardObstacles: n,
1077
- bounds: r,
1078
- overflow: t.overflow
1079
- });
1080
- else if (a && (o || t.overlap) && t.label[T]) i = {
1081
- x: Number(t.label[T].x) || 0,
1082
- y: Number(t.label[T].y) || 0,
1083
- direction: "overlap"
1084
- };
1085
- else if (!a && t.datasetPosition) i = {
1086
- x: t.datasetPosition.x - t.baseRect.x,
1087
- y: t.datasetPosition.y - t.baseRect.y,
1088
- direction: "manual"
1089
- };
1090
- else if (!a && t.persistedOffset) i = {
1091
- x: Number(t.persistedOffset.x) || 0,
1092
- y: Number(t.persistedOffset.y) || 0,
1093
- direction: "manual"
1094
- };
1095
- else {
1096
- let e = t.label[T];
1097
- i = a && e && Sr({
1098
- baseRect: t.baseRect,
1099
- offset: e,
1100
- occupiedRects: s,
1101
- hardObstacles: n,
1102
- bounds: r,
1103
- overflow: t.overflow,
1104
- ignoreOccupied: t.overlap
1105
- }) ? {
1106
- x: Number(e.x) || 0,
1107
- y: Number(e.y) || 0,
1108
- direction: "stable"
1109
- } : ur({
1110
- baseRect: t.baseRect,
1111
- occupiedRects: s,
1112
- hardObstacles: n,
1113
- bounds: r,
1114
- position: t.position,
1115
- overflow: t.overflow,
1116
- preferredOffset: t.persistedOffset ?? (t.datasetPosition ? {
1117
- x: t.datasetPosition.x - t.baseRect.x,
1118
- y: t.datasetPosition.y - t.baseRect.y
1119
- } : e ?? null),
1120
- ignoreOccupied: t.overlap
1121
- });
1122
- }
1123
- t.label.setAttribute("transform", `translate(${i.x} ${i.y})`);
1124
- let c = Q(t.baseRect, i), l = t.label[Be];
1125
- a && !o && !t.dragging && !t.overlap && br(e, t.label, l, c, i), (t.datasetPosition || t.persistedOffset || t.dragging) && (t.label[S] = {
1126
- x: i.x,
1127
- y: i.y
1128
- }), t.label[Be] = {
1129
- x: c.x,
1130
- y: c.y,
1131
- width: c.width,
1132
- height: c.height
1133
- }, t.label[T] = {
1134
- x: Number(i.x) || 0,
1135
- y: Number(i.y) || 0
1136
- }, vr(t.label, c, t.boxShow ? t.baseRect : null, i), t.overlap || s.push(c);
1137
- }
1138
- }
1139
- function $(e = j.value) {
1140
- e?.isConnected && (e[x] || (e[x] = requestAnimationFrame(() => {
1141
- e[x] = null, Cr(e);
1142
- })));
1143
- }
1144
- function wr() {
1145
- let e = A.value, t = j.value;
1146
- Qe.value = !0, P.value = {
1147
- x: 0,
1148
- y: 0
1149
- }, e && (F.value && (t?.[x] && (cancelAnimationFrame(t[x]), t[x] = null), sn(), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null), e[w] = !1, delete e[S], delete e[C], delete e[Be], delete e[T], delete e[Re], e.dataset.boxPositionX = "", e.dataset.boxPositionY = "", e.setAttribute("transform", "translate(0 0)"), t?.isConnected && (t[E] = /* @__PURE__ */ new Map(), $(t)));
1150
- }
1151
- return c({ reorder: wr }), fe(() => [D.dataset?.position?.x, D.dataset?.position?.y], (e, t) => {
1152
- t && (e[0] !== t[0] || e[1] !== t[1]) && (Qe.value = !1);
1153
- }), fe(() => [
1154
- D.dataset?.x,
1155
- D.dataset?.y,
1156
- D.dataset?.position?.x,
1157
- D.dataset?.position?.y
1158
- ], () => {
1159
- if (!xt.value && A.value && !F.value) {
1160
- let e = D.dataset?.position;
1161
- e && (e.x === null || e.x === void 0 || e.y === null || e.y === void 0) && (delete A.value[S], P.value = {
1162
- x: 0,
1163
- y: 0
1164
- });
1165
- }
1166
- nr();
1167
- }, { flush: "post" }), fe(() => D.config, () => {
1168
- !W.value && F.value && Sn(), nr();
1169
- }, {
1170
- deep: !0,
1171
- flush: "post"
1172
- }), se(async () => {
1173
- await h(), window.addEventListener("keydown", An, !0), window.addEventListener("pointerdown", jn, !0), j.value = A.value?.ownerSVGElement ?? null;
1174
- let e = j.value, t = A.value, n = Je.value;
1175
- e && t && n && (t[Ie] = n, t[Fe] = ({ layoutRect: e, boxRect: t, offset: n }) => {
1176
- M.value = e, N.value = t, n && (P.value = {
1177
- x: Number(n.x) || 0,
1178
- y: Number(n.y) || 0
1179
- });
1180
- }, t[Le] = (e) => {
1181
- O("dragEnd", {
1182
- ...D.dataset,
1183
- position: {
1184
- x: Number(e?.x) || 0,
1185
- y: Number(e?.y) || 0
1186
- }
1187
- });
1188
- }, st = new MutationObserver((n) => {
1189
- n.some((e) => !(e.type === "attributes" && e.target === t && e.attributeName === "transform" || e.type === "attributes" && e.target === Ye.value)) && $(e);
1190
- }), st.observe(t, {
1191
- subtree: !0,
1192
- childList: !0,
1193
- characterData: !0,
1194
- attributes: !0
1195
- }), "ResizeObserver" in window && (ct = new ResizeObserver(() => {
1196
- $(e);
1197
- }), ct.observe(e)), document.fonts?.ready?.then(() => {
1198
- nr();
1199
- }), nr());
1200
- }), oe(() => {
1201
- sn(), window.removeEventListener("keydown", An, !0), window.removeEventListener("pointerdown", jn, !0), st?.disconnect(), ct?.disconnect(), I?.remove(), I = null, A.value && (delete A.value[Fe], delete A.value[Ie], delete A.value[Le], delete A.value[Be], delete A.value[T], delete A.value[S], delete A.value[C], delete A.value[w], delete A.value[Re]), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null, M.value = null, N.value = null, P.value = {
1202
- x: 0,
1203
- y: 0
1204
- };
1205
- let e = j.value;
1206
- if (e) {
1207
- let t = e[E];
1208
- t instanceof Map && A.value && t.delete(A.value), requestAnimationFrame(() => {
1209
- $(e);
1210
- });
1211
- }
1212
- }), (e, t) => (g(), m("g", {
1213
- ref_key: "wrapperRef",
1214
- ref: qe,
1215
- class: re(["vue-ui-label-wrapper", { "vue-ui-label-wrapper--keyboard-focus": $e.value === "keyboard" }]),
1216
- focusable: "false",
1217
- onPointerdownCapture: Mn,
1218
- onMouseenter: En,
1219
- onMouseleave: Dn,
1220
- onFocusin: Pn,
1221
- onFocusout: Fn
1222
- }, [
1223
- Qt.value ? (g(), m("path", {
1224
- key: 0,
1225
- class: "vue-ui-label__link",
1226
- d: Qt.value.d,
1227
- fill: "none",
1228
- stroke: V.value.stroke,
1229
- "stroke-width": V.value.strokeWidth,
1230
- "stroke-dasharray": V.value.strokeDasharray,
1231
- "stroke-linecap": "round",
1232
- "pointer-events": "none",
1233
- "aria-hidden": "true",
1234
- focusable: "false"
1235
- }, null, 8, he)) : p("", !0),
1236
- V.value.targetPlot.show ? (g(), m("circle", {
1237
- key: 1,
1238
- cx: z.value,
1239
- cy: B.value,
1240
- r: V.value.targetPlot.radius,
1241
- fill: V.value.stroke,
1242
- stroke: V.value.targetPlot.stroke,
1243
- "stroke-width": V.value.strokeWidth,
1244
- "paint-order": "stroke fill"
1245
- }, null, 8, ge)) : p("", !0),
1246
- ee("g", {
1247
- ref_key: "labelRef",
1248
- ref: A,
1249
- class: "vue-ui-label",
1250
- focusable: "false",
1251
- id: `label_${de(Ke)}`,
1252
- "data-position": k.value.position,
1253
- "data-overflow": String(k.value.overflow),
1254
- "data-overlap": String(dt.value),
1255
- "data-target-x": R.value ? z.value : "",
1256
- "data-target-y": R.value ? B.value : "",
1257
- "data-box-position-x": St.value ? St.value.x : "",
1258
- "data-box-position-y": St.value ? St.value.y : "",
1259
- "data-link-length": V.value.show ? Ct.value : ke,
1260
- "data-box-show": String(H.value.show),
1261
- "data-box-max-width": K.value !== null && K.value > 0 ? K.value : "",
1262
- "data-box-padding-top": G.value.top,
1263
- "data-box-padding-right": G.value.right,
1264
- "data-box-padding-bottom": G.value.bottom,
1265
- "data-box-padding-left": G.value.left,
1266
- "data-drag-enabled": String(W.value),
1267
- "data-drag-handle-position": bt.value,
1268
- "data-drag-handle-size": It.value,
1269
- onClick: kn
1270
- }, [
1271
- q.value ? (g(), m("rect", {
1272
- key: 0,
1273
- ref_key: "boxRef",
1274
- ref: Ye,
1275
- class: "vue-ui-label__box",
1276
- x: q.value.x,
1277
- y: q.value.y,
1278
- width: q.value.width,
1279
- height: q.value.height,
1280
- rx: q.value.rx,
1281
- fill: H.value.backgroundColor,
1282
- stroke: H.value.borderColor,
1283
- "stroke-width": Pt.value,
1284
- "aria-hidden": "true",
1285
- focusable: "false"
1286
- }, null, 8, ve)) : p("", !0),
1287
- Y.value ? (g(), m("rect", {
1288
- key: 1,
1289
- class: "vue-ui-label__action-target",
1290
- x: Y.value.x,
1291
- y: Y.value.y,
1292
- width: Y.value.width,
1293
- height: Y.value.height,
1294
- rx: Y.value.rx,
1295
- fill: "transparent",
1296
- "pointer-events": "none",
1297
- role: "button",
1298
- tabindex: "0",
1299
- "aria-label": mt.value,
1300
- onKeydown: Nn
1301
- }, null, 40, ye)) : p("", !0),
1302
- le(e.$slots, "before", ie(ne({
1303
- ...D,
1304
- box: q.value
1305
- })), void 0, !0),
1306
- ee("g", {
1307
- ref_key: "contentRef",
1308
- ref: Je,
1309
- class: "vue-ui-label__body"
1310
- }, [le(e.$slots, "title", ie(ne({
1311
- ...D,
1312
- box: q.value
1313
- })), () => [
1314
- jt.value && Yt.value && R.value ? (g(), f(s, {
1315
- key: 0,
1316
- class: "vue-ui-label__marker",
1317
- plot: Yt.value,
1318
- radius: At.value,
1319
- shape: U.value.shape,
1320
- color: U.value.color,
1321
- "pointer-events": "none",
1322
- "aria-hidden": "true",
1323
- focusable: "false"
1324
- }, null, 8, [
1325
- "plot",
1326
- "radius",
1327
- "shape",
1328
- "color"
1329
- ])) : p("", !0),
1330
- k.value.title.text && R.value ? (g(), m("text", {
1331
- key: 1,
1332
- ref_key: "titleTextRef",
1333
- ref: Xe,
1334
- class: "vue-ui-label__title",
1335
- "font-size": et.value,
1336
- "font-weight": k.value.title.bold ? "bold" : "normal",
1337
- "text-anchor": Et.value,
1338
- fill: k.value.title.color
1339
- }, [(g(!0), m(u, null, ce(X.value, (e, t) => (g(), m("tspan", {
1340
- key: `title_${t}`,
1341
- x: Jt.value,
1342
- y: B.value + t * tt.value
1343
- }, ue(e), 9, xe))), 128))], 8, be)) : p("", !0),
1344
- !jt.value && Yt.value && R.value ? (g(), f(s, {
1345
- key: 2,
1346
- class: "vue-ui-label__marker",
1347
- plot: Yt.value,
1348
- radius: At.value,
1349
- shape: U.value.shape,
1350
- color: U.value.color,
1351
- "pointer-events": "none",
1352
- "aria-hidden": "true",
1353
- focusable: "false"
1354
- }, null, 8, [
1355
- "plot",
1356
- "radius",
1357
- "shape",
1358
- "color"
1359
- ])) : p("", !0)
1360
- ], !0), le(e.$slots, "content", ie(ne({
1361
- ...D,
1362
- box: q.value
1363
- })), () => [k.value.content.text && R.value ? (g(), m("text", {
1364
- key: 0,
1365
- ref_key: "contentTextRef",
1366
- ref: Ze,
1367
- class: "vue-ui-label__content",
1368
- "font-size": nt.value,
1369
- "font-weight": k.value.content.bold ? "bold" : "normal",
1370
- "text-anchor": Dt.value,
1371
- fill: k.value.content.color
1372
- }, [(g(!0), m(u, null, ce(Vt.value, (e, t) => (g(), m("tspan", {
1373
- key: `content_${t}`,
1374
- x: Xt.value,
1375
- y: Zt.value + t * rt.value
1376
- }, ue(e), 9, Ce))), 128))], 8, Se)) : p("", !0)], !0)], 512),
1377
- le(e.$slots, "after", ie(ne({
1378
- ...D,
1379
- box: q.value
1380
- })), void 0, !0),
1381
- Bt.value ? (g(), m("g", {
1382
- key: 2,
1383
- class: "vue-ui-label__drag-handle",
1384
- style: ae({
1385
- cursor: F.value ? "grabbing" : "grab",
1386
- touchAction: "none"
1387
- }),
1388
- role: "button",
1389
- tabindex: "0",
1390
- "aria-label": ht.value,
1391
- "aria-describedby": gt,
1392
- "aria-keyshortcuts": "ArrowUp ArrowDown ArrowLeft ArrowRight",
1393
- onKeydown: mn,
1394
- onClick: t[0] ||= pe(() => {}, ["stop"]),
1395
- onPointerdown: t[1] ||= pe(() => {}, ["stop"]),
1396
- onMousedown: pe(ln, ["stop", "prevent"]),
1397
- onTouchstart: pe(un, ["stop", "prevent"])
1398
- }, [
1399
- ee("desc", { id: gt }, ue(_t.value), 1),
1400
- J.value ? (g(), m("rect", {
1401
- key: 0,
1402
- x: J.value.x,
1403
- y: J.value.y,
1404
- width: J.value.width,
1405
- height: J.value.height,
1406
- fill: "transparent",
1407
- "pointer-events": "all",
1408
- "aria-hidden": "true",
1409
- focusable: "false"
1410
- }, null, 8, Te)) : p("", !0),
1411
- J.value ? (g(), m("rect", {
1412
- key: 1,
1413
- class: "vue-ui-label__focus-ring",
1414
- x: J.value.x,
1415
- y: J.value.y,
1416
- width: J.value.width,
1417
- height: J.value.height,
1418
- rx: Math.min(4, J.value.width / 2, J.value.height / 2),
1419
- fill: "none",
1420
- stroke: "currentColor",
1421
- "stroke-width": "2",
1422
- "pointer-events": "none",
1423
- "aria-hidden": "true",
1424
- focusable: "false"
1425
- }, null, 8, Ee)) : p("", !0),
1426
- k.value.drag.showSeparator ? (g(), m("path", {
1427
- key: 2,
1428
- d: Bt.value.separatorPath,
1429
- stroke: H.value.borderColor,
1430
- "stroke-width": Math.max(.5, Pt.value),
1431
- "pointer-events": "none",
1432
- "aria-hidden": "true",
1433
- focusable: "false"
1434
- }, null, 8, De)) : p("", !0),
1435
- ee("path", {
1436
- d: Bt.value.gripPath,
1437
- stroke: k.value.drag.iconColor,
1438
- "stroke-width": yt.value,
1439
- "stroke-linecap": "round",
1440
- opacity: k.value.drag.iconOpacity,
1441
- "pointer-events": "none",
1442
- "aria-hidden": "true",
1443
- focusable: "false"
1444
- }, null, 8, Oe)
1445
- ], 44, we)) : p("", !0)
1446
- ], 8, _e)
1447
- ], 34));
1448
- }
1449
- }, [["__scopeId", "data-v-4fe38f01"]]);
1450
- //#endregion
1451
- export { me as n, D as t };