@soybeanjs/headless 0.15.5 → 0.17.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 (540) hide show
  1. package/dist/components/_icon/types.d.ts +9 -0
  2. package/dist/components/accordion/types.d.ts +87 -0
  3. package/dist/components/affix/types.d.ts +39 -0
  4. package/dist/components/alert/types.d.ts +78 -0
  5. package/dist/components/anchor/anchor-compact.js +1 -1
  6. package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
  7. package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
  8. package/dist/components/anchor/anchor-link.js +1 -1
  9. package/dist/components/anchor/anchor-root.vue.d.ts +1 -1
  10. package/dist/components/anchor/index.d.ts +5 -4
  11. package/dist/components/anchor/index.js +1 -1
  12. package/dist/components/anchor/types.d.ts +122 -10
  13. package/dist/components/arrow/types.d.ts +3 -0
  14. package/dist/components/aspect-ratio/types.d.ts +3 -0
  15. package/dist/components/autocomplete/autocomplete-compact.js +1 -1
  16. package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
  17. package/dist/components/autocomplete/autocomplete-input.js +1 -1
  18. package/dist/components/autocomplete/autocomplete-input.vue.d.ts +2 -2
  19. package/dist/components/autocomplete/autocomplete-root.js +1 -1
  20. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +15 -5
  21. package/dist/components/autocomplete/context.d.ts +2 -2
  22. package/dist/components/autocomplete/context.js +1 -1
  23. package/dist/components/autocomplete/index.d.ts +17 -13
  24. package/dist/components/autocomplete/index.js +1 -1
  25. package/dist/components/autocomplete/types.d.ts +159 -32
  26. package/dist/components/avatar/types.d.ts +18 -0
  27. package/dist/components/backtop/backtop.vue.d.ts +9 -3
  28. package/dist/components/backtop/index.d.ts +2 -2
  29. package/dist/components/backtop/types.d.ts +19 -12
  30. package/dist/components/badge/types.d.ts +21 -0
  31. package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
  32. package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
  33. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  34. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  35. package/dist/components/bottom-sheet/types.d.ts +99 -0
  36. package/dist/components/breadcrumb/index.d.ts +2 -2
  37. package/dist/components/breadcrumb/types.d.ts +103 -1
  38. package/dist/components/button/types.d.ts +16 -1
  39. package/dist/components/calendar/calendar-cell-trigger.js +1 -0
  40. package/dist/components/calendar/calendar-cell-trigger.vue.d.ts +28 -0
  41. package/dist/components/calendar/calendar-cell.js +1 -0
  42. package/dist/components/{autocomplete/autocomplete-anchor.vue.d.ts → calendar/calendar-cell.vue.d.ts} +3 -3
  43. package/dist/components/calendar/calendar-compact.js +1 -0
  44. package/dist/components/calendar/calendar-compact.vue.d.ts +23 -0
  45. package/dist/components/calendar/calendar-grid-body.js +1 -0
  46. package/dist/components/{combobox/combobox-item-indicator.vue.d.ts → calendar/calendar-grid-body.vue.d.ts} +3 -3
  47. package/dist/components/calendar/calendar-grid-head.js +1 -0
  48. package/dist/components/calendar/calendar-grid-head.vue.d.ts +21 -0
  49. package/dist/components/calendar/calendar-grid-row.js +1 -0
  50. package/dist/components/calendar/calendar-grid-row.vue.d.ts +21 -0
  51. package/dist/components/calendar/calendar-grid.js +1 -0
  52. package/dist/components/calendar/calendar-grid.vue.d.ts +21 -0
  53. package/dist/components/calendar/calendar-head-cell.js +1 -0
  54. package/dist/components/calendar/calendar-head-cell.vue.d.ts +21 -0
  55. package/dist/components/calendar/calendar-header.js +1 -0
  56. package/dist/components/calendar/calendar-header.vue.d.ts +21 -0
  57. package/dist/components/calendar/calendar-heading.js +1 -0
  58. package/dist/components/calendar/calendar-heading.vue.d.ts +22 -0
  59. package/dist/components/calendar/calendar-next.js +1 -0
  60. package/dist/components/calendar/calendar-next.vue.d.ts +24 -0
  61. package/dist/components/calendar/calendar-prev.js +1 -0
  62. package/dist/components/calendar/calendar-prev.vue.d.ts +24 -0
  63. package/dist/components/calendar/calendar-root.js +1 -0
  64. package/dist/components/calendar/calendar-root.vue.d.ts +25 -0
  65. package/dist/components/calendar/context.d.ts +9 -0
  66. package/dist/components/calendar/context.js +1 -0
  67. package/dist/components/calendar/index.d.ts +16 -0
  68. package/dist/components/calendar/index.js +1 -0
  69. package/dist/components/calendar/types.d.ts +528 -0
  70. package/dist/components/calendar/use-calendar.d.ts +45 -0
  71. package/dist/components/calendar/use-calendar.js +1 -0
  72. package/dist/components/card/card-compact.js +1 -0
  73. package/dist/components/card/card-compact.vue.d.ts +19 -0
  74. package/dist/components/card/card-root.vue.d.ts +1 -1
  75. package/dist/components/card/index.d.ts +10 -9
  76. package/dist/components/card/index.js +1 -1
  77. package/dist/components/card/types.d.ts +112 -1
  78. package/dist/components/carousel/carousel-root.vue.d.ts +39 -2
  79. package/dist/components/carousel/index.d.ts +4 -2
  80. package/dist/components/carousel/types.d.ts +50 -8
  81. package/dist/components/checkbox/checkbox-group-root.js +1 -1
  82. package/dist/components/checkbox/checkbox-root.js +1 -1
  83. package/dist/components/checkbox/types.d.ts +111 -0
  84. package/dist/components/clipboard/types.d.ts +42 -0
  85. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
  86. package/dist/components/collapsible/types.d.ts +18 -0
  87. package/dist/components/color-area/color-area-root.vue.d.ts +4 -4
  88. package/dist/components/color-area/types.d.ts +60 -0
  89. package/dist/components/color-field/color-field-root.vue.d.ts +3 -3
  90. package/dist/components/color-field/types.d.ts +51 -0
  91. package/dist/components/color-picker/color-picker-root.vue.d.ts +4 -4
  92. package/dist/components/color-picker/types.d.ts +39 -0
  93. package/dist/components/color-slider/color-slider-root.vue.d.ts +4 -4
  94. package/dist/components/color-slider/types.d.ts +60 -0
  95. package/dist/components/color-swatch/types.d.ts +9 -0
  96. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
  97. package/dist/components/color-swatch-picker/types.d.ts +27 -0
  98. package/dist/components/combobox/combobox-arrow.js +1 -1
  99. package/dist/components/combobox/combobox-arrow.vue.d.ts +2 -2
  100. package/dist/components/combobox/combobox-compact.js +1 -1
  101. package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
  102. package/dist/components/combobox/combobox-content-impl.js +1 -1
  103. package/dist/components/combobox/combobox-group.vue.d.ts +2 -2
  104. package/dist/components/combobox/combobox-input.js +1 -1
  105. package/dist/components/combobox/combobox-item.js +1 -1
  106. package/dist/components/combobox/combobox-root.js +1 -1
  107. package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
  108. package/dist/components/combobox/combobox-trigger.js +1 -1
  109. package/dist/components/combobox/combobox-virtualizer.js +1 -1
  110. package/dist/components/combobox/context.js +1 -1
  111. package/dist/components/combobox/index.d.ts +12 -10
  112. package/dist/components/combobox/index.js +1 -1
  113. package/dist/components/combobox/types.d.ts +247 -20
  114. package/dist/components/command/command-compact.js +1 -1
  115. package/dist/components/command/command-compact.vue.d.ts +2 -2
  116. package/dist/components/command/types.d.ts +148 -1
  117. package/dist/components/config-provider/config-provider.vue.d.ts +1 -1
  118. package/dist/components/config-provider/types.d.ts +3 -0
  119. package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
  120. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
  121. package/dist/components/context-menu/context-menu-compact.js +1 -1
  122. package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
  123. package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
  124. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
  125. package/dist/components/context-menu/context-menu-root.js +1 -1
  126. package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
  127. package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
  128. package/dist/components/context-menu/index.d.ts +2 -2
  129. package/dist/components/context-menu/index.js +1 -1
  130. package/dist/components/context-menu/types.d.ts +78 -0
  131. package/dist/components/date-field/context.d.ts +9 -0
  132. package/dist/components/date-field/context.js +1 -0
  133. package/dist/components/date-field/date-field-compact.js +1 -0
  134. package/dist/components/date-field/date-field-compact.vue.d.ts +15 -0
  135. package/dist/components/date-field/date-field-input.js +1 -0
  136. package/dist/components/date-field/date-field-input.vue.d.ts +21 -0
  137. package/dist/components/date-field/date-field-root.js +1 -0
  138. package/dist/components/date-field/date-field-root.vue.d.ts +42 -0
  139. package/dist/components/date-field/index.d.ts +6 -0
  140. package/dist/components/date-field/index.js +1 -0
  141. package/dist/components/date-field/types.d.ts +214 -0
  142. package/dist/components/date-picker/context.d.ts +9 -0
  143. package/dist/components/date-picker/context.js +1 -0
  144. package/dist/components/date-picker/date-picker-compact.js +1 -0
  145. package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
  146. package/dist/components/date-picker/date-picker-content.js +1 -0
  147. package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
  148. package/dist/components/date-picker/date-picker-root.js +1 -0
  149. package/dist/components/date-picker/date-picker-root.vue.d.ts +38 -0
  150. package/dist/components/date-picker/index.d.ts +9 -0
  151. package/dist/components/date-picker/index.js +1 -0
  152. package/dist/components/date-picker/types.d.ts +290 -0
  153. package/dist/components/date-range-field/context.d.ts +9 -0
  154. package/dist/components/date-range-field/context.js +1 -0
  155. package/dist/components/date-range-field/date-range-field-compact.js +1 -0
  156. package/dist/components/date-range-field/date-range-field-compact.vue.d.ts +29 -0
  157. package/dist/components/date-range-field/date-range-field-input.js +1 -0
  158. package/dist/components/date-range-field/date-range-field-input.vue.d.ts +22 -0
  159. package/dist/components/date-range-field/date-range-field-root.js +1 -0
  160. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +55 -0
  161. package/dist/components/date-range-field/index.d.ts +6 -0
  162. package/dist/components/date-range-field/index.js +1 -0
  163. package/dist/components/date-range-field/types.d.ts +280 -0
  164. package/dist/components/date-range-picker/context.d.ts +9 -0
  165. package/dist/components/date-range-picker/context.js +1 -0
  166. package/dist/components/date-range-picker/date-range-picker-compact.js +1 -0
  167. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +31 -0
  168. package/dist/components/date-range-picker/date-range-picker-popup.js +1 -0
  169. package/dist/components/date-range-picker/date-range-picker-popup.vue.d.ts +21 -0
  170. package/dist/components/date-range-picker/date-range-picker-root.js +1 -0
  171. package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +50 -0
  172. package/dist/components/date-range-picker/date-range-picker-trigger.js +1 -0
  173. package/dist/components/date-range-picker/date-range-picker-trigger.vue.d.ts +21 -0
  174. package/dist/components/date-range-picker/index.d.ts +7 -0
  175. package/dist/components/date-range-picker/index.js +1 -0
  176. package/dist/components/date-range-picker/types.d.ts +282 -0
  177. package/dist/components/dialog/dialog-compact.js +1 -1
  178. package/dist/components/dialog/dialog-compact.vue.d.ts +6 -6
  179. package/dist/components/dialog/dialog-root.js +1 -1
  180. package/dist/components/dialog/types.d.ts +196 -2
  181. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
  182. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
  183. package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
  184. package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
  185. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
  186. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
  187. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  188. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  189. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
  190. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
  191. package/dist/components/dropdown-menu/index.d.ts +2 -2
  192. package/dist/components/dropdown-menu/index.js +1 -1
  193. package/dist/components/dropdown-menu/types.d.ts +84 -0
  194. package/dist/components/editable/editable-compact.js +1 -0
  195. package/dist/components/editable/editable-compact.vue.d.ts +23 -0
  196. package/dist/components/editable/editable-root.vue.d.ts +1 -1
  197. package/dist/components/editable/index.d.ts +8 -7
  198. package/dist/components/editable/index.js +1 -1
  199. package/dist/components/editable/types.d.ts +151 -2
  200. package/dist/components/empty/types.d.ts +24 -0
  201. package/dist/components/form/core/types.d.ts +396 -13
  202. package/dist/components/form/types.d.ts +27 -0
  203. package/dist/components/hover-card/hover-card-compact.js +1 -0
  204. package/dist/components/hover-card/hover-card-compact.vue.d.ts +30 -0
  205. package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
  206. package/dist/components/hover-card/hover-card-positioner.js +1 -1
  207. package/dist/components/hover-card/hover-card-positioner.vue.d.ts +1 -0
  208. package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
  209. package/dist/components/hover-card/index.d.ts +8 -7
  210. package/dist/components/hover-card/index.js +1 -1
  211. package/dist/components/hover-card/types.d.ts +72 -1
  212. package/dist/components/input/input-root.js +1 -1
  213. package/dist/components/input/types.d.ts +21 -0
  214. package/dist/components/input-number/types.d.ts +30 -0
  215. package/dist/components/input-otp/index.d.ts +1 -2
  216. package/dist/components/input-otp/index.js +1 -1
  217. package/dist/components/input-otp/input-otp-compact.vue.d.ts +2 -2
  218. package/dist/components/input-otp/input-otp-root.vue.d.ts +3 -3
  219. package/dist/components/input-otp/types.d.ts +186 -0
  220. package/dist/components/kbd/types.d.ts +6 -0
  221. package/dist/components/label/types.d.ts +3 -0
  222. package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
  223. package/dist/components/layout/layout-compact.vue.d.ts +1 -1
  224. package/dist/components/layout/layout-root.vue.d.ts +1 -1
  225. package/dist/components/layout/types.d.ts +124 -10
  226. package/dist/components/link/link.vue.d.ts +1 -1
  227. package/dist/components/link/types.d.ts +12 -0
  228. package/dist/components/list/types.d.ts +21 -0
  229. package/dist/components/listbox/index.js +1 -1
  230. package/dist/components/listbox/listbox-root.js +1 -1
  231. package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
  232. package/dist/components/listbox/types.d.ts +66 -0
  233. package/dist/components/menu/hooks.js +1 -1
  234. package/dist/components/menu/index.d.ts +2 -2
  235. package/dist/components/menu/index.js +1 -1
  236. package/dist/components/menu/menu-checkbox-options-compact.js +1 -1
  237. package/dist/components/menu/menu-option-compact.js +1 -1
  238. package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
  239. package/dist/components/menu/menu-options-compact.js +1 -1
  240. package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
  241. package/dist/components/menu/menu-radio-options-compact.js +1 -1
  242. package/dist/components/menu/menu-root.js +1 -1
  243. package/dist/components/menu/types.d.ts +267 -3
  244. package/dist/components/menubar/index.js +1 -1
  245. package/dist/components/menubar/menubar-compact.js +1 -1
  246. package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
  247. package/dist/components/menubar/types.d.ts +72 -0
  248. package/dist/components/month-picker/context.d.ts +9 -0
  249. package/dist/components/month-picker/context.js +1 -0
  250. package/dist/components/month-picker/index.d.ts +6 -0
  251. package/dist/components/month-picker/index.js +1 -0
  252. package/dist/components/month-picker/month-picker-popup.js +1 -0
  253. package/dist/components/month-picker/month-picker-popup.vue.d.ts +36 -0
  254. package/dist/components/month-picker/month-picker-root.js +1 -0
  255. package/dist/components/month-picker/month-picker-root.vue.d.ts +39 -0
  256. package/dist/components/month-picker/month-picker-trigger.js +1 -0
  257. package/dist/components/{autocomplete/autocomplete-trigger.vue.d.ts → month-picker/month-picker-trigger.vue.d.ts} +3 -3
  258. package/dist/components/month-picker/types.d.ts +202 -0
  259. package/dist/components/month-range-picker/context.d.ts +9 -0
  260. package/dist/components/month-range-picker/context.js +1 -0
  261. package/dist/components/month-range-picker/index.d.ts +6 -0
  262. package/dist/components/month-range-picker/index.js +1 -0
  263. package/dist/components/month-range-picker/month-range-picker-popup.js +1 -0
  264. package/dist/components/month-range-picker/month-range-picker-popup.vue.d.ts +39 -0
  265. package/dist/components/month-range-picker/month-range-picker-root.js +1 -0
  266. package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +43 -0
  267. package/dist/components/month-range-picker/month-range-picker-trigger.js +1 -0
  268. package/dist/components/month-range-picker/month-range-picker-trigger.vue.d.ts +21 -0
  269. package/dist/components/month-range-picker/types.d.ts +234 -0
  270. package/dist/components/navigation-menu/index.d.ts +12 -11
  271. package/dist/components/navigation-menu/index.js +1 -1
  272. package/dist/components/navigation-menu/navigation-menu-compact.js +1 -0
  273. package/dist/components/navigation-menu/navigation-menu-compact.vue.d.ts +34 -0
  274. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
  275. package/dist/components/navigation-menu/types.d.ts +153 -2
  276. package/dist/components/page-tabs/types.d.ts +24 -0
  277. package/dist/components/pagination/index.d.ts +11 -10
  278. package/dist/components/pagination/index.js +1 -1
  279. package/dist/components/pagination/pagination-compact.js +1 -0
  280. package/dist/components/pagination/pagination-compact.vue.d.ts +23 -0
  281. package/dist/components/pagination/types.d.ts +117 -1
  282. package/dist/components/popover/context.d.ts +9 -0
  283. package/dist/components/popover/context.js +1 -1
  284. package/dist/components/popover/index.d.ts +10 -9
  285. package/dist/components/popover/index.js +1 -1
  286. package/dist/components/popover/popover-compact.js +1 -0
  287. package/dist/components/popover/popover-compact.vue.d.ts +36 -0
  288. package/dist/components/popover/popover-root.js +1 -1
  289. package/dist/components/popover/popover-root.vue.d.ts +0 -2
  290. package/dist/components/popover/popover-trigger.js +1 -1
  291. package/dist/components/popover/types.d.ts +111 -6
  292. package/dist/components/popper/index.js +1 -1
  293. package/dist/components/popper/popper-anchor.js +1 -1
  294. package/dist/components/popper/popper-positioner.vue.d.ts +2 -2
  295. package/dist/components/popper/types.d.ts +22 -1
  296. package/dist/components/portal/types.d.ts +3 -0
  297. package/dist/components/primitive/types.d.ts +6 -0
  298. package/dist/components/progress/types.d.ts +81 -0
  299. package/dist/components/radio-group/types.d.ts +66 -0
  300. package/dist/components/range-calendar/context.d.ts +9 -0
  301. package/dist/components/range-calendar/context.js +1 -0
  302. package/dist/components/range-calendar/index.d.ts +16 -0
  303. package/dist/components/range-calendar/index.js +1 -0
  304. package/dist/components/range-calendar/range-calendar-cell-trigger.js +1 -0
  305. package/dist/components/range-calendar/range-calendar-cell-trigger.vue.d.ts +33 -0
  306. package/dist/components/range-calendar/range-calendar-cell.js +1 -0
  307. package/dist/components/range-calendar/range-calendar-cell.vue.d.ts +21 -0
  308. package/dist/components/range-calendar/range-calendar-compact.js +1 -0
  309. package/dist/components/range-calendar/range-calendar-compact.vue.d.ts +25 -0
  310. package/dist/components/range-calendar/range-calendar-grid-body.js +1 -0
  311. package/dist/components/range-calendar/range-calendar-grid-body.vue.d.ts +21 -0
  312. package/dist/components/range-calendar/range-calendar-grid-head.js +1 -0
  313. package/dist/components/range-calendar/range-calendar-grid-head.vue.d.ts +21 -0
  314. package/dist/components/range-calendar/range-calendar-grid-row.js +1 -0
  315. package/dist/components/range-calendar/range-calendar-grid-row.vue.d.ts +21 -0
  316. package/dist/components/range-calendar/range-calendar-grid.js +1 -0
  317. package/dist/components/range-calendar/range-calendar-grid.vue.d.ts +21 -0
  318. package/dist/components/range-calendar/range-calendar-head-cell.js +1 -0
  319. package/dist/components/range-calendar/range-calendar-head-cell.vue.d.ts +21 -0
  320. package/dist/components/range-calendar/range-calendar-header.js +1 -0
  321. package/dist/components/range-calendar/range-calendar-header.vue.d.ts +21 -0
  322. package/dist/components/range-calendar/range-calendar-heading.js +1 -0
  323. package/dist/components/range-calendar/range-calendar-heading.vue.d.ts +22 -0
  324. package/dist/components/range-calendar/range-calendar-next.js +1 -0
  325. package/dist/components/range-calendar/range-calendar-next.vue.d.ts +24 -0
  326. package/dist/components/range-calendar/range-calendar-prev.js +1 -0
  327. package/dist/components/range-calendar/range-calendar-prev.vue.d.ts +24 -0
  328. package/dist/components/range-calendar/range-calendar-root.js +1 -0
  329. package/dist/components/range-calendar/range-calendar-root.vue.d.ts +55 -0
  330. package/dist/components/range-calendar/types.d.ts +488 -0
  331. package/dist/components/range-calendar/use-range-calendar.js +1 -0
  332. package/dist/components/roving-focus/types.d.ts +18 -0
  333. package/dist/components/scroll-area/types.d.ts +33 -0
  334. package/dist/components/segment/types.d.ts +36 -0
  335. package/dist/components/select/select-content.vue.d.ts +1 -1
  336. package/dist/components/select/types.d.ts +240 -0
  337. package/dist/components/separator/types.d.ts +12 -0
  338. package/dist/components/skeleton/types.d.ts +3 -0
  339. package/dist/components/slider/slider-root.vue.d.ts +2 -2
  340. package/dist/components/slider/types.d.ts +90 -0
  341. package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
  342. package/dist/components/splitter/types.d.ts +114 -0
  343. package/dist/components/stepper/index.d.ts +10 -9
  344. package/dist/components/stepper/index.js +1 -1
  345. package/dist/components/stepper/stepper-compact.js +1 -0
  346. package/dist/components/stepper/stepper-compact.vue.d.ts +19 -0
  347. package/dist/components/stepper/stepper-root.vue.d.ts +2 -2
  348. package/dist/components/stepper/types.d.ts +136 -2
  349. package/dist/components/switch/types.d.ts +21 -0
  350. package/dist/components/table/table-compact.vue.d.ts +2 -2
  351. package/dist/components/table/types.d.ts +819 -0
  352. package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
  353. package/dist/components/tabs/types.d.ts +75 -0
  354. package/dist/components/tag/types.d.ts +12 -0
  355. package/dist/components/tags-input/types.d.ts +63 -0
  356. package/dist/components/textarea/types.d.ts +27 -0
  357. package/dist/components/time-field/context.d.ts +9 -0
  358. package/dist/components/time-field/context.js +1 -0
  359. package/dist/components/time-field/index.d.ts +5 -0
  360. package/dist/components/time-field/index.js +1 -0
  361. package/dist/components/time-field/time-field-input.js +1 -0
  362. package/dist/components/time-field/time-field-input.vue.d.ts +21 -0
  363. package/dist/components/time-field/time-field-root.js +1 -0
  364. package/dist/components/time-field/time-field-root.vue.d.ts +43 -0
  365. package/dist/components/time-field/types.d.ts +201 -0
  366. package/dist/components/time-picker/context.d.ts +9 -0
  367. package/dist/components/time-picker/context.js +1 -0
  368. package/dist/components/time-picker/index.d.ts +6 -0
  369. package/dist/components/time-picker/index.js +1 -0
  370. package/dist/components/time-picker/time-picker-popup.js +1 -0
  371. package/dist/components/time-picker/time-picker-popup.vue.d.ts +27 -0
  372. package/dist/components/time-picker/time-picker-root.js +1 -0
  373. package/dist/components/time-picker/time-picker-root.vue.d.ts +45 -0
  374. package/dist/components/time-picker/time-picker-trigger.js +1 -0
  375. package/dist/components/time-picker/time-picker-trigger.vue.d.ts +21 -0
  376. package/dist/components/time-picker/types.d.ts +224 -0
  377. package/dist/components/time-range-field/context.d.ts +9 -0
  378. package/dist/components/time-range-field/context.js +1 -0
  379. package/dist/components/time-range-field/index.d.ts +6 -0
  380. package/dist/components/time-range-field/index.js +1 -0
  381. package/dist/components/time-range-field/time-range-field-compact.js +1 -0
  382. package/dist/components/time-range-field/time-range-field-compact.vue.d.ts +29 -0
  383. package/dist/components/time-range-field/time-range-field-input.js +1 -0
  384. package/dist/components/time-range-field/time-range-field-input.vue.d.ts +22 -0
  385. package/dist/components/time-range-field/time-range-field-root.js +1 -0
  386. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +53 -0
  387. package/dist/components/time-range-field/types.d.ts +280 -0
  388. package/dist/components/time-range-picker/context.d.ts +9 -0
  389. package/dist/components/time-range-picker/context.js +1 -0
  390. package/dist/components/time-range-picker/index.d.ts +7 -0
  391. package/dist/components/time-range-picker/index.js +1 -0
  392. package/dist/components/time-range-picker/time-range-picker-compact.js +1 -0
  393. package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +31 -0
  394. package/dist/components/time-range-picker/time-range-picker-popup.js +1 -0
  395. package/dist/components/time-range-picker/time-range-picker-popup.vue.d.ts +30 -0
  396. package/dist/components/time-range-picker/time-range-picker-root.js +1 -0
  397. package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +50 -0
  398. package/dist/components/time-range-picker/time-range-picker-trigger.js +1 -0
  399. package/dist/components/time-range-picker/time-range-picker-trigger.vue.d.ts +21 -0
  400. package/dist/components/time-range-picker/types.d.ts +304 -0
  401. package/dist/components/toast/shared.js +1 -1
  402. package/dist/components/toast/toaster.vue.d.ts +2 -2
  403. package/dist/components/toast/types.d.ts +224 -4
  404. package/dist/components/toggle/toggle.vue.d.ts +1 -1
  405. package/dist/components/toggle/types.d.ts +9 -0
  406. package/dist/components/toggle-group/types.d.ts +15 -0
  407. package/dist/components/toolbar/types.d.ts +48 -0
  408. package/dist/components/tooltip/index.js +1 -1
  409. package/dist/components/tooltip/tooltip-popup.js +1 -1
  410. package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
  411. package/dist/components/tooltip/types.d.ts +27 -0
  412. package/dist/components/tree/types.d.ts +75 -0
  413. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +1 -1
  414. package/dist/components/tree-menu/types.d.ts +60 -0
  415. package/dist/components/virtualizer/types.d.ts +33 -0
  416. package/dist/components/visually-hidden/types.d.ts +30 -0
  417. package/dist/components/year-picker/context.d.ts +9 -0
  418. package/dist/components/year-picker/context.js +1 -0
  419. package/dist/components/year-picker/index.d.ts +6 -0
  420. package/dist/components/year-picker/index.js +1 -0
  421. package/dist/components/year-picker/types.d.ts +207 -0
  422. package/dist/components/year-picker/year-picker-popup.js +1 -0
  423. package/dist/components/year-picker/year-picker-popup.vue.d.ts +36 -0
  424. package/dist/components/year-picker/year-picker-root.js +1 -0
  425. package/dist/components/year-picker/year-picker-root.vue.d.ts +39 -0
  426. package/dist/components/year-picker/year-picker-trigger.js +1 -0
  427. package/dist/components/year-picker/year-picker-trigger.vue.d.ts +21 -0
  428. package/dist/components/year-range-picker/context.d.ts +9 -0
  429. package/dist/components/year-range-picker/context.js +1 -0
  430. package/dist/components/year-range-picker/index.d.ts +6 -0
  431. package/dist/components/year-range-picker/index.js +1 -0
  432. package/dist/components/year-range-picker/types.d.ts +239 -0
  433. package/dist/components/year-range-picker/year-range-picker-popup.js +1 -0
  434. package/dist/components/year-range-picker/year-range-picker-popup.vue.d.ts +39 -0
  435. package/dist/components/year-range-picker/year-range-picker-root.js +1 -0
  436. package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +43 -0
  437. package/dist/components/year-range-picker/year-range-picker-trigger.js +1 -0
  438. package/dist/components/year-range-picker/year-range-picker-trigger.vue.d.ts +21 -0
  439. package/dist/composables/use-collection.js +1 -1
  440. package/dist/composables/use-hide-others.d.ts +2 -1
  441. package/dist/composables/use-hide-others.js +1 -1
  442. package/dist/constants/components.d.ts +19 -5
  443. package/dist/constants/components.js +1 -1
  444. package/dist/constants/index.d.ts +2 -1
  445. package/dist/constants/index.js +1 -1
  446. package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
  447. package/dist/date/comparators.d.ts +24 -14
  448. package/dist/date/comparators.js +1 -1
  449. package/dist/date/formatter.d.ts +27 -0
  450. package/dist/date/formatter.js +1 -0
  451. package/dist/date/index.d.ts +10 -4
  452. package/dist/date/index.js +1 -1
  453. package/dist/date/parser.d.ts +34 -0
  454. package/dist/date/parser.js +1 -0
  455. package/dist/date/parts.d.ts +15 -0
  456. package/dist/date/parts.js +1 -0
  457. package/dist/date/placeholders.d.ts +23 -0
  458. package/dist/date/placeholders.js +1 -0
  459. package/dist/date/segment.d.ts +7 -0
  460. package/dist/date/segment.js +1 -0
  461. package/dist/date/types.d.ts +34 -21
  462. package/dist/date/use-date-field.d.ts +50 -0
  463. package/dist/date/use-date-field.js +1 -0
  464. package/dist/date/utils.d.ts +15 -1
  465. package/dist/date/utils.js +1 -1
  466. package/dist/index.d.ts +460 -375
  467. package/dist/index.js +1 -1
  468. package/dist/namespaced/index.d.ts +884 -725
  469. package/dist/namespaced/index.js +1 -1
  470. package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -0
  471. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +4 -0
  472. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +11 -0
  473. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +16 -0
  474. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +9 -0
  475. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +13 -0
  476. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +4 -0
  477. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +31 -0
  478. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +67 -0
  479. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +29 -0
  480. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +10 -0
  481. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +13 -0
  482. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +11 -0
  483. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +43 -0
  484. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +11 -0
  485. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +6 -0
  486. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +20 -0
  487. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +11 -0
  488. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +14 -0
  489. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +8 -0
  490. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +4 -0
  491. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +6 -0
  492. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +6 -0
  493. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +12 -0
  494. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +7 -0
  495. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +10 -0
  496. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +19 -0
  497. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +6 -0
  498. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +11 -0
  499. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +9 -0
  500. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +7 -0
  501. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +8 -0
  502. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +9 -0
  503. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +4 -0
  504. package/dist/resolver/index.js +1 -1
  505. package/dist/shared/index.d.ts +3 -2
  506. package/dist/shared/index.js +1 -1
  507. package/dist/shared/string.d.ts +1 -34
  508. package/dist/shared/string.js +1 -1
  509. package/dist/shared/time-picker.d.ts +30 -0
  510. package/dist/shared/time-picker.js +1 -0
  511. package/dist/types/common.d.ts +9 -1
  512. package/dist/types/dom.d.ts +3 -1
  513. package/dist/types/event.d.ts +10 -1
  514. package/dist/types/index.d.ts +5 -4
  515. package/dist/types/index.js +0 -0
  516. package/dist/types/vue.d.ts +4 -1
  517. package/package.json +13 -8
  518. package/dist/components/autocomplete/autocomplete-anchor.js +0 -1
  519. package/dist/components/autocomplete/autocomplete-content.js +0 -1
  520. package/dist/components/autocomplete/autocomplete-content.vue.d.ts +0 -24
  521. package/dist/components/autocomplete/autocomplete-group-label.js +0 -1
  522. package/dist/components/autocomplete/autocomplete-group-label.vue.d.ts +0 -18
  523. package/dist/components/autocomplete/autocomplete-group.js +0 -1
  524. package/dist/components/autocomplete/autocomplete-group.vue.d.ts +0 -18
  525. package/dist/components/autocomplete/autocomplete-item-indicator.js +0 -1
  526. package/dist/components/autocomplete/autocomplete-item-indicator.vue.d.ts +0 -18
  527. package/dist/components/autocomplete/autocomplete-item.js +0 -1
  528. package/dist/components/autocomplete/autocomplete-item.vue.d.ts +0 -26
  529. package/dist/components/autocomplete/autocomplete-separator.js +0 -1
  530. package/dist/components/autocomplete/autocomplete-separator.vue.d.ts +0 -18
  531. package/dist/components/autocomplete/autocomplete-trigger.js +0 -1
  532. package/dist/components/autocomplete/autocomplete-viewport.js +0 -1
  533. package/dist/components/autocomplete/autocomplete-viewport.vue.d.ts +0 -18
  534. package/dist/components/combobox/combobox-anchor.js +0 -1
  535. package/dist/components/combobox/combobox-anchor.vue.d.ts +0 -18
  536. package/dist/components/combobox/combobox-group-label.js +0 -1
  537. package/dist/components/combobox/combobox-group-label.vue.d.ts +0 -18
  538. package/dist/components/combobox/combobox-item-indicator.js +0 -1
  539. package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.0/node_modules/@soybeanjs/utils/dist/index.js +0 -1
  540. /package/dist/{components/input-otp → constants}/regexp.js +0 -0
@@ -5,27 +5,87 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { CSSProperties, ComputedRef, HTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/color-area/types.d.ts
8
+ /**
9
+ * Type information for the color area axis channel component.
10
+ */
8
11
  type ColorAreaAxisChannel = Extract<ColorChannel, 'hue' | 'saturation' | 'lightness' | 'brightness' | 'chroma'>;
12
+ /**
13
+ * Props for the color area root component.
14
+ */
9
15
  interface ColorAreaRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
16
+ /**
17
+ * Current model value.
18
+ */
10
19
  modelValue?: string | ColorValue;
20
+ /**
21
+ * Default value.
22
+ */
11
23
  defaultValue?: string | ColorValue;
24
+ /**
25
+ * Color space.
26
+ */
12
27
  colorSpace?: ColorSpace;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * X channel.
34
+ */
14
35
  xChannel?: ColorAreaAxisChannel;
36
+ /**
37
+ * Y channel.
38
+ */
15
39
  yChannel?: ColorAreaAxisChannel;
40
+ /**
41
+ * Whether the component is disabled.
42
+ */
16
43
  disabled?: boolean;
44
+ /**
45
+ * X name.
46
+ */
17
47
  xName?: string;
48
+ /**
49
+ * Y name.
50
+ */
18
51
  yName?: string;
19
52
  }
53
+ /**
54
+ * Emits for the color area root component.
55
+ */
20
56
  type ColorAreaRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
65
+ /**
66
+ * Emitted when change occurs.
67
+ */
23
68
  change: [value: string];
69
+ /**
70
+ * Emitted when change end occurs.
71
+ */
24
72
  changeEnd: [value: string];
25
73
  };
74
+ /**
75
+ * Props for the color area area component.
76
+ */
26
77
  interface ColorAreaAreaProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
78
+ /**
79
+ * Props for the color area thumb component.
80
+ */
27
81
  interface ColorAreaThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
82
+ /**
83
+ * Available UI slots for the color area component.
84
+ */
28
85
  type ColorAreaUiSlot = 'root' | 'area' | 'thumb';
86
+ /**
87
+ * UI class overrides for the color area component.
88
+ */
29
89
  type ColorAreaUi = UiClass<ColorAreaUiSlot>;
30
90
  //#endregion
31
91
  export { ColorAreaAreaProps, ColorAreaAxisChannel, ColorAreaRootEmits, ColorAreaRootProps, ColorAreaThumbProps, ColorAreaUi, ColorAreaUiSlot };
@@ -17,12 +17,12 @@ declare const __VLS_base: _$vue.DefineComponent<ColorFieldRootProps, {}, {}, {},
17
17
  }>, {
18
18
  disabled: boolean;
19
19
  format: ColorFormat;
20
+ as: AsTag | _$vue.Component;
20
21
  step: number;
21
- defaultValue: string | ColorValue;
22
22
  modelValue: string | ColorValue;
23
- as: AsTag | _$vue.Component;
24
- readonly: boolean;
23
+ defaultValue: string | ColorValue;
25
24
  colorSpace: ColorSpace;
25
+ readonly: boolean;
26
26
  disableWheelChange: boolean;
27
27
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
28
28
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,24 +5,75 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { HTMLAttributes, InputHTMLAttributes, ShallowRef } from "vue";
6
6
 
7
7
  //#region src/components/color-field/types.d.ts
8
+ /**
9
+ * Props for the color field root component.
10
+ */
8
11
  interface ColorFieldRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
12
+ /**
13
+ * Current model value.
14
+ */
9
15
  modelValue?: string | ColorValue;
16
+ /**
17
+ * Default value.
18
+ */
10
19
  defaultValue?: string | ColorValue;
20
+ /**
21
+ * Color space.
22
+ */
11
23
  colorSpace?: ColorSpace;
24
+ /**
25
+ * Channel.
26
+ */
12
27
  channel?: ColorChannel;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * Placeholder.
34
+ */
14
35
  placeholder?: string;
36
+ /**
37
+ * Whether the component is disabled.
38
+ */
15
39
  disabled?: boolean;
40
+ /**
41
+ * Whether the component is readonly.
42
+ */
16
43
  readonly?: boolean;
44
+ /**
45
+ * Whether to disable wheel change.
46
+ */
17
47
  disableWheelChange?: boolean;
48
+ /**
49
+ * Step.
50
+ */
18
51
  step?: number;
19
52
  }
53
+ /**
54
+ * Emits for the color field root component.
55
+ */
20
56
  type ColorFieldRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
23
65
  };
66
+ /**
67
+ * Props for the color field input component.
68
+ */
24
69
  interface ColorFieldInputProps extends /** @vue-ignore */InputHTMLAttributes {}
70
+ /**
71
+ * Available UI slots for the color field component.
72
+ */
25
73
  type ColorFieldUiSlot = 'root' | 'input';
74
+ /**
75
+ * UI class overrides for the color field component.
76
+ */
26
77
  type ColorFieldUi = UiClass<ColorFieldUiSlot>;
27
78
  //#endregion
28
79
  export { ColorFieldInputProps, ColorFieldRootEmits, ColorFieldRootProps, ColorFieldUi, ColorFieldUiSlot };
@@ -15,19 +15,19 @@ type __VLS_Slots = {} & {
15
15
  default?: (props: typeof __VLS_8) => any;
16
16
  };
17
17
  declare const __VLS_base: _$vue.DefineComponent<ColorPickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
18
- "update:modelValue": (value: string) => any;
19
18
  change: (value: string) => any;
19
+ "update:modelValue": (value: string) => any;
20
20
  "update:color": (value: NormalizedColor) => any;
21
21
  }, string, _$vue.PublicProps, Readonly<ColorPickerRootProps> & Readonly<{
22
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
23
22
  onChange?: ((value: string) => any) | undefined;
23
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
24
  "onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
25
25
  }>, {
26
26
  disabled: boolean;
27
27
  format: ColorFormat;
28
- defaultValue: string | ColorValue;
29
- modelValue: string | ColorValue;
30
28
  as: AsTag | _$vue.Component;
29
+ modelValue: string | ColorValue;
30
+ defaultValue: string | ColorValue;
31
31
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
32
32
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
33
  declare const _default: typeof __VLS_export;
@@ -4,20 +4,59 @@ import { ColorFormat, ColorValue, NormalizedColor } from "../../shared/color.js"
4
4
  import { ComputedRef, HTMLAttributes } from "vue";
5
5
 
6
6
  //#region src/components/color-picker/types.d.ts
7
+ /**
8
+ * Props for the color picker root component.
9
+ */
7
10
  interface ColorPickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
11
+ /**
12
+ * Current model value.
13
+ */
8
14
  modelValue?: string | ColorValue;
15
+ /**
16
+ * Default value.
17
+ */
9
18
  defaultValue?: string | ColorValue;
19
+ /**
20
+ * Format.
21
+ */
10
22
  format?: ColorFormat;
23
+ /**
24
+ * Whether the component is disabled.
25
+ */
11
26
  disabled?: boolean;
12
27
  }
28
+ /**
29
+ * Emits for the color picker root component.
30
+ */
13
31
  type ColorPickerRootEmits = {
32
+ /**
33
+ * Emitted when the model value changes.
34
+ */
14
35
  'update:modelValue': [value: string];
36
+ /**
37
+ * Emitted when the color value changes.
38
+ */
15
39
  'update:color': [value: NormalizedColor];
40
+ /**
41
+ * Emitted when change occurs.
42
+ */
16
43
  change: [value: string];
17
44
  };
45
+ /**
46
+ * Slot props for the color picker root component.
47
+ */
18
48
  interface ColorPickerRootSlotProps {
49
+ /**
50
+ * Theme color of the component.
51
+ */
19
52
  color: ComputedRef<ColorValue>;
53
+ /**
54
+ * Formatted value exposed in the slot scope.
55
+ */
20
56
  formattedValue: ComputedRef<string>;
57
+ /**
58
+ * Set color exposed in the slot scope.
59
+ */
21
60
  setColor: (color: ColorValue) => void;
22
61
  }
23
62
  //#endregion
@@ -9,13 +9,13 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_10) => any;
10
10
  };
11
11
  declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
12
- "update:modelValue": (value: string) => any;
13
12
  change: (value: string) => any;
13
+ "update:modelValue": (value: string) => any;
14
14
  "update:color": (value: NormalizedColor) => any;
15
15
  changeEnd: (value: string) => any;
16
16
  }, string, _$vue.PublicProps, Readonly<ColorSliderRootProps> & Readonly<{
17
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
18
17
  onChange?: ((value: string) => any) | undefined;
18
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
19
  "onUpdate:color"?: ((value: NormalizedColor) => any) | undefined;
20
20
  onChangeEnd?: ((value: string) => any) | undefined;
21
21
  }>, {
@@ -23,10 +23,10 @@ declare const __VLS_base: _$vue.DefineComponent<ColorSliderRootProps, {}, {}, {}
23
23
  format: ColorFormat;
24
24
  orientation: DataOrientation;
25
25
  step: number;
26
- defaultValue: string | ColorValue;
27
26
  modelValue: string | ColorValue;
28
- inverted: boolean;
27
+ defaultValue: string | ColorValue;
29
28
  colorSpace: ColorSpace;
29
+ inverted: boolean;
30
30
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
31
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
32
32
  declare const _default: typeof __VLS_export;
@@ -5,27 +5,87 @@ import { ColorChannel, ColorFormat, ColorSpace, ColorValue, NormalizedColor } fr
5
5
  import { ComputedRef, HTMLAttributes } from "vue";
6
6
 
7
7
  //#region src/components/color-slider/types.d.ts
8
+ /**
9
+ * Props for the color slider root component.
10
+ */
8
11
  interface ColorSliderRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */HTMLAttributes {
12
+ /**
13
+ * Current model value.
14
+ */
9
15
  modelValue?: string | ColorValue;
16
+ /**
17
+ * Default value.
18
+ */
10
19
  defaultValue?: string | ColorValue;
20
+ /**
21
+ * Color space.
22
+ */
11
23
  colorSpace?: ColorSpace;
24
+ /**
25
+ * Channel.
26
+ */
12
27
  channel: ColorChannel;
28
+ /**
29
+ * Format.
30
+ */
13
31
  format?: ColorFormat;
32
+ /**
33
+ * Orientation of the component.
34
+ */
14
35
  orientation?: DataOrientation;
36
+ /**
37
+ * Reading direction of the component.
38
+ */
15
39
  dir?: Direction;
40
+ /**
41
+ * Whether inverted.
42
+ */
16
43
  inverted?: boolean;
44
+ /**
45
+ * Whether the component is disabled.
46
+ */
17
47
  disabled?: boolean;
48
+ /**
49
+ * Step.
50
+ */
18
51
  step?: number;
19
52
  }
53
+ /**
54
+ * Emits for the color slider root component.
55
+ */
20
56
  type ColorSliderRootEmits = {
57
+ /**
58
+ * Emitted when the model value changes.
59
+ */
21
60
  'update:modelValue': [value: string];
61
+ /**
62
+ * Emitted when the color value changes.
63
+ */
22
64
  'update:color': [value: NormalizedColor];
65
+ /**
66
+ * Emitted when change occurs.
67
+ */
23
68
  change: [value: string];
69
+ /**
70
+ * Emitted when change end occurs.
71
+ */
24
72
  changeEnd: [value: string];
25
73
  };
74
+ /**
75
+ * Props for the color slider track component.
76
+ */
26
77
  interface ColorSliderTrackProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
78
+ /**
79
+ * Props for the color slider thumb component.
80
+ */
27
81
  interface ColorSliderThumbProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
82
+ /**
83
+ * Available UI slots for the color slider component.
84
+ */
28
85
  type ColorSliderUiSlot = 'root' | 'track' | 'thumb';
86
+ /**
87
+ * UI class overrides for the color slider component.
88
+ */
29
89
  type ColorSliderUi = UiClass<ColorSliderUiSlot>;
30
90
  //#endregion
31
91
  export { ColorSliderRootEmits, ColorSliderRootProps, ColorSliderThumbProps, ColorSliderTrackProps, ColorSliderUi, ColorSliderUiSlot };
@@ -3,8 +3,17 @@ import { ColorValue } from "../../shared/color.js";
3
3
  import { HTMLAttributes } from "vue";
4
4
 
5
5
  //#region src/components/color-swatch/types.d.ts
6
+ /**
7
+ * Props for the color swatch component.
8
+ */
6
9
  interface ColorSwatchProps extends PrimitiveProps, /** @vue-ignore */Omit<HTMLAttributes, 'color'> {
10
+ /**
11
+ * Theme color of the component.
12
+ */
7
13
  color?: string | ColorValue;
14
+ /**
15
+ * Label text rendered by the component.
16
+ */
8
17
  label?: string;
9
18
  }
10
19
  //#endregion
@@ -7,8 +7,8 @@ import * as _$vue from "vue";
7
7
  declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
8
  props: _$vue.PublicProps & __VLS_PrettifyLocal<ColorSwatchPickerRootProps<M> & {
9
9
  "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
10
- onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
11
10
  onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
11
+ onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
12
12
  onLeave?: ((event: Event) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
@@ -20,7 +20,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
20
20
  modelValue: ((M extends true ? string[] : string) | undefined) & (M extends true ? string[] | undefined : string | undefined);
21
21
  }) => any;
22
22
  };
23
- emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
23
+ emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void);
24
24
  }>) => _$vue.VNode & {
25
25
  __ctx?: Awaited<typeof __VLS_setup>;
26
26
  };
@@ -4,15 +4,42 @@ import { ListboxItemEmits, ListboxItemIndicatorProps, ListboxItemProps, ListboxR
4
4
  import { ComputedRef, HTMLAttributes } from "vue";
5
5
 
6
6
  //#region src/components/color-swatch-picker/types.d.ts
7
+ /**
8
+ * Props for the color swatch picker root component.
9
+ */
7
10
  interface ColorSwatchPickerRootProps<M extends boolean = false> extends PrimitiveProps, ListboxRootProps<M> {}
11
+ /**
12
+ * Emits for the color swatch picker root component.
13
+ */
8
14
  type ColorSwatchPickerRootEmits<M extends boolean = false> = ListboxRootEmits<M>;
15
+ /**
16
+ * Props for the color swatch picker item component.
17
+ */
9
18
  interface ColorSwatchPickerItemProps extends ListboxItemProps {}
19
+ /**
20
+ * Emits for the color swatch picker item component.
21
+ */
10
22
  type ColorSwatchPickerItemEmits = ListboxItemEmits;
23
+ /**
24
+ * Props for the color swatch picker item indicator component.
25
+ */
11
26
  interface ColorSwatchPickerItemIndicatorProps extends ListboxItemIndicatorProps {}
27
+ /**
28
+ * Props for the color swatch picker item swatch component.
29
+ */
12
30
  interface ColorSwatchPickerItemSwatchProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
31
+ /**
32
+ * Label text rendered by the component.
33
+ */
13
34
  label?: string;
14
35
  }
36
+ /**
37
+ * Available UI slots for the color swatch picker component.
38
+ */
15
39
  type ColorSwatchPickerUiSlot = 'root' | 'item' | 'itemIndicator' | 'swatch';
40
+ /**
41
+ * UI class overrides for the color swatch picker component.
42
+ */
16
43
  type ColorSwatchPickerUi = UiClass<ColorSwatchPickerUiSlot>;
17
44
  //#endregion
18
45
  export { ColorSwatchPickerItemEmits, ColorSwatchPickerItemIndicatorProps, ColorSwatchPickerItemProps, ColorSwatchPickerItemSwatchProps, ColorSwatchPickerRootEmits, ColorSwatchPickerRootProps, ColorSwatchPickerUi, ColorSwatchPickerUiSlot };
@@ -1 +1 @@
1
- import e from"../popper/popper-arrow.js";import"../popper/index.js";import{useComboboxContentContext as t,useComboboxRootContext as n,useComboboxUi as r}from"./context.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ComboboxArrow`,__name:`combobox-arrow`,setup(s){let p=r(`arrow`),{open:m}=n(`ComboboxArrow`),{position:h}=t(`ComboboxArrow`),g=i(()=>m.value&&h.value===`popper`);return(t,n)=>g.value?(l(),a(d(e),{key:0,class:c(d(p)),"data-slot":`arrow`},{default:f(()=>[u(t.$slots,`default`)]),_:3},8,[`class`])):o(`v-if`,!0)}});export{p as default};
1
+ import{useComboboxContentContext as e,useComboboxRootContext as t,useComboboxUi as n}from"./context.js";import r from"../popper/popper-arrow.js";import"../popper/index.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";const p=s({name:`ComboboxArrow`,__name:`combobox-arrow`,setup(s){let p=n(`arrow`),{open:m}=t(`ComboboxArrow`),{position:h}=e(`ComboboxArrow`),g=i(()=>m.value&&h.value===`popper`);return(e,t)=>g.value?(l(),a(d(r),{key:0,class:c(d(p)),"data-slot":`arrow`},{default:f(()=>[u(e.$slots,`default`)]),_:3},8,[`class`])):o(`v-if`,!0)}});export{p as default};
@@ -1,4 +1,4 @@
1
- import { ComboboxArrowProps } from "./types.js";
1
+ import { PopperArrowProps } from "../popper/types.js";
2
2
  import * as _$vue from "vue";
3
3
 
4
4
  //#region src/components/combobox/combobox-arrow.vue.d.ts
@@ -6,7 +6,7 @@ declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: _$vue.DefineComponent<ComboboxArrowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: _$vue.DefineComponent<PopperArrowProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../portal/portal.js";import r from"./combobox-root.js";import i from"./combobox-anchor.js";import a from"./combobox-cancel.js";import o from"./combobox-content.js";import s from"./combobox-empty.js";import c from"./combobox-group.js";import l from"./combobox-group-label.js";import u from"./combobox-input.js";import d from"./combobox-item.js";import f from"./combobox-item-indicator.js";import p from"./combobox-separator.js";import m from"./combobox-trigger.js";import h from"./combobox-viewport.js";import{getDisplayValue as g,getSelectedLabels as _,isGroupOption as v}from"./shared.js";import{Fragment as y,computed as b,createBlock as x,createCommentVNode as S,createElementBlock as C,createTextVNode as w,createVNode as T,defineComponent as E,guardReactiveProps as D,mergeProps as O,normalizeClass as k,normalizeProps as A,openBlock as j,renderList as M,renderSlot as N,toDisplayString as P,unref as F,withCtx as I}from"vue";const L=E({name:`ComboboxCompact`,__name:`combobox-compact`,props:{items:{},placeholder:{},searchPlaceholder:{},clearLabel:{default:`Clear input`},emptyLabel:{default:`No results found.`},anchorProps:{},triggerProps:{},cancelProps:{},portalProps:{},contentProps:{},viewportProps:{},inputProps:{},emptyProps:{},groupProps:{},groupLabelProps:{},itemProps:{},itemIndicatorProps:{},separatorProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},openOnFocus:{type:Boolean},openOnClick:{type:Boolean},ignoreFilter:{type:Boolean},resetModelValueOnClear:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},clearable:{type:Boolean,default:!0},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`placed`,`select`],setup(E,{emit:L}){let R=E,z=L,B=e(R,[`items`,`placeholder`,`searchPlaceholder`,`clearLabel`,`emptyLabel`,`anchorProps`,`triggerProps`,`cancelProps`,`portalProps`,`contentProps`,`viewportProps`,`inputProps`,`emptyProps`,`groupProps`,`groupLabelProps`,`itemProps`,`itemIndicatorProps`,`separatorProps`]),V=e=>R.multiple?``:g(e,R.items),H=b(()=>R.inputProps?.controlProps?.[`aria-label`]??R.searchPlaceholder??R.placeholder??`Search`),U=b(()=>({...R.inputProps,displayValue:R.inputProps?.displayValue??V,controlProps:{...R.inputProps?.controlProps,"aria-label":H.value},placeholder:R.searchPlaceholder??R.inputProps?.placeholder,autofocus:R.inputProps?.autofocus??!0})),W=b(()=>({...R.viewportProps,"aria-label":R.viewportProps?.[`aria-label`]??R.placeholder??`Options`})),G=b(()=>({...R.anchorProps,asChild:R.anchorProps?.asChild??!0})),K=(e,t)=>v(e)?`group-${e.label}-${t}`:e.value,q=e=>_(e,R.items),J=e=>{let t=q(e);return t.length?t.join(`, `):R.placeholder},Y=e=>({...R.triggerProps,"aria-label":R.triggerProps?.[`aria-label`]??J(e),"data-placeholder":q(e).length?void 0:``});return(e,g)=>(j(),x(r,O(F(B),{onHighlight:g[7]||(g[7]=e=>z(`highlight`,e)),"onUpdate:modelValue":g[8]||(g[8]=e=>z(`update:modelValue`,e)),"onUpdate:open":g[9]||(g[9]=e=>z(`update:open`,e))}),{default:I(({modelValue:r})=>[T(i,A(D(G.value)),{default:I(()=>[T(m,A(D(Y(r))),{default:I(({triggerIconClass:n})=>[N(e.$slots,`trigger-leading`),N(e.$slots,`trigger-value`,{modelValue:r,selectedLabels:q(r),slotText:J(r)},()=>[w(P(J(r)),1)]),N(e.$slots,`trigger-trailing`),N(e.$slots,`trigger-icon`,{},()=>[T(t,{icon:`lucide:chevrons-up-down`,class:k(n)},null,8,[`class`])])]),_:2},1040)]),_:2},1040),T(n,A(D(E.portalProps)),{default:I(()=>[T(o,O(E.contentProps,{onCloseAutoFocus:g[2]||(g[2]=e=>z(`closeAutoFocus`,e)),onEscapeKeyDown:g[3]||(g[3]=e=>z(`escapeKeyDown`,e)),onPointerDownOutside:g[4]||(g[4]=e=>z(`pointerDownOutside`,e)),onFocusOutside:g[5]||(g[5]=e=>z(`focusOutside`,e)),onInteractOutside:g[6]||(g[6]=e=>z(`interactOutside`,e))}),{default:I(()=>[T(u,A(D(U.value)),{leading:I(n=>[N(e.$slots,`input-leading`,A(D(n)),()=>[T(t,{icon:`lucide:search`})])]),trailing:I(n=>[E.clearable?(j(),x(a,O({key:0},E.cancelProps,{"aria-label":E.clearLabel}),{default:I(()=>[T(t,{icon:`lucide:x`})]),_:1},16,[`aria-label`])):S(`v-if`,!0),N(e.$slots,`input-trailing`,A(D(n)))]),_:3},16),T(s,A(D(E.emptyProps)),{default:I(()=>[N(e.$slots,`empty`,{},()=>[w(P(E.emptyLabel),1)])]),_:3},16),T(h,A(D(W.value)),{default:I(()=>[(j(!0),C(y,null,M(E.items,(n,r)=>(j(),C(y,{key:K(n,r)},[F(v)(n)?(j(),C(y,{key:0},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(c,O({ref_for:!0},E.groupProps),{default:I(()=>[T(l,O({ref_for:!0},E.groupLabelProps),{default:I(()=>[N(e.$slots,`group-label`,{item:n},()=>[w(P(n.label),1)])]),_:2},1040),(j(!0),C(y,null,M(n.items,n=>(j(),C(y,{key:n.value},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[0]||(g[0]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(f,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))),128))]),_:2},1040)],64)):(j(),C(y,{key:1},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[1]||(g[1]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(f,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))],64))),128))]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16))}});export{L as default};
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import t from"../_icon/icon.js";import n from"../popper/popper-anchor.js";import r from"../portal/portal.js";import i from"../listbox/listbox-group-label.js";import a from"../listbox/listbox-item-indicator.js";import o from"./combobox-cancel.js";import s from"./combobox-content.js";import c from"./combobox-empty.js";import l from"./combobox-group.js";import u from"./combobox-input.js";import d from"./combobox-item.js";import f from"./combobox-root.js";import p from"./combobox-separator.js";import m from"./combobox-trigger.js";import h from"./combobox-viewport.js";import{getDisplayValue as g,getSelectedLabels as _,isGroupOption as v}from"./shared.js";import{Fragment as y,computed as b,createBlock as x,createCommentVNode as S,createElementBlock as C,createTextVNode as w,createVNode as T,defineComponent as E,guardReactiveProps as D,mergeProps as O,normalizeClass as k,normalizeProps as A,openBlock as j,renderList as M,renderSlot as N,toDisplayString as P,unref as F,withCtx as I}from"vue";const L=E({name:`ComboboxCompact`,__name:`combobox-compact`,props:{items:{},placeholder:{},searchPlaceholder:{},clearLabel:{default:`Clear input`},emptyLabel:{default:`No results found.`},anchorProps:{},triggerProps:{},cancelProps:{},portalProps:{},contentProps:{},viewportProps:{},inputProps:{},emptyProps:{},groupProps:{},groupLabelProps:{},itemProps:{},itemIndicatorProps:{},separatorProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},openOnFocus:{type:Boolean},openOnClick:{type:Boolean},ignoreFilter:{type:Boolean},resetModelValueOnClear:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},modelValue:{},defaultValue:{},multiple:{},clearable:{type:Boolean,default:!0},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`highlight`,`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`placed`,`select`],setup(E,{emit:L}){let R=E,z=L,B=e(R,[`items`,`placeholder`,`searchPlaceholder`,`clearLabel`,`emptyLabel`,`anchorProps`,`triggerProps`,`cancelProps`,`portalProps`,`contentProps`,`viewportProps`,`inputProps`,`emptyProps`,`groupProps`,`groupLabelProps`,`itemProps`,`itemIndicatorProps`,`separatorProps`]),V=e=>R.multiple?``:g(e,R.items),H=b(()=>R.inputProps?.controlProps?.[`aria-label`]??R.searchPlaceholder??R.placeholder??`Search`),U=b(()=>({...R.inputProps,displayValue:R.inputProps?.displayValue??V,controlProps:{...R.inputProps?.controlProps,"aria-label":H.value},placeholder:R.searchPlaceholder??R.inputProps?.placeholder,autofocus:R.inputProps?.autofocus??!0})),W=b(()=>({...R.viewportProps,"aria-label":R.viewportProps?.[`aria-label`]??R.placeholder??`Options`})),G=b(()=>({...R.anchorProps,asChild:R.anchorProps?.asChild??!0})),K=(e,t)=>v(e)?`group-${e.label}-${t}`:e.value,q=e=>_(e,R.items),J=e=>{let t=q(e);return t.length?t.join(`, `):R.placeholder},Y=e=>({...R.triggerProps,"aria-label":R.triggerProps?.[`aria-label`]??J(e),"data-placeholder":q(e).length?void 0:``});return(e,g)=>(j(),x(f,O(F(B),{onHighlight:g[7]||(g[7]=e=>z(`highlight`,e)),"onUpdate:modelValue":g[8]||(g[8]=e=>z(`update:modelValue`,e)),"onUpdate:open":g[9]||(g[9]=e=>z(`update:open`,e))}),{default:I(({modelValue:f})=>[T(n,A(D(G.value)),{default:I(()=>[T(m,A(D(Y(f))),{default:I(({triggerIconClass:n})=>[N(e.$slots,`trigger-leading`),N(e.$slots,`trigger-value`,{modelValue:f,selectedLabels:q(f),slotText:J(f)},()=>[w(P(J(f)),1)]),N(e.$slots,`trigger-trailing`),N(e.$slots,`trigger-icon`,{},()=>[T(t,{icon:`lucide:chevrons-up-down`,class:k(n)},null,8,[`class`])])]),_:2},1040)]),_:2},1040),T(r,A(D(E.portalProps)),{default:I(()=>[T(s,O(E.contentProps,{onCloseAutoFocus:g[2]||(g[2]=e=>z(`closeAutoFocus`,e)),onEscapeKeyDown:g[3]||(g[3]=e=>z(`escapeKeyDown`,e)),onPointerDownOutside:g[4]||(g[4]=e=>z(`pointerDownOutside`,e)),onFocusOutside:g[5]||(g[5]=e=>z(`focusOutside`,e)),onInteractOutside:g[6]||(g[6]=e=>z(`interactOutside`,e))}),{default:I(()=>[T(u,A(D(U.value)),{leading:I(n=>[N(e.$slots,`input-leading`,A(D(n)),()=>[T(t,{icon:`lucide:search`})])]),trailing:I(n=>[E.clearable?(j(),x(o,O({key:0},E.cancelProps,{"aria-label":E.clearLabel}),{default:I(()=>[T(t,{icon:`lucide:x`})]),_:1},16,[`aria-label`])):S(`v-if`,!0),N(e.$slots,`input-trailing`,A(D(n)))]),_:3},16),T(c,A(D(E.emptyProps)),{default:I(()=>[N(e.$slots,`empty`,{},()=>[w(P(E.emptyLabel),1)])]),_:3},16),T(h,A(D(W.value)),{default:I(()=>[(j(!0),C(y,null,M(E.items,(n,r)=>(j(),C(y,{key:K(n,r)},[F(v)(n)?(j(),C(y,{key:0},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(l,O({ref_for:!0},E.groupProps),{default:I(()=>[T(i,O({ref_for:!0},E.groupLabelProps),{default:I(()=>[N(e.$slots,`group-label`,{item:n},()=>[w(P(n.label),1)])]),_:2},1040),(j(!0),C(y,null,M(n.items,n=>(j(),C(y,{key:n.value},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[0]||(g[0]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(a,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))),128))]),_:2},1040)],64)):(j(),C(y,{key:1},[n.separator?(j(),x(p,O({key:0,ref_for:!0},E.separatorProps),null,16)):S(`v-if`,!0),T(d,O({ref_for:!0},E.itemProps,{value:n.value,"text-value":n.textValue??n.label,disabled:n.disabled,onSelect:g[1]||(g[1]=e=>z(`select`,e))}),{default:I(()=>[N(e.$slots,`item-leading`,{item:n},()=>[n.icon?(j(),x(t,{key:0,icon:n.icon},null,8,[`icon`])):S(`v-if`,!0)]),N(e.$slots,`item-text`,{item:n},()=>[w(P(n.label),1)]),N(e.$slots,`item-trailing`,{item:n}),T(a,O({ref_for:!0},E.itemIndicatorProps),{default:I(()=>[N(e.$slots,`item-indicator`,{item:n},()=>[T(t,{icon:`lucide:check`})])]),_:2},1040)]),_:2},1040,[`value`,`text-value`,`disabled`])],64))],64))),128))]),_:3},16)]),_:3},16)]),_:3},16)]),_:3},16))}});export{L as default};
@@ -9,11 +9,11 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
9
9
  props: _$vue.PublicProps & __VLS_PrettifyLocal<ComboboxCompactProps<M> & {
10
10
  onSelect?: ((event: SelectEvent<string>) => any) | undefined;
11
11
  "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
12
+ onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
12
13
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
14
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
14
15
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
15
16
  onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
16
- onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
17
17
  onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
18
18
  onOpenAutoFocus?: ((event: Event) => any) | undefined;
19
19
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
@@ -24,7 +24,7 @@ declare const __VLS_export: <M extends boolean = false>(__VLS_props: NonNullable
24
24
  expose: (exposed: {}) => void;
25
25
  attrs: any;
26
26
  slots: ComboboxCompactSlots<M>;
27
- emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "placed") => void);
27
+ emit: ((evt: "select", event: SelectEvent<string>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: FocusOutsideEvent) => void) & ((evt: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "placed") => void);
28
28
  }>) => _$vue.VNode & {
29
29
  __ctx?: Awaited<typeof __VLS_setup>;
30
30
  };
@@ -1 +1 @@
1
- import{useBodyScrollLock as e}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as t}from"../../composables/use-dismissable-layer.js";import{useExposedElement as n}from"../../composables/use-exposed-element.js";import{useFocusGuards as r}from"../../composables/use-focus-guards.js";import{useFocusScope as i}from"../../composables/use-focus-scope.js";import{useHideOthers as a}from"../../composables/use-hide-others.js";import{useOmitProps as o}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import{popperCssVars as c}from"../popper/shared.js";import l from"../popper/popper-positioner.js";import u from"../popper/popper-popup.js";import"../popper/index.js";import{provideComboboxContentContext as d,useComboboxRootContext as f}from"./context.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,mergeProps as _,onMounted as v,onUnmounted as y,onWatcherCleanup as b,openBlock as x,ref as S,renderSlot as C,unref as w,useAttrs as T,watchEffect as E,withCtx as D}from"vue";const O=g({name:`ComboboxContentImpl`,inheritAttrs:!1,__name:`combobox-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean},hideWhenEmpty:{type:Boolean},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},forceMount:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`placed`],setup(g,{emit:O}){let k=g,A=O,j=T(),{contentId:M,open:N,ignoreFilter:P,allItems:F,filterState:I,inputElement:L,triggerElement:R,onOpenChange:z,onPopupElementChange:B}=f(`ComboboxContentImpl`),[V,H]=n(B),{pointerEvents:U}=t(V,{disableOutsidePointerEvents:()=>k.disableOutsidePointerEvents,onEscapeKeyDown:e=>{A(`escapeKeyDown`,e)},onPointerDownOutside:e=>{A(`pointerDownOutside`,e)},onFocusOutside:e=>{A(`focusOutside`,e)},onInteractOutside:e=>{A(`interactOutside`,e)},onDismiss:()=>{z(!1)}}),{onKeydown:W}=i(V,{trapped:()=>k.trapFocus,loop:!0,onOpenAutoFocus:e=>{A(`openAutoFocus`,e)},onCloseAutoFocus:e=>{A(`closeAutoFocus`,e)}}),G=p(()=>k.position),K=o(k,[`bodyLock`,`disableOutsidePointerEvents`,`forceMount`,`hideWhenEmpty`,`popupProps`,`position`,`trapFocus`]),q=p(()=>({...j,...k.popupProps})),J=p(()=>P.value?F.value.size===0:I.value.count===0),Y=p(()=>({pointerEvents:U.value,display:k.hideWhenEmpty&&J.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...G.value===`popper`?{"--soybean-combobox-content-transform-origin":`var(${c.transformOrigin})`,"--soybean-combobox-content-available-width":`var(${c.availableWidth})`,"--soybean-combobox-content-available-height":`var(${c.availableHeight})`,"--soybean-combobox-trigger-width":`var(${c.anchorWidth})`,"--soybean-combobox-trigger-height":`var(${c.anchorHeight})`,boxSizing:`border-box`}:{}}));d({position:G}),r(),a(V),E(()=>{k.bodyLock&&b(e())});let X=S(!1);return v(()=>{L.value&&V.value&&(X.value=V.value.contains(L.value),X.value&&L.value.focus())}),y(()=>{let e=document.activeElement;X.value&&(!e||e===document.body)&&R.value?.focus()}),(e,t)=>G.value===`popper`?(x(),m(w(l),_({key:0},w(K),{onPlaced:t[0]||(t[0]=e=>A(`placed`))}),{default:D(()=>[h(w(u),_({id:w(M),ref:w(H)},q.value,{"data-slot":`popup`,"data-dismissable-layer":``,"data-state":w(N)?`open`:`closed`,"data-empty":J.value?``:void 0,style:Y.value,onKeydown:w(W)}),{default:D(()=>[C(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`data-empty`,`style`,`onKeydown`])]),_:3},16)):(x(),m(w(s),_({key:1,id:w(M),ref:w(H)},q.value,{as:`div`,"data-slot":`popup`,"data-dismissable-layer":``,"data-state":w(N)?`open`:`closed`,"data-empty":J.value?``:void 0,style:Y.value,onKeydown:w(W)}),{default:D(()=>[C(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`data-empty`,`style`,`onKeydown`]))}});export{O as default};
1
+ import{useBodyScrollLock as e}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as t}from"../../composables/use-dismissable-layer.js";import{useExposedElement as n}from"../../composables/use-exposed-element.js";import{useFocusGuards as r}from"../../composables/use-focus-guards.js";import{useFocusScope as i}from"../../composables/use-focus-scope.js";import{useHideOthers as a}from"../../composables/use-hide-others.js";import{useOmitProps as o}from"../../composables/use-props.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import{provideComboboxContentContext as c,useComboboxRootContext as l}from"./context.js";import{popperCssVars as u}from"../popper/shared.js";import d from"../popper/popper-positioner.js";import f from"../popper/popper-popup.js";import"../popper/index.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,mergeProps as _,onMounted as v,onUnmounted as y,onWatcherCleanup as b,openBlock as x,ref as S,renderSlot as C,unref as w,useAttrs as T,watchEffect as E,withCtx as D}from"vue";const O=g({name:`ComboboxContentImpl`,inheritAttrs:!1,__name:`combobox-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean},hideWhenEmpty:{type:Boolean},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},forceMount:{type:Boolean}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`placed`],setup(g,{emit:O}){let k=g,A=O,j=T(),{contentId:M,open:N,ignoreFilter:P,allItems:F,filterState:I,parentElement:L,inputElement:R,triggerElement:z,onOpenChange:B,onPopupElementChange:V}=l(`ComboboxContentImpl`),[H,U]=n(V),{pointerEvents:W}=t(H,{disableOutsidePointerEvents:()=>k.disableOutsidePointerEvents,onEscapeKeyDown:e=>{A(`escapeKeyDown`,e)},onPointerDownOutside:e=>{L.value?.contains(e.target)&&e.preventDefault(),A(`pointerDownOutside`,e)},onFocusOutside:e=>{L.value?.contains(e.target)&&e.preventDefault(),A(`focusOutside`,e)},onInteractOutside:e=>{A(`interactOutside`,e)},onDismiss:()=>{B(!1)}}),{onKeydown:G}=i(H,{trapped:()=>k.trapFocus,loop:!0,onOpenAutoFocus:e=>{A(`openAutoFocus`,e),e.preventDefault()},onCloseAutoFocus:e=>{A(`closeAutoFocus`,e),e.preventDefault()}}),K=p(()=>k.position),q=o(k,[`bodyLock`,`disableOutsidePointerEvents`,`forceMount`,`hideWhenEmpty`,`popupProps`,`position`,`trapFocus`]),J=p(()=>({...j,...k.popupProps})),Y=p(()=>P.value?F.value.size===0:I.value.count===0),X=p(()=>({pointerEvents:W.value,display:k.hideWhenEmpty&&Y.value?`none`:`flex`,flexDirection:`column`,outline:`none`,...K.value===`popper`?{"--soybean-combobox-content-transform-origin":`var(${u.transformOrigin})`,"--soybean-combobox-content-available-width":`var(${u.availableWidth})`,"--soybean-combobox-content-available-height":`var(${u.availableHeight})`,"--soybean-combobox-trigger-width":`var(${u.anchorWidth})`,"--soybean-combobox-trigger-height":`var(${u.anchorHeight})`,boxSizing:`border-box`}:{}}));c({position:K}),r(),a(()=>[L.value,H.value],N),E(()=>{k.bodyLock&&b(e())});let Z=S(!1);return v(()=>{R.value&&H.value&&(Z.value=H.value.contains(R.value),Z.value&&R.value.focus())}),y(()=>{let e=document.activeElement;Z.value&&(!e||e===document.body)&&z.value?.focus()}),(e,t)=>K.value===`popper`?(x(),m(w(d),_({key:0},w(q),{onPlaced:t[0]||(t[0]=e=>A(`placed`))}),{default:D(()=>[h(w(f),_({id:w(M),ref:w(U)},J.value,{"data-slot":`popup`,"data-dismissable-layer":``,"data-state":w(N)?`open`:`closed`,"data-empty":Y.value?``:void 0,style:X.value,onKeydown:w(G)}),{default:D(()=>[C(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`data-empty`,`style`,`onKeydown`])]),_:3},16)):(x(),m(w(s),_({key:1,id:w(M),ref:w(U)},J.value,{as:`div`,"data-slot":`popup`,"data-dismissable-layer":``,"data-state":w(N)?`open`:`closed`,"data-empty":Y.value?``:void 0,style:X.value,onKeydown:w(G)}),{default:D(()=>[C(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`data-empty`,`style`,`onKeydown`]))}});export{O as default};
@@ -1,4 +1,4 @@
1
- import { ComboboxGroupProps } from "./types.js";
1
+ import { ListboxGroupProps } from "../listbox/types.js";
2
2
  import * as _$vue from "vue";
3
3
 
4
4
  //#region src/components/combobox/combobox-group.vue.d.ts
@@ -6,7 +6,7 @@ declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: _$vue.DefineComponent<ComboboxGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ComboboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: _$vue.DefineComponent<ListboxGroupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ListboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import r from"../listbox/listbox-filter.js";import"../listbox/index.js";import{useComboboxRootContext as i}from"./context.js";import{computed as a,createBlock as o,defineComponent as s,guardReactiveProps as c,isRef as l,mergeProps as u,nextTick as d,normalizeProps as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,watch as _,withCtx as v}from"vue";const y=s({name:`ComboboxInput`,__name:`combobox-input`,props:{displayValue:{type:Function},inputRef:{type:Function},controlProps:{},defaultValue:{},modelValue:{},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(s,{emit:y}){let b=s,x=y,{modelValue:S,open:C,openOnFocus:w,openOnClick:T,isUserInputted:E,isMultiple:D,resetSearchTermOnSelect:O,contentId:k,triggerElement:A,filterSearch:j,filterState:M,isVirtual:N,onInputElementChange:P,onOpenChange:F,onResetSearchTerm:I}=i(`ComboboxInput`),{highlightFirstItem:L}=n(`ComboboxInput`),R=t(b,[`displayValue`]),z=e(()=>b.modelValue,e=>{x(`update:modelValue`,e??``)},b.defaultValue??``),B=e=>{b.inputRef?.(e),P(e)},V=e=>{![`ArrowDown`,`ArrowUp`].includes(e.key)||C.value||F(!0)},H=e=>{let t=e.target;if(E.value=!0,!C.value){F(!0),d(()=>{t.value&&(j.value=t.value,L())});return}j.value=t.value},U=()=>{w.value&&!C.value&&F(!0)},W=e=>{if(!C.value)return;let t=e.relatedTarget;if(!t)return;let n=A.value?.contains(t),r=document.getElementById(k.value)?.contains(t);!n&&!r&&F(!1)},G=()=>{T.value&&!C.value&&F(!0)},K=()=>{let e=S.value;if(b.displayValue){z.value=b.displayValue(e);return}if(!D.value&&typeof e==`string`){z.value=e;return}z.value=``};I(()=>{K()});let q=a(()=>u({...b.controlProps},{"data-slot":`input-control`,role:`combobox`,"aria-autocomplete":`list`,autocomplete:`off`,"aria-controls":k.value||void 0,"aria-expanded":C.value??!1,onBlur:W,onClick:G,onFocus:U,onInput:H,onKeydown:V}));return _(S,()=>{!E.value&&O.value&&K()},{immediate:!0,deep:!0}),_(M,(e,t)=>{!N.value&&t?.count===0&&L()}),p(()=>{K()}),(e,t)=>(m(),o(g(r),u(g(R),{modelValue:g(z),"onUpdate:modelValue":t[0]||(t[0]=e=>l(z)?z.value=e:null),"data-slot":`input-root`,"control-props":q.value,"input-ref":B}),{leading:v(t=>[h(e.$slots,`leading`,f(c(t)))]),trailing:v(t=>[h(e.$slots,`trailing`,f(c(t)))]),_:3},16,[`modelValue`,`control-props`]))}});export{y as default};
1
+ import{useControllableState as e}from"../../composables/use-controllable-state.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxRootContext as n}from"../listbox/context.js";import{useComboboxRootContext as r}from"./context.js";import i from"../listbox/listbox-filter.js";import"../listbox/index.js";import{computed as a,createBlock as o,defineComponent as s,guardReactiveProps as c,isRef as l,mergeProps as u,nextTick as d,normalizeProps as f,onMounted as p,openBlock as m,renderSlot as h,unref as g,watch as _,withCtx as v}from"vue";const y=s({name:`ComboboxInput`,__name:`combobox-input`,props:{displayValue:{type:Function},inputRef:{type:Function},controlProps:{},defaultValue:{},modelValue:{},id:{},autofocus:{type:Boolean},disabled:{type:Boolean},maxlength:{},minlength:{},pattern:{},placeholder:{},readonly:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(s,{emit:y}){let b=s,x=y,{modelValue:S,open:C,openOnFocus:w,openOnClick:T,isUserInputted:E,isMultiple:D,resetSearchTermOnSelect:O,parentElement:k,contentId:A,filterSearch:j,filterState:M,isVirtual:N,onInputElementChange:P,onOpenChange:F,onResetSearchTerm:I}=r(`ComboboxInput`),{highlightFirstItem:L}=n(`ComboboxInput`),R=t(b,[`displayValue`]),z=e(()=>b.modelValue,e=>{x(`update:modelValue`,e??``)},b.defaultValue??``),B=e=>{b.inputRef?.(e),P(e)},V=e=>{![`ArrowDown`,`ArrowUp`].includes(e.key)||C.value||F(!0)},H=e=>{let t=e.target;if(E.value=!0,!C.value){F(!0),d(()=>{t.value&&(j.value=t.value,L())});return}j.value=t.value},U=()=>{w.value&&!C.value&&F(!0)},W=e=>{if(!C.value)return;let t=e.relatedTarget;if(!t)return;let n=k.value?.contains(t),r=document.getElementById(A.value)?.contains(t);!n&&!r&&F(!1)},G=()=>{T.value&&!C.value&&F(!0)},K=()=>{let e=S.value;if(b.displayValue){z.value=b.displayValue(e);return}if(!D.value&&typeof e==`string`){z.value=e;return}z.value=``};I(()=>{K()});let q=a(()=>u({...b.controlProps},{"data-slot":`input-control`,role:`combobox`,"aria-autocomplete":`list`,autocomplete:`off`,"aria-controls":A.value||void 0,"aria-expanded":C.value??!1,onBlur:W,onClick:G,onFocus:U,onInput:H,onKeydown:V}));return _(S,()=>{!E.value&&O.value&&K()},{immediate:!0,deep:!0}),_(M,(e,t)=>{!N.value&&t?.count===0&&L()}),p(()=>{K()}),(e,t)=>(m(),o(g(i),u(g(R),{modelValue:g(z),"onUpdate:modelValue":t[0]||(t[0]=e=>l(z)?z.value=e:null),"data-slot":`input-root`,"control-props":q.value,"input-ref":B}),{leading:v(t=>[h(e.$slots,`leading`,f(c(t)))]),trailing:v(t=>[h(e.$slots,`trailing`,f(c(t)))]),_:3},16,[`modelValue`,`control-props`]))}});export{y as default};
@@ -1 +1 @@
1
- import{useExposedElement as e}from"../../composables/use-exposed-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxGroupContext as n,useListboxRootContext as r}from"../listbox/context.js";import i from"../listbox/listbox-item.js";import"../listbox/index.js";import{useComboboxRootContext as a}from"./context.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,mergeProps as u,onMounted as d,onUnmounted as f,openBlock as p,renderSlot as m,unref as h,useId as g,withCtx as _}from"vue";const v=l({name:`ComboboxItem`,__name:`combobox-item`,props:{value:{},disabled:{type:Boolean},textValue:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(l,{emit:v}){let y=l,b=v,x=t(y,[`textValue`]),{isMultiple:S}=r(`ComboboxItem`),{disabled:C,isVirtual:w,ignoreFilter:T,filterSearch:E,filterState:D,allItems:O,allGroups:k,inputElement:A,resetSearchTermOnSelect:j,onOpenChange:M}=a(`ComboboxItem`),N=n(),P=`soybean-combobox-item-${g()}`,[F,I]=e();if(y.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string.`);let L=o(()=>y.textValue??F.value?.textContent?.trim()??y.value),R=o(()=>C.value??y.disabled),z=o(()=>{if(w.value||T.value||!E.value)return!0;let e=D.value.items.get(P);return e===void 0?!0:e>0}),B=()=>{let e=N?.id;if(!e)return;let t=k.value.get(e);if(!t)return;let n=new Set(t);n.delete(P);let r=new Map(k.value);n.size?r.set(e,n):r.delete(e),k.value=r},V=e=>{if(b(`select`,e),!e.defaultPrevented){if(j.value&&(E.value=``),S.value){A.value?.focus();return}M(!1)}};return d(()=>{let e=new Map(O.value);e.set(P,L.value),O.value=e;let t=N?.id;if(t){let e=k.value.get(t)??new Set,n=new Set(e),r=new Map(k.value);n.add(P),r.set(t,n),k.value=r}}),f(()=>{let e=new Map(O.value);e.delete(P),O.value=e,B()}),(e,t)=>z.value?(p(),s(h(i),u({key:0},h(x),{ref:h(I),value:l.value,disabled:R.value,"data-slot":`item`,onSelect:V}),{default:_(()=>[m(e.$slots,`default`)]),_:3},16,[`value`,`disabled`])):c(`v-if`,!0)}});export{v as default};
1
+ import{useExposedElement as e}from"../../composables/use-exposed-element.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useListboxGroupContext as n,useListboxRootContext as r}from"../listbox/context.js";import{useComboboxRootContext as i}from"./context.js";import a from"../listbox/listbox-item.js";import"../listbox/index.js";import{computed as o,createBlock as s,createCommentVNode as c,defineComponent as l,mergeProps as u,onMounted as d,onUnmounted as f,openBlock as p,renderSlot as m,unref as h,useId as g,withCtx as _}from"vue";const v=l({name:`ComboboxItem`,__name:`combobox-item`,props:{textValue:{},value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`select`],setup(l,{emit:v}){let y=l,b=v,x=t(y,[`textValue`]),{isMultiple:S}=r(`ComboboxItem`),{disabled:C,isVirtual:w,ignoreFilter:T,filterSearch:E,filterState:D,allItems:O,allGroups:k,inputElement:A,resetSearchTermOnSelect:j,onOpenChange:M}=i(`ComboboxItem`),N=n(),P=`soybean-combobox-item-${g()}`,[F,I]=e();if(y.value===``)throw Error(`A <ComboboxItem /> must have a value prop that is not an empty string.`);let L=o(()=>y.textValue??F.value?.textContent?.trim()??y.value),R=o(()=>C.value??y.disabled),z=o(()=>{if(w.value||T.value||!E.value)return!0;let e=D.value.items.get(P);return e===void 0?!0:e>0}),B=()=>{let e=N?.id;if(!e)return;let t=k.value.get(e);if(!t)return;let n=new Set(t);n.delete(P);let r=new Map(k.value);n.size?r.set(e,n):r.delete(e),k.value=r},V=e=>{if(b(`select`,e),!e.defaultPrevented){if(j.value&&(E.value=``),S.value){A.value?.focus();return}M(!1)}};return d(()=>{let e=new Map(O.value);e.set(P,L.value),O.value=e;let t=N?.id;if(t){let e=k.value.get(t)??new Set,n=new Set(e),r=new Map(k.value);n.add(P),r.set(t,n),k.value=r}}),f(()=>{let e=new Map(O.value);e.delete(P),O.value=e,B()}),(e,t)=>z.value?(p(),s(h(a),u({key:0},h(x),{ref:h(I),value:l.value,disabled:R.value,"data-slot":`item`,onSelect:V}),{default:_(()=>[m(e.$slots,`default`)]),_:3},16,[`value`,`disabled`])):c(`v-if`,!0)}});export{v as default};