@astryx-vue/core 0.33.1 → 0.33.3

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 (324) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-C9mhy7gH.js → AlertDialog-BwH9WU-t.js} +9 -9
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-B4S-gbL3.js → AppShell-BwzRYOky.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-B93MdEmI.js → Avatar-C6E6TYbe.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-CCFMtKks.js → AvatarGroup-C0V--ipx.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-DfsrHUDP.js → Banner-Ds5KIeES.js} +36 -16
  13. package/dist/BottomSheet/index.d.ts +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-E_OjhAa7.js → BottomSheet-BmmGemH5.js} +1 -1
  16. package/dist/{BottomSheet-DxqAIVZ3.js → BottomSheet-DKEUVLe5.js} +9 -9
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-DMytkhxA.js → Breadcrumbs-DWAYp-JJ.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/Button/index.js +1 -1
  21. package/dist/{Button-BoZJv7eb.js → Button-X-Q_ghg8.js} +4 -4
  22. package/dist/ButtonGroup/index.d.ts +1 -1
  23. package/dist/ButtonGroup/index.js +1 -1
  24. package/dist/{ButtonGroup-D5E7QLWI.js → ButtonGroup-DsYdUmF1.js} +2 -2
  25. package/dist/Calendar/index.d.ts +1 -1
  26. package/dist/Carousel/index.d.ts +1 -1
  27. package/dist/Carousel/index.js +1 -1
  28. package/dist/{Carousel-TvReEgJA.js → Carousel-D8uVV1J_.js} +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-C_tNbXbn.js → Chat-Dy-icS2C.js} +6 -6
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-D6KNni6p.js → CheckboxInput-CiUtutIS.js} +4 -4
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxListItem-wNOHsMMr.js → CheckboxListItem-B6sV7-Og.js} +5 -5
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/ClickableCard/index.js +1 -1
  40. package/dist/{ClickableCard-CLXCxaxo.js → ClickableCard-DDk_RtHd.js} +1 -1
  41. package/dist/Code/index.js +1 -1
  42. package/dist/{CodeBlock-U2zFJsc5.js → CodeBlock-r2-MlpBB.js} +1 -1
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-Cf9evVsQ.js → Collapsible-0XI3tKgj.js} +3 -3
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-D5PGSXWz.js → CommandPalette-BYR0Lxxd.js} +3 -3
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-Co1jUTYQ.js → ComplexSelector-CIXrqCoX.js} +3 -3
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-DBvZgAbg.js → ContextMenu-CfVyaP5v.js} +7 -7
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-XLGBkH4g.js → DateInput-DRzZ8dY7.js} +5 -5
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-BNpkwtVh.js → DateRangeInput-DL2aOQXJ.js} +4 -4
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-CewV_JRI.js → DateTimeInput-KWkpamG4.js} +6 -6
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-BbDjvBqX.js → Dialog-BM5VEE8z.js} +2 -2
  64. package/dist/{Dialog-CYcDiMtZ.js → Dialog-CJzq1gms.js} +1 -1
  65. package/dist/{DialogHeader-efWB4QQA.js → DialogHeader-Do4EOX2f.js} +2 -2
  66. package/dist/Divider/index.d.ts +1 -1
  67. package/dist/Drawer/index.d.ts +1 -1
  68. package/dist/Drawer/index.js +1 -1
  69. package/dist/{Drawer-BswIXZSo.js → Drawer-DuQ620WO.js} +2 -2
  70. package/dist/DropdownMenu/index.js +2 -2
  71. package/dist/{DropdownMenu-CCOjKL7v.js → DropdownMenu-CbENfJOq.js} +10 -10
  72. package/dist/EmptyState/index.js +1 -1
  73. package/dist/{EmptyState-BkQ3jktt.js → EmptyState-BAP8BpDj.js} +2 -2
  74. package/dist/Field/index.js +3 -3
  75. package/dist/{Field-CYfzJEFg.js → Field-B1fsgAqp.js} +1 -1
  76. package/dist/{FieldInfoTip-DccDjDnf.js → FieldInfoTip-CntJCcnM.js} +1 -1
  77. package/dist/{FieldLabel-SiRzxGz8.js → FieldLabel-D56uJrRE.js} +1 -1
  78. package/dist/FileInput/index.js +1 -1
  79. package/dist/{FileInput-BxeGABmG.js → FileInput-EjlruVVX.js} +4 -4
  80. package/dist/Heading/index.js +1 -1
  81. package/dist/{Heading-D_7K6-23.js → Heading-D94VFJtm.js} +1 -1
  82. package/dist/HoverCard/index.d.ts +1 -1
  83. package/dist/HoverCard/index.js +1 -1
  84. package/dist/{HoverCard-Bkh1HZ3b.js → HoverCard-rwpyd6nt.js} +4 -4
  85. package/dist/IconButton/index.js +1 -1
  86. package/dist/{IconButton-DEhvVDmO.js → IconButton-CXg9qTRM.js} +1 -1
  87. package/dist/InfoTip/index.d.ts +1 -1
  88. package/dist/InfoTip/index.js +1 -1
  89. package/dist/{InfoTip-BZDG21HF.js → InfoTip-jFet-iAx.js} +2 -2
  90. package/dist/{InputClearButton-DezS64Mz.js → InputClearButton-DBTrsrSH.js} +1 -1
  91. package/dist/InputGroup/index.js +1 -1
  92. package/dist/{InputGroup-CENlnU_O.js → InputGroup-D7UBxktR.js} +1 -1
  93. package/dist/InternationalizationProvider/index.d.ts +1 -1
  94. package/dist/InternationalizationProvider/index.js +1 -1
  95. package/dist/{InternationalizationProvider-BAUKUK7N.js → InternationalizationProvider-BGtwZDY0.js} +1 -1
  96. package/dist/{Item-tVHjgQDe.js → Item-DbalBZXc.js} +2 -2
  97. package/dist/{LayerContentBoundary-D6GcF2T3.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
  98. package/dist/Layout/index.js +2 -2
  99. package/dist/{Layout-DJ6CQLw2.js → Layout-BEJwZon4.js} +1 -1
  100. package/dist/{LayoutPanel-Bqh82ULc.js → LayoutPanel-BgJdL0KV.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-Dbwep-L-.js → Lightbox-DJXB22k0.js} +1 -1
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-Csw2YXAQ.js → Link-eXwB0Hjg.js} +2 -2
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/List/index.js +2 -2
  108. package/dist/{ListItem-B60jTcXy.js → ListItem-C5B8uYyn.js} +4 -4
  109. package/dist/Markdown/index.d.ts +1 -1
  110. package/dist/Markdown/index.js +1 -1
  111. package/dist/{Markdown-CTRMjOpY.js → Markdown-COub2yng.js} +3 -3
  112. package/dist/MobileNav/index.js +1 -1
  113. package/dist/{MobileNavToggle-Ce8cVqzp.js → MobileNavToggle-DI5yDKfp.js} +2 -2
  114. package/dist/MoreMenu/index.d.ts +1 -1
  115. package/dist/MoreMenu/index.js +1 -1
  116. package/dist/{MoreMenu-CfUKxxnB.js → MoreMenu-C7gie2PE.js} +8 -8
  117. package/dist/MultiSelector/index.d.ts +1 -1
  118. package/dist/MultiSelector/index.js +1 -1
  119. package/dist/{MultiSelector-BG0oQjhR.js → MultiSelector-CnGUU8P3.js} +7 -7
  120. package/dist/{NavDisclosure-lQVs4eJB.js → NavDisclosure-CSnUZY3k.js} +1 -1
  121. package/dist/{NavHeadingSurface-CkDdgQV1.js → NavHeadingSurface-C3fTf5--.js} +1 -1
  122. package/dist/NavItem/index.js +1 -1
  123. package/dist/{NavItem-B7xpLk_x.js → NavItem-Cciu9aok.js} +1 -1
  124. package/dist/NavMenu/index.js +3 -3
  125. package/dist/{NavMenu-Bf_rGSbX.js → NavMenu--iyy_m84.js} +2 -2
  126. package/dist/{NavMenuItem-BblWAGof.js → NavMenuItem-BmAm-Cv8.js} +3 -3
  127. package/dist/NumberInput/index.d.ts +1 -1
  128. package/dist/NumberInput/index.js +1 -1
  129. package/dist/{NumberInput-CLQ1dgsb.js → NumberInput-CD9sHbON.js} +3 -3
  130. package/dist/Outline/index.js +1 -1
  131. package/dist/{Outline-coqRQ06s.js → Outline-vieAJS2J.js} +3 -3
  132. package/dist/OverflowList/index.d.ts +1 -1
  133. package/dist/OverflowList/index.js +1 -1
  134. package/dist/{OverflowList-V728L06i.js → OverflowList-YLVHypB3.js} +2 -2
  135. package/dist/Pagination/index.d.ts +1 -1
  136. package/dist/Pagination/index.js +1 -1
  137. package/dist/{Pagination-B71t50Xl.js → Pagination-Bnkp4oAA.js} +2 -2
  138. package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
  139. package/dist/Popover/index.js +1 -1
  140. package/dist/{Popover-BX8Qy08n.js → Popover-CYJ1z_7L.js} +10 -10
  141. package/dist/PowerSearch/index.d.ts +1 -1
  142. package/dist/PowerSearch/index.js +1 -1
  143. package/dist/{PowerSearch-ZfZNn-68.js → PowerSearch-DEpXEmgs.js} +27 -27
  144. package/dist/PressTracker-L5-Ark_9.js +190 -0
  145. package/dist/ProgressBar/index.d.ts +1 -1
  146. package/dist/ProgressBar/index.js +1 -1
  147. package/dist/ProgressBar-ChgsiVRR.js +325 -0
  148. package/dist/Radio/index.d.ts +1 -1
  149. package/dist/Radio/index.js +1 -1
  150. package/dist/{RadioGroup-8KAVhDTz.js → RadioGroup-BdO-xZv0.js} +5 -5
  151. package/dist/RadioList/index.d.ts +1 -1
  152. package/dist/RadioList/index.js +1 -1
  153. package/dist/{RadioListItem-FY0cSKWR.js → RadioListItem-DzGPuWTt.js} +1 -1
  154. package/dist/Resizable/index.d.ts +1 -1
  155. package/dist/Resizable/index.js +1 -1
  156. package/dist/{ResizeHandle-ezvpdXTS.js → ResizeHandle-Dcel1HkU.js} +2 -2
  157. package/dist/ScrollableArea/index.d.ts +1 -1
  158. package/dist/SegmentedControl/index.d.ts +1 -1
  159. package/dist/SegmentedControl/index.js +1 -1
  160. package/dist/{SegmentedControl-BdbqWErg.js → SegmentedControl-BURyE9XU.js} +2 -2
  161. package/dist/SelectableCard/index.d.ts +1 -1
  162. package/dist/SelectableCard/index.js +1 -1
  163. package/dist/{SelectableCard-Dj2fRvfe.js → SelectableCard-BZTF6qw-.js} +1 -1
  164. package/dist/Selector/index.d.ts +1 -1
  165. package/dist/Selector/index.js +1 -1
  166. package/dist/{Selector-DjZSKGCz.js → Selector-SkwSbf4j.js} +5 -5
  167. package/dist/SideNav/index.d.ts +1 -1
  168. package/dist/SideNav/index.js +2 -2
  169. package/dist/{SideNav-DjPwCh4O.js → SideNav-BxJfJU95.js} +9 -9
  170. package/dist/Skeleton/index.d.ts +1 -1
  171. package/dist/Slider/index.js +1 -1
  172. package/dist/Slider-ORmi7QJ7.js +1785 -0
  173. package/dist/Spinner/index.d.ts +1 -1
  174. package/dist/Spinner/index.js +1 -1
  175. package/dist/Spinner-D1adu3uH.js +266 -0
  176. package/dist/Stack/index.d.ts +1 -1
  177. package/dist/StatusDot/index.js +1 -1
  178. package/dist/{StatusDot-C4_Zj3oZ.js → StatusDot-D7nVuPg7.js} +1 -1
  179. package/dist/Stepper/index.d.ts +1 -1
  180. package/dist/Stepper/index.js +1 -1
  181. package/dist/{Stepper-C3ZFN-Gp.js → Stepper-C4-wtxn4.js} +149 -103
  182. package/dist/Switch/index.d.ts +1 -1
  183. package/dist/Switch/index.js +1 -1
  184. package/dist/Switch-Cw1UKVjQ.js +1468 -0
  185. package/dist/TabList/index.js +1 -1
  186. package/dist/{TabList-D70Pl_ob.js → TabList-DNDe2ipJ.js} +3 -3
  187. package/dist/Table/index.d.ts +1 -1
  188. package/dist/Table/index.js +1 -1
  189. package/dist/{Table-8Vj50mYm.js → Table-CqppyRk8.js} +14 -14
  190. package/dist/Text/index.js +1 -1
  191. package/dist/{Text-6_wt88Br.js → Text-kwsIut3C.js} +1 -1
  192. package/dist/TextArea/index.d.ts +1 -1
  193. package/dist/TextArea/index.js +1 -1
  194. package/dist/{TextArea-DMMHiOEb.js → TextArea-I3ghDb9r.js} +4 -4
  195. package/dist/TextInput/index.d.ts +1 -1
  196. package/dist/TextInput/index.js +1 -1
  197. package/dist/{TextInput-JuggLbDZ.js → TextInput-Xz_ibpOl.js} +4 -4
  198. package/dist/Thumbnail/index.js +1 -1
  199. package/dist/{Thumbnail-Sq-2e8zN.js → Thumbnail-bS62Tr_f.js} +4 -4
  200. package/dist/{TimeField-CuRkZZlx.js → TimeField-Bsb8n22d.js} +4 -4
  201. package/dist/TimeInput/index.d.ts +1 -1
  202. package/dist/TimeInput/index.js +1 -1
  203. package/dist/{TimeInput-CREpxTpG.js → TimeInput-D40_6GrX.js} +2 -2
  204. package/dist/Timer/index.d.ts +1 -1
  205. package/dist/Timer/index.js +1 -1
  206. package/dist/{Timer-C18tBgls.js → Timer-B-9sSJWK.js} +1 -1
  207. package/dist/Timestamp/index.d.ts +1 -1
  208. package/dist/Timestamp/index.js +1 -1
  209. package/dist/{Timestamp-BL8R7ZQ8.js → Timestamp-Bt9ZR975.js} +3 -3
  210. package/dist/Toast/index.js +1 -1
  211. package/dist/{Toast-BtJHuIen.js → Toast-BQxfIeVU.js} +5 -3
  212. package/dist/ToggleButton/index.d.ts +1 -1
  213. package/dist/ToggleButton/index.js +1 -1
  214. package/dist/{ToggleButton-DrnT3-jX.js → ToggleButton-IFhFMpQh.js} +3 -3
  215. package/dist/Token/index.js +1 -1
  216. package/dist/{Token-DZmmnHEj.js → Token-CpmqfG4i.js} +1 -1
  217. package/dist/Tokenizer/index.d.ts +1 -1
  218. package/dist/Tokenizer/index.js +1 -1
  219. package/dist/{Tokenizer-BRFlVyMv.js → Tokenizer-Dvr7ICpS.js} +16 -15
  220. package/dist/Toolbar/index.d.ts +1 -1
  221. package/dist/Tooltip/index.d.ts +1 -1
  222. package/dist/Tooltip/index.js +2 -2
  223. package/dist/{Tooltip-Dwr0XREF.js → Tooltip-DyGaJUbl.js} +1 -1
  224. package/dist/TopNav/index.d.ts +1 -1
  225. package/dist/TopNav/index.js +1 -1
  226. package/dist/{TopNav-GwsSkeei.js → TopNav-Cw_dcKpf.js} +5 -5
  227. package/dist/TreeList/index.js +1 -1
  228. package/dist/{TreeList-BGHHEcg1.js → TreeList-CBfKKbUQ.js} +4 -4
  229. package/dist/Typeahead/index.js +2 -2
  230. package/dist/{Typeahead-H3uWMS7i.js → Typeahead-D9-WjsCU.js} +6 -6
  231. package/dist/{VelocityTracker-DVbtTSXR.js → VelocityTracker-CPFBHDpy.js} +1 -1
  232. package/dist/{accessibleName-Bjt5L8jX.js → accessibleName-Cw9s1690.js} +2 -2
  233. package/dist/{animator-DLWdws2R.js → animator-ozeBZ_zC.js} +4 -3
  234. package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
  235. package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
  236. package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
  237. package/dist/composables/index.js +10 -10
  238. package/dist/{composables-OL_sC9Qy.js → composables-BJoAw6XA.js} +12 -10
  239. package/dist/{context-BcJmSPj1.js → context-WDet15_N.js} +1 -1
  240. package/dist/{useAttachment-BohgLE3o.js → geometry-CoQRz-F1.js} +12 -710
  241. package/dist/{gestures-C8VhWve7.js → gestures-yKyyMqeQ.js} +226 -2
  242. package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
  243. package/dist/{index-Dpz-JUMl.d.ts → index--kbwaSXW.d.ts} +2 -2
  244. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  245. package/dist/{index-0RIgvtdm.d.ts → index-BI1QLuYB.d.ts} +1 -1
  246. package/dist/{index-yaS9_EpM.d.ts → index-BVi16JNo.d.ts} +2 -2
  247. package/dist/{index-DvrrgBYc.d.ts → index-BVx-HFp8.d.ts} +1 -1
  248. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  249. package/dist/{index-QC9FDUDA.d.ts → index-BqQlY3fL.d.ts} +2 -2
  250. package/dist/{index-Cb-rvc1W.d.ts → index-BtqvPjAf.d.ts} +2 -2
  251. package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
  252. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  253. package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
  254. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  255. package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
  256. package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
  257. package/dist/{index-D33x3IfY.d.ts → index-CTv55aOa.d.ts} +1 -1
  258. package/dist/{index-18IUS3l0.d.ts → index-CY0KtUSC.d.ts} +53 -53
  259. package/dist/{index-CUwmD3Ph.d.ts → index-D1JOMiI5.d.ts} +3 -3
  260. package/dist/{index-MvrDMqnQ.d.ts → index-DPhQZXYw.d.ts} +2 -2
  261. package/dist/{index-B2XndRvV.d.ts → index-DuxRUPMc.d.ts} +2 -2
  262. package/dist/{index-EAKu_r6h.d.ts → index-GyRgg1-v.d.ts} +3 -3
  263. package/dist/{index-DVX2jlTQ.d.ts → index-JE1HrzdJ.d.ts} +2 -2
  264. package/dist/{index-Dt_9IR_M.d.ts → index-JGPd3Ghy.d.ts} +1 -1
  265. package/dist/{index-Q1oG9yIT.d.ts → index-Pad9p8CU.d.ts} +3 -1
  266. package/dist/index.d.ts +24 -24
  267. package/dist/index.js +107 -107
  268. package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
  269. package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
  270. package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
  271. package/dist/{landing-Dx9vPF0t.js → landing-Qk_FHR-s.js} +1 -1
  272. package/dist/{layerDepth-D-80Ay8B.js → layerDepth-SGFJ5L6X.js} +1 -1
  273. package/dist/{lazyBottomSheet-s0ckIf0f.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
  274. package/dist/{linearEasing-BxWjPql6.js → linearEasing-VHwy6xl_.js} +136 -87
  275. package/dist/{loadCatalog-VYidi1Xi.d.ts → loadCatalog-BODWYaNy.d.ts} +2 -0
  276. package/dist/{loadCatalog-zJKVLZ89.js → loadCatalog-DMOOMWtw.js} +3 -2
  277. package/dist/locale/index.d.ts +2 -2
  278. package/dist/locale/index.js +3 -3
  279. package/dist/{locale-C9LWi1y1.js → locale-C8X7gJlc.js} +1 -1
  280. package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
  281. package/dist/{presentationHold-B4tK68sd.js → presentationHold-CZsVmjlY.js} +1 -1
  282. package/dist/{pressFeedback-CPzGi_88.js → pressFeedback-9ogipvI4.js} +4 -4
  283. package/dist/{pressGesture-BV4fYPIG.js → pressGesture-B3Efxs_z.js} +1 -1
  284. package/dist/{rubberBand-DecgmtDj.js → projection-qPcLQcwK.js} +2 -50
  285. package/dist/{reportChange-BkOEttEP.js → reportChange-BUTgduu-.js} +5 -4
  286. package/dist/{resizableChannel-DS0idC-X.js → resizableChannel-_j_AW2B6.js} +5 -5
  287. package/dist/{resolveMotion-BLdMNTpf.js → resolveMotion-DftkGFw6.js} +2 -2
  288. package/dist/{resolveSnapPoint-DygD-wmL.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
  289. package/dist/{roles-CPMsH5Ob.js → roles-DWH31Bn3.js} +126 -1
  290. package/dist/rubberBand-DDd5ElTe.js +65 -0
  291. package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
  292. package/dist/{springs-BR66JuIm.js → springs-DjAn_oV5.js} +2 -2
  293. package/dist/{stepper-BMSGF96H.js → stepper-D7L_3xxU.js} +4 -2
  294. package/dist/{stillPointerGate-CrsrgFyo.js → stillPointerGate-BvCX7ddI.js} +1 -1
  295. package/dist/{themeTiming-BA_wpgEn.js → themeTiming-ClYaZxGf.js} +1 -1
  296. package/dist/{tooltipFocusRules-BWcYZXu8.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
  297. package/dist/{tooltipTriggerRules-DFPKbHJc.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
  298. package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
  299. package/dist/{useActionGroupTracking-iv0p__dY.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
  300. package/dist/{useAnimatedLayout-BC1mJaxA.js → useAnimatedLayout-IcX0UfS4.js} +1 -1
  301. package/dist/useAttachment-CGiD9rt6.js +24 -0
  302. package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
  303. package/dist/{useDismiss-Di0mkAl_.js → useDismiss-6SGAlkB_.js} +1 -1
  304. package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-DJEthuMT.js} +1 -1
  305. package/dist/{useInputStatusIcon-Dese9hBA.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
  306. package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
  307. package/dist/{useMenuPress-RFwJ3jGS.js → useMenuPress-cBIQyTsN.js} +4 -4
  308. package/dist/{usePressFeedback-BuyFZkQO.js → usePressFeedback-Dx-a3i82.js} +1 -1
  309. package/dist/{useResizable-K9hlQr8i.js → useResizable-JvgYydox.js} +6 -5
  310. package/dist/{useTooltip-48Smw61m.js → useTooltip-owvVSn_m.js} +4 -4
  311. package/dist/{useTouchHitArea-Dsz80HzY.js → useTouchHitArea-BGkvMAyp.js} +2 -2
  312. package/dist/{useTouchTriggerInternal-CUiq_FYD.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
  313. package/dist/{useTruncationTooltip-D1Iwku73.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
  314. package/dist/{useTypeaheadMenuConfig-CiTAlquw.js → useTypeaheadMenuConfig-COiZ4isy.js} +2 -2
  315. package/package.json +1 -1
  316. package/styles/progress-bar.css +69 -5
  317. package/styles/skeleton.css +62 -5
  318. package/styles/slider.css +59 -12
  319. package/styles/spinner.css +30 -7
  320. package/styles/switch.css +101 -34
  321. package/dist/ProgressBar-jtD4zcDW.js +0 -166
  322. package/dist/Slider-TpbMaQ4Q.js +0 -735
  323. package/dist/Spinner-DEVPDsD0.js +0 -201
  324. package/dist/Switch-CW27rVAy.js +0 -355
@@ -1,735 +0,0 @@
1
- import { t as usePressFeedback } from "./usePressFeedback-BuyFZkQO.js";
2
- import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { t as _sfc_main$2 } from "./VisuallyHidden-cpmsV-0M.js";
4
- import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
5
- import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
6
- import { o as useComponentMessages } from "./context-B8IEFCDR.js";
7
- import { r as withholdCallerHandlers } from "./disabledInteraction-Bqoyhoss.js";
8
- import { a as useAriaRequired } from "./context-CrVCeUUK.js";
9
- import { t as _sfc_main$4 } from "./Field-CYfzJEFg.js";
10
- import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
11
- import { t as sliderMessages } from "./slider-6ZlGhyPD.js";
12
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, renderSlot, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx, withKeys } from "vue";
13
- import "../styles/button.css";
14
- import "../styles/slider.css";
15
- function clamp(value, min, max) {
16
- return Math.min(max, Math.max(min, Number.isFinite(value) ? value : min));
17
- }
18
- function precision(value) {
19
- const [coefficient = "", exponent = "0"] = String(value).split("e");
20
- return Math.max(0, (coefficient.split(".")[1]?.length ?? 0) - Number(exponent));
21
- }
22
- function snap(value, min, step) {
23
- const snapped = min + Math.round((value - min) / step) * step;
24
- return Number(snapped.toFixed(Math.min(20, Math.max(precision(min), precision(step)))));
25
- }
26
- function percent(value, min, max) {
27
- return max === min ? 0 : (value - min) / (max - min) * 100;
28
- }
29
- function position(value) {
30
- return `calc(${value}% + 10px - ${value / 100 * 20}px)`;
31
- }
32
- function add(first, second) {
33
- return Number((first + second).toFixed(Math.min(20, Math.max(precision(first), precision(second)))));
34
- }
35
- function multiply(first, second) {
36
- return Number((first * second).toFixed(Math.min(20, precision(first) + precision(second))));
37
- }
38
- //#endregion
39
- //#region src/Slider/SliderThumb.vue
40
- const _hoisted_1$1 = [
41
- "id",
42
- "tabindex",
43
- "data-thumb-index",
44
- "data-dragging",
45
- "data-keyboard-focus",
46
- "aria-valuemin",
47
- "aria-valuemax",
48
- "aria-valuenow",
49
- "aria-valuetext",
50
- "aria-orientation",
51
- "aria-labelledby",
52
- "aria-describedby",
53
- "aria-disabled",
54
- "aria-invalid"
55
- ];
56
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
57
- __name: "SliderThumb",
58
- props: {
59
- id: {},
60
- index: {},
61
- value: {},
62
- min: {},
63
- max: {},
64
- percentage: {},
65
- orientation: {},
66
- labelledBy: {},
67
- describedBy: {},
68
- valueText: {},
69
- isInvalid: { type: Boolean },
70
- isDisabled: { type: Boolean },
71
- isFocusable: { type: Boolean },
72
- tooltipText: {},
73
- dragging: { type: Boolean },
74
- dragActive: { type: Boolean },
75
- keyboardFocus: { type: Boolean },
76
- extraAttrs: {}
77
- },
78
- emits: [
79
- "keydown",
80
- "focus",
81
- "blur"
82
- ],
83
- setup(__props, { emit: __emit }) {
84
- const props = __props;
85
- const emit = __emit;
86
- const thumb = useTemplateRef("thumb");
87
- const tooltip = useTemplateRef("tooltip");
88
- const tabIndex = computed(() => props.isFocusable ? 0 : -1);
89
- const focused = shallowRef(false);
90
- const hovered = shallowRef(false);
91
- const dismissed = shallowRef(false);
92
- const open = computed(() => !!props.tooltipText && !props.isDisabled && !dismissed.value && (props.dragActive ? props.dragging : focused.value || hovered.value));
93
- const style = computed(() => props.orientation === "horizontal" ? { insetInlineStart: position(props.percentage) } : { bottom: position(props.percentage) });
94
- watch(() => props.dragging, () => {
95
- dismissed.value = false;
96
- });
97
- watch(() => [props.percentage, props.tooltipText], () => {
98
- tooltip.value?.updatePosition();
99
- }, { flush: "post" });
100
- function keydown(event) {
101
- if (event.key === "Escape") dismissed.value = true;
102
- emit("keydown", event);
103
- }
104
- function focus() {
105
- focused.value = true;
106
- dismissed.value = false;
107
- emit("focus");
108
- }
109
- function blur() {
110
- focused.value = false;
111
- emit("blur");
112
- }
113
- function enter() {
114
- hovered.value = true;
115
- dismissed.value = false;
116
- }
117
- return (_ctx, _cache) => {
118
- return openBlock(), createElementBlock(Fragment, null, [
119
- createCommentVNode(" eslint-disable-next-line vue-a11y/interactive-supports-focus -- The tested dynamic tabindex is always 0 or -1. "),
120
- createElementVNode("div", mergeProps(__props.extraAttrs, {
121
- id: __props.id,
122
- ref_key: "thumb",
123
- ref: thumb,
124
- class: "astryx-slider-thumb",
125
- role: "slider",
126
- style: style.value,
127
- tabindex: tabIndex.value,
128
- "data-thumb-index": __props.index,
129
- "data-dragging": __props.dragging || void 0,
130
- "data-keyboard-focus": __props.keyboardFocus || void 0,
131
- "aria-valuemin": __props.min,
132
- "aria-valuemax": __props.max,
133
- "aria-valuenow": __props.value,
134
- "aria-valuetext": __props.valueText,
135
- "aria-orientation": __props.orientation,
136
- "aria-labelledby": __props.labelledBy,
137
- "aria-describedby": __props.describedBy,
138
- "aria-disabled": __props.isDisabled || void 0,
139
- "aria-invalid": __props.isInvalid || void 0,
140
- onKeydown: keydown,
141
- onFocus: focus,
142
- onBlur: blur,
143
- onPointerenter: enter,
144
- onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = false)
145
- }), null, 16, _hoisted_1$1),
146
- __props.tooltipText ? (openBlock(), createBlock(_sfc_main$3, {
147
- key: 0,
148
- id: `${__props.id}-tooltip`,
149
- ref_key: "tooltip",
150
- ref: tooltip,
151
- anchor: thumb.value,
152
- open: open.value,
153
- text: __props.tooltipText,
154
- onPointerEnter: _cache[1] || (_cache[1] = ($event) => hovered.value = true),
155
- onPointerLeave: _cache[2] || (_cache[2] = ($event) => hovered.value = false)
156
- }, null, 8, [
157
- "id",
158
- "anchor",
159
- "open",
160
- "text"
161
- ])) : createCommentVNode("v-if", true)
162
- ], 64);
163
- };
164
- }
165
- });
166
- //#endregion
167
- //#region src/Slider/useSlider.ts
168
- function useSlider(options) {
169
- const p = options.props;
170
- const min = computed(() => Number.isFinite(p.min) ? p.min : 0);
171
- const max = computed(() => Math.max(min.value, Number.isFinite(p.max) ? p.max : 100));
172
- const step = computed(() => Number.isFinite(p.step) && p.step > 0 ? p.step : 1);
173
- const gap = computed(() => Math.min(max.value - min.value, multiply(Math.max(0, Number.isFinite(p.minStepsBetweenThumbs) ? p.minStepsBetweenThumbs : 0), step.value)));
174
- const values = computed(() => {
175
- const model = options.model();
176
- if (!Array.isArray(model)) return [clamp(model, min.value, max.value)];
177
- const [low, high] = model.map((value) => clamp(value, min.value, max.value)).sort((a, b) => a - b);
178
- const upper = Math.max(high, add(min.value, gap.value));
179
- return [Math.min(low, add(upper, -gap.value)), upper];
180
- });
181
- const dragging = shallowRef(null);
182
- const keyboardFocus = shallowRef(null);
183
- if (typeof document !== "undefined") trackInteractionModality();
184
- let pointerId = null;
185
- let latest;
186
- let coincidentPress = null;
187
- let coincidentOrigin = false;
188
- function resetDrag() {
189
- dragging.value = null;
190
- pointerId = null;
191
- latest = void 0;
192
- coincidentPress = null;
193
- coincidentOrigin = false;
194
- }
195
- watch([
196
- () => p.isDisabled,
197
- () => p.orientation,
198
- () => Array.isArray(options.model())
199
- ], resetDrag);
200
- watch(values, () => {
201
- latest = void 0;
202
- });
203
- function boundsFor(index, base) {
204
- return [index === 1 ? add(base[0], gap.value) : min.value, base.length === 2 && index === 0 ? add(base[1], -gap.value) : max.value];
205
- }
206
- function bounds(index) {
207
- return boundsFor(index, values.value);
208
- }
209
- function update(index, raw, shouldSnap = true, base = values.value) {
210
- const next = [...base];
211
- const [lower, upper] = boundsFor(index, base);
212
- next[index] = clamp(shouldSnap ? snap(raw, min.value, step.value) : raw, lower, upper);
213
- const value = next.length === 2 ? [next[0], next[1]] : next[0];
214
- latest = value;
215
- if (next.some((v, i) => v !== values.value[i])) options.change(value);
216
- return value;
217
- }
218
- function pointerValue(event) {
219
- const track = options.track.value;
220
- const rect = track.getBoundingClientRect();
221
- const vertical = p.orientation === "vertical";
222
- const size = vertical ? rect.height : rect.width;
223
- const offset = vertical ? rect.bottom - event.clientY : getComputedStyle(track).direction === "rtl" ? rect.right - event.clientX : event.clientX - rect.left;
224
- const fraction = size > 20 ? (offset - 10) / (size - 20) : size > 0 ? offset / size : 0;
225
- return min.value + clamp(fraction, 0, 1) * (max.value - min.value);
226
- }
227
- function pointerDown(event) {
228
- if (p.isDisabled || event.defaultPrevented || event.button !== 0 || pointerId !== null || !options.track.value) return;
229
- const target = event.target;
230
- const mark = target.closest("[data-mark-value]");
231
- const thumb = target.closest("[data-thumb-index]");
232
- const raw = mark ? Number(mark.dataset.markValue) : pointerValue(event);
233
- const isCoincident = values.value.length === 2 && values.value[0] === values.value[1];
234
- const parks = isCoincident && (thumb != null || raw === values.value[0]);
235
- let index = thumb ? Number(thumb.dataset.thumbIndex) : values.value.length === 2 && Math.abs(raw - values.value[1]) < Math.abs(raw - values.value[0]) ? 1 : 0;
236
- if (parks && thumb == null) index = 1;
237
- if (isCoincident && !parks) index = raw > values.value[0] ? 1 : 0;
238
- event.preventDefault();
239
- dragging.value = index;
240
- pointerId = event.pointerId;
241
- coincidentPress = parks ? pointerValue(event) : null;
242
- coincidentOrigin = parks;
243
- options.track.value.querySelectorAll("[role=\"slider\"]")[index]?.focus({ preventScroll: true });
244
- keyboardFocus.value = null;
245
- update(index, parks ? values.value[index] : raw);
246
- options.track.value.setPointerCapture?.(event.pointerId);
247
- }
248
- function handTo(index) {
249
- if (index === dragging.value) return;
250
- dragging.value = index;
251
- options.track.value?.querySelectorAll("[role=\"slider\"]")[index]?.focus({ preventScroll: true });
252
- keyboardFocus.value = null;
253
- }
254
- function pointerMove(event) {
255
- if (p.isDisabled || pointerId !== event.pointerId || dragging.value === null) return;
256
- const value = pointerValue(event);
257
- if (coincidentPress !== null) {
258
- if (value === coincidentPress) return;
259
- const origin = coincidentPress;
260
- coincidentPress = null;
261
- handTo(value > origin ? 1 : 0);
262
- } else if (coincidentOrigin) {
263
- const current = values.value;
264
- const held = dragging.value;
265
- const other = held === 0 ? 1 : 0;
266
- if (held === 0 && value > current[1] || held === 1 && value < current[0]) {
267
- const base = [...current];
268
- base[held] = current[other];
269
- handTo(other);
270
- update(other, value, true, base);
271
- return;
272
- }
273
- }
274
- update(dragging.value, value);
275
- }
276
- function pointerEnd(event) {
277
- if (pointerId !== event.pointerId || dragging.value === null) return;
278
- const value = latest ?? (values.value.length === 2 ? [values.value[0], values.value[1]] : values.value[0]);
279
- resetDrag();
280
- if (options.track.value?.hasPointerCapture?.(event.pointerId)) options.track.value.releasePointerCapture(event.pointerId);
281
- if (!p.isDisabled) options.end(value);
282
- }
283
- function thumbFocus(index) {
284
- keyboardFocus.value = !p.isDisabled && getInteractionModality() === "keyboard" ? index : null;
285
- }
286
- function thumbBlur() {
287
- keyboardFocus.value = null;
288
- }
289
- function keydown(index, event) {
290
- if (p.isDisabled || event.defaultPrevented) return;
291
- if (event.key !== "Shift" && !event.altKey && !event.ctrlKey && !event.metaKey && getInteractionModality() === "keyboard") keyboardFocus.value = index;
292
- if (event.altKey || event.ctrlKey || event.metaKey) return;
293
- const current = values.value[index];
294
- const rtl = p.orientation !== "vertical" && options.track.value && getComputedStyle(options.track.value).direction === "rtl";
295
- const offsets = {
296
- ArrowRight: rtl ? -1 : 1,
297
- ArrowLeft: rtl ? 1 : -1,
298
- ArrowUp: 1,
299
- ArrowDown: -1,
300
- PageUp: 10,
301
- PageDown: -10
302
- };
303
- let value;
304
- if (event.key === "Home") value = min.value;
305
- else if (event.key === "End") value = max.value;
306
- else if (event.key in offsets) value = current + offsets[event.key] * step.value;
307
- else return;
308
- event.preventDefault();
309
- const toBound = event.key === "Home" || event.key === "End";
310
- options.end(update(index, value, !toBound));
311
- }
312
- return {
313
- min,
314
- max,
315
- gap,
316
- values,
317
- bounds,
318
- dragging,
319
- keyboardFocus,
320
- pointerDown,
321
- pointerMove,
322
- pointerEnd,
323
- keydown,
324
- thumbFocus,
325
- thumbBlur
326
- };
327
- }
328
- //#endregion
329
- //#region src/Slider/Slider.vue
330
- const _hoisted_1 = { class: "astryx-slider-row" };
331
- const _hoisted_2 = [
332
- "name",
333
- "value",
334
- "disabled",
335
- "form"
336
- ];
337
- const _hoisted_3 = [
338
- "data-orientation",
339
- "data-disabled",
340
- "role",
341
- "aria-labelledby"
342
- ];
343
- const _hoisted_4 = ["data-mark-value", "data-filled"];
344
- const _hoisted_5 = ["data-mark-value"];
345
- const _hoisted_6 = {
346
- key: 0,
347
- class: "astryx-slider-value",
348
- "aria-hidden": "true"
349
- };
350
- const _sfc_main = /*@__PURE__*/ defineComponent({
351
- name: "AstryxSlider",
352
- inheritAttrs: false,
353
- __name: "Slider",
354
- props: /*@__PURE__*/ mergeModels({
355
- id: {},
356
- min: { default: 0 },
357
- max: { default: 100 },
358
- step: { default: 1 },
359
- minStepsBetweenThumbs: {},
360
- orientation: { default: "horizontal" },
361
- valueDisplay: { default: "tooltip" },
362
- formatValue: {},
363
- marks: {},
364
- width: {},
365
- htmlName: {},
366
- form: {},
367
- status: {},
368
- disabledMessage: {},
369
- minLabel: {},
370
- maxLabel: {},
371
- label: {},
372
- isLabelHidden: { type: Boolean },
373
- isDisabled: { type: Boolean },
374
- isOptional: { type: Boolean },
375
- isRequired: { type: Boolean },
376
- description: {},
377
- labelIcon: {},
378
- labelTooltip: {},
379
- optionalLabel: {},
380
- requiredLabel: {},
381
- targetClass: {},
382
- containerClass: { type: [
383
- Boolean,
384
- null,
385
- String,
386
- Object,
387
- Array
388
- ] },
389
- containerStyle: { type: [
390
- Boolean,
391
- null,
392
- String,
393
- Object,
394
- Array
395
- ] },
396
- controlClass: { type: [
397
- Boolean,
398
- null,
399
- String,
400
- Object,
401
- Array
402
- ] },
403
- controlStyle: { type: [
404
- Boolean,
405
- null,
406
- String,
407
- Object,
408
- Array
409
- ] }
410
- }, {
411
- "modelValue": { required: true },
412
- "modelModifiers": {}
413
- }),
414
- emits: /*@__PURE__*/ mergeModels(["change", "changeEnd"], ["update:modelValue"]),
415
- setup(__props, { expose: __expose, emit: __emit }) {
416
- const props = __props;
417
- const emit = __emit;
418
- const model = useModel(__props, "modelValue");
419
- const attrs = useAttrs();
420
- const messages = useComponentMessages({ slider: sliderMessages });
421
- const minName = computed(() => props.minLabel ?? messages.value.slider.minimumThumb);
422
- const maxName = computed(() => props.maxLabel ?? messages.value.slider.maximumThumb);
423
- const requiredName = computed(() => props.requiredLabel ?? messages.value.slider.required);
424
- const press = usePressFeedback({ hasOverlay: false });
425
- const parts = useFieldPartStyling({
426
- component: "Slider",
427
- props,
428
- attrs,
429
- reservedAttrs: [
430
- "aria-labelledby",
431
- "aria-describedby",
432
- "onPointerdown",
433
- "onPointermove",
434
- "onPointerup",
435
- "onPointercancel",
436
- "onPointerDown",
437
- "onPointerMove",
438
- "onPointerUp",
439
- "onPointerCancel"
440
- ]
441
- });
442
- const track = useTemplateRef("track");
443
- const generatedId = `astryx-slider-${useId()}`;
444
- const inputId = computed(() => props.id ?? generatedId);
445
- const control = useSlider({
446
- props,
447
- model: () => model.value,
448
- track,
449
- change: (value) => {
450
- model.value = value;
451
- emit("change", value);
452
- },
453
- end: (value) => emit("changeEnd", value)
454
- });
455
- const { min, max, values, dragging } = control;
456
- const isRange = computed(() => values.value.length === 2);
457
- const showsDisabledMessage = computed(() => !!props.isDisabled && !!props.disabledMessage?.trim());
458
- const tooltip = useButtonTooltip(showsDisabledMessage);
459
- const ariaRequired = useAriaRequired(props);
460
- const required = computed(() => ariaRequired.value === true);
461
- const marks = computed(() => props.marks?.filter((mark) => Number.isFinite(mark.value) && mark.value >= min.value && mark.value <= max.value) ?? []);
462
- const hasMarkLabels = computed(() => marks.value.some((mark) => mark.label));
463
- const format = (value) => props.formatValue?.(value) ?? String(value);
464
- const displayText = computed(() => values.value.map(format).join(" – "));
465
- const fillStyle = computed(() => {
466
- const start = isRange.value ? position(percent(values.value[0], min.value, max.value)) : "0px";
467
- const end = position(percent(values.value.at(-1), min.value, max.value));
468
- return props.orientation === "horizontal" ? {
469
- insetInlineStart: start,
470
- width: `calc(${end} - ${start})`
471
- } : {
472
- bottom: start,
473
- height: `calc(${end} - ${start})`
474
- };
475
- });
476
- function describedBy(fieldIds) {
477
- return [
478
- attrs["aria-describedby"],
479
- fieldIds,
480
- required.value ? `${inputId.value}-required` : void 0,
481
- showsDisabledMessage.value ? `${inputId.value}-disabled` : void 0
482
- ].filter(Boolean).join(" ") || void 0;
483
- }
484
- function markStyle(value) {
485
- const offset = position(percent(value, min.value, max.value));
486
- return props.orientation === "horizontal" ? { insetInlineStart: offset } : { bottom: offset };
487
- }
488
- function isFilled(value) {
489
- return value <= values.value.at(-1) && (!isRange.value || value >= values.value[0]);
490
- }
491
- function callConsumerPointer(event) {
492
- if (props.isDisabled) return;
493
- for (const name of {
494
- pointerdown: ["onPointerdown", "onPointerDown"],
495
- pointermove: ["onPointermove", "onPointerMove"],
496
- pointerup: ["onPointerup", "onPointerUp"],
497
- pointercancel: ["onPointercancel", "onPointerCancel"]
498
- }[event.type] ?? []) {
499
- const handler = attrs[name];
500
- if (typeof handler === "function") handler(event);
501
- }
502
- }
503
- function onPointerDown(event) {
504
- control.pointerDown(event);
505
- callConsumerPointer(event);
506
- }
507
- function onPointerMove(event) {
508
- control.pointerMove(event);
509
- callConsumerPointer(event);
510
- }
511
- function onPointerEnd(event) {
512
- control.pointerEnd(event);
513
- callConsumerPointer(event);
514
- }
515
- const shellStyle = computed(() => [attrs.style, parts.containerStyle.value]);
516
- const thumbAttrs = computed(() => isRange.value ? {} : withholdCallerHandlers(parts.forwardedAttrs(), !!props.isDisabled));
517
- const trackAttrs = computed(() => ({
518
- ...isRange.value ? withholdCallerHandlers(parts.forwardedAttrs(), !!props.isDisabled) : {},
519
- ...props.isDisabled ? {} : press.pressableProps
520
- }));
521
- function focus(index = 0, options) {
522
- track.value?.querySelectorAll("[role=\"slider\"]")[index]?.focus(options);
523
- }
524
- function blur() {
525
- const active = track.value?.ownerDocument.activeElement;
526
- if (active instanceof HTMLElement && track.value?.contains(active)) active.blur();
527
- }
528
- __expose({
529
- element: computed(() => {
530
- if (isRange.value) return track.value;
531
- return track.value?.querySelector("[role=\"slider\"]") ?? null;
532
- }),
533
- focus,
534
- blur
535
- });
536
- return (_ctx, _cache) => {
537
- return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$4, {
538
- class: normalizeClass(["astryx-slider", [unref(attrs).class, unref(parts).containerClass.value]]),
539
- style: normalizeStyle(shellStyle.value),
540
- "data-orientation": __props.orientation,
541
- "data-disabled": __props.isDisabled || void 0,
542
- "data-mark-labels": hasMarkLabels.value || void 0,
543
- label: __props.label,
544
- "input-id": inputId.value,
545
- "is-group-label": "",
546
- description: __props.description,
547
- width: __props.width,
548
- "is-label-hidden": __props.isLabelHidden,
549
- "is-disabled": __props.isDisabled,
550
- "is-optional": __props.isOptional,
551
- "is-required": __props.isRequired,
552
- "label-icon": __props.labelIcon,
553
- "label-tooltip": __props.labelTooltip,
554
- "optional-label": __props.optionalLabel,
555
- "required-label": __props.requiredLabel,
556
- status: __props.status,
557
- "status-variant": "detached"
558
- }, createSlots({
559
- default: withCtx((field) => [
560
- createElementVNode("div", _hoisted_1, [
561
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
562
- return openBlock(), createElementBlock("input", {
563
- key: index,
564
- type: "hidden",
565
- name: __props.htmlName,
566
- value,
567
- disabled: __props.isDisabled,
568
- form: __props.form
569
- }, null, 8, _hoisted_2);
570
- }), 128)),
571
- createElementVNode("div", mergeProps({
572
- ref_key: "track",
573
- ref: track
574
- }, trackAttrs.value, {
575
- class: ["astryx-slider-control", __props.controlClass],
576
- style: __props.controlStyle,
577
- "data-orientation": __props.orientation,
578
- "data-disabled": __props.isDisabled || void 0,
579
- role: isRange.value ? "group" : void 0,
580
- "aria-labelledby": isRange.value ? [field.labelId, unref(attrs)["aria-labelledby"]].filter(Boolean).join(" ") : void 0,
581
- onPointerdown: onPointerDown,
582
- onPointermove: onPointerMove,
583
- onPointerup: onPointerEnd,
584
- onPointercancel: onPointerEnd,
585
- onLostpointercapture: onPointerEnd,
586
- onPointerenter: _cache[1] || (_cache[1] = (...args) => unref(tooltip).onPointerEnter && unref(tooltip).onPointerEnter(...args)),
587
- onPointerleave: _cache[2] || (_cache[2] = (...args) => unref(tooltip).onPointerLeave && unref(tooltip).onPointerLeave(...args)),
588
- onFocusin: _cache[3] || (_cache[3] = (...args) => unref(tooltip).onTooltipPointerEnter && unref(tooltip).onTooltipPointerEnter(...args)),
589
- onFocusout: _cache[4] || (_cache[4] = (...args) => unref(tooltip).onBlur && unref(tooltip).onBlur(...args)),
590
- onKeydown: _cache[5] || (_cache[5] = withKeys((...args) => unref(tooltip).hideImmediately && unref(tooltip).hideImmediately(...args), ["esc"]))
591
- }), [
592
- _cache[6] || (_cache[6] = createElementVNode("div", {
593
- class: "astryx-slider-track",
594
- "aria-hidden": "true"
595
- }, null, -1)),
596
- createElementVNode("div", {
597
- class: "astryx-slider-fill",
598
- style: normalizeStyle(fillStyle.value),
599
- "aria-hidden": "true"
600
- }, null, 4),
601
- (openBlock(true), createElementBlock(Fragment, null, renderList(marks.value, (mark) => {
602
- return openBlock(), createElementBlock("span", {
603
- key: mark.value,
604
- class: "astryx-slider-mark",
605
- "data-mark-value": mark.value,
606
- "data-filled": isFilled(mark.value) || void 0,
607
- style: normalizeStyle(markStyle(mark.value)),
608
- "aria-hidden": "true"
609
- }, [mark.label ? (openBlock(), createElementBlock("span", {
610
- key: 0,
611
- class: "astryx-slider-mark-label",
612
- "data-mark-value": mark.value
613
- }, toDisplayString(mark.label), 9, _hoisted_5)) : createCommentVNode("v-if", true)], 12, _hoisted_4);
614
- }), 128)),
615
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(values), (value, index) => {
616
- return openBlock(), createBlock(_sfc_main$1, {
617
- id: `${inputId.value}-${index}`,
618
- key: index,
619
- index,
620
- value,
621
- percentage: unref(percent)(value, unref(min), unref(max)),
622
- min: unref(control).bounds(index)[0],
623
- max: unref(control).bounds(index)[1],
624
- orientation: __props.orientation,
625
- "labelled-by": [
626
- field.labelId,
627
- isRange.value ? `${inputId.value}-label-${index}` : void 0,
628
- isRange.value ? void 0 : unref(attrs)["aria-labelledby"]
629
- ].filter(Boolean).join(" "),
630
- "described-by": describedBy(field.describedBy),
631
- "value-text": __props.formatValue ? format(value) : void 0,
632
- "is-invalid": __props.status?.type === "error",
633
- "is-disabled": __props.isDisabled,
634
- "is-focusable": !__props.isDisabled || showsDisabledMessage.value,
635
- dragging: unref(dragging) === index,
636
- "drag-active": unref(dragging) !== null,
637
- "keyboard-focus": unref(control).keyboardFocus.value === index,
638
- "extra-attrs": thumbAttrs.value,
639
- "tooltip-text": __props.valueDisplay === "tooltip" ? format(value) : void 0,
640
- onKeydown: ($event) => unref(control).keydown(index, $event),
641
- onFocus: ($event) => unref(control).thumbFocus(index),
642
- onBlur: _cache[0] || (_cache[0] = ($event) => unref(control).thumbBlur())
643
- }, null, 8, [
644
- "id",
645
- "index",
646
- "value",
647
- "percentage",
648
- "min",
649
- "max",
650
- "orientation",
651
- "labelled-by",
652
- "described-by",
653
- "value-text",
654
- "is-invalid",
655
- "is-disabled",
656
- "is-focusable",
657
- "dragging",
658
- "drag-active",
659
- "keyboard-focus",
660
- "extra-attrs",
661
- "tooltip-text",
662
- "onKeydown",
663
- "onFocus"
664
- ]);
665
- }), 128))
666
- ], 16, _hoisted_3),
667
- __props.valueDisplay === "text" ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(displayText.value), 1)) : createCommentVNode("v-if", true)
668
- ]),
669
- isRange.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(_sfc_main$2, { id: `${inputId.value}-label-0` }, {
670
- default: withCtx(() => [createTextVNode(toDisplayString(minName.value), 1)]),
671
- _: 1
672
- }, 8, ["id"]), createVNode(_sfc_main$2, { id: `${inputId.value}-label-1` }, {
673
- default: withCtx(() => [createTextVNode(toDisplayString(maxName.value), 1)]),
674
- _: 1
675
- }, 8, ["id"])], 64)) : createCommentVNode("v-if", true),
676
- required.value ? (openBlock(), createBlock(_sfc_main$2, {
677
- key: 1,
678
- id: `${inputId.value}-required`
679
- }, {
680
- default: withCtx(() => [createTextVNode(toDisplayString(requiredName.value), 1)]),
681
- _: 1
682
- }, 8, ["id"])) : createCommentVNode("v-if", true),
683
- showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
684
- key: 2,
685
- id: `${inputId.value}-disabled`
686
- }, {
687
- default: withCtx(() => [createTextVNode(toDisplayString(__props.disabledMessage), 1)]),
688
- _: 1
689
- }, 8, ["id"])) : createCommentVNode("v-if", true)
690
- ]),
691
- _: 2
692
- }, [_ctx.$slots.labelIcon ? {
693
- name: "labelIcon",
694
- fn: withCtx(() => [renderSlot(_ctx.$slots, "labelIcon")]),
695
- key: "0"
696
- } : void 0]), 1032, [
697
- "class",
698
- "style",
699
- "data-orientation",
700
- "data-disabled",
701
- "data-mark-labels",
702
- "label",
703
- "input-id",
704
- "description",
705
- "width",
706
- "is-label-hidden",
707
- "is-disabled",
708
- "is-optional",
709
- "is-required",
710
- "label-icon",
711
- "label-tooltip",
712
- "optional-label",
713
- "required-label",
714
- "status"
715
- ]), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$3, {
716
- key: 0,
717
- id: `${inputId.value}-disabled-tooltip`,
718
- anchor: track.value,
719
- open: unref(tooltip).isOpen.value,
720
- text: __props.disabledMessage ?? "",
721
- onPointerEnter: unref(tooltip).onTooltipPointerEnter,
722
- onPointerLeave: unref(tooltip).onTooltipPointerLeave
723
- }, null, 8, [
724
- "id",
725
- "anchor",
726
- "open",
727
- "text",
728
- "onPointerEnter",
729
- "onPointerLeave"
730
- ])) : createCommentVNode("v-if", true)], 64);
731
- };
732
- }
733
- });
734
- //#endregion
735
- export { _sfc_main as t };