@soybeanjs/headless 0.16.0 → 0.18.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 (342) hide show
  1. package/README.md +10 -5
  2. package/README.zh-CN.md +10 -5
  3. package/dist/components/_icon/types.d.ts +9 -0
  4. package/dist/components/accordion/types.d.ts +87 -0
  5. package/dist/components/affix/types.d.ts +39 -0
  6. package/dist/components/alert/types.d.ts +78 -0
  7. package/dist/components/anchor/anchor-compact.js +1 -1
  8. package/dist/components/anchor/{anchor-compact-item.js → anchor-item-compact.js} +1 -1
  9. package/dist/components/anchor/anchor-item-compact.vue.d.ts +8 -0
  10. package/dist/components/anchor/anchor-link.js +1 -1
  11. package/dist/components/anchor/index.d.ts +5 -4
  12. package/dist/components/anchor/index.js +1 -1
  13. package/dist/components/anchor/types.d.ts +122 -10
  14. package/dist/components/arrow/types.d.ts +3 -0
  15. package/dist/components/aspect-ratio/types.d.ts +3 -0
  16. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +1 -1
  17. package/dist/components/autocomplete/types.d.ts +141 -0
  18. package/dist/components/avatar/avatar-compact.js +1 -0
  19. package/dist/components/avatar/avatar-compact.vue.d.ts +20 -0
  20. package/dist/components/avatar/avatar-fallback.js +1 -1
  21. package/dist/components/avatar/avatar-image.js +1 -1
  22. package/dist/components/avatar/avatar-root.js +1 -1
  23. package/dist/components/avatar/index.d.ts +6 -5
  24. package/dist/components/avatar/index.js +1 -1
  25. package/dist/components/avatar/types.d.ts +50 -1
  26. package/dist/components/backtop/backtop.vue.d.ts +10 -4
  27. package/dist/components/backtop/index.d.ts +2 -2
  28. package/dist/components/backtop/types.d.ts +19 -12
  29. package/dist/components/badge/badge-compact.js +1 -0
  30. package/dist/components/badge/badge-compact.vue.d.ts +21 -0
  31. package/dist/components/badge/badge-content.js +1 -1
  32. package/dist/components/badge/badge-root.js +1 -1
  33. package/dist/components/badge/index.d.ts +5 -4
  34. package/dist/components/badge/index.js +1 -1
  35. package/dist/components/badge/types.d.ts +42 -1
  36. package/dist/components/bottom-sheet/bottom-sheet-compact.js +1 -1
  37. package/dist/components/bottom-sheet/bottom-sheet-root-nested.js +1 -1
  38. package/dist/components/bottom-sheet/bottom-sheet-root.js +1 -1
  39. package/dist/components/bottom-sheet/types.d.ts +99 -0
  40. package/dist/components/breadcrumb/index.d.ts +2 -2
  41. package/dist/components/breadcrumb/types.d.ts +103 -1
  42. package/dist/components/button/button.js +1 -1
  43. package/dist/components/button/button.vue.d.ts +2 -2
  44. package/dist/components/button/types.d.ts +18 -3
  45. package/dist/components/calendar/calendar-root.js +1 -1
  46. package/dist/components/calendar/types.d.ts +363 -0
  47. package/dist/components/card/card-root.vue.d.ts +1 -1
  48. package/dist/components/card/types.d.ts +90 -0
  49. package/dist/components/carousel/carousel-compact.js +1 -0
  50. package/dist/components/carousel/carousel-compact.vue.d.ts +23 -0
  51. package/dist/components/carousel/carousel-container.js +1 -0
  52. package/dist/components/carousel/carousel-container.vue.d.ts +18 -0
  53. package/dist/components/carousel/carousel-content.js +1 -1
  54. package/dist/components/carousel/carousel-control.js +1 -0
  55. package/dist/components/carousel/carousel-control.vue.d.ts +18 -0
  56. package/dist/components/carousel/carousel-item.js +1 -1
  57. package/dist/components/carousel/carousel-navigation.js +1 -0
  58. package/dist/components/carousel/carousel-navigation.vue.d.ts +18 -0
  59. package/dist/components/carousel/carousel-next.js +1 -1
  60. package/dist/components/carousel/carousel-next.vue.d.ts +2 -12
  61. package/dist/components/carousel/carousel-previous.js +1 -1
  62. package/dist/components/carousel/carousel-previous.vue.d.ts +2 -12
  63. package/dist/components/carousel/carousel-root.js +1 -1
  64. package/dist/components/carousel/carousel-root.vue.d.ts +6 -28
  65. package/dist/components/carousel/context.d.ts +0 -1
  66. package/dist/components/carousel/context.js +1 -1
  67. package/dist/components/carousel/hooks.js +1 -0
  68. package/dist/components/carousel/index.d.ts +11 -9
  69. package/dist/components/carousel/index.js +1 -1
  70. package/dist/components/carousel/types.d.ts +146 -12
  71. package/dist/components/checkbox/types.d.ts +111 -0
  72. package/dist/components/clipboard/clipboard.vue.d.ts +2 -2
  73. package/dist/components/clipboard/types.d.ts +43 -1
  74. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
  75. package/dist/components/collapsible/types.d.ts +18 -0
  76. package/dist/components/color-area/color-area-root.vue.d.ts +2 -2
  77. package/dist/components/color-area/types.d.ts +60 -0
  78. package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
  79. package/dist/components/color-field/types.d.ts +51 -0
  80. package/dist/components/color-picker/color-picker-root.vue.d.ts +1 -1
  81. package/dist/components/color-picker/types.d.ts +39 -0
  82. package/dist/components/color-slider/color-slider-root.vue.d.ts +2 -2
  83. package/dist/components/color-slider/types.d.ts +60 -0
  84. package/dist/components/color-swatch/types.d.ts +9 -0
  85. package/dist/components/color-swatch-picker/color-swatch-picker-root.vue.d.ts +2 -2
  86. package/dist/components/color-swatch-picker/types.d.ts +27 -0
  87. package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
  88. package/dist/components/combobox/combobox-content.vue.d.ts +1 -1
  89. package/dist/components/combobox/types.d.ts +237 -0
  90. package/dist/components/command/command-compact.vue.d.ts +2 -2
  91. package/dist/components/command/types.d.ts +147 -0
  92. package/dist/components/config-provider/config-provider.js +12 -0
  93. package/dist/components/config-provider/types.d.ts +3 -0
  94. package/dist/components/context-menu/context-menu-checkbox-compact.js +1 -1
  95. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
  96. package/dist/components/context-menu/context-menu-compact.js +1 -1
  97. package/dist/components/context-menu/context-menu-compact.vue.d.ts +2 -2
  98. package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
  99. package/dist/components/context-menu/context-menu-radio-compact.js +1 -1
  100. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
  101. package/dist/components/context-menu/context-menu-root.js +1 -1
  102. package/dist/components/context-menu/context-menu-wrapper-compact.js +1 -1
  103. package/dist/components/context-menu/context-menu-wrapper-compact.vue.d.ts +2 -2
  104. package/dist/components/context-menu/types.d.ts +78 -0
  105. package/dist/components/date-field/types.d.ts +147 -0
  106. package/dist/components/date-picker/context.js +1 -1
  107. package/dist/components/date-picker/date-picker-compact.js +1 -0
  108. package/dist/components/date-picker/date-picker-compact.vue.d.ts +27 -0
  109. package/dist/components/date-picker/date-picker-content.js +1 -0
  110. package/dist/components/date-picker/date-picker-content.vue.d.ts +33 -0
  111. package/dist/components/date-picker/date-picker-root.js +1 -1
  112. package/dist/components/date-picker/date-picker-root.vue.d.ts +3 -8
  113. package/dist/components/date-picker/index.d.ts +8 -5
  114. package/dist/components/date-picker/index.js +1 -1
  115. package/dist/components/date-picker/types.d.ts +236 -10
  116. package/dist/components/date-range-field/types.d.ts +192 -0
  117. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +2 -2
  118. package/dist/components/date-range-picker/date-range-picker-root.vue.d.ts +3 -3
  119. package/dist/components/date-range-picker/types.d.ts +189 -0
  120. package/dist/components/dialog/dialog-compact.js +1 -1
  121. package/dist/components/dialog/dialog-compact.vue.d.ts +1 -1
  122. package/dist/components/dialog/dialog-root.js +1 -1
  123. package/dist/components/dialog/types.d.ts +196 -2
  124. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.js +1 -1
  125. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
  126. package/dist/components/dropdown-menu/dropdown-menu-compact.js +1 -1
  127. package/dist/components/dropdown-menu/dropdown-menu-compact.vue.d.ts +2 -2
  128. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
  129. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.js +1 -1
  130. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
  131. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  132. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.js +1 -1
  133. package/dist/components/dropdown-menu/dropdown-menu-wrapper-compact.vue.d.ts +2 -2
  134. package/dist/components/dropdown-menu/types.d.ts +84 -0
  135. package/dist/components/editable/types.d.ts +123 -0
  136. package/dist/components/empty/empty-compact.js +1 -0
  137. package/dist/components/empty/empty-compact.vue.d.ts +15 -0
  138. package/dist/components/empty/empty-content.js +1 -1
  139. package/dist/components/empty/empty-description.js +1 -1
  140. package/dist/components/empty/empty-header.js +1 -1
  141. package/dist/components/empty/empty-media.js +1 -1
  142. package/dist/components/empty/empty-root.js +1 -1
  143. package/dist/components/empty/empty-title.js +1 -1
  144. package/dist/components/empty/index.d.ts +9 -8
  145. package/dist/components/empty/index.js +1 -1
  146. package/dist/components/empty/types.d.ts +88 -1
  147. package/dist/components/form/context.d.ts +3 -2
  148. package/dist/components/form/context.js +1 -1
  149. package/dist/components/form/core/types.d.ts +399 -16
  150. package/dist/components/form/core/use-form.js +1 -1
  151. package/dist/components/form/form-compact.js +1 -0
  152. package/dist/components/form/form-compact.vue.d.ts +21 -0
  153. package/dist/components/form/form-control.js +1 -1
  154. package/dist/components/form/form-description.js +1 -1
  155. package/dist/components/form/form-error.js +1 -1
  156. package/dist/components/form/form-field-array-compact.js +1 -0
  157. package/dist/components/form/form-field-array-compact.vue.d.ts +16 -0
  158. package/dist/components/form/form-field-base-compact.js +1 -0
  159. package/dist/components/form/form-field-base-compact.vue.d.ts +26 -0
  160. package/dist/components/form/form-field-compact.js +1 -0
  161. package/dist/components/form/form-field-compact.vue.d.ts +16 -0
  162. package/dist/components/form/form-field.js +1 -1
  163. package/dist/components/form/form-label.js +1 -1
  164. package/dist/components/form/index.d.ts +14 -10
  165. package/dist/components/form/index.js +1 -1
  166. package/dist/components/form/shared.js +1 -0
  167. package/dist/components/form/types.d.ts +149 -3
  168. package/dist/components/form/use-form.d.ts +8 -0
  169. package/dist/components/form/use-form.js +1 -0
  170. package/dist/components/hover-card/hover-card-compact.vue.d.ts +1 -1
  171. package/dist/components/hover-card/hover-card-positioner-impl.js +1 -1
  172. package/dist/components/hover-card/hover-card-root.vue.d.ts +1 -1
  173. package/dist/components/hover-card/types.d.ts +57 -0
  174. package/dist/components/input/index.d.ts +6 -4
  175. package/dist/components/input/index.js +1 -1
  176. package/dist/components/input/input-clear.js +1 -0
  177. package/dist/components/input/input-clear.vue.d.ts +22 -0
  178. package/dist/components/input/input-compact.js +1 -0
  179. package/dist/components/input/input-compact.vue.d.ts +21 -0
  180. package/dist/components/input/input-control.js +1 -1
  181. package/dist/components/input/input-root.js +1 -1
  182. package/dist/components/input/types.d.ts +94 -2
  183. package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
  184. package/dist/components/input-number/types.d.ts +30 -0
  185. package/dist/components/input-otp/index.d.ts +1 -2
  186. package/dist/components/input-otp/index.js +1 -1
  187. package/dist/components/input-otp/input-otp-root.vue.d.ts +1 -1
  188. package/dist/components/input-otp/types.d.ts +186 -0
  189. package/dist/components/kbd/types.d.ts +6 -0
  190. package/dist/components/label/types.d.ts +3 -0
  191. package/dist/components/layout/layout-classic-compact.vue.d.ts +1 -1
  192. package/dist/components/layout/layout-compact.vue.d.ts +1 -1
  193. package/dist/components/layout/layout-root.vue.d.ts +2 -2
  194. package/dist/components/layout/types.d.ts +124 -10
  195. package/dist/components/link/types.d.ts +12 -0
  196. package/dist/components/list/types.d.ts +21 -0
  197. package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
  198. package/dist/components/listbox/types.d.ts +66 -0
  199. package/dist/components/menu/menu-content.vue.d.ts +2 -2
  200. package/dist/components/menu/menu-option-compact.js +1 -1
  201. package/dist/components/menu/menu-option-compact.vue.d.ts +2 -2
  202. package/dist/components/menu/menu-options-compact.js +1 -1
  203. package/dist/components/menu/menu-options-compact.vue.d.ts +2 -2
  204. package/dist/components/menu/menu-root.js +1 -1
  205. package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
  206. package/dist/components/menu/types.d.ts +266 -2
  207. package/dist/components/menubar/menubar-compact.js +1 -1
  208. package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
  209. package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
  210. package/dist/components/menubar/menubar-sub-content.vue.d.ts +2 -2
  211. package/dist/components/menubar/types.d.ts +72 -0
  212. package/dist/components/month-picker/month-picker-root.vue.d.ts +1 -1
  213. package/dist/components/month-picker/types.d.ts +141 -0
  214. package/dist/components/month-range-picker/month-range-picker-root.vue.d.ts +3 -3
  215. package/dist/components/month-range-picker/types.d.ts +165 -0
  216. package/dist/components/navigation-menu/types.d.ts +96 -9
  217. package/dist/components/page-tabs/types.d.ts +24 -0
  218. package/dist/components/pagination/types.d.ts +96 -0
  219. package/dist/components/popover/context.d.ts +9 -0
  220. package/dist/components/popover/context.js +1 -1
  221. package/dist/components/popover/index.d.ts +6 -6
  222. package/dist/components/popover/index.js +1 -1
  223. package/dist/components/popover/popover-compact.js +1 -1
  224. package/dist/components/popover/popover-compact.vue.d.ts +1 -1
  225. package/dist/components/popover/popover-root.js +1 -1
  226. package/dist/components/popover/popover-root.vue.d.ts +0 -2
  227. package/dist/components/popover/popover-trigger.js +1 -1
  228. package/dist/components/popover/types.d.ts +94 -6
  229. package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
  230. package/dist/components/popper/types.d.ts +21 -0
  231. package/dist/components/portal/types.d.ts +3 -0
  232. package/dist/components/primitive/types.d.ts +6 -0
  233. package/dist/components/progress/types.d.ts +81 -0
  234. package/dist/components/radio-group/types.d.ts +66 -0
  235. package/dist/components/range-calendar/types.d.ts +330 -0
  236. package/dist/components/roving-focus/types.d.ts +18 -0
  237. package/dist/components/scroll-area/types.d.ts +33 -0
  238. package/dist/components/segment/types.d.ts +36 -0
  239. package/dist/components/select/select-content.vue.d.ts +1 -1
  240. package/dist/components/select/types.d.ts +240 -0
  241. package/dist/components/separator/types.d.ts +12 -0
  242. package/dist/components/skeleton/types.d.ts +3 -0
  243. package/dist/components/slider/slider-root.vue.d.ts +2 -2
  244. package/dist/components/slider/types.d.ts +90 -0
  245. package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
  246. package/dist/components/splitter/types.d.ts +114 -0
  247. package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
  248. package/dist/components/stepper/types.d.ts +96 -0
  249. package/dist/components/switch/types.d.ts +21 -0
  250. package/dist/components/table/types.d.ts +819 -0
  251. package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
  252. package/dist/components/tabs/types.d.ts +75 -0
  253. package/dist/components/tag/types.d.ts +12 -0
  254. package/dist/components/tags-input/types.d.ts +63 -0
  255. package/dist/components/textarea/types.d.ts +27 -0
  256. package/dist/components/time-field/types.d.ts +138 -0
  257. package/dist/components/time-picker/time-picker-root.vue.d.ts +1 -1
  258. package/dist/components/time-picker/types.d.ts +156 -0
  259. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +1 -1
  260. package/dist/components/time-range-field/types.d.ts +192 -0
  261. package/dist/components/time-range-picker/time-range-picker-compact.vue.d.ts +2 -2
  262. package/dist/components/time-range-picker/time-range-picker-root.vue.d.ts +3 -3
  263. package/dist/components/time-range-picker/types.d.ts +201 -0
  264. package/dist/components/toast/toaster.vue.d.ts +2 -2
  265. package/dist/components/toast/types.d.ts +224 -4
  266. package/dist/components/toggle/types.d.ts +9 -0
  267. package/dist/components/toggle-group/types.d.ts +15 -0
  268. package/dist/components/toolbar/toolbar-button.vue.d.ts +2 -2
  269. package/dist/components/toolbar/types.d.ts +48 -0
  270. package/dist/components/tooltip/tooltip-root.vue.d.ts +1 -1
  271. package/dist/components/tooltip/types.d.ts +27 -0
  272. package/dist/components/tree/types.d.ts +75 -0
  273. package/dist/components/tree-menu/types.d.ts +60 -0
  274. package/dist/components/virtualizer/types.d.ts +33 -0
  275. package/dist/components/visually-hidden/types.d.ts +30 -0
  276. package/dist/components/year-picker/types.d.ts +144 -0
  277. package/dist/components/year-picker/year-picker-root.vue.d.ts +1 -1
  278. package/dist/components/year-range-picker/types.d.ts +168 -0
  279. package/dist/components/year-range-picker/year-range-picker-root.vue.d.ts +3 -3
  280. package/dist/composables/use-collection.js +1 -1
  281. package/dist/constants/components.d.ts +5 -5
  282. package/dist/constants/components.js +1 -1
  283. package/dist/constants/index.d.ts +2 -1
  284. package/dist/constants/index.js +1 -1
  285. package/dist/{components/input-otp → constants}/regexp.d.ts +1 -1
  286. package/dist/date/parts.d.ts +1 -1
  287. package/dist/index.d.ts +440 -428
  288. package/dist/index.js +1 -1
  289. package/dist/namespaced/index.d.ts +903 -872
  290. package/dist/namespaced/index.js +1 -1
  291. package/dist/node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js +1 -1
  292. package/dist/resolver/index.js +1 -1
  293. package/dist/shared/index.d.ts +2 -2
  294. package/dist/shared/index.js +1 -1
  295. package/dist/shared/string.d.ts +1 -34
  296. package/dist/shared/string.js +1 -1
  297. package/dist/types/common.d.ts +10 -2
  298. package/dist/types/dom.d.ts +3 -1
  299. package/dist/types/event.d.ts +10 -1
  300. package/dist/types/index.d.ts +5 -4
  301. package/dist/types/index.js +0 -0
  302. package/dist/types/vue.d.ts +4 -1
  303. package/package.json +9 -2
  304. package/dist/components/date-picker/date-picker-popup.js +0 -1
  305. package/dist/components/date-picker/date-picker-popup.vue.d.ts +0 -21
  306. package/dist/components/date-picker/date-picker-trigger.js +0 -1
  307. package/dist/components/date-picker/date-picker-trigger.vue.d.ts +0 -21
  308. package/dist/components/form/core/use-form.d.ts +0 -7
  309. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +0 -4
  310. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +0 -11
  311. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +0 -16
  312. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +0 -9
  313. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +0 -13
  314. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +0 -4
  315. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +0 -31
  316. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +0 -67
  317. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +0 -29
  318. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +0 -10
  319. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +0 -13
  320. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +0 -11
  321. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +0 -43
  322. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +0 -11
  323. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +0 -6
  324. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +0 -20
  325. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +0 -11
  326. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +0 -14
  327. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +0 -8
  328. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +0 -4
  329. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +0 -6
  330. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +0 -6
  331. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +0 -12
  332. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +0 -7
  333. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +0 -10
  334. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +0 -19
  335. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +0 -6
  336. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +0 -11
  337. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +0 -9
  338. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +0 -7
  339. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +0 -8
  340. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +0 -9
  341. package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +0 -4
  342. /package/dist/{components/input-otp → constants}/regexp.js +0 -0
@@ -4,155 +4,538 @@ import { ComputedRef, Ref, ShallowRef, WritableComputedRef } from "vue";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
5
 
6
6
  //#region src/components/form/core/types.d.ts
7
+ /**
8
+ * Type information for InferStandardSchemaInput.
9
+ */
7
10
  type InferStandardSchemaInput<S extends StandardSchemaV1<FormValues, FormValues>> = NonNullable<S['~standard']['types']>['input'];
11
+ /**
12
+ * Type information for InferStandardSchemaOutput.
13
+ */
8
14
  type InferStandardSchemaOutput<S extends StandardSchemaV1<FormValues, FormValues>> = NonNullable<S['~standard']['types']>['output'];
15
+ /**
16
+ * Type information for FormValidateMode.
17
+ */
9
18
  type FormValidateMode = 'blur' | 'input' | 'change' | 'submit';
19
+ /**
20
+ * Type information for FormValues.
21
+ */
10
22
  type FormValues = Record<string, any>;
23
+ /**
24
+ * Type information for FormErrors.
25
+ */
11
26
  type FormErrors<Values extends FormValues> = { [K in keyof Path<Values>]?: string };
27
+ /**
28
+ * Type information for FormTouched.
29
+ */
12
30
  type FormTouched<Values extends FormValues> = { [K in keyof Path<Values>]?: boolean };
31
+ /**
32
+ * Type information for FormFieldMeta.
33
+ */
13
34
  type FormFieldMeta = {
35
+ /**
36
+ * Whether dirty.
37
+ */
14
38
  dirty: boolean;
39
+ /**
40
+ * Error.
41
+ */
15
42
  error: string | undefined;
43
+ /**
44
+ * Touched.
45
+ */
16
46
  touched: boolean | undefined;
17
47
  };
48
+ /**
49
+ * Type information for FormSubmitHelper.
50
+ */
18
51
  interface FormSubmitHelper<Values extends FormValues> {
52
+ /**
53
+ * Set submitting.
54
+ */
19
55
  setSubmitting: (isSubmitting: boolean) => void;
56
+ /**
57
+ * Initial values.
58
+ */
20
59
  readonly initialValues: Values;
21
60
  }
61
+ /**
62
+ * State values for FormResetState.
63
+ */
22
64
  interface FormResetState<Values extends FormValues = FormValues> {
65
+ /**
66
+ * Values.
67
+ */
23
68
  values: Values;
69
+ /**
70
+ * Touched.
71
+ */
24
72
  touched: FormTouched<Values>;
73
+ /**
74
+ * Errors.
75
+ */
25
76
  errors: FormErrors<Values>;
77
+ /**
78
+ * Submit count.
79
+ */
26
80
  submitCount: number;
27
81
  }
28
- type FormMessage<Values extends FormValues = FormValues, Name extends Path<Values> = Path<Values>> = {
82
+ /**
83
+ * Type information for FormMessage.
84
+ */
85
+ type FormMessage<Values extends FormValues = FormValues, Name extends Path<Values> = Path<Values>> =
86
+ /**
87
+ * Type.
88
+ */
89
+ /**
90
+ * Type.
91
+ */
92
+ {
29
93
  type: 'SubmitAttempt';
30
- } | {
94
+ }
95
+ /**
96
+ * Type.
97
+ */
98
+ /**
99
+ * Type.
100
+ */
101
+ | {
31
102
  type: 'SubmitSuccess';
32
- } | {
103
+ }
104
+ /**
105
+ * Type.
106
+ */
107
+ /**
108
+ * Type.
109
+ */
110
+ | {
33
111
  type: 'SubmitFailure';
34
- } | {
112
+ }
113
+ /**
114
+ * Payload.
115
+ */
116
+ /**
117
+ * Type.
118
+ */
119
+ /**
120
+ * Payload.
121
+ */
122
+ /**
123
+ * Type.
124
+ */
125
+ | {
35
126
  type: 'SetValues';
36
127
  payload: Values;
37
- } | {
128
+ }
129
+ /**
130
+ * Payload.
131
+ */
132
+ /**
133
+ * Type.
134
+ */
135
+ /**
136
+ * Payload.
137
+ */
138
+ /**
139
+ * Type.
140
+ */
141
+ | {
38
142
  type: 'SetFieldValue';
39
143
  payload: {
40
144
  name: Name;
41
145
  value: PathValue<Values, Name>;
42
146
  };
43
147
  } | {
148
+ /**
149
+ * Type.
150
+ */
44
151
  type: 'SetTouched';
152
+ /**
153
+ * Payload.
154
+ */
45
155
  payload: {
46
156
  name: Name;
47
157
  touched?: boolean;
48
158
  };
49
- } | {
159
+ }
160
+ /**
161
+ * Payload.
162
+ */
163
+ /**
164
+ * Type.
165
+ */
166
+ /**
167
+ * Payload.
168
+ */
169
+ /**
170
+ * Type.
171
+ */
172
+ | {
50
173
  type: 'SetErrors';
51
174
  payload: FormErrors<Values>;
52
175
  } | {
176
+ /**
177
+ * Type.
178
+ */
53
179
  type: 'SetFieldError';
180
+ /**
181
+ * Payload.
182
+ */
54
183
  payload: {
55
184
  name: Name;
56
185
  error: string | undefined;
57
186
  };
58
- } | {
187
+ }
188
+ /**
189
+ * Whether payload.
190
+ */
191
+ /**
192
+ * Type.
193
+ */
194
+ /**
195
+ * Whether payload.
196
+ */
197
+ /**
198
+ * Type.
199
+ */
200
+ | {
59
201
  type: 'SetIsSubmitting';
60
202
  payload: boolean;
61
- } | {
203
+ }
204
+ /**
205
+ * Whether payload.
206
+ */
207
+ /**
208
+ * Type.
209
+ */
210
+ /**
211
+ * Whether payload.
212
+ */
213
+ /**
214
+ * Type.
215
+ */
216
+ | {
62
217
  type: 'SetIsValidating';
63
218
  payload: boolean;
64
- } | {
219
+ }
220
+ /**
221
+ * Payload.
222
+ */
223
+ /**
224
+ * Type.
225
+ */
226
+ /**
227
+ * Payload.
228
+ */
229
+ /**
230
+ * Type.
231
+ */
232
+ | {
65
233
  type: 'ResetForm';
66
234
  payload: FormResetState<Values>;
67
235
  };
236
+ /**
237
+ * State values for FormState.
238
+ */
68
239
  interface FormState<Values extends FormValues> {
240
+ /**
241
+ * Values.
242
+ */
69
243
  values: Values;
244
+ /**
245
+ * Touched.
246
+ */
70
247
  touched: Ref<FormTouched<Values>>;
248
+ /**
249
+ * Errors.
250
+ */
71
251
  errors: Ref<FormErrors<Values>>;
252
+ /**
253
+ * Submit count.
254
+ */
72
255
  submitCount: ShallowRef<number>;
256
+ /**
257
+ * Whether a submitting.
258
+ */
73
259
  isSubmitting: ShallowRef<boolean>;
260
+ /**
261
+ * Whether a validating.
262
+ */
74
263
  isValidating: ShallowRef<boolean>;
75
264
  }
76
- interface UseFormOptions<S extends StandardSchemaV1<FormValues, FormValues>> {
265
+ /**
266
+ * Type information for UseHeadlessFormOptions.
267
+ */
268
+ interface UseHeadlessFormOptions<S extends StandardSchemaV1<FormValues, FormValues>> {
269
+ /**
270
+ * Schema.
271
+ */
77
272
  schema: S;
273
+ /**
274
+ * Initial values.
275
+ */
78
276
  initialValues?: InferStandardSchemaInput<S>;
277
+ /**
278
+ * Initial errors.
279
+ */
79
280
  initialErrors?: FormErrors<InferStandardSchemaInput<S>>;
281
+ /**
282
+ * Initial touched.
283
+ */
80
284
  initialTouched?: FormTouched<InferStandardSchemaInput<S>>;
285
+ /**
286
+ * Validate mode.
287
+ */
81
288
  validateMode?: FormValidateMode;
289
+ /**
290
+ * Re validate mode.
291
+ */
82
292
  reValidateMode?: FormValidateMode;
293
+ /**
294
+ * Whether validate on mounted.
295
+ */
83
296
  validateOnMounted?: boolean;
297
+ /**
298
+ * Callback invoked when the submit event fires.
299
+ */
84
300
  onSubmit?: (values: InferStandardSchemaOutput<S>, helper: FormSubmitHelper<InferStandardSchemaOutput<S>>) => Promise<any>;
301
+ /**
302
+ * Callback invoked when the invalid event fires.
303
+ */
85
304
  onInvalid?: (errors: FormErrors<InferStandardSchemaOutput<S>>) => void;
86
305
  }
306
+ /**
307
+ * Type information for FormFieldValidator.
308
+ */
87
309
  type FormFieldValidator<Value> = (value: Value) => MaybePromise<string | undefined>;
310
+ /**
311
+ * Type information for FormRegisterOptions.
312
+ */
88
313
  interface FormRegisterOptions<Value> {
314
+ /**
315
+ * Validate.
316
+ */
89
317
  validate?: FormFieldValidator<Value>;
318
+ /**
319
+ * Reset.
320
+ */
90
321
  reset?: () => void;
91
322
  }
323
+ /**
324
+ * Type information for FormEventHandler.
325
+ */
92
326
  interface FormEventHandler<S = string> {
327
+ /**
328
+ * Callback invoked when the blur event fires.
329
+ */
93
330
  onBlur: (event: Event | S, name?: S) => void;
331
+ /**
332
+ * Callback invoked when the change event fires.
333
+ */
94
334
  onChange: () => void;
335
+ /**
336
+ * Callback invoked when the input event fires.
337
+ */
95
338
  onInput: () => void;
96
339
  }
97
- interface FormSubmitHelper<Values extends FormValues> {
98
- setSubmitting: (isSubmitting: boolean) => void;
99
- readonly initialValues: Values;
100
- }
340
+ /**
341
+ * State values for FormFieldState.
342
+ */
101
343
  interface FormFieldState<Values extends FormValues, Name extends Path<Values>> extends FormEventHandler<Name> {
344
+ /**
345
+ * Name.
346
+ */
102
347
  name: Name;
348
+ /**
349
+ * Value associated with the current item.
350
+ */
103
351
  value: PathValue<Values, Name>;
352
+ /**
353
+ * Meta.
354
+ */
104
355
  meta: FormFieldMeta;
105
356
  }
357
+ /**
358
+ * State values for FormFieldArrayState.
359
+ */
106
360
  interface FormFieldArrayState<Values extends FormValues, Name extends Path<Values>> extends FormEventHandler<Name> {
361
+ /**
362
+ * Name.
363
+ */
107
364
  name: Name;
365
+ /**
366
+ * Value associated with the current item.
367
+ */
108
368
  value: ArrayElement<NonNullable<PathValue<Values, Name>>>;
369
+ /**
370
+ * Meta.
371
+ */
109
372
  meta: FormFieldMeta;
110
373
  }
374
+ /**
375
+ * Type information for UseFormStateReturn.
376
+ */
111
377
  interface UseFormStateReturn<Values extends FormValues> {
378
+ /**
379
+ * Form state.
380
+ */
112
381
  formState: FormState<Values>;
382
+ /**
383
+ * Whether dirty.
384
+ */
113
385
  dirty: ComputedRef<boolean>;
386
+ /**
387
+ * Submit helper.
388
+ */
114
389
  submitHelper: FormSubmitHelper<Values>;
390
+ /**
391
+ * Set submitting.
392
+ */
115
393
  setSubmitting: (isSubmitting: boolean) => void;
394
+ /**
395
+ * Register field.
396
+ */
116
397
  registerField<Name extends Path<Values>>(name: Name, opts?: FormRegisterOptions<PathValue<Values, Name>>): Ref<FormFieldState<Values, Name>>;
398
+ /**
399
+ * Register field array.
400
+ */
117
401
  registerFieldArray<Name extends Path<Values>>(name: Name, opts?: FormRegisterOptions<PathValue<Values, Name>>): Ref<FormFieldState<Values, Name>>;
402
+ /**
403
+ * Validate field.
404
+ */
118
405
  validateField<Name extends Path<Values>>(name: Name): Promise<string | undefined | void>;
406
+ /**
407
+ * Get field value.
408
+ */
119
409
  getFieldValue<Name extends Path<Values>>(name: Name): WritableComputedRef<PathValue<Values, Name>>;
410
+ /**
411
+ * Get field meta.
412
+ */
120
413
  getFieldMeta<Name extends Path<Values>>(name: Name): Ref<FormFieldMeta>;
414
+ /**
415
+ * Get field error.
416
+ */
121
417
  getFieldError<Name extends Path<Values>>(name: Name): string | undefined;
418
+ /**
419
+ * Get field touched.
420
+ */
122
421
  getFieldTouched<Name extends Path<Values>>(name: Name): boolean | undefined;
422
+ /**
423
+ * Whether get field dirty.
424
+ */
123
425
  getFieldDirty<Name extends Path<Values>>(name: Name): boolean;
426
+ /**
427
+ * Get field state.
428
+ */
124
429
  getFieldState<Name extends Path<Values>>(name: Name): Ref<FormFieldState<Values, Name>>;
430
+ /**
431
+ * Set values.
432
+ */
125
433
  setValues(values: Values, shouldValidate?: boolean): Promise<FormErrors<Values>> | Promise<void>;
434
+ /**
435
+ * Set errors.
436
+ */
126
437
  setErrors(errors: FormErrors<Values>): void;
438
+ /**
439
+ * Set field value.
440
+ */
127
441
  setFieldValue<Name extends Path<Values>>(name: Name, value: PathValue<Values, Name>, shouldValidate?: boolean): Promise<FormErrors<Values>> | Promise<void>;
442
+ /**
443
+ * Set field touched.
444
+ */
128
445
  setFieldTouched<Name extends Path<Values>>(name: Name, touched: boolean): void;
446
+ /**
447
+ * Set field error.
448
+ */
129
449
  setFieldError<Name extends Path<Values>>(name: Name, error: string | undefined): void;
450
+ /**
451
+ * Set field array value.
452
+ */
130
453
  setFieldArrayValue<Name extends Path<Values>, Method extends (...args: any) => any>(name: Name, value: PathValue<Values, Name>, method: Method, args?: Partial<{
131
454
  argA: Parameters<Method>[1];
132
455
  argB: Parameters<Method>[2];
133
456
  }>, shouldSetValue?: boolean): Promise<void> | Promise<FormErrors<Values>>;
457
+ /**
458
+ * Validate form.
459
+ */
134
460
  validateForm(values?: Values): Promise<FormErrors<Values>>;
461
+ /**
462
+ * Reset form.
463
+ */
135
464
  resetForm(nextState?: FormResetState<Values>): void;
136
465
  }
137
- interface FormContext<Values extends FormValues> extends Omit<UseFormStateReturn<Values>, 'formState' | 'submitHelper'>, FormState<Values> {
466
+ /**
467
+ * Context for UseHeadlessFormReturn.
468
+ */
469
+ interface UseHeadlessFormReturn<Values extends FormValues> extends Omit<UseFormStateReturn<Values>, 'formState' | 'submitHelper'>, FormState<Values> {
470
+ /**
471
+ * Handle submit used by the component context.
472
+ */
138
473
  handleSubmit(event?: Event): void;
474
+ /**
475
+ * Handle reset used by the component context.
476
+ */
139
477
  handleReset(event?: Event): void;
478
+ /**
479
+ * Use field array used by the component context.
480
+ */
140
481
  useFieldArray<Name extends Path<Values>>(name: Name, opts?: FormRegisterOptions<PathValue<Values, Name>>): Ref<FormFieldArrayStates<Values, Name>>;
482
+ /**
483
+ * Use field used by the component context.
484
+ */
141
485
  useField<Name extends Path<Values>>(name: Name, opts?: FormRegisterOptions<PathValue<Values, Name>>): Ref<FormFieldState<Values, Name>>;
142
486
  }
487
+ /**
488
+ * Type information for UseRegisterFieldArrayOptions.
489
+ */
143
490
  interface UseRegisterFieldArrayOptions<Values extends FormValues> extends Pick<UseFormStateReturn<Values>, 'getFieldState' | 'getFieldValue' | 'setFieldValue' | 'setFieldArrayValue' | 'registerFieldArray'> {}
491
+ /**
492
+ * Type information for FormFieldArrayStates.
493
+ */
144
494
  interface FormFieldArrayStates<Values extends FormValues, Name extends Path<Values>> {
495
+ /**
496
+ * Name.
497
+ */
145
498
  name: Name;
499
+ /**
500
+ * Fields.
501
+ */
146
502
  fields: readonly FormFieldArrayState<Values, Name>[];
503
+ /**
504
+ * Meta.
505
+ */
147
506
  meta: FormFieldMeta;
507
+ /**
508
+ * Append.
509
+ */
148
510
  append: (value: ArrayElement<NonNullable<PathValue<Values, Name>>>) => void;
511
+ /**
512
+ * Prepend.
513
+ */
149
514
  prepend: (value: ArrayElement<NonNullable<PathValue<Values, Name>>>) => void;
515
+ /**
516
+ * Remove.
517
+ */
150
518
  remove: (index?: number) => void;
519
+ /**
520
+ * Swap.
521
+ */
151
522
  swap: (indexA: number, indexB: number) => void;
523
+ /**
524
+ * Move.
525
+ */
152
526
  move: (from: number, to: number) => void;
527
+ /**
528
+ * Insert.
529
+ */
153
530
  insert: (index: number, value: ArrayElement<NonNullable<PathValue<Values, Name>>>) => void;
531
+ /**
532
+ * Update.
533
+ */
154
534
  update: (index: number, value: ArrayElement<NonNullable<PathValue<Values, Name>>>) => void;
535
+ /**
536
+ * Replace.
537
+ */
155
538
  replace: ($values: ArrayElement<NonNullable<PathValue<Values, Name>>>[]) => void;
156
539
  }
157
540
  //#endregion
158
- export { FormContext, FormErrors, FormEventHandler, FormFieldArrayState, FormFieldArrayStates, FormFieldMeta, FormFieldState, FormFieldValidator, FormMessage, FormRegisterOptions, FormResetState, FormState, FormSubmitHelper, FormTouched, FormValidateMode, FormValues, InferStandardSchemaInput, UseFormOptions, UseFormStateReturn, UseRegisterFieldArrayOptions };
541
+ export { FormErrors, FormEventHandler, FormFieldArrayState, FormFieldArrayStates, FormFieldMeta, FormFieldState, FormFieldValidator, FormMessage, FormRegisterOptions, FormResetState, FormState, FormSubmitHelper, FormTouched, FormValidateMode, FormValues, InferStandardSchemaInput, UseFormStateReturn, UseHeadlessFormOptions, UseHeadlessFormReturn, UseRegisterFieldArrayOptions };
@@ -1 +1 @@
1
- import{isNullish as e,keysOf as t}from"../../../shared/guard.js";import"../../../shared/index.js";import{updateFormState as n}from"./shared.js";import{useFormState as r}from"./use-form-state.js";import{useRegisterFieldArray as i}from"./use-field-array.js";import{klona as a}from"klona/full";function o(o){let{onSubmit:s=()=>Promise.resolve(),onInvalid:c}=o,{formState:l,submitHelper:u,...d}=r(o),{resetForm:f,validateForm:p,registerField:m}=d;function h(e,t){let{getFieldState:n,getFieldValue:r,setFieldValue:a,setFieldArrayValue:o,registerFieldArray:s}=d;return i(e,{getFieldState:n,getFieldValue:r,setFieldValue:a,setFieldArrayValue:o,registerFieldArray:s},t?.validate)}function g(r){r?.preventDefault(),n(l,{type:`SubmitAttempt`}),p().then(r=>{if(t(r).length===0){let t=s(a(l.values),u);if(e(t))return;t.then(e=>(n(l,{type:`SubmitSuccess`}),e)).catch(()=>{n(l,{type:`SubmitFailure`})})}else n(l,{type:`SubmitFailure`}),c?.(r)})}function _(e){e?.preventDefault(),f()}return{...l,handleSubmit:g,handleReset:_,useField:m,useFieldArray:h,...d}}export{o as useForm};
1
+ import{isNullish as e,keysOf as t}from"../../../shared/guard.js";import"../../../shared/index.js";import{updateFormState as n}from"./shared.js";import{useFormState as r}from"./use-form-state.js";import{useRegisterFieldArray as i}from"./use-field-array.js";import{klona as a}from"klona/full";function o(o){let{onSubmit:s=()=>Promise.resolve(),onInvalid:c}=o,{formState:l,submitHelper:u,...d}=r(o),{resetForm:f,validateForm:p,registerField:m}=d;function h(e,t){let{getFieldState:n,getFieldValue:r,setFieldValue:a,setFieldArrayValue:o,registerFieldArray:s}=d;return i(e,{getFieldState:n,getFieldValue:r,setFieldValue:a,setFieldArrayValue:o,registerFieldArray:s},t?.validate)}function g(r){r?.preventDefault(),n(l,{type:`SubmitAttempt`}),p().then(r=>{if(t(r).length===0){let t=s(a(l.values),u);if(e(t))return;t.then(e=>(n(l,{type:`SubmitSuccess`}),e)).catch(()=>{n(l,{type:`SubmitFailure`})})}else n(l,{type:`SubmitFailure`}),c?.(r)})}function _(e){e?.preventDefault(),f()}return{...l,handleSubmit:g,handleReset:_,useField:m,useFieldArray:h,...d}}export{o as useHeadlessForm};
@@ -0,0 +1 @@
1
+ import{transformPropsToContext as e}from"../../shared/vue.js";import"../../shared/index.js";import{provideFormCompactContext as t,useFormUi as n}from"./context.js";import{provideFormSub as r}from"./use-form.js";import{createElementBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c,unref as l}from"vue";const u=[`data-orientation`],d=a({name:`SFormCompact`,__name:`form-compact`,props:{fieldProps:{},fieldArrayProps:{},orientation:{default:`vertical`},labelProps:{},controlProps:{},descriptionProps:{},errorProps:{}},setup(a){let d=a,f=n(`form`);return t({...e(d,[`orientation`,`fieldProps`,`fieldArrayProps`,`labelProps`,`controlProps`,`descriptionProps`,`errorProps`])}),r(),(e,t)=>(s(),i(`form`,{class:o(l(f)),"data-orientation":a.orientation},[c(e.$slots,`default`)],10,u))}});export{d as default};
@@ -0,0 +1,21 @@
1
+ import { DataOrientation } from "../../types/common.js";
2
+ import { FormCompactProps } from "./types.js";
3
+ import * as _$vue from "vue";
4
+
5
+ //#region src/components/form/form-compact.vue.d.ts
6
+ declare var __VLS_1: {};
7
+ type __VLS_Slots = {} & {
8
+ default?: (props: typeof __VLS_1) => any;
9
+ };
10
+ declare const __VLS_base: _$vue.DefineComponent<FormCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<FormCompactProps> & Readonly<{}>, {
11
+ orientation: DataOrientation;
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 };
@@ -1 +1 @@
1
- import{useFormFieldUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`FormControl`,__name:`form-control`,setup(n){let s=e(`control`);return(e,n)=>(i(),t(`div`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
1
+ import{useFormFieldUi as e,useFormUi as t}from"./context.js";import{mergeClasses as n}from"./shared.js";import{computed as r,createElementBlock as i,defineComponent as a,normalizeClass as o,openBlock as s,renderSlot as c}from"vue";const l=a({name:`FormControl`,__name:`form-control`,setup(a){let l=t(`control`),u=e(`control`),d=r(()=>n(l.value,u.value));return(e,t)=>(s(),i(`div`,{class:o(d.value)},[c(e.$slots,`default`)],2))}});export{l as default};
@@ -1 +1 @@
1
- import{useFormFieldContext as e,useFormFieldUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`id`],l=r({name:`FormDescription`,__name:`form-description`,setup(r){let{formDescriptionId:l}=e(`FormDescription`),u=t(`description`);return(e,t)=>(a(),n(`p`,{id:s(l),class:i(s(u))},[o(e.$slots,`default`)],10,c))}});export{l as default};
1
+ import{useFormFieldContext as e,useFormFieldUi as t,useFormUi as n}from"./context.js";import{mergeClasses as r}from"./shared.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u}from"vue";const d=[`id`],f=o({name:`FormDescription`,__name:`form-description`,setup(o){let{formDescriptionId:f}=e(`FormDescription`),p=n(`description`),m=t(`description`),h=i(()=>r(p.value,m.value));return(e,t)=>(c(),a(`p`,{id:u(f),class:s(h.value)},[l(e.$slots,`default`)],10,d))}});export{f as default};
@@ -1 +1 @@
1
- import{useFormFieldContext as e,useFormFieldUi as t}from"./context.js";import{createElementBlock as n,defineComponent as r,normalizeClass as i,openBlock as a,renderSlot as o,unref as s}from"vue";const c=[`id`],l=r({name:`FormError`,__name:`form-error`,setup(r){let{formErrorId:l}=e(`FormError`),u=t(`error`);return(e,t)=>(a(),n(`p`,{id:s(l),class:i(s(u))},[o(e.$slots,`default`)],10,c))}});export{l as default};
1
+ import{useFormFieldContext as e,useFormFieldUi as t,useFormUi as n}from"./context.js";import{mergeClasses as r}from"./shared.js";import{computed as i,createElementBlock as a,defineComponent as o,normalizeClass as s,openBlock as c,renderSlot as l,unref as u}from"vue";const d=[`id`],f=o({name:`FormError`,__name:`form-error`,setup(o){let{formErrorId:f}=e(`FormError`),p=n(`error`),m=t(`error`),h=i(()=>r(p.value,m.value));return(e,t)=>(c(),a(`p`,{id:u(f),class:s(h.value)},[l(e.$slots,`default`)],10,d))}});export{f as default};
@@ -0,0 +1 @@
1
+ import{e}from"../../node_modules/.pnpm/@soybeanjs_utils@0.1.1/node_modules/@soybeanjs/utils/dist/index.js";import{useFormSub as t}from"./use-form.js";import n from"./form-field-base-compact.js";import{computed as r,createBlock as i,createSlots as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderList as d,renderSlot as f,unref as p,useSlots as m,withCtx as h}from"vue";const g=o({name:`FormFieldArrayCompact`,__name:`form-field-array-compact`,props:{name:{},orientation:{},label:{},description:{},labelProps:{},controlProps:{},descriptionProps:{},errorProps:{},validate:{type:Function},reset:{type:Function}},setup(o){let g=o,_=m(),{useFieldArray:v}=t(),y=v(g.name,{validate:g.validate,reset:g.reset}),b=r(()=>e(_)),x=r(()=>y.value.meta.error);return(e,t)=>(u(),i(n,c(g,{error:x.value,"is-field-array":!0}),a({_:2},[d(b.value,t=>({name:t,fn:h(()=>[f(e.$slots,t,l(s(p(y))))])}))]),1040,[`error`]))}});export{g as default};
@@ -0,0 +1,16 @@
1
+ import { FormFieldArrayCompactSlots, FormFieldCompactProps } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/form/form-field-array-compact.vue.d.ts
5
+ type __VLS_Props = FormFieldCompactProps<any, any>;
6
+ type __VLS_Slots = FormFieldArrayCompactSlots<any, any>;
7
+ declare const __VLS_base: _$vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //#endregion
16
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useOmitProps as e}from"../../composables/use-props.js";import"../../composables/index.js";import{useFormCompactContext as t}from"./context.js";import n from"./form-field.js";import r from"./form-label.js";import i from"./form-control.js";import a from"./form-description.js";import o from"./form-error.js";import{computed as s,createBlock as c,createCommentVNode as l,createTextVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeProps as m,openBlock as h,renderSlot as g,toDisplayString as _,unref as v,useSlots as y,withCtx as b,withDirectives as x}from"vue";import{vAutoAnimate as S}from"@formkit/auto-animate/vue";const C=d({name:`FormFieldBaseCompact`,__name:`form-field-base-compact`,props:{error:{},isFieldArray:{type:Boolean},orientation:{},label:{},description:{},labelProps:{},controlProps:{},descriptionProps:{},errorProps:{}},setup(d){let C=d,w=y(),T=e(C,[`orientation`,`label`,`description`,`error`,`labelProps`,`controlProps`,`descriptionProps`,`errorProps`]),E=t(`FormFieldCompact`),D=s(()=>C.orientation??E.orientation.value??`vertical`),O=s(()=>p({...C.isFieldArray?E.fieldArrayProps.value:E.fieldProps.value},T.value)),k=s(()=>p({...E.labelProps.value},{...C.labelProps})),A=s(()=>p({...E.controlProps.value},{...C.controlProps})),j=s(()=>p({...E.descriptionProps.value},{...C.descriptionProps})),M=s(()=>p({...E.errorProps.value},{...C.errorProps}));return(e,t)=>(h(),c(n,p(O.value,{"data-orientation":D.value,"data-error":d.error?``:void 0}),{default:b(t=>[v(w).label||d.label?(h(),c(r,m(p({key:0},k.value)),{default:b(()=>[g(e.$slots,`label`,{},()=>[u(_(d.label),1)])]),_:3},16)):l(`v-if`,!0),x((h(),c(i,m(f(A.value)),{default:b(()=>[g(e.$slots,`default`,m(f(t))),d.error?(h(),c(o,m(p({key:0},M.value)),{default:b(()=>[u(_(d.error),1)]),_:1},16)):l(`v-if`,!0)]),_:2},1040)),[[v(S)]]),v(w).description||d.description?(h(),c(a,m(p({key:1},j.value)),{default:b(()=>[g(e.$slots,`description`,{},()=>[u(_(d.description),1)])]),_:3},16)):l(`v-if`,!0)]),_:3},16,[`data-orientation`,`data-error`]))}});export{C as default};
@@ -0,0 +1,26 @@
1
+ import { FormFieldBaseCompactProps } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/form/form-field-base-compact.vue.d.ts
5
+ declare var __VLS_14: {}, __VLS_22: {
6
+ formFieldId: string;
7
+ ariaDescribedBy: string;
8
+ ariaInvalid: boolean;
9
+ }, __VLS_36: {};
10
+ type __VLS_Slots = {} & {
11
+ label?: (props: typeof __VLS_14) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_22) => any;
14
+ } & {
15
+ description?: (props: typeof __VLS_36) => any;
16
+ };
17
+ declare const __VLS_base: _$vue.DefineComponent<FormFieldBaseCompactProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<FormFieldBaseCompactProps> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
18
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
+ declare const _default: typeof __VLS_export;
20
+ type __VLS_WithSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
25
+ //#endregion
26
+ export { _default };
@@ -0,0 +1 @@
1
+ import{Slot as e}from"../slot/slot.js";import"../slot/index.js";import{useFormSub as t}from"./use-form.js";import n from"./form-field-base-compact.js";import{computed as r,createBlock as i,createSlots as a,createVNode as o,defineComponent as s,guardReactiveProps as c,mergeProps as l,normalizeProps as u,openBlock as d,renderSlot as f,unref as p,useSlots as m,withCtx as h}from"vue";const g=s({name:`FormFieldCompact`,__name:`form-field-compact`,props:{name:{},orientation:{},label:{},description:{},labelProps:{},controlProps:{},descriptionProps:{},errorProps:{},validate:{type:Function},reset:{type:Function}},setup(s){let g=s,_=m(),{useField:v,setFieldValue:y}=t(),b=v(g.name,{validate:g.validate,reset:g.reset}),x=r(()=>b.value.meta.error);function S(e){y(g.name,e)}return(t,r)=>(d(),i(n,l(g,{error:x.value}),a({default:h(n=>[o(p(e),{id:n.formFieldId,"aria-describedby":n.ariaDescribedBy,"aria-invalid":n.ariaInvalid,name:s.name,"model-value":p(b).value,"onUpdate:modelValue":S,onBlur:r[0]||(r[0]=e=>p(b).onBlur(e,g.name)),onChange:p(b).onChange,onInput:p(b).onInput},{default:h(()=>[f(t.$slots,`default`,u(c(p(b))))]),_:3},8,[`id`,`aria-describedby`,`aria-invalid`,`name`,`model-value`,`onChange`,`onInput`])]),_:2},[_.label||s.label?{name:`label`,fn:h(()=>[f(t.$slots,`label`,u(c(p(b))))]),key:`0`}:void 0,_.description||s.description?{name:`description`,fn:h(()=>[f(t.$slots,`description`,u(c(p(b))))]),key:`1`}:void 0]),1040,[`error`]))}});export{g as default};
@@ -0,0 +1,16 @@
1
+ import { FormFieldCompactProps, FormFieldCompactSlots } from "./types.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/form/form-field-compact.vue.d.ts
5
+ type __VLS_Props = FormFieldCompactProps<any, any>;
6
+ type __VLS_Slots = FormFieldCompactSlots<any, any>;
7
+ declare const __VLS_base: _$vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
8
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
+ declare const _default: typeof __VLS_export;
10
+ type __VLS_WithSlots<T, S> = T & {
11
+ new (): {
12
+ $slots: S;
13
+ };
14
+ };
15
+ //#endregion
16
+ export { _default };