@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
@@ -0,0 +1,27 @@
1
+ import { AsTag } from "../primitive/types.js";
2
+ import { TimeValue } from "../../date/comparators.js";
3
+ import { TimePickerPopupProps } from "./types.js";
4
+ import * as _$vue from "vue";
5
+
6
+ //#region src/components/time-picker/time-picker-popup.vue.d.ts
7
+ type __VLS_Slots = {
8
+ time?: (props: {
9
+ disabled: boolean;
10
+ focused: boolean;
11
+ label: string;
12
+ selected: boolean;
13
+ time: TimeValue;
14
+ }) => any;
15
+ };
16
+ declare const __VLS_base: _$vue.DefineComponent<TimePickerPopupProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimePickerPopupProps> & Readonly<{}>, {
17
+ as: AsTag | _$vue.Component;
18
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ type __VLS_WithSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
26
+ //#endregion
27
+ export { _default };
@@ -0,0 +1 @@
1
+ import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n}from"../../date/comparators.js";import{normalizeHourCycle as r}from"../../date/utils.js";import{useDateFormatter as i}from"../../date/formatter.js";import"../../date/index.js";import{createTimeOptions as a,formatTimeValue as o}from"../../shared/time-picker.js";import"../../shared/index.js";import{useControllableState as s}from"../../composables/use-controllable-state.js";import"../../composables/index.js";import{useDirection as c,useLocale as l}from"../config-provider/context.js";import{Primitive as u}from"../primitive/primitive.js";import"../primitive/index.js";import{provideTimePickerRootContext as d,useTimePickerUi as f}from"./context.js";import{computed as p,createBlock as m,defineComponent as h,normalizeClass as g,openBlock as _,renderSlot as v,unref as y,useId as b,watch as x,withCtx as S}from"vue";const C=h({name:`TimePickerRoot`,__name:`time-picker-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},hourCycle:{default:void 0},step:{default:void 0},granularity:{default:void 0},hideTimeZone:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isTimeUnavailable:{type:Function,default:void 0},id:{},dir:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},modal:{type:Boolean,default:!1},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:open`],setup(h,{emit:C}){let w=h,T=C,E=f(`root`),D=b(),O=l(()=>w.locale),k=c(()=>w.dir),A=i(O.value,{hourCycle:r(w.hourCycle)}),j=p(()=>w.granularity??`minute`),M=p(()=>w.hideTimeZone),N=s(()=>w.modelValue,e=>T(`update:modelValue`,e),w.defaultValue),P=t({defaultPlaceholder:w.placeholder,defaultValue:N.value}),F=s(()=>w.placeholder,e=>T(`update:placeholder`,e),w.defaultPlaceholder??P.copy()),I=s(()=>w.open,e=>T(`update:open`,e??!1),w.defaultOpen),L=p({get:()=>F.value,set:e=>{F.value=e.copy()}}),R=p(()=>w.minValue),z=p(()=>w.maxValue),B=e=>!!(w.disabled||w.isTimeUnavailable?.(e)||R.value&&n(e,R.value)||z.value&&n(z.value,e)),V=e=>N.value?N.value.toString()===e.toString():!1,H=p(()=>N.value?B(N.value):!1),U=p(()=>N.value?o({formatter:A,granularity:j.value,hideTimeZone:M.value,hourCycle:w.hourCycle,value:N.value}):``),W=p(()=>a({formatter:A,granularity:j.value,hideTimeZone:M.value,hourCycle:w.hourCycle,isTimeUnavailable:w.isTimeUnavailable,maxValue:z.value,minValue:R.value,reference:N.value??F.value,step:w.step})),G=e=>{F.value=e.copy()};return x(O,e=>{A.getLocale()!==e&&A.setLocale(e)}),x(N,t=>{if(e(t)){L.value=F.value.copy();return}F.value.toString()!==t.toString()&&(F.value=t.copy()),L.value=t.copy()}),d({locale:O,dir:k,modelValue:N,placeholder:F,isTimeUnavailable:w.isTimeUnavailable,isInvalid:H,formatter:A,granularity:j,hourCycle:w.hourCycle,hideTimeZone:M,open:I,popupId:D,displayValue:U,focusedTime:L,options:W,minValue:R,maxValue:z,onTimeChange:e=>{w.readonly||B(e)||(N.value=e.copy(),G(e),I.value=!1)},onPlaceholderChange:G,isTimeDisabled:B,isTimeSelected:V,setOpen(e){I.value=e},setFocusedTime:e=>{L.value=e.copy()},disabled:p(()=>w.disabled),readonly:p(()=>w.readonly)}),(e,t)=>(_(),m(y(u),{as:h.as,"as-child":h.asChild,class:g(y(E)),"data-disabled":h.disabled?``:void 0,"data-invalid":H.value?``:void 0,"data-readonly":h.readonly?``:void 0,dir:y(k),"data-slot":`root`},{default:S(()=>[v(e.$slots,`default`,{displayValue:U.value,modelValue:y(N),open:!!y(I)})]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{C as default};
@@ -0,0 +1,45 @@
1
+ import { TimeValue } from "../../date/comparators.js";
2
+ import { DateStep, TimeGranularity, TimeMatcher } from "../../date/types.js";
3
+ import { TimePickerRootProps } from "./types.js";
4
+ import * as _$vue from "vue";
5
+
6
+ //#region src/components/time-picker/time-picker-root.vue.d.ts
7
+ type __VLS_Slots = {
8
+ default?: (props: {
9
+ displayValue: string;
10
+ modelValue: TimeValue | undefined;
11
+ open: boolean;
12
+ }) => any;
13
+ };
14
+ declare const __VLS_base: _$vue.DefineComponent<TimePickerRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
15
+ "update:modelValue": (time: TimeValue | undefined) => any;
16
+ "update:open": (open: boolean) => any;
17
+ "update:placeholder": (time: TimeValue) => any;
18
+ }, string, _$vue.PublicProps, Readonly<TimePickerRootProps> & Readonly<{
19
+ "onUpdate:modelValue"?: ((time: TimeValue | undefined) => any) | undefined;
20
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
21
+ "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
22
+ }>, {
23
+ placeholder: TimeValue;
24
+ disabled: boolean;
25
+ step: DateStep;
26
+ defaultValue: TimeValue;
27
+ open: boolean;
28
+ defaultOpen: boolean;
29
+ readonly: boolean;
30
+ defaultPlaceholder: TimeValue;
31
+ modal: boolean;
32
+ hourCycle: 12 | 24;
33
+ granularity: TimeGranularity;
34
+ hideTimeZone: boolean;
35
+ isTimeUnavailable: TimeMatcher;
36
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
37
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
38
+ declare const _default: typeof __VLS_export;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+ //#endregion
45
+ export { _default };
@@ -0,0 +1 @@
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimePickerRootContext as t,useTimePickerUi as n}from"./context.js";import{createBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c,withCtx as l}from"vue";const u=i({name:`TimePickerTrigger`,__name:`time-picker-trigger`,props:{asChild:{type:Boolean},as:{default:`button`}},setup(i){let u=n(`trigger`),{disabled:d,readonly:f,open:p,setOpen:m,popupId:h}=t(`TimePickerTrigger`),g=()=>{d.value||f.value||m(!p.value)};return(t,n)=>(o(),r(c(e),{as:i.as,"as-child":i.asChild,"aria-controls":c(h),"aria-disabled":c(d)?!0:void 0,"aria-expanded":!!c(p),class:a(c(u)),"data-disabled":c(d)?``:void 0,"data-state":c(p)?`open`:`closed`,"data-slot":`trigger`,type:`button`,onClick:g},{default:l(()=>[s(t.$slots,`default`)]),_:3},8,[`as`,`as-child`,`aria-controls`,`aria-disabled`,`aria-expanded`,`class`,`data-disabled`,`data-state`]))}});export{u as default};
@@ -0,0 +1,21 @@
1
+ import { AsTag } from "../primitive/types.js";
2
+ import { TimePickerTriggerProps } from "./types.js";
3
+ import * as _$vue from "vue";
4
+
5
+ //#region src/components/time-picker/time-picker-trigger.vue.d.ts
6
+ declare var __VLS_10: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_10) => any;
9
+ };
10
+ declare const __VLS_base: _$vue.DefineComponent<TimePickerTriggerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimePickerTriggerProps> & Readonly<{}>, {
11
+ as: AsTag | _$vue.Component;
12
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
+ declare const _default: typeof __VLS_export;
15
+ type __VLS_WithSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
20
+ //#endregion
21
+ export { _default };
@@ -0,0 +1,224 @@
1
+ import { Direction, UiClass } from "../../types/common.js";
2
+ import { FormFieldCommonProps } from "../../types/component.js";
3
+ import { PropsToContext } from "../../types/vue.js";
4
+ import { PrimitiveProps } from "../primitive/types.js";
5
+ import { TimeValue } from "../../date/comparators.js";
6
+ import { DateStep, HourCycle, TimeGranularity, TimeMatcher } from "../../date/types.js";
7
+ import { Formatter } from "../../date/formatter.js";
8
+ import { TimePickerOption } from "../../shared/time-picker.js";
9
+ import { ComputedRef, HTMLAttributes, ShallowRef } from "vue";
10
+
11
+ //#region src/components/time-picker/types.d.ts
12
+ /**
13
+ * Props for the time picker root component.
14
+ */
15
+ interface TimePickerRootProps extends PrimitiveProps, FormFieldCommonProps, /** @vue-ignore */Omit<HTMLAttributes, 'placeholder'> {
16
+ /**
17
+ * Default value.
18
+ */
19
+ defaultValue?: TimeValue;
20
+ /**
21
+ * Default placeholder.
22
+ */
23
+ defaultPlaceholder?: TimeValue;
24
+ /**
25
+ * Placeholder.
26
+ */
27
+ placeholder?: TimeValue;
28
+ /**
29
+ * Current model value.
30
+ */
31
+ modelValue?: TimeValue;
32
+ /**
33
+ * Hour cycle.
34
+ */
35
+ hourCycle?: HourCycle;
36
+ /**
37
+ * Step.
38
+ */
39
+ step?: DateStep;
40
+ /**
41
+ * Granularity.
42
+ */
43
+ granularity?: TimeGranularity;
44
+ /**
45
+ * Whether hide time zone.
46
+ */
47
+ hideTimeZone?: boolean;
48
+ /**
49
+ * Max value.
50
+ */
51
+ maxValue?: TimeValue;
52
+ /**
53
+ * Min value.
54
+ */
55
+ minValue?: TimeValue;
56
+ /**
57
+ * Locale.
58
+ */
59
+ locale?: string;
60
+ /**
61
+ * Whether the component is disabled.
62
+ */
63
+ disabled?: boolean;
64
+ /**
65
+ * Whether the component is readonly.
66
+ */
67
+ readonly?: boolean;
68
+ /**
69
+ * Whether the time is unavailable.
70
+ */
71
+ isTimeUnavailable?: TimeMatcher;
72
+ /**
73
+ * Id.
74
+ */
75
+ id?: string;
76
+ /**
77
+ * Reading direction of the component.
78
+ */
79
+ dir?: Direction;
80
+ /**
81
+ * Whether the component is open by default.
82
+ */
83
+ defaultOpen?: boolean;
84
+ /**
85
+ * Whether the component is open.
86
+ */
87
+ open?: boolean;
88
+ /**
89
+ * Whether the popup is modal.
90
+ */
91
+ modal?: boolean;
92
+ }
93
+ /**
94
+ * Emits for the time picker root component.
95
+ */
96
+ type TimePickerRootEmits = {
97
+ /**
98
+ * Emitted when the model value changes.
99
+ */
100
+ 'update:modelValue': [time: TimeValue | undefined];
101
+ /**
102
+ * Emitted when the placeholder value changes.
103
+ */
104
+ 'update:placeholder': [time: TimeValue];
105
+ /**
106
+ * Emitted when the open state changes.
107
+ */
108
+ 'update:open': [open: boolean];
109
+ };
110
+ /**
111
+ * Props for the time picker trigger component.
112
+ */
113
+ interface TimePickerTriggerProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
114
+ /**
115
+ * Props for the time picker popup component.
116
+ */
117
+ interface TimePickerPopupProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {}
118
+ /**
119
+ * Context for the time picker root component.
120
+ */
121
+ interface TimePickerRootContext extends PropsToContext<TimePickerRootProps, 'disabled' | 'readonly'> {
122
+ /**
123
+ * Locale used by the component context.
124
+ */
125
+ locale: ComputedRef<string>;
126
+ /**
127
+ * Reading direction of the component.
128
+ */
129
+ dir: ComputedRef<Direction>;
130
+ /**
131
+ * Current model value.
132
+ */
133
+ modelValue: ShallowRef<TimeValue | undefined>;
134
+ /**
135
+ * Placeholder used by the component context.
136
+ */
137
+ placeholder: ShallowRef<TimeValue>;
138
+ /**
139
+ * Whether the time is unavailable.
140
+ */
141
+ isTimeUnavailable?: TimeMatcher;
142
+ /**
143
+ * Whether the current value is invalid.
144
+ */
145
+ isInvalid: ComputedRef<boolean>;
146
+ /**
147
+ * Formatter used by the component context.
148
+ */
149
+ formatter: Formatter;
150
+ /**
151
+ * Granularity used by the component context.
152
+ */
153
+ granularity: ComputedRef<TimeGranularity>;
154
+ /**
155
+ * Hour cycle used by the component context.
156
+ */
157
+ hourCycle: HourCycle;
158
+ /**
159
+ * Whether hide time zone.
160
+ */
161
+ hideTimeZone: ComputedRef<boolean>;
162
+ /**
163
+ * Whether the component is open.
164
+ */
165
+ open: ShallowRef<boolean | undefined>;
166
+ /**
167
+ * Popup id used by the component context.
168
+ */
169
+ popupId: string;
170
+ /**
171
+ * Display value used by the component context.
172
+ */
173
+ displayValue: ComputedRef<string>;
174
+ /**
175
+ * Focused time used by the component context.
176
+ */
177
+ focusedTime: ShallowRef<TimeValue>;
178
+ /**
179
+ * Options used by the component context.
180
+ */
181
+ options: ComputedRef<TimePickerOption[]>;
182
+ /**
183
+ * Min value used by the component context.
184
+ */
185
+ minValue: ComputedRef<TimeValue | undefined>;
186
+ /**
187
+ * Max value used by the component context.
188
+ */
189
+ maxValue: ComputedRef<TimeValue | undefined>;
190
+ /**
191
+ * Callback invoked when the time changes.
192
+ */
193
+ onTimeChange: (time: TimeValue) => void;
194
+ /**
195
+ * Callback invoked when the placeholder changes.
196
+ */
197
+ onPlaceholderChange: (time: TimeValue) => void;
198
+ /**
199
+ * Whether the time is disabled.
200
+ */
201
+ isTimeDisabled: (time: TimeValue) => boolean;
202
+ /**
203
+ * Whether the time is selected.
204
+ */
205
+ isTimeSelected: (time: TimeValue) => boolean;
206
+ /**
207
+ * Set open used by the component context.
208
+ */
209
+ setOpen: (value: boolean) => void;
210
+ /**
211
+ * Set focused time used by the component context.
212
+ */
213
+ setFocusedTime: (time: TimeValue) => void;
214
+ }
215
+ /**
216
+ * Available UI slots for the time picker component.
217
+ */
218
+ type TimePickerUiSlot = 'root' | 'trigger' | 'popup' | 'list' | 'cellTrigger';
219
+ /**
220
+ * UI class overrides for the time picker component.
221
+ */
222
+ type TimePickerUi = UiClass<TimePickerUiSlot>;
223
+ //#endregion
224
+ export { TimePickerPopupProps, TimePickerRootContext, TimePickerRootEmits, TimePickerRootProps, TimePickerTriggerProps, TimePickerUi, TimePickerUiSlot };
@@ -0,0 +1,9 @@
1
+ import { UiClass } from "../../types/common.js";
2
+ import { UseUiConsumer } from "../../composables/use-ui-context.js";
3
+ import { TimeRangeFieldUiSlot } from "./types.js";
4
+ import * as _$vue from "vue";
5
+
6
+ //#region src/components/time-range-field/context.d.ts
7
+ declare const provideTimeRangeFieldUi: (ui: _$vue.ComputedRef<Partial<UiClass<TimeRangeFieldUiSlot>>>) => _$vue.ComputedRef<Partial<UiClass<TimeRangeFieldUiSlot>>>, useTimeRangeFieldUi: UseUiConsumer<TimeRangeFieldUiSlot>;
8
+ //#endregion
9
+ export { provideTimeRangeFieldUi };
@@ -0,0 +1 @@
1
+ import{useContext as e}from"../../composables/use-context.js";import{useUiContext as t}from"../../composables/use-ui-context.js";import"../../composables/index.js";const[n,r]=e(`TimeRangeFieldRoot`),[i,a]=t(`TimeRangeFieldUi`);export{n as provideTimeRangeFieldRootContext,i as provideTimeRangeFieldUi,r as useTimeRangeFieldRootContext,a as useTimeRangeFieldUi};
@@ -0,0 +1,6 @@
1
+ import { TimeRangeFieldCompactEmits, TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots, TimeRangeFieldInputProps, TimeRangeFieldRootContext, TimeRangeFieldRootEmits, TimeRangeFieldRootProps, TimeRangeFieldSegment, TimeRangeFieldUi, TimeRangeFieldUiSlot } from "./types.js";
2
+ import { _default } from "./time-range-field-compact.vue.js";
3
+ import { _default as _default$2 } from "./time-range-field-root.vue.js";
4
+ import { _default as _default$1 } from "./time-range-field-input.vue.js";
5
+ import { provideTimeRangeFieldUi } from "./context.js";
6
+ export { _default as TimeRangeFieldCompact, type TimeRangeFieldCompactEmits, type TimeRangeFieldCompactProps, type TimeRangeFieldCompactSlots, _default$1 as TimeRangeFieldInput, type TimeRangeFieldInputProps, _default$2 as TimeRangeFieldRoot, type TimeRangeFieldRootContext, type TimeRangeFieldRootEmits, type TimeRangeFieldRootProps, type TimeRangeFieldSegment, type TimeRangeFieldUi, type TimeRangeFieldUiSlot, provideTimeRangeFieldUi };
@@ -0,0 +1 @@
1
+ import{provideTimeRangeFieldUi as e}from"./context.js";import t from"./time-range-field-root.js";import n from"./time-range-field-input.js";import r from"./time-range-field-compact.js";export{r as TimeRangeFieldCompact,n as TimeRangeFieldInput,t as TimeRangeFieldRoot,e as provideTimeRangeFieldUi};
@@ -0,0 +1 @@
1
+ import{useForwardListeners as e}from"../../composables/use-forward-listeners.js";import{useOmitProps as t}from"../../composables/use-props.js";import"../../composables/index.js";import{useTimeRangeFieldUi as n}from"./context.js";import r from"./time-range-field-root.js";import i from"./time-range-field-input.js";import{Fragment as a,createBlock as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,toDisplayString as _,toHandlers as v,unref as y,withCtx as b}from"vue";const x={"data-time-range-field-part":`start`},S={"data-time-range-field-part":`end`},C=u({name:`TimeRangeFieldCompact`,__name:`time-range-field-compact`,props:{inputProps:{},separator:{default:`–`},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},hourCycle:{},step:{},granularity:{},hideTimeZone:{type:Boolean},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean},readonly:{type:Boolean},isTimeUnavailable:{},id:{},dir:{},startName:{},endName:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`],setup(u,{emit:C}){let w=u,T=C,E=t(w,[`inputProps`,`separator`]),D=e(T),O=n();return(e,t)=>(m(),o(r,d(y(E),v(y(D))),{default:b(t=>[e.$slots.default?g(e.$slots,`default`,p(d({key:0},t))):(m(),s(a,{key:1},[c(`div`,x,[(m(!0),s(a,null,h(t.startSegments,(e,t)=>(m(),o(i,d({key:`start-${e.part}-${t}`,part:e.part,type:`start`},{ref_for:!0},u.inputProps),{default:b(()=>[l(_(e.value),1)]),_:2},1040,[`part`]))),128))]),c(`div`,{class:f(y(O).separator)},[g(e.$slots,`separator`,{},()=>[l(_(u.separator),1)])],2),c(`div`,S,[(m(!0),s(a,null,h(t.endSegments,(e,t)=>(m(),o(i,d({key:`end-${e.part}-${t}`,part:e.part,type:`end`},{ref_for:!0},u.inputProps),{default:b(()=>[l(_(e.value),1)]),_:2},1040,[`part`]))),128))])],64))]),_:3},16))}});export{C as default};
@@ -0,0 +1,29 @@
1
+ import { TimeValue } from "../../date/comparators.js";
2
+ import { TimeRange } from "../../date/types.js";
3
+ import { TimeRangeFieldCompactProps, TimeRangeFieldCompactSlots } from "./types.js";
4
+ import * as _$vue from "vue";
5
+
6
+ //#region src/components/time-range-field/time-range-field-compact.vue.d.ts
7
+ type __VLS_Slots = TimeRangeFieldCompactSlots;
8
+ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
9
+ "update:modelValue": (range: TimeRange) => any;
10
+ "update:placeholder": (time: TimeValue) => any;
11
+ "update:startValue": (time: TimeValue | undefined) => any;
12
+ "update:endValue": (time: TimeValue | undefined) => any;
13
+ }, string, _$vue.PublicProps, Readonly<TimeRangeFieldCompactProps> & Readonly<{
14
+ "onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
15
+ "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
16
+ "onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
17
+ "onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
18
+ }>, {
19
+ separator: string;
20
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
+ declare const _default: typeof __VLS_export;
23
+ type __VLS_WithSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ //#endregion
29
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useDateField as e}from"../../date/use-date-field.js";import"../../date/index.js";import{Primitive as t}from"../primitive/primitive.js";import"../primitive/index.js";import{useTimeRangeFieldRootContext as n,useTimeRangeFieldUi as r}from"./context.js";import{computed as i,createBlock as a,defineComponent as o,mergeProps as s,openBlock as c,ref as l,renderSlot as u,toHandlers as d,unref as f,withCtx as p}from"vue";const m=o({name:`TimeRangeFieldInput`,__name:`time-range-field-input`,props:{part:{},type:{default:`start`},asChild:{type:Boolean},as:{default:`span`}},setup(o){let m=o,h=r(`input`),{disabled:g,readonly:_,placeholder:v,hourCycle:y,step:b,startSegmentValues:x,endSegmentValues:S,formatter:C,focusNext:w,modelValue:T,isInvalid:E,setFocusedElement:D}=n(`TimeRangeFieldInput`),O=l(!0),k=l(!1),A=i(()=>!!g.value),j=i(()=>!!_.value),{attributes:M,handleSegmentClick:N,handleSegmentFocusOut:P,handleSegmentKeydown:F}=e({hasLeftFocus:O,lastKeyZero:k,placeholder:v,hourCycle:y,step:b,segmentValues:i(()=>m.type===`start`?x.value:S.value),formatter:C,part:m.part,disabled:A,readonly:j,focusNext:()=>w(m.type),modelValue:i({get:()=>m.type===`start`?T.value.start:T.value.end,set:e=>{m.type===`start`?T.value={...T.value,start:e}:T.value={...T.value,end:e}}})}),I=i(()=>A.value||j.value?!1:m.part!==`literal`&&m.part!==`timeZoneName`),L=i(()=>m.part===`literal`?{}:{mousedown:N,keydown:F,focusout:()=>{O.value=!0,P()},focusin:e=>{D(e.target,m.type)}});return(e,n)=>(c(),a(f(t),s({as:o.as,"as-child":o.asChild},f(M),{"aria-disabled":A.value?!0:void 0,"aria-invalid":f(E)?!0:void 0,"aria-readonly":j.value||o.part===`timeZoneName`?!0:void 0,class:f(h),contenteditable:I.value,"data-disabled":A.value?``:void 0,"data-invalid":f(E)?``:void 0,"data-readonly":j.value||o.part===`timeZoneName`?``:void 0,"data-segment":o.part,"data-soybean-date-field-segment":o.part,"data-slot":`input`},d(L.value)),{default:p(()=>[u(e.$slots,`default`)]),_:3},16,[`as`,`as-child`,`aria-disabled`,`aria-invalid`,`aria-readonly`,`class`,`contenteditable`,`data-disabled`,`data-invalid`,`data-readonly`,`data-segment`,`data-soybean-date-field-segment`]))}});export{m as default};
@@ -0,0 +1,22 @@
1
+ import { AsTag } from "../primitive/types.js";
2
+ import { TimeRangeFieldInputProps } from "./types.js";
3
+ import * as _$vue from "vue";
4
+
5
+ //#region src/components/time-range-field/time-range-field-input.vue.d.ts
6
+ declare var __VLS_8: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_8) => any;
9
+ };
10
+ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldInputProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimeRangeFieldInputProps> & Readonly<{}>, {
11
+ type: "start" | "end";
12
+ as: AsTag | _$vue.Component;
13
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
14
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
+ declare const _default: typeof __VLS_export;
16
+ type __VLS_WithSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ //#endregion
22
+ export { _default };
@@ -0,0 +1 @@
1
+ import{isNullish as e}from"../../shared/guard.js";import{getDefaultTime as t,isBefore as n,isEqualValue as r}from"../../date/comparators.js";import{getTimeInputType as i,normalizeDateStep as a,normalizeHourCycle as ee,normalizeTimeInputValue as o}from"../../date/utils.js";import{useDateFormatter as s}from"../../date/formatter.js";import{createContent as c,syncTimeSegmentValues as l}from"../../date/parser.js";import{getSegmentElements as u}from"../../date/segment.js";import"../../date/index.js";import"../../shared/index.js";import{useControllableState as d}from"../../composables/use-controllable-state.js";import{useForwardElement as te}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{useDirection as f,useLocale as p}from"../config-provider/context.js";import{Primitive as ne}from"../primitive/primitive.js";import"../primitive/index.js";import m from"../visually-hidden/visually-hidden.js";import"../visually-hidden/index.js";import{provideTimeRangeFieldRootContext as re,useTimeRangeFieldUi as ie}from"./context.js";import{computed as h,createBlock as g,createVNode as _,defineComponent as v,nextTick as y,normalizeClass as b,onMounted as ae,openBlock as x,renderSlot as oe,shallowRef as S,unref as C,watch as w,withCtx as T}from"vue";const E=v({name:`TimeRangeFieldRoot`,__name:`time-range-field-root`,props:{defaultValue:{default:void 0},defaultPlaceholder:{default:void 0},placeholder:{default:void 0},modelValue:{},hourCycle:{default:void 0},step:{default:void 0},granularity:{default:void 0},hideTimeZone:{type:Boolean,default:!1},maxValue:{},minValue:{},locale:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},isTimeUnavailable:{type:Function,default:void 0},id:{},dir:{},startName:{default:void 0},endName:{default:void 0},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:[`update:modelValue`,`update:placeholder`,`update:startValue`,`update:endValue`],setup(v,{emit:E}){let D=v,O=E,k=ie(`root`),[A,j]=te(),M=p(()=>D.locale),N=f(()=>D.dir),P=s(M.value,{hourCycle:ee(D.hourCycle)}),F=d(()=>D.modelValue,e=>{O(`update:modelValue`,e),O(`update:startValue`,e.start),O(`update:endValue`,e.end)},D.defaultValue??{}),se=t({defaultPlaceholder:D.placeholder,defaultValue:F.value.start}),I=d(()=>D.placeholder,e=>O(`update:placeholder`,e),D.defaultPlaceholder??se.copy()),ce=h(()=>a(D)),L=h(()=>D.granularity??`minute`),R=h(()=>{let{start:e,end:t}=F.value;return!!(e&&t&&n(t,e)||e&&(D.isTimeUnavailable?.(e)||D.minValue&&n(e,D.minValue)||D.maxValue&&n(D.maxValue,e))||t&&(D.isTimeUnavailable?.(t)||D.minValue&&n(t,D.minValue)||D.maxValue&&n(D.maxValue,t)))}),z=S(F.value.start?{...l({value:F.value.start,formatter:P})}:{...l({value:I.value,formatter:P})}),B=S(F.value.end?{...l({value:F.value.end,formatter:P})}:{...l({value:I.value,formatter:P})}),V=h(()=>c({granularity:L.value,dateRef:I.value,formatter:P,hideTimeZone:D.hideTimeZone,hourCycle:D.hourCycle,segmentValues:z.value,locale:M,isTimeValue:!0}).arr),H=h(()=>c({granularity:L.value,dateRef:I.value,formatter:P,hideTimeZone:D.hideTimeZone,hourCycle:D.hourCycle,segmentValues:B.value,locale:M,isTimeValue:!0}).arr),U=S([]),W=S([]),G=S(null),K=S(`start`),q=()=>{if(!A.value)return;let e=A.value.querySelector(`[data-time-range-field-part="start"]`),t=A.value.querySelector(`[data-time-range-field-part="end"]`);e&&(U.value=u(e)),t&&(W.value=u(t))};w(M,e=>{P.getLocale()!==e&&P.setLocale(e),y(q)}),w(()=>F.value.start,t=>{!e(t)&&!r(I.value,t)&&(I.value=t.copy())}),w([()=>F.value.start,M,L],([t])=>{if(!e(t)){z.value={...l({value:t,formatter:P})};return}z.value={...l({value:I.value,formatter:P})}}),w([()=>F.value.end,M,L],([t])=>{if(!e(t)){B.value={...l({value:t,formatter:P})};return}B.value={...l({value:I.value,formatter:P})}});let le=h(()=>(K.value===`start`?U.value:W.value).findIndex(e=>e.getAttribute(`data-soybean-date-field-segment`)===G.value?.getAttribute(`data-soybean-date-field-segment`))),J=(e,t)=>{let n=N.value===`rtl`?-1:1,r=t===`next`?n:-n,i=e===`start`?U.value:W.value,a=le.value+r;a>=0&&a<i.length?i[a]?.focus():t===`next`&&e===`start`&&W.value.length>0?(K.value=`end`,W.value[0]?.focus()):t===`prev`&&e===`end`&&U.value.length>0&&(K.value=`start`,U.value[U.value.length-1]?.focus())},Y=h(()=>i(L.value)),X=h(()=>o(F.value.start,L.value)),Z=h(()=>o(F.value.end,L.value)),Q=h(()=>D.maxValue?o(D.maxValue,L.value):void 0),$=h(()=>D.minValue?o(D.minValue,L.value):void 0),ue=e=>{e.key!==`ArrowLeft`&&e.key!==`ArrowRight`||(e.preventDefault(),J(K.value,e.key===`ArrowRight`?`next`:`prev`))};return re({locale:M,dir:N,modelValue:F,placeholder:I,isTimeUnavailable:D.isTimeUnavailable,isInvalid:R,disabled:h(()=>D.disabled),readonly:h(()=>D.readonly),formatter:P,hourCycle:D.hourCycle,step:ce,startSegmentValues:z,endSegmentValues:B,startSegmentContents:V,endSegmentContents:H,startInputType:Y,endInputType:Y,startInputValue:X,endInputValue:Z,inputMaxValue:Q,inputMinValue:$,startElements:U,endElements:W,focusedType:K,focusNext(e){J(e,`next`)},setFocusedElement(e,t){G.value=e,K.value=t}}),ae(q),(e,t)=>(x(),g(C(ne),{ref:C(j),as:v.as,"as-child":v.asChild,class:b(C(k)),"data-disabled":v.disabled?``:void 0,"data-invalid":R.value?``:void 0,"data-readonly":v.readonly?``:void 0,dir:C(N),"data-slot":`root`,role:`group`,onKeydown:ue},{default:T(()=>[oe(e.$slots,`default`,{endSegments:H.value,isInvalid:R.value,modelValue:C(F),startSegments:V.value}),_(C(m),{id:v.id,as:`input`,feature:`focusable`,type:Y.value,tabindex:`-1`,value:X.value,name:v.startName||v.name,disabled:v.disabled,required:v.required,max:Q.value,min:$.value,onFocus:t[0]||(t[0]=e=>U.value[0]?.focus())},null,8,[`id`,`type`,`value`,`name`,`disabled`,`required`,`max`,`min`]),_(C(m),{as:`input`,feature:`focusable`,type:Y.value,tabindex:`-1`,value:Z.value,name:v.endName,disabled:v.disabled,required:v.required,max:Q.value,min:$.value,onFocus:t[1]||(t[1]=e=>W.value[0]?.focus())},null,8,[`type`,`value`,`name`,`disabled`,`required`,`max`,`min`])]),_:3},8,[`as`,`as-child`,`class`,`data-disabled`,`data-invalid`,`data-readonly`,`dir`]))}});export{E as default};
@@ -0,0 +1,53 @@
1
+ import { TimeValue } from "../../date/comparators.js";
2
+ import { DateStep, SegmentPart, TimeGranularity, TimeMatcher, TimeRange } from "../../date/types.js";
3
+ import { TimeRangeFieldRootProps } from "./types.js";
4
+ import * as _$vue from "vue";
5
+
6
+ //#region src/components/time-range-field/time-range-field-root.vue.d.ts
7
+ type __VLS_Slots = {
8
+ default?: (props: {
9
+ modelValue: TimeRange;
10
+ startSegments: {
11
+ part: SegmentPart;
12
+ value: string;
13
+ }[];
14
+ endSegments: {
15
+ part: SegmentPart;
16
+ value: string;
17
+ }[];
18
+ isInvalid: boolean;
19
+ }) => any;
20
+ };
21
+ declare const __VLS_base: _$vue.DefineComponent<TimeRangeFieldRootProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
22
+ "update:modelValue": (range: TimeRange) => any;
23
+ "update:placeholder": (time: TimeValue) => any;
24
+ "update:startValue": (time: TimeValue | undefined) => any;
25
+ "update:endValue": (time: TimeValue | undefined) => any;
26
+ }, string, _$vue.PublicProps, Readonly<TimeRangeFieldRootProps> & Readonly<{
27
+ "onUpdate:modelValue"?: ((range: TimeRange) => any) | undefined;
28
+ "onUpdate:placeholder"?: ((time: TimeValue) => any) | undefined;
29
+ "onUpdate:startValue"?: ((time: TimeValue | undefined) => any) | undefined;
30
+ "onUpdate:endValue"?: ((time: TimeValue | undefined) => any) | undefined;
31
+ }>, {
32
+ placeholder: TimeValue;
33
+ disabled: boolean;
34
+ step: DateStep;
35
+ defaultValue: TimeRange;
36
+ readonly: boolean;
37
+ defaultPlaceholder: TimeValue;
38
+ hourCycle: 12 | 24;
39
+ granularity: TimeGranularity;
40
+ hideTimeZone: boolean;
41
+ startName: string;
42
+ endName: string;
43
+ isTimeUnavailable: TimeMatcher;
44
+ }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
45
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
+ declare const _default: typeof __VLS_export;
47
+ type __VLS_WithSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
52
+ //#endregion
53
+ export { _default };