bitboss-ui 2.1.135 → 3.0.0-alpha.4

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 (1369) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +274 -24
  3. package/bin/bitboss-ui-mcp.mjs +662 -0
  4. package/bin/bitboss-ui.mjs +710 -0
  5. package/bin/bitboss-ui.node.test.mjs +113 -0
  6. package/dist/ai/BbAccordion.md +528 -113
  7. package/dist/ai/BbAlert.md +380 -197
  8. package/dist/ai/BbAsterisk.md +46 -0
  9. package/dist/ai/BbAvatar.md +458 -178
  10. package/dist/ai/BbBadge.md +697 -225
  11. package/dist/ai/BbBadgeButton.md +54 -0
  12. package/dist/ai/BbBaseButton.md +491 -0
  13. package/dist/ai/BbBaseCheckbox.md +49 -0
  14. package/dist/ai/BbBaseCheckboxGroup.md +64 -0
  15. package/dist/ai/BbBaseCheckboxIcon.md +176 -0
  16. package/dist/ai/BbBaseColorInput.md +64 -0
  17. package/dist/ai/BbBaseColorPalette.md +39 -0
  18. package/dist/ai/BbBaseDatePicker.md +42 -0
  19. package/dist/ai/BbBaseDatePickerInput.md +73 -0
  20. package/dist/ai/BbBaseInputContainer.md +48 -0
  21. package/dist/ai/BbBaseNumberInput.md +71 -0
  22. package/dist/ai/BbBaseRadio.md +46 -0
  23. package/dist/ai/BbBaseRadioGroup.md +64 -0
  24. package/dist/ai/BbBaseRadioIcon.md +191 -0
  25. package/dist/ai/BbBaseRating.md +51 -0
  26. package/dist/ai/BbBaseSelect.md +88 -0
  27. package/dist/ai/BbBaseSlider.md +56 -0
  28. package/dist/ai/BbBaseSwitch.md +49 -0
  29. package/dist/ai/BbBaseSwitchGroup.md +64 -0
  30. package/dist/ai/BbBaseSwitchIcon.md +186 -0
  31. package/dist/ai/BbBaseTag.md +68 -0
  32. package/dist/ai/BbBaseTextInput.md +75 -0
  33. package/dist/ai/BbBaseTextarea.md +62 -0
  34. package/dist/ai/BbBaseTimePickerInput.md +62 -0
  35. package/dist/ai/BbBreadcrumbs.md +553 -503
  36. package/dist/ai/BbButton.md +841 -636
  37. package/dist/ai/BbCheckbox.md +585 -254
  38. package/dist/ai/BbCheckboxGroup.md +573 -361
  39. package/dist/ai/BbCollapsible.md +425 -103
  40. package/dist/ai/BbColorInput.md +536 -323
  41. package/dist/ai/BbColorPalette.md +569 -330
  42. package/dist/ai/BbConfirm.md +659 -136
  43. package/dist/ai/BbConfirmPortal.md +28 -0
  44. package/dist/ai/BbDatePicker.md +244 -0
  45. package/dist/ai/BbDatePickerInput.md +720 -388
  46. package/dist/ai/BbDialog.md +778 -99
  47. package/dist/ai/BbDropdown.md +1072 -763
  48. package/dist/ai/BbDropdownButton.md +525 -614
  49. package/dist/ai/BbDropdownGroup.md +34 -0
  50. package/dist/ai/BbDropzone.md +1206 -436
  51. package/dist/ai/BbForm.md +239 -0
  52. package/dist/ai/BbIcon.md +382 -212
  53. package/dist/ai/BbIndicator.md +283 -0
  54. package/dist/ai/BbNumberInput.md +717 -355
  55. package/dist/ai/BbOffCanvas.md +897 -498
  56. package/dist/ai/BbPagination.md +489 -535
  57. package/dist/ai/BbPopover.md +591 -546
  58. package/dist/ai/BbProgress.md +462 -69
  59. package/dist/ai/BbRadio.md +352 -229
  60. package/dist/ai/BbRadioGroup.md +437 -353
  61. package/dist/ai/BbRating.md +372 -225
  62. package/dist/ai/BbSelect.md +1399 -536
  63. package/dist/ai/BbSelectPopover.md +1255 -1578
  64. package/dist/ai/BbSlider.md +500 -256
  65. package/dist/ai/BbSmoothHeight.md +485 -139
  66. package/dist/ai/BbSpinner.md +718 -131
  67. package/dist/ai/BbSwitch.md +573 -119
  68. package/dist/ai/BbSwitchGroup.md +521 -214
  69. package/dist/ai/BbTable.md +1996 -2365
  70. package/dist/ai/BbTabs.md +1147 -0
  71. package/dist/ai/BbTabsList.md +29 -0
  72. package/dist/ai/BbTabsPanes.md +27 -0
  73. package/dist/ai/BbTabsRoot.md +57 -0
  74. package/dist/ai/BbTag.md +416 -292
  75. package/dist/ai/BbTextInput.md +878 -333
  76. package/dist/ai/BbTextarea.md +850 -255
  77. package/dist/ai/BbTimePicker.md +231 -0
  78. package/dist/ai/BbTimePickerInput.md +200 -0
  79. package/dist/ai/BbToast.md +669 -196
  80. package/dist/ai/BbToastPortal.md +28 -0
  81. package/dist/ai/BbTooltip.md +453 -346
  82. package/dist/ai/BbTree.md +993 -234
  83. package/dist/ai/ChipsBox.md +27 -199
  84. package/dist/ai/ClearableButton.md +21 -55
  85. package/dist/ai/CommaBox.md +25 -200
  86. package/dist/ai/CommonInputWrapper.md +42 -0
  87. package/dist/ai/CommonPopover.md +30 -510
  88. package/dist/ai/ErrorIcon.md +19 -56
  89. package/dist/ai/FlatListBox.md +35 -379
  90. package/dist/ai/GroupedListBox.md +37 -535
  91. package/dist/ai/GuidesComponent.md +21 -0
  92. package/dist/ai/ListBox.md +38 -231
  93. package/dist/ai/OptionsContainer.md +34 -253
  94. package/dist/ai/WarningIcon.md +21 -0
  95. package/dist/ai/components.json +15897 -0
  96. package/dist/ai/composables/useBbConfig.md +80 -0
  97. package/dist/ai/composables/useBbFormContext.md +110 -0
  98. package/dist/ai/composables/useBbTableContext.md +167 -0
  99. package/dist/ai/composables/useBbTabsContext.md +118 -0
  100. package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
  101. package/dist/ai/composables/useConfirm.md +313 -0
  102. package/dist/ai/composables/useCountdown.md +86 -0
  103. package/dist/ai/composables/useId.md +60 -0
  104. package/dist/ai/composables/useMobile.md +85 -0
  105. package/dist/ai/composables/useToast.md +238 -0
  106. package/dist/ai/guides/agent-contract.md +165 -0
  107. package/dist/ai/guides/ai-router.md +113 -0
  108. package/dist/ai/guides/app-layout.md +318 -0
  109. package/dist/ai/guides/coherence-playbook.md +136 -0
  110. package/dist/ai/guides/component-picker.md +236 -0
  111. package/dist/ai/guides/design-language.md +478 -0
  112. package/dist/ai/guides/design-tokens.md +450 -0
  113. package/dist/ai/guides/fetch-items-playbook.md +161 -0
  114. package/dist/ai/guides/floating-bottom-panel.md +130 -0
  115. package/dist/ai/guides/icons-policy.md +257 -0
  116. package/dist/ai/guides/inertia-helpers.md +1443 -0
  117. package/dist/ai/guides/inline-edit-playbook.md +267 -0
  118. package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
  119. package/dist/ai/guides/migration/components/bb-alert.md +37 -0
  120. package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
  121. package/dist/ai/guides/migration/components/bb-badge.md +110 -0
  122. package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
  123. package/dist/ai/guides/migration/components/bb-button.md +55 -0
  124. package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
  125. package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
  126. package/dist/ai/guides/migration/components/bb-chip.md +35 -0
  127. package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
  128. package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
  129. package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
  130. package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
  131. package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
  132. package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
  133. package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
  134. package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
  135. package/dist/ai/guides/migration/components/bb-icon.md +27 -0
  136. package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
  137. package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
  138. package/dist/ai/guides/migration/components/bb-popover.md +52 -0
  139. package/dist/ai/guides/migration/components/bb-rating.md +24 -0
  140. package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
  141. package/dist/ai/guides/migration/components/bb-select.md +69 -0
  142. package/dist/ai/guides/migration/components/bb-slider.md +25 -0
  143. package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
  144. package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
  145. package/dist/ai/guides/migration/components/bb-table.md +66 -0
  146. package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
  147. package/dist/ai/guides/migration/components/bb-tag.md +29 -0
  148. package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
  149. package/dist/ai/guides/migration/components/bb-toast.md +47 -0
  150. package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
  151. package/dist/ai/guides/migration/components/bb-tree.md +77 -0
  152. package/dist/ai/guides/migration/components/use-confirm.md +46 -0
  153. package/dist/ai/guides/migration/v2-to-v3.md +649 -0
  154. package/dist/ai/guides/options-items-playbook.md +222 -0
  155. package/dist/ai/guides/page-shell.md +113 -0
  156. package/dist/ai/guides/validated-forms.md +177 -0
  157. package/dist/ai/index.md +158 -32
  158. package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
  159. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
  160. package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
  161. package/dist/ai/recipes/inertia/onboarding.md +1791 -0
  162. package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
  163. package/dist/ai/recipes/inertia/record-form.md +1489 -0
  164. package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
  165. package/dist/ai/recipes/inertia/upload-center.md +2003 -0
  166. package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
  167. package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
  168. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
  169. package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
  170. package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
  171. package/dist/ai/recipes/nuxt/record-form.md +1502 -0
  172. package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
  173. package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
  174. package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
  175. package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
  176. package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
  177. package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
  178. package/dist/ai/recipes/vue/onboarding.md +1679 -0
  179. package/dist/ai/recipes/vue/record-form.md +1586 -0
  180. package/dist/ai/recipes/vue/records-workspace.md +1245 -0
  181. package/dist/ai/recipes/vue/upload-center.md +1845 -0
  182. package/dist/ai/recipes/vue/wizard-form.md +1441 -0
  183. package/dist/ai/source/BbAccordion.md +123 -0
  184. package/dist/ai/source/BbAlert.md +401 -0
  185. package/dist/ai/source/BbAsterisk.md +32 -0
  186. package/dist/ai/source/BbAvatar.md +258 -0
  187. package/dist/ai/source/BbBadge.md +560 -0
  188. package/dist/ai/source/BbBadgeButton.md +490 -0
  189. package/dist/ai/source/BbBaseButton.md +682 -0
  190. package/dist/ai/source/BbBaseCheckbox.md +461 -0
  191. package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
  192. package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
  193. package/dist/ai/source/BbBaseColorInput.md +416 -0
  194. package/dist/ai/source/BbBaseColorPalette.md +934 -0
  195. package/dist/ai/source/BbBaseDatePicker.md +1001 -0
  196. package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
  197. package/dist/ai/source/BbBaseInputContainer.md +1210 -0
  198. package/dist/ai/source/BbBaseNumberInput.md +617 -0
  199. package/dist/ai/source/BbBaseRadio.md +377 -0
  200. package/dist/ai/source/BbBaseRadioGroup.md +533 -0
  201. package/dist/ai/source/BbBaseRadioIcon.md +153 -0
  202. package/dist/ai/source/BbBaseRating.md +573 -0
  203. package/dist/ai/source/BbBaseSelect.md +898 -0
  204. package/dist/ai/source/BbBaseSlider.md +1085 -0
  205. package/dist/ai/source/BbBaseSwitch.md +246 -0
  206. package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
  207. package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
  208. package/dist/ai/source/BbBaseTag.md +694 -0
  209. package/dist/ai/source/BbBaseTextInput.md +511 -0
  210. package/dist/ai/source/BbBaseTextarea.md +480 -0
  211. package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
  212. package/dist/ai/source/BbBreadcrumbs.md +815 -0
  213. package/dist/ai/source/BbButton.md +1006 -0
  214. package/dist/ai/source/BbCheckbox.md +326 -0
  215. package/dist/ai/source/BbCheckboxGroup.md +419 -0
  216. package/dist/ai/source/BbCollapsible.md +137 -0
  217. package/dist/ai/source/BbColorInput.md +322 -0
  218. package/dist/ai/source/BbColorPalette.md +371 -0
  219. package/dist/ai/source/BbConfirm.md +193 -0
  220. package/dist/ai/source/BbConfirmPortal.md +74 -0
  221. package/dist/ai/source/BbDatePicker.md +729 -0
  222. package/dist/ai/source/BbDatePickerInput.md +525 -0
  223. package/dist/ai/source/BbDialog.md +818 -0
  224. package/dist/ai/source/BbDropdown.md +2387 -0
  225. package/dist/ai/source/BbDropdownButton.md +315 -0
  226. package/dist/ai/source/BbDropdownGroup.md +1259 -0
  227. package/dist/ai/source/BbDropzone.md +864 -0
  228. package/dist/ai/source/BbForm.md +100 -0
  229. package/dist/ai/source/BbIcon.md +214 -0
  230. package/dist/ai/source/BbIndicator.md +298 -0
  231. package/dist/ai/source/BbNumberInput.md +374 -0
  232. package/dist/ai/source/BbOffCanvas.md +1266 -0
  233. package/dist/ai/source/BbPagination.md +835 -0
  234. package/dist/ai/source/BbPopover.md +860 -0
  235. package/dist/ai/source/BbProgress.md +140 -0
  236. package/dist/ai/source/BbRadio.md +303 -0
  237. package/dist/ai/source/BbRadioGroup.md +420 -0
  238. package/dist/ai/source/BbRating.md +369 -0
  239. package/dist/ai/source/BbSelect.md +688 -0
  240. package/dist/ai/source/BbSelectPopover.md +2234 -0
  241. package/dist/ai/source/BbSlider.md +378 -0
  242. package/dist/ai/source/BbSmoothHeight.md +265 -0
  243. package/dist/ai/source/BbSpinner.md +127 -0
  244. package/dist/ai/source/BbSwitch.md +175 -0
  245. package/dist/ai/source/BbSwitchGroup.md +240 -0
  246. package/dist/ai/source/BbTable.md +3433 -0
  247. package/dist/ai/source/BbTabs.md +403 -0
  248. package/dist/ai/source/BbTabsList.md +578 -0
  249. package/dist/ai/source/BbTabsPanes.md +368 -0
  250. package/dist/ai/source/BbTabsRoot.md +372 -0
  251. package/dist/ai/source/BbTag.md +390 -0
  252. package/dist/ai/source/BbTextInput.md +352 -0
  253. package/dist/ai/source/BbTextarea.md +337 -0
  254. package/dist/ai/source/BbTimePicker.md +595 -0
  255. package/dist/ai/source/BbTimePickerInput.md +376 -0
  256. package/dist/ai/source/BbToast.md +525 -0
  257. package/dist/ai/source/BbToastPortal.md +482 -0
  258. package/dist/ai/source/BbTooltip.md +522 -0
  259. package/dist/ai/source/BbTree.md +323 -0
  260. package/dist/ai/source/ChipsBox.md +201 -0
  261. package/dist/ai/source/ClearableButton.md +70 -0
  262. package/dist/ai/source/CommaBox.md +202 -0
  263. package/dist/ai/source/CommonInputWrapper.md +554 -0
  264. package/dist/ai/source/CommonPopover.md +616 -0
  265. package/dist/ai/source/ErrorIcon.md +43 -0
  266. package/dist/ai/source/FlatListBox.md +396 -0
  267. package/dist/ai/source/GroupedListBox.md +540 -0
  268. package/dist/ai/source/GuidesComponent.md +383 -0
  269. package/dist/ai/source/ListBox.md +238 -0
  270. package/dist/ai/source/OptionsContainer.md +191 -0
  271. package/dist/ai/source/WarningIcon.md +47 -0
  272. package/dist/alert-variants.d.ts +19 -0
  273. package/dist/assets/css/reset.css_inline.js +4 -0
  274. package/dist/assets/svgs/alert.svg_raw.js +4 -0
  275. package/dist/assets/svgs/calendar.svg_raw.js +4 -0
  276. package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
  277. package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
  278. package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
  279. package/dist/assets/svgs/clear.svg_raw.js +4 -0
  280. package/dist/assets/svgs/clock.svg_raw.js +4 -0
  281. package/dist/assets/svgs/error.svg_raw.js +4 -0
  282. package/dist/assets/svgs/search.svg_raw.js +4 -0
  283. package/dist/assets/svgs/sort.svg_raw.js +4 -0
  284. package/dist/assets/svgs/spinner.svg_raw.js +4 -0
  285. package/dist/assets/svgs/user.svg_raw.js +4 -0
  286. package/dist/badge-variants.d.ts +19 -0
  287. package/dist/button-variants.d.ts +21 -0
  288. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
  289. package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
  290. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
  291. package/dist/components/BbAccordion/types.d.ts +12 -8
  292. package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
  293. package/dist/components/BbAlert/BbAlert.vue.js +6 -0
  294. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
  295. package/dist/components/BbAlert/types.d.ts +56 -12
  296. package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
  297. package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
  298. package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
  299. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
  300. package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
  301. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
  302. package/dist/components/BbAvatar/types.d.ts +6 -5
  303. package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
  304. package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
  305. package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
  306. package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
  307. package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
  308. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
  309. package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
  310. package/dist/components/BbBadge/BbBadge.vue.js +6 -0
  311. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
  312. package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
  313. package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
  314. package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
  315. package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
  316. package/dist/components/BbBadge/badgeButtonContext.js +5 -0
  317. package/dist/components/BbBadge/types.d.ts +61 -16
  318. package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
  319. package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
  320. package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
  321. package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
  322. package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
  323. package/dist/components/BbBaseButton/types.d.ts +191 -0
  324. package/dist/components/BbBaseButton/types.js +33 -0
  325. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
  326. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
  327. package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
  328. package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
  329. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
  330. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
  331. package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  332. package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
  333. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
  334. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
  335. package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
  336. package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
  337. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
  338. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
  339. package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
  340. package/dist/components/BbBaseColorInput/types.d.ts +210 -0
  341. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
  342. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
  343. package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
  344. package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
  345. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
  346. package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
  347. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
  348. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
  349. package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
  350. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
  351. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
  352. package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
  353. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
  354. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
  355. package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
  356. package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
  357. package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
  358. package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
  359. package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
  360. package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
  361. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
  362. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
  363. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
  364. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
  365. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
  366. package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
  367. package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
  368. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
  369. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
  370. package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
  371. package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
  372. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
  373. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
  374. package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
  375. package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
  376. package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
  377. package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
  378. package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
  379. package/dist/components/BbBaseRadio/types.d.ts +179 -0
  380. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
  381. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
  382. package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
  383. package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
  384. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
  385. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
  386. package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
  387. package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
  388. package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
  389. package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
  390. package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
  391. package/dist/components/BbBaseRating/types.d.ts +168 -0
  392. package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
  393. package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
  394. package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
  395. package/dist/components/BbBaseSelect/types.d.ts +297 -0
  396. package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
  397. package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
  398. package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
  399. package/dist/components/BbBaseSlider/types.d.ts +200 -0
  400. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
  401. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
  402. package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
  403. package/dist/components/BbBaseSwitch/types.d.ts +10 -0
  404. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
  405. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
  406. package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  407. package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
  408. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
  409. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
  410. package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
  411. package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
  412. package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
  413. package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
  414. package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
  415. package/dist/components/BbBaseTag/types.d.ts +160 -0
  416. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
  417. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
  418. package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
  419. package/dist/components/BbBaseTextInput/types.d.ts +209 -0
  420. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
  421. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
  422. package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
  423. package/dist/components/BbBaseTextarea/types.d.ts +170 -0
  424. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
  425. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
  426. package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
  427. package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
  428. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
  429. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
  430. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
  431. package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
  432. package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
  433. package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
  434. package/dist/components/BbButton/BbButton.vue.js +6 -0
  435. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
  436. package/dist/components/BbButton/types.d.ts +48 -47
  437. package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
  438. package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
  439. package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
  440. package/dist/components/BbCheckbox/types.d.ts +31 -10
  441. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
  442. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
  443. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  444. package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
  445. package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
  446. package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
  447. package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
  448. package/dist/components/BbCollapsible/types.d.ts +13 -8
  449. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
  450. package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
  451. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
  452. package/dist/components/BbColorInput/types.d.ts +44 -11
  453. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
  454. package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
  455. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
  456. package/dist/components/BbColorPalette/types.d.ts +71 -52
  457. package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
  458. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
  459. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
  460. package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
  461. package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
  462. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
  463. package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
  464. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
  465. package/dist/components/BbDatePicker/types.d.ts +159 -0
  466. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  467. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
  468. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
  469. package/dist/components/BbDatePickerInput/types.d.ts +134 -16
  470. package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
  471. package/dist/components/BbDialog/BbDialog.vue.js +6 -0
  472. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
  473. package/dist/components/BbDialog/types.d.ts +146 -1
  474. package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
  475. package/dist/components/BbDialog/useDialogStack.js +20 -0
  476. package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
  477. package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
  478. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
  479. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
  480. package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
  481. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
  482. package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
  483. package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
  484. package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
  485. package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
  486. package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
  487. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
  488. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
  489. package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
  490. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
  491. package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
  492. package/dist/components/BbDropdown/normalizeGroups.js +46 -0
  493. package/dist/components/BbDropdown/types.d.ts +468 -46
  494. package/dist/components/BbDropdown/types.js +4 -0
  495. package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
  496. package/dist/components/BbDropdown/useDropdownContext.js +9 -0
  497. package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
  498. package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
  499. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
  500. package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
  501. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
  502. package/dist/components/BbDropdownButton/types.d.ts +47 -52
  503. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
  504. package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
  505. package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
  506. package/dist/components/BbDropzone/types.d.ts +77 -8
  507. package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
  508. package/dist/components/BbIcon/BbIcon.vue.js +6 -0
  509. package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
  510. package/dist/components/BbIcon/types.d.ts +6 -19
  511. package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
  512. package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
  513. package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
  514. package/dist/components/BbIndicator/types.d.ts +49 -0
  515. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
  516. package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
  517. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
  518. package/dist/components/BbNumberInput/types.d.ts +40 -4
  519. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
  520. package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
  521. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
  522. package/dist/components/BbOffCanvas/types.d.ts +71 -39
  523. package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
  524. package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
  525. package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
  526. package/dist/components/BbPagination/BbPagination.vue.js +6 -0
  527. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
  528. package/dist/components/BbPagination/paginationFit.d.ts +38 -0
  529. package/dist/components/BbPagination/paginationFit.js +13 -0
  530. package/dist/components/BbPagination/types.d.ts +51 -16
  531. package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
  532. package/dist/components/BbPopover/BbPopover.vue.js +6 -0
  533. package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
  534. package/dist/components/BbPopover/escapeStack.d.ts +6 -0
  535. package/dist/components/BbPopover/escapeStack.js +10 -0
  536. package/dist/components/BbPopover/types.d.ts +90 -31
  537. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
  538. package/dist/components/BbProgress/BbProgress.vue.js +6 -0
  539. package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
  540. package/dist/components/BbProgress/types.d.ts +15 -1
  541. package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
  542. package/dist/components/BbRadio/BbRadio.vue.js +6 -0
  543. package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
  544. package/dist/components/BbRadio/types.d.ts +32 -9
  545. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
  546. package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
  547. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
  548. package/dist/components/BbRadioGroup/types.d.ts +48 -22
  549. package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
  550. package/dist/components/BbRating/BbRating.vue.js +6 -0
  551. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
  552. package/dist/components/BbRating/types.d.ts +44 -10
  553. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
  554. package/dist/components/BbSelect/BbSelect.vue.js +6 -0
  555. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
  556. package/dist/components/BbSelect/types.d.ts +112 -59
  557. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
  558. package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
  559. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
  560. package/dist/components/BbSelectPopover/types.d.ts +197 -105
  561. package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
  562. package/dist/components/BbSlider/BbSlider.vue.js +6 -0
  563. package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
  564. package/dist/components/BbSlider/types.d.ts +44 -13
  565. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
  566. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
  567. package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
  568. package/dist/components/BbSmoothHeight/types.d.ts +17 -2
  569. package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
  570. package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
  571. package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
  572. package/dist/components/BbSpinner/types.d.ts +10 -3
  573. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
  574. package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
  575. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
  576. package/dist/components/BbSwitch/types.d.ts +3 -1
  577. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
  578. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
  579. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
  580. package/dist/components/BbSwitchGroup/types.d.ts +3 -22
  581. package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
  582. package/dist/components/BbTable/BbTable.vue.js +6 -0
  583. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
  584. package/dist/components/BbTable/types.d.ts +213 -37
  585. package/dist/components/BbTable/utils.d.ts +9 -1
  586. package/dist/components/BbTable/utils.js +53 -0
  587. package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
  588. package/dist/components/BbTabs/BbTabs.vue.js +6 -0
  589. package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
  590. package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
  591. package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
  592. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
  593. package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
  594. package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
  595. package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
  596. package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
  597. package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
  598. package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
  599. package/dist/components/BbTabs/types.d.ts +264 -0
  600. package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
  601. package/dist/components/BbTag/BbTag.vue.js +6 -0
  602. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
  603. package/dist/components/BbTag/types.d.ts +55 -17
  604. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
  605. package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
  606. package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
  607. package/dist/components/BbTextInput/types.d.ts +31 -4
  608. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
  609. package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
  610. package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
  611. package/dist/components/BbTextarea/types.d.ts +33 -2
  612. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
  613. package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
  614. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
  615. package/dist/components/BbTimePicker/types.d.ts +133 -0
  616. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
  617. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
  618. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
  619. package/dist/components/BbTimePickerInput/types.d.ts +174 -0
  620. package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
  621. package/dist/components/BbToast/BbToast.vue.js +6 -0
  622. package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
  623. package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
  624. package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
  625. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
  626. package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
  627. package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
  628. package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
  629. package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
  630. package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
  631. package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
  632. package/dist/components/BbToast/types.d.ts +69 -5
  633. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
  634. package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
  635. package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
  636. package/dist/components/BbTooltip/types.d.ts +69 -11
  637. package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
  638. package/dist/components/BbTree/BbTree.vue.js +6 -0
  639. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
  640. package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
  641. package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
  642. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
  643. package/dist/components/BbTree/context.d.ts +17 -0
  644. package/dist/components/BbTree/context.js +4 -0
  645. package/dist/components/BbTree/types.d.ts +94 -41
  646. package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
  647. package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
  648. package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
  649. package/dist/components/ChipsBox/types.d.ts +12 -5
  650. package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
  651. package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
  652. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
  653. package/dist/components/ClearableButton/types.d.ts +7 -1
  654. package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
  655. package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
  656. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
  657. package/dist/components/CloseIcon/types.d.ts +2 -0
  658. package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
  659. package/dist/components/CommaBox/CommaBox.vue.js +6 -0
  660. package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
  661. package/dist/components/CommaBox/types.d.ts +6 -7
  662. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
  663. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
  664. package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
  665. package/dist/components/CommonInputWrapper/types.d.ts +96 -0
  666. package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
  667. package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
  668. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
  669. package/dist/components/CommonPopover/types.d.ts +65 -16
  670. package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
  671. package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
  672. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
  673. package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
  674. package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
  675. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
  676. package/dist/components/FlatListBox/types.d.ts +1 -1
  677. package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
  678. package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
  679. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
  680. package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
  681. package/dist/components/ListBox/ListBox.vue.js +5 -0
  682. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
  683. package/dist/components/ListBox/types.d.ts +1 -1
  684. package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
  685. package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
  686. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
  687. package/dist/components/OptionsContainer/types.d.ts +14 -24
  688. package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
  689. package/dist/components/Transitions/ScaleFade.vue.js +5 -0
  690. package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
  691. package/dist/components/Transitions/Slide.vue.d.ts +15 -0
  692. package/dist/components/Transitions/Slide.vue.js +7 -0
  693. package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
  694. package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
  695. package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
  696. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
  697. package/dist/components/WarningIcon/types.d.ts +3 -0
  698. package/dist/composables/__testResets.d.ts +1 -0
  699. package/dist/composables/useActiveInactiveState.d.ts +4 -0
  700. package/dist/composables/useActiveInactiveState.js +21 -0
  701. package/dist/composables/useBaseOptions.d.ts +3 -3
  702. package/dist/composables/useBaseOptions.js +31 -0
  703. package/dist/composables/useBbConfig.d.ts +8 -37
  704. package/dist/composables/useBbConfig.js +5 -0
  705. package/dist/composables/useBbDropdownContext.d.ts +89 -0
  706. package/dist/composables/useBbDropdownContext.js +46 -0
  707. package/dist/composables/useBbFormContext.d.ts +90 -0
  708. package/dist/composables/useBbFormContext.js +69 -0
  709. package/dist/composables/useBbTableContext.d.ts +195 -0
  710. package/dist/composables/useBbTableContext.js +208 -0
  711. package/dist/composables/useBbTabsContext.d.ts +111 -0
  712. package/dist/composables/useBbTabsContext.js +225 -0
  713. package/dist/composables/useBreakpoint.d.ts +13 -0
  714. package/dist/composables/useBreakpoint.js +39 -0
  715. package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
  716. package/dist/composables/useBroadcastChannelInstance.js +39 -0
  717. package/dist/composables/useCancelableFunction.js +37 -0
  718. package/dist/composables/useClosingInert.d.ts +28 -0
  719. package/dist/composables/useClosingInert.js +23 -0
  720. package/dist/composables/useCoherence.js +16 -0
  721. package/dist/composables/useConfirm.d.ts +278 -68
  722. package/dist/composables/useConfirm.js +130 -0
  723. package/dist/composables/useCountdown.js +42 -0
  724. package/dist/composables/useHashedWatcher.d.ts +17 -0
  725. package/dist/composables/useHashedWatcher.js +14 -0
  726. package/dist/composables/useId.d.ts +3 -2
  727. package/dist/composables/useIndexById.js +16 -0
  728. package/dist/composables/useInertiaPage.d.ts +10 -0
  729. package/dist/composables/useInertiaPage.js +8 -0
  730. package/dist/composables/useItemText.js +17 -0
  731. package/dist/composables/useItemValue.js +9 -0
  732. package/dist/composables/useItemsGetter.d.ts +1 -1
  733. package/dist/composables/useItemsGetter.js +30 -0
  734. package/dist/composables/useListboxFocus.js +66 -0
  735. package/dist/composables/useLocale.d.ts +1 -1
  736. package/dist/composables/useLocale.js +11 -0
  737. package/dist/composables/useLogger.d.ts +1 -1
  738. package/dist/composables/useLogger.js +10 -0
  739. package/dist/composables/useMinimalQueue.d.ts +1 -1
  740. package/dist/composables/useMobile.js +7 -0
  741. package/dist/composables/useOnFalsy.d.ts +2 -0
  742. package/dist/composables/useOnFalsy.js +9 -0
  743. package/dist/composables/useOnTruthy.d.ts +7 -0
  744. package/dist/composables/useOnTruthy.js +9 -0
  745. package/dist/composables/usePrefill.d.ts +2 -1
  746. package/dist/composables/usePrefill.js +24 -0
  747. package/dist/composables/useQuery.d.ts +15 -3
  748. package/dist/composables/useQuery.js +42 -0
  749. package/dist/composables/useRoute.js +11 -0
  750. package/dist/composables/useRouter.js +8 -0
  751. package/dist/composables/useSafeArea.d.ts +51 -0
  752. package/dist/composables/useSafeArea.js +16 -0
  753. package/dist/composables/useSegmentedFields.d.ts +104 -0
  754. package/dist/composables/useSegmentedFields.js +159 -0
  755. package/dist/composables/useTableWidthContext.d.ts +5 -0
  756. package/dist/composables/useTableWidthContext.js +42 -0
  757. package/dist/composables/useToast.d.ts +40 -70
  758. package/dist/composables/useToast.js +58 -0
  759. package/dist/composables/useTopLayer.d.ts +9 -0
  760. package/dist/composables/useTopLayer.js +7 -0
  761. package/dist/composables/useUntil.js +13 -0
  762. package/dist/composables/useViewportWidth.d.ts +17 -0
  763. package/dist/composables/useViewportWidth.js +6 -0
  764. package/dist/confirm-variants.d.ts +17 -0
  765. package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
  766. package/dist/deprecation/ai-deprecations.json.js +4 -0
  767. package/dist/deprecation/removedProps.d.ts +3 -0
  768. package/dist/deprecation/removedProps.js +13 -0
  769. package/dist/directives/bbColor.d.ts +65 -0
  770. package/dist/directives/bbColor.js +24 -0
  771. package/dist/directives/bbDate.d.ts +66 -0
  772. package/dist/directives/bbDate.js +24 -0
  773. package/dist/directives/bbDropdown.d.ts +15 -11
  774. package/dist/directives/bbDropdown.js +23 -0
  775. package/dist/directives/bbTime.d.ts +64 -0
  776. package/dist/directives/bbTime.js +24 -0
  777. package/dist/directives/bbTooltip.d.ts +16 -11
  778. package/dist/directives/bbTooltip.js +24 -0
  779. package/dist/directives/createPopoverDirective.js +54 -0
  780. package/dist/dropdown-item-variants.d.ts +17 -0
  781. package/dist/i18n/index.d.ts +51 -3
  782. package/dist/i18n/index.js +27 -0
  783. package/dist/i18n/locales/cs.json +115 -0
  784. package/dist/i18n/locales/da.json +115 -0
  785. package/dist/i18n/locales/de.json +115 -0
  786. package/dist/i18n/locales/el.json +115 -0
  787. package/dist/i18n/locales/en.json +115 -0
  788. package/dist/i18n/locales/es.json +115 -0
  789. package/dist/i18n/locales/fi.json +115 -0
  790. package/dist/i18n/locales/fr.json +115 -0
  791. package/dist/i18n/locales/hu.json +115 -0
  792. package/dist/i18n/locales/it.json +115 -0
  793. package/dist/i18n/locales/ja.json +115 -0
  794. package/dist/i18n/locales/ko.json +115 -0
  795. package/dist/i18n/locales/nb.json +115 -0
  796. package/dist/i18n/locales/nl.json +115 -0
  797. package/dist/i18n/locales/pl.json +115 -0
  798. package/dist/i18n/locales/pt.json +115 -0
  799. package/dist/i18n/locales/ro.json +115 -0
  800. package/dist/i18n/locales/ru.json +115 -0
  801. package/dist/i18n/locales/sv.json +115 -0
  802. package/dist/i18n/locales/tr.json +115 -0
  803. package/dist/i18n/locales/uk.json +115 -0
  804. package/dist/i18n/locales/zh-cn.json +115 -0
  805. package/dist/icons-whitelist.d.ts +8 -0
  806. package/dist/index.d.ts +96 -79
  807. package/dist/index.js +76 -82
  808. package/dist/indicator-variants.d.ts +20 -0
  809. package/dist/llms-full.txt +79703 -0
  810. package/dist/llms-medium.txt +1514 -0
  811. package/dist/llms.txt +105 -0
  812. package/dist/locale-blueprint.json +141 -0
  813. package/dist/locale-registry.d.ts +37 -0
  814. package/dist/nuxt-module.d.ts +3 -0
  815. package/dist/nuxt.js +19 -0
  816. package/dist/plugin.d.ts +4 -0
  817. package/dist/plugin.js +22 -0
  818. package/dist/reset.css +1 -0
  819. package/dist/reset.d.ts +0 -0
  820. package/dist/runtime/nuxt-plugin.d.ts +2 -0
  821. package/dist/runtime/nuxt-plugin.js +24 -0
  822. package/dist/styles.css +2 -0
  823. package/dist/styles.d.ts +0 -0
  824. package/dist/toast-variants.d.ts +20 -0
  825. package/dist/tooltip-variants.d.ts +17 -0
  826. package/dist/types/ActionButton.d.ts +32 -0
  827. package/dist/types/AlertVariant.d.ts +16 -0
  828. package/dist/types/BadgeVariant.d.ts +16 -0
  829. package/dist/types/ButtonVariant.d.ts +17 -0
  830. package/dist/types/Classes.d.ts +1 -1
  831. package/dist/types/ColumnName.d.ts +1 -1
  832. package/dist/types/CommonProps.d.ts +68 -277
  833. package/dist/types/Config.d.ts +84 -0
  834. package/dist/types/ConfirmVariant.d.ts +15 -0
  835. package/dist/types/DropdownItemVariant.d.ts +18 -0
  836. package/dist/types/Icon.d.ts +5 -7
  837. package/dist/types/IndicatorVariant.d.ts +16 -0
  838. package/dist/types/InputDirection.d.ts +15 -0
  839. package/dist/types/ItemAccessor.d.ts +21 -0
  840. package/dist/types/Placement.d.ts +6 -0
  841. package/dist/types/ResponsiveSize.d.ts +20 -0
  842. package/dist/types/SizeScale.d.ts +8 -0
  843. package/dist/types/ToastVariant.d.ts +17 -0
  844. package/dist/types/TooltipVariant.d.ts +18 -0
  845. package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
  846. package/dist/utilities/functions/bytesToUnit.js +18 -0
  847. package/dist/utilities/functions/clampPrecision.js +10 -0
  848. package/dist/utilities/functions/convertDateValue.d.ts +23 -10
  849. package/dist/utilities/functions/convertDateValue.js +12 -0
  850. package/dist/utilities/functions/deburr.js +5 -0
  851. package/dist/utilities/functions/empty.js +5 -0
  852. package/dist/utilities/functions/flattenTree.d.ts +1 -1
  853. package/dist/utilities/functions/hash.js +5 -0
  854. package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
  855. package/dist/utilities/functions/isDateDisabled.js +20 -0
  856. package/dist/utilities/functions/isEqual.js +5 -0
  857. package/dist/utilities/functions/isNotEmpty.js +5 -0
  858. package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
  859. package/dist/utilities/functions/matchAnyKey.js +15 -0
  860. package/dist/utilities/functions/parseSize.d.ts +1 -1
  861. package/dist/utilities/functions/parseSize.js +15 -0
  862. package/dist/utilities/functions/percentage.js +11 -0
  863. package/dist/utilities/functions/pipe.d.ts +1 -1
  864. package/dist/utilities/functions/reject.d.ts +25 -0
  865. package/dist/utilities/functions/reject.js +28 -0
  866. package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
  867. package/dist/utilities/functions/resolveEnumProp.js +5 -0
  868. package/dist/utilities/functions/slotKey.d.ts +13 -0
  869. package/dist/utilities/functions/slotKey.js +4 -0
  870. package/dist/utilities/functions/sort.d.ts +2 -2
  871. package/dist/utilities/functions/sort.js +19 -0
  872. package/dist/utilities/functions/throttle.js +5 -0
  873. package/dist/utilities/functions/waitFor.d.ts +9 -2
  874. package/dist/utilities/functions/waitFor.js +14 -0
  875. package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
  876. package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
  877. package/dist/utilities/functions/when.js +5 -0
  878. package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
  879. package/dist/utilities/misc/iconsInjectionKey.js +4 -0
  880. package/dist/utilities/misc/transitions.d.ts +5 -0
  881. package/dist/utilities/misc/transitions.js +8 -0
  882. package/dist/utils/injectLibraryStyles.d.ts +6 -0
  883. package/dist/utils/injectLibraryStyles.js +38 -0
  884. package/dist/validated/BbCheckbox.vue.d.ts +29 -0
  885. package/dist/validated/BbCheckbox.vue.js +5 -0
  886. package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
  887. package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
  888. package/dist/validated/BbCheckboxGroup.vue.js +5 -0
  889. package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
  890. package/dist/validated/BbColorInput.vue.d.ts +36 -0
  891. package/dist/validated/BbColorInput.vue.js +5 -0
  892. package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
  893. package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
  894. package/dist/validated/BbDatePickerInput.vue.js +5 -0
  895. package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
  896. package/dist/validated/BbDropzone.vue.d.ts +24 -0
  897. package/dist/validated/BbDropzone.vue.js +5 -0
  898. package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
  899. package/dist/validated/BbForm.vue.d.ts +28 -0
  900. package/dist/validated/BbForm.vue.js +5 -0
  901. package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
  902. package/dist/validated/BbNumberInput.vue.d.ts +36 -0
  903. package/dist/validated/BbNumberInput.vue.js +5 -0
  904. package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
  905. package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
  906. package/dist/validated/BbRadioGroup.vue.js +5 -0
  907. package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
  908. package/dist/validated/BbRating.vue.d.ts +30 -0
  909. package/dist/validated/BbRating.vue.js +5 -0
  910. package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
  911. package/dist/validated/BbSelect.vue.d.ts +46 -0
  912. package/dist/validated/BbSelect.vue.js +5 -0
  913. package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
  914. package/dist/validated/BbSlider.vue.d.ts +36 -0
  915. package/dist/validated/BbSlider.vue.js +5 -0
  916. package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
  917. package/dist/validated/BbSwitch.vue.d.ts +29 -0
  918. package/dist/validated/BbSwitch.vue.js +5 -0
  919. package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
  920. package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
  921. package/dist/validated/BbSwitchGroup.vue.js +5 -0
  922. package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
  923. package/dist/validated/BbTag.vue.d.ts +36 -0
  924. package/dist/validated/BbTag.vue.js +5 -0
  925. package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
  926. package/dist/validated/BbTextInput.vue.d.ts +36 -0
  927. package/dist/validated/BbTextInput.vue.js +5 -0
  928. package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
  929. package/dist/validated/BbTextarea.vue.d.ts +36 -0
  930. package/dist/validated/BbTextarea.vue.js +5 -0
  931. package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
  932. package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
  933. package/dist/validated/BbTimePickerInput.vue.js +5 -0
  934. package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
  935. package/dist/validated/index.d.ts +29 -0
  936. package/dist/validated/useValidatedField.d.ts +93 -0
  937. package/dist/validated/useValidatedField.js +51 -0
  938. package/dist/validated.js +21 -0
  939. package/dist/vite-plugin.d.ts +261 -0
  940. package/dist/vite.js +603 -0
  941. package/llms.txt +107 -0
  942. package/package.json +181 -60
  943. package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
  944. package/scripts/lib/ensure-manifest.mjs +39 -0
  945. package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
  946. package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
  947. package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
  948. package/scripts/lib/eslint-plugin.mjs +702 -0
  949. package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
  950. package/scripts/lib/html-attributes.mjs +191 -0
  951. package/scripts/lib/mcp-config.mjs +126 -0
  952. package/scripts/lib/migrate-fix.mjs +115 -0
  953. package/scripts/lib/validate-bb-markup.mjs +488 -0
  954. package/dist/ai/BaseButton.md +0 -449
  955. package/dist/ai/BaseCheckbox.md +0 -512
  956. package/dist/ai/BaseCheckboxGroup.md +0 -597
  957. package/dist/ai/BaseColorInput.md +0 -461
  958. package/dist/ai/BaseDatePicker.md +0 -739
  959. package/dist/ai/BaseDatePickerInput.md +0 -1517
  960. package/dist/ai/BaseDialog.md +0 -610
  961. package/dist/ai/BaseInputContainer.md +0 -570
  962. package/dist/ai/BaseNumberInput.md +0 -509
  963. package/dist/ai/BaseRadio.md +0 -405
  964. package/dist/ai/BaseRadioGroup.md +0 -535
  965. package/dist/ai/BaseRating.md +0 -489
  966. package/dist/ai/BaseSelect.md +0 -1742
  967. package/dist/ai/BaseSlider.md +0 -871
  968. package/dist/ai/BaseSwitch.md +0 -322
  969. package/dist/ai/BaseSwitchGroup.md +0 -298
  970. package/dist/ai/BaseTag.md +0 -623
  971. package/dist/ai/BaseTextInput.md +0 -392
  972. package/dist/ai/BaseTextarea.md +0 -398
  973. package/dist/ai/BbChip.md +0 -147
  974. package/dist/ai/BbIntersection.md +0 -120
  975. package/dist/ai/BbRatio.md +0 -61
  976. package/dist/ai/BbRows.md +0 -307
  977. package/dist/ai/BbTab.md +0 -950
  978. package/dist/ai/CommonInputInnerContainer.md +0 -414
  979. package/dist/ai/CommonInputOuterContainer.md +0 -55
  980. package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
  981. package/dist/components/BaseButton/types.d.ts +0 -159
  982. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
  983. package/dist/components/BaseCheckbox/types.d.ts +0 -213
  984. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
  985. package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
  986. package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
  987. package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
  988. package/dist/components/BaseColorInput/types.d.ts +0 -233
  989. package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
  990. package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
  991. package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
  992. package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
  993. package/dist/components/BaseDatePicker/types.d.ts +0 -100
  994. package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
  995. package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
  996. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
  997. package/dist/components/BaseDialog/types.d.ts +0 -180
  998. package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
  999. package/dist/components/BaseInputContainer/types.d.ts +0 -126
  1000. package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
  1001. package/dist/components/BaseNumberInput/types.d.ts +0 -191
  1002. package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
  1003. package/dist/components/BaseRadio/types.d.ts +0 -173
  1004. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
  1005. package/dist/components/BaseRadioGroup/types.d.ts +0 -240
  1006. package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
  1007. package/dist/components/BaseRating/types.d.ts +0 -144
  1008. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
  1009. package/dist/components/BaseSelect/types.d.ts +0 -470
  1010. package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
  1011. package/dist/components/BaseSlider/types.d.ts +0 -201
  1012. package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
  1013. package/dist/components/BaseSwitch/types.d.ts +0 -25
  1014. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
  1015. package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
  1016. package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
  1017. package/dist/components/BaseTag/types.d.ts +0 -136
  1018. package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
  1019. package/dist/components/BaseTextInput/types.d.ts +0 -166
  1020. package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
  1021. package/dist/components/BaseTextarea/types.d.ts +0 -151
  1022. package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
  1023. package/dist/components/BbChip/types.d.ts +0 -23
  1024. package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
  1025. package/dist/components/BbIntersection/types.d.ts +0 -36
  1026. package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
  1027. package/dist/components/BbRatio/types.d.ts +0 -15
  1028. package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
  1029. package/dist/components/BbRows/types.d.ts +0 -21
  1030. package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
  1031. package/dist/components/BbTab/types.d.ts +0 -186
  1032. package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
  1033. package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
  1034. package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
  1035. package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
  1036. package/dist/composables/useModalsState.d.ts +0 -5
  1037. package/dist/composables/useQueue.d.ts +0 -58
  1038. package/dist/composables/useWizard.d.ts +0 -85
  1039. package/dist/i18n/en.d.ts +0 -67
  1040. package/dist/i18n/it.d.ts +0 -67
  1041. package/dist/index.css +0 -2
  1042. package/dist/index100.js +0 -6
  1043. package/dist/index101.js +0 -300
  1044. package/dist/index102.js +0 -16
  1045. package/dist/index103.js +0 -16
  1046. package/dist/index104.js +0 -27
  1047. package/dist/index109.js +0 -19
  1048. package/dist/index11.js +0 -42
  1049. package/dist/index110.js +0 -12
  1050. package/dist/index111.js +0 -19
  1051. package/dist/index112.js +0 -25
  1052. package/dist/index114.js +0 -7
  1053. package/dist/index115.js +0 -241
  1054. package/dist/index116.js +0 -5
  1055. package/dist/index117.js +0 -42
  1056. package/dist/index118.js +0 -5
  1057. package/dist/index119.js +0 -53
  1058. package/dist/index120.js +0 -5
  1059. package/dist/index121.js +0 -32
  1060. package/dist/index122.js +0 -5
  1061. package/dist/index124.js +0 -52
  1062. package/dist/index125.js +0 -5
  1063. package/dist/index126.js +0 -223
  1064. package/dist/index128.js +0 -6
  1065. package/dist/index129.js +0 -162
  1066. package/dist/index13.js +0 -92
  1067. package/dist/index130.js +0 -25
  1068. package/dist/index131.js +0 -51
  1069. package/dist/index132.js +0 -5
  1070. package/dist/index133.js +0 -607
  1071. package/dist/index135.js +0 -6
  1072. package/dist/index136.js +0 -14
  1073. package/dist/index137.js +0 -153
  1074. package/dist/index139.js +0 -6
  1075. package/dist/index14.js +0 -306
  1076. package/dist/index140.js +0 -224
  1077. package/dist/index141.js +0 -5
  1078. package/dist/index143.js +0 -128
  1079. package/dist/index145.js +0 -6
  1080. package/dist/index146.js +0 -8
  1081. package/dist/index147.js +0 -182
  1082. package/dist/index149.js +0 -6
  1083. package/dist/index15.js +0 -10
  1084. package/dist/index151.js +0 -4
  1085. package/dist/index152.js +0 -95
  1086. package/dist/index154.js +0 -6
  1087. package/dist/index155.js +0 -168
  1088. package/dist/index157.js +0 -6
  1089. package/dist/index158.js +0 -145
  1090. package/dist/index16.js +0 -59
  1091. package/dist/index160.js +0 -6
  1092. package/dist/index161.js +0 -53
  1093. package/dist/index163.js +0 -6
  1094. package/dist/index164.js +0 -16
  1095. package/dist/index166.js +0 -35
  1096. package/dist/index168.js +0 -6
  1097. package/dist/index169.js +0 -89
  1098. package/dist/index171.js +0 -6
  1099. package/dist/index172.js +0 -82
  1100. package/dist/index174.js +0 -6
  1101. package/dist/index175.js +0 -38
  1102. package/dist/index176.js +0 -461
  1103. package/dist/index177.js +0 -28
  1104. package/dist/index178.js +0 -66
  1105. package/dist/index18.js +0 -35
  1106. package/dist/index180.js +0 -162
  1107. package/dist/index181.js +0 -5
  1108. package/dist/index182.js +0 -217
  1109. package/dist/index183.js +0 -5
  1110. package/dist/index184.js +0 -112
  1111. package/dist/index185.js +0 -5
  1112. package/dist/index186.js +0 -459
  1113. package/dist/index188.js +0 -6
  1114. package/dist/index19.js +0 -4
  1115. package/dist/index192.js +0 -268
  1116. package/dist/index194.js +0 -6
  1117. package/dist/index195.js +0 -124
  1118. package/dist/index197.js +0 -6
  1119. package/dist/index198.js +0 -174
  1120. package/dist/index2.js +0 -20
  1121. package/dist/index20.js +0 -9
  1122. package/dist/index200.js +0 -6
  1123. package/dist/index201.js +0 -224
  1124. package/dist/index203.js +0 -6
  1125. package/dist/index204.js +0 -135
  1126. package/dist/index206.js +0 -6
  1127. package/dist/index207.js +0 -5
  1128. package/dist/index208.js +0 -170
  1129. package/dist/index21.js +0 -35
  1130. package/dist/index210.js +0 -6
  1131. package/dist/index211.js +0 -37
  1132. package/dist/index213.js +0 -6
  1133. package/dist/index214.js +0 -63
  1134. package/dist/index216.js +0 -6
  1135. package/dist/index217.js +0 -74
  1136. package/dist/index219.js +0 -6
  1137. package/dist/index22.js +0 -6
  1138. package/dist/index220.js +0 -65
  1139. package/dist/index222.js +0 -6
  1140. package/dist/index223.js +0 -67
  1141. package/dist/index225.js +0 -6
  1142. package/dist/index226.js +0 -41
  1143. package/dist/index228.js +0 -6
  1144. package/dist/index229.js +0 -10
  1145. package/dist/index23.js +0 -7
  1146. package/dist/index230.js +0 -22
  1147. package/dist/index232.js +0 -8
  1148. package/dist/index233.js +0 -297
  1149. package/dist/index235.js +0 -6
  1150. package/dist/index236.js +0 -47
  1151. package/dist/index237.js +0 -165
  1152. package/dist/index239.js +0 -6
  1153. package/dist/index24.js +0 -9
  1154. package/dist/index241.js +0 -159
  1155. package/dist/index243.js +0 -6
  1156. package/dist/index244.js +0 -134
  1157. package/dist/index246.js +0 -6
  1158. package/dist/index247.js +0 -167
  1159. package/dist/index249.js +0 -6
  1160. package/dist/index25.js +0 -24
  1161. package/dist/index250.js +0 -147
  1162. package/dist/index252.js +0 -6
  1163. package/dist/index253.js +0 -35
  1164. package/dist/index255.js +0 -6
  1165. package/dist/index256.js +0 -65
  1166. package/dist/index258.js +0 -6
  1167. package/dist/index259.js +0 -19
  1168. package/dist/index260.js +0 -5
  1169. package/dist/index261.js +0 -160
  1170. package/dist/index263.js +0 -6
  1171. package/dist/index264.js +0 -60
  1172. package/dist/index266.js +0 -6
  1173. package/dist/index267.js +0 -134
  1174. package/dist/index269.js +0 -6
  1175. package/dist/index27.js +0 -4
  1176. package/dist/index271.js +0 -206
  1177. package/dist/index273.js +0 -6
  1178. package/dist/index274.js +0 -85
  1179. package/dist/index275.js +0 -5
  1180. package/dist/index276.js +0 -55
  1181. package/dist/index277.js +0 -5
  1182. package/dist/index278.js +0 -164
  1183. package/dist/index28.js +0 -8
  1184. package/dist/index280.js +0 -6
  1185. package/dist/index281.js +0 -145
  1186. package/dist/index283.js +0 -6
  1187. package/dist/index284.js +0 -11
  1188. package/dist/index285.js +0 -200
  1189. package/dist/index287.js +0 -6
  1190. package/dist/index288.js +0 -241
  1191. package/dist/index29.js +0 -7
  1192. package/dist/index290.js +0 -6
  1193. package/dist/index291.js +0 -21
  1194. package/dist/index293.js +0 -6
  1195. package/dist/index294.js +0 -125
  1196. package/dist/index296.js +0 -6
  1197. package/dist/index297.js +0 -161
  1198. package/dist/index299.js +0 -6
  1199. package/dist/index30.js +0 -118
  1200. package/dist/index300.js +0 -127
  1201. package/dist/index302.js +0 -6
  1202. package/dist/index303.js +0 -20
  1203. package/dist/index305.js +0 -6
  1204. package/dist/index306.js +0 -116
  1205. package/dist/index307.js +0 -5
  1206. package/dist/index308.js +0 -507
  1207. package/dist/index31.js +0 -10
  1208. package/dist/index310.js +0 -6
  1209. package/dist/index311.js +0 -196
  1210. package/dist/index313.js +0 -6
  1211. package/dist/index314.js +0 -142
  1212. package/dist/index316.js +0 -6
  1213. package/dist/index317.js +0 -134
  1214. package/dist/index319.js +0 -6
  1215. package/dist/index32.js +0 -28
  1216. package/dist/index320.js +0 -162
  1217. package/dist/index322.js +0 -6
  1218. package/dist/index323.js +0 -319
  1219. package/dist/index325.js +0 -6
  1220. package/dist/index326.js +0 -40
  1221. package/dist/index327.js +0 -43
  1222. package/dist/index328.js +0 -665
  1223. package/dist/index33.js +0 -5
  1224. package/dist/index330.js +0 -6
  1225. package/dist/index331.js +0 -155
  1226. package/dist/index333.js +0 -6
  1227. package/dist/index334.js +0 -142
  1228. package/dist/index336.js +0 -6
  1229. package/dist/index337.js +0 -155
  1230. package/dist/index339.js +0 -6
  1231. package/dist/index34.js +0 -112
  1232. package/dist/index340.js +0 -58
  1233. package/dist/index341.js +0 -5
  1234. package/dist/index342.js +0 -20
  1235. package/dist/index344.js +0 -6
  1236. package/dist/index345.js +0 -142
  1237. package/dist/index347.js +0 -6
  1238. package/dist/index349.js +0 -109
  1239. package/dist/index351.js +0 -6
  1240. package/dist/index352.js +0 -55
  1241. package/dist/index353.js +0 -24
  1242. package/dist/index354.js +0 -23
  1243. package/dist/index355.js +0 -839
  1244. package/dist/index356.js +0 -474
  1245. package/dist/index357.js +0 -52
  1246. package/dist/index358.js +0 -7
  1247. package/dist/index36.js +0 -6
  1248. package/dist/index38.js +0 -63
  1249. package/dist/index39.js +0 -63
  1250. package/dist/index40.js +0 -9
  1251. package/dist/index42.js +0 -8
  1252. package/dist/index43.js +0 -179
  1253. package/dist/index44.js +0 -21
  1254. package/dist/index46.js +0 -385
  1255. package/dist/index48.js +0 -6
  1256. package/dist/index49.js +0 -33
  1257. package/dist/index5.js +0 -34
  1258. package/dist/index50.js +0 -12
  1259. package/dist/index51.js +0 -8
  1260. package/dist/index52.js +0 -106
  1261. package/dist/index53.js +0 -330
  1262. package/dist/index54.js +0 -97
  1263. package/dist/index55.js +0 -328
  1264. package/dist/index56.js +0 -28
  1265. package/dist/index57.js +0 -102
  1266. package/dist/index58.js +0 -157
  1267. package/dist/index6.js +0 -38
  1268. package/dist/index60.js +0 -6
  1269. package/dist/index61.js +0 -131
  1270. package/dist/index62.js +0 -5
  1271. package/dist/index65.js +0 -35
  1272. package/dist/index66.js +0 -26
  1273. package/dist/index68.js +0 -6
  1274. package/dist/index69.js +0 -54
  1275. package/dist/index7.js +0 -58
  1276. package/dist/index71.js +0 -6
  1277. package/dist/index72.js +0 -14
  1278. package/dist/index74.js +0 -6
  1279. package/dist/index75.js +0 -159
  1280. package/dist/index77.js +0 -6
  1281. package/dist/index78.js +0 -4
  1282. package/dist/index79.js +0 -4
  1283. package/dist/index80.js +0 -54
  1284. package/dist/index81.js +0 -5
  1285. package/dist/index82.js +0 -5
  1286. package/dist/index83.js +0 -141
  1287. package/dist/index85.js +0 -6
  1288. package/dist/index86.js +0 -65
  1289. package/dist/index88.js +0 -6
  1290. package/dist/index89.js +0 -30
  1291. package/dist/index9.js +0 -11
  1292. package/dist/index90.js +0 -19
  1293. package/dist/index91.js +0 -17
  1294. package/dist/index92.js +0 -9
  1295. package/dist/index93.js +0 -34
  1296. package/dist/index95.js +0 -16
  1297. package/dist/index96.js +0 -10
  1298. package/dist/index97.js +0 -18
  1299. package/dist/index98.js +0 -189
  1300. package/dist/types/VoidHtmlElements.d.ts +0 -1
  1301. package/dist/utilities/functions/add.d.ts +0 -1
  1302. package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
  1303. package/dist/utilities/functions/capitalize.d.ts +0 -4
  1304. package/dist/utilities/functions/cloneDeep.d.ts +0 -1
  1305. package/dist/utilities/functions/debounce.d.ts +0 -1
  1306. package/dist/utilities/functions/drop.d.ts +0 -1
  1307. package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
  1308. package/dist/utilities/functions/findRight.d.ts +0 -4
  1309. package/dist/utilities/functions/findRightIndex.d.ts +0 -4
  1310. package/dist/utilities/functions/flow.d.ts +0 -1
  1311. package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
  1312. package/dist/utilities/functions/groupBy.d.ts +0 -6
  1313. package/dist/utilities/functions/gt.d.ts +0 -7
  1314. package/dist/utilities/functions/hexToRGB.d.ts +0 -7
  1315. package/dist/utilities/functions/hslToHex.d.ts +0 -1
  1316. package/dist/utilities/functions/includes.d.ts +0 -1
  1317. package/dist/utilities/functions/initial.d.ts +0 -1
  1318. package/dist/utilities/functions/isCssColor.d.ts +0 -5
  1319. package/dist/utilities/functions/lt.d.ts +0 -7
  1320. package/dist/utilities/functions/makeUrl.d.ts +0 -1
  1321. package/dist/utilities/functions/mapKeys.d.ts +0 -5
  1322. package/dist/utilities/functions/mapValues.d.ts +0 -1
  1323. package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
  1324. package/dist/utilities/functions/max.d.ts +0 -2
  1325. package/dist/utilities/functions/mean.d.ts +0 -4
  1326. package/dist/utilities/functions/merge.d.ts +0 -11
  1327. package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
  1328. package/dist/utilities/functions/negate.d.ts +0 -4
  1329. package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
  1330. package/dist/utilities/functions/omit.d.ts +0 -2
  1331. package/dist/utilities/functions/overEvery.d.ts +0 -4
  1332. package/dist/utilities/functions/pick.d.ts +0 -1
  1333. package/dist/utilities/functions/replace.d.ts +0 -1
  1334. package/dist/utilities/functions/replaceInTree.d.ts +0 -4
  1335. package/dist/utilities/functions/retry.d.ts +0 -5
  1336. package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
  1337. package/dist/utilities/functions/set.d.ts +0 -15
  1338. package/dist/utilities/functions/stub.d.ts +0 -6
  1339. package/dist/utilities/functions/transposePercent.d.ts +0 -9
  1340. package/dist/utilities/functions/tryTo.d.ts +0 -2
  1341. package/dist/utilities/functions/uniqBy.d.ts +0 -1
  1342. /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
  1343. /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
  1344. /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
  1345. /package/dist/{index165.js → composables/useArray.js} +0 -0
  1346. /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
  1347. /package/dist/{index12.js → composables/useId.js} +0 -0
  1348. /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
  1349. /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
  1350. /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
  1351. /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
  1352. /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
  1353. /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
  1354. /package/dist/{index41.js → utilities/functions/get.js} +0 -0
  1355. /package/dist/{index189.js → utilities/functions/head.js} +0 -0
  1356. /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
  1357. /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
  1358. /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
  1359. /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
  1360. /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
  1361. /package/dist/{index105.js → utilities/functions/last.js} +0 -0
  1362. /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
  1363. /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
  1364. /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
  1365. /package/dist/{index123.js → utilities/functions/range.js} +0 -0
  1366. /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
  1367. /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
  1368. /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
  1369. /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
@@ -0,0 +1,1586 @@
1
+ ---
2
+ title: Record Form (Vue)
3
+ summary: Full-anatomy invoice create/edit form for a vue-router SPA — sectioned fields with tied selects and 422 error mapping, inline-editing line-item rows, a dirty-snapshot route-leave guard, a sticky action row, and a customer peek sidebar, all through one coopting page context.
4
+ ---
5
+
6
+ # Recipe: Record Form (Vue)
7
+
8
+ The form archetype at full standard anatomy for a **plain Vue SPA with
9
+ vue-router**: a Stripe-grade invoice create/edit page — sectioned fields with
10
+ tied selects, server-side 422 error mapping onto every input (including
11
+ line items), inline-editing line-item rows, a dirty-snapshot
12
+ route-leave guard, a sticky action row, and a customer peek workbench, all
13
+ through one coopting page context so every leaf component takes zero props
14
+ beyond the record it renders.
15
+
16
+ Sibling recipes: [Nuxt](../nuxt/record-form.md) ·
17
+ [Inertia](../inertia/record-form.md). The listing this page belongs with is
18
+ [Records Workspace (Vue)](./records-workspace.md).
19
+
20
+ ## Prerequisites
21
+
22
+ - **[Layout Scaffold](./layout-scaffold.md) — build it first.** This recipe
23
+ imports `PageShell` and `usePageShellContext` from your own app.
24
+ They are not package exports; the scaffold recipe is their source. Copy
25
+ those files before anything below, and do not hand-roll replacements —
26
+ the peek stack, the close semantics and the sidebar's out-of-flow
27
+ behaviour are all load-bearing here.
28
+ - `<BbConfirm />` and `<BbToast />` mounted once in the app root (`App.vue`) — never in a page.
29
+ - `@/api` exposes `api.invoices.get/create/update/delete`,
30
+ `api.customers.list/byIds/getDetail` and `api.projects.list` — typed
31
+ async functions returning the shapes below; a 422 response rejects with
32
+ `{ status: 422, body: { errors } }`.
33
+
34
+ ## Key ideas
35
+
36
+ - **One coopting page context.** `provideInvoiceForm()` joins the
37
+ page-shell stack once, owns the draft, the server errors, the dirty
38
+ snapshot and every action (including the route-leave guard). Every leaf
39
+ calls `useInvoiceForm()` and nothing else — cells, sections, the sticky
40
+ bar and the peek share state with zero prop drilling.
41
+ - **The draft is the page's single mutable surface.** Inline cell edits,
42
+ the peek's "apply billing defaults", add/duplicate/remove line — all of
43
+ it mutates `ctx.draft`. The API boundary is exactly one call: the save,
44
+ whose 422 response maps back onto the same draft's fields.
45
+ - **422 errors reach every input — including line-item rows.** Laravel-style
46
+ keys (`customerId`, `lineItems.2.unitPrice`) land in one `errors` map;
47
+ scalar fields bind `ctx.errors.value.<key>` and the editable cells
48
+ resolve their row key through `ctx.lineItemError(line, field)`.
49
+ - **Tied selects are declarative.** Project depends on customer via
50
+ `dependencies` + `enforce-coherence`; switching customers refetches the
51
+ projects and clears a now-invalid pick automatically. No watchers.
52
+ - **Line items are inline-editing rows (§6.3).** Each row is a
53
+ `LineItemCard` with labeled fields — quantity, unit price, a computed
54
+ amount readout, and a full-width description — one leaf per cell type,
55
+ swapping to an input on click, committing on blur (Enter too on the
56
+ number cells) and reverting on Esc.
57
+ - **Dirty state is a JSON snapshot,** re-baselined before every navigation
58
+ the page itself causes (save redirect, delete redirect), so the
59
+ route-leave confirm only fires on genuinely abandoned edits.
60
+ - **Clicking the customer's name peeks the customer** — a workbench, not a
61
+ preview: billing profile, stats, recent invoices, and an action that
62
+ writes the customer's defaults back into the draft.
63
+ - **Buttons are `md` by default;** `sm` only in the line-item rows and
64
+ the peek. One `variant="primary"`: the save. No filter rail, no tabs, no
65
+ bulk bar — the form archetype has no list to filter and no selection.
66
+
67
+ ## Page anatomy
68
+
69
+ ```
70
+ InvoiceForm/
71
+ Index.vue ← assembly: PageShell slots, header, <form>, sections
72
+ context.ts ← coopting page context (shell + draft + errors + actions + leave guard)
73
+ DetailsSection.vue ← tied selects, dates, terms, PO, tax rate
74
+ LineItemsSection.vue ← line-item rows + add line + live totals
75
+ LineItemCard.vue ← one row: labeled inline-edit cells + duplicate/remove
76
+ EditableDescriptionCell.vue ← inline textarea edit (commit on blur, Esc reverts)
77
+ EditableQuantityCell.vue ← inline quantity edit with outer stepper buttons
78
+ EditableRateCell.vue ← inline unit-price edit, currency-formatted display
79
+ NotesSection.vue ← BbCollapsible disclosure over notes + terms
80
+ FormActions.vue ← sticky action row: delete / cancel / save draft / save
81
+ CustomerPeek.vue ← sidebar workbench for the picked customer
82
+ ```
83
+
84
+ Chrome assumed from the guides: [App Layout](../../guides/app-layout.md)
85
+ (left nav + fat footer) and [Page Shell](../../guides/page-shell.md)
86
+ (topbar / content / stacked sidebar). The floating bottom panel is
87
+ deliberately absent — it is selection chrome, and a form has no selection.
88
+
89
+ ## Action inventory
90
+
91
+ | # | Action | Trigger | Mechanism |
92
+ | --- | ------------------------------- | ------------------------------------- | ------------------------------------------------------ |
93
+ | 1 | Save invoice | sticky bar, the page's one `primary` | `type="submit"` → `persist()` + 422 mapping + redirect |
94
+ | 2 | Save as draft | sticky bar outline (create mode) | `persist('draft')`, URL swaps to edit in place |
95
+ | 3 | Delete invoice | sticky bar destructive (edit mode) | `useConfirm` → API → toast → redirect |
96
+ | 4 | Cancel | sticky bar ghost | navigation (`to`); leave guard intercepts if dirty |
97
+ | 5 | Pick customer | details section select | query-aware `items` provider |
98
+ | 6 | Pick project | details section select | `dependencies` + `enforce-coherence` (§ tied selects) |
99
+ | 7 | Peek customer | "View customer" link under the select | `ctx.peekCustomer()` → shell stack |
100
+ | 8 | Apply billing defaults | peek workbench button | writes terms + tax rate into the draft, toast |
101
+ | 9 | Edit description inline | line-item cell | §6.3 with `BbTextarea`: commit on blur, Esc reverts |
102
+ | 10 | Edit quantity / rate inline | line-item cells | §6.3 with `BbNumberInput` + outer stepper buttons |
103
+ | 11 | Add line item | section header + empty state | `ctx.addLineItem()` pushes a blank draft row |
104
+ | 12 | Duplicate line | row actions | `ctx.duplicateLineItem(line)` inserts a copy below |
105
+ | 13 | Remove line | row actions | `ctx.removeLineItem(line)` |
106
+ | 14 | Search line items | topbar page search | `lineItemSearch` → `visibleLineItems` filter |
107
+ | 15 | Toggle notes & terms | section disclosure button | `BbCollapsible` + `aria-expanded`/`aria-controls` |
108
+ | 16 | Open customer / recent invoices | peek links | real `to` navigation (leave guard applies) |
109
+
110
+ ## The code
111
+
112
+ ### The shapes
113
+
114
+ What `@/types` contributes and what `api.invoices.get(2107)` returns — the
115
+ record every block below is grounded in:
116
+
117
+ ```ts
118
+ // @/types (excerpt)
119
+ export type InvoiceStatus = 'draft' | 'pending' | 'paid' | 'overdue';
120
+
121
+ export interface LineItemDraft {
122
+ /** Server id; unsaved rows carry a negative local id. */
123
+ id: number;
124
+ description: string;
125
+ quantity: number;
126
+ unitPrice: number;
127
+ }
128
+
129
+ export interface InvoiceDraft {
130
+ customerId: number | null;
131
+ projectId: number | null;
132
+ /** `YYYY-MM-DD` (the date inputs run with `floating`). */
133
+ issuedAt: string | null;
134
+ dueDate: string | null;
135
+ paymentTerms: string | null;
136
+ poNumber: string | null;
137
+ taxRate: number | null;
138
+ lineItems: LineItemDraft[];
139
+ notes: string | null;
140
+ terms: string | null;
141
+ }
142
+ ```
143
+
144
+ ```ts
145
+ // The invoice being edited (api.invoices.get(2107))
146
+ const invoice = {
147
+ id: 2107,
148
+ number: 'INV-2107',
149
+ status: 'draft',
150
+ customerId: 18, // Northwind Traders
151
+ projectId: 112, // Website relaunch
152
+ issuedAt: '2026-07-01',
153
+ dueDate: '2026-07-31',
154
+ paymentTerms: 'Net 30',
155
+ poNumber: 'PO-2026-0641',
156
+ taxRate: 8.875,
157
+ lineItems: [
158
+ {
159
+ id: 9001,
160
+ description: 'Design sprint — homepage & navigation',
161
+ quantity: 3,
162
+ unitPrice: 1850,
163
+ },
164
+ {
165
+ id: 9002,
166
+ description: 'Frontend build — catalogue & product views',
167
+ quantity: 5,
168
+ unitPrice: 1200,
169
+ },
170
+ {
171
+ id: 9003,
172
+ description: 'CMS integration & content migration',
173
+ quantity: 2,
174
+ unitPrice: 1400,
175
+ },
176
+ {
177
+ id: 9004,
178
+ description: 'QA & cross-browser pass',
179
+ quantity: 1,
180
+ unitPrice: 950,
181
+ },
182
+ {
183
+ id: 9005,
184
+ description: 'Staging infrastructure (June)',
185
+ quantity: 1,
186
+ unitPrice: 240,
187
+ },
188
+ ],
189
+ notes: 'Second milestone of the relaunch engagement. Hosting billed at cost.',
190
+ terms:
191
+ 'Payment due within 30 days. 1.5% monthly interest on overdue balances.',
192
+ };
193
+ ```
194
+
195
+ ### context.ts
196
+
197
+ ```ts
198
+ // InvoiceForm/context.ts
199
+ import {
200
+ computed,
201
+ inject,
202
+ provide,
203
+ reactive,
204
+ ref,
205
+ type ComputedRef,
206
+ type InjectionKey,
207
+ type Ref,
208
+ } from 'vue';
209
+ import { onBeforeRouteLeave, useRoute, useRouter } from 'vue-router';
210
+ import { useConfirm, useToast, type BadgeVariantType } from 'bitboss-ui';
211
+ import {
212
+ usePageShellContext,
213
+ type PageShellContext,
214
+ } from '@/components/layout/usePageShellContext';
215
+ import { api } from '@/api';
216
+ import type {
217
+ Customer,
218
+ CustomerDetail,
219
+ Invoice,
220
+ InvoiceDraft,
221
+ InvoiceStatus,
222
+ LineItemDraft,
223
+ Project,
224
+ } from '@/types';
225
+
226
+ /** What the stacked sidebar can show. Clicking the customer's name pushes one. */
227
+ export type PeekItem = { type: 'customer'; id: number };
228
+
229
+ // Status is a small closed set — the textbook case for the soft accents
230
+ // (design-language.md § Using color; the `soft-*` variants are registered
231
+ // app-side). A badge takes its color from the VARIANT map and its label from
232
+ // the LABEL map; it never renders the raw enum. Used by the customer peek's
233
+ // recent-invoice list.
234
+ export const INVOICE_STATUS_LABEL: Record<InvoiceStatus, string> = {
235
+ draft: 'Draft',
236
+ pending: 'Pending',
237
+ paid: 'Paid',
238
+ overdue: 'Overdue',
239
+ };
240
+ export const INVOICE_STATUS_VARIANT: Record<InvoiceStatus, BadgeVariantType> = {
241
+ draft: 'soft-gray',
242
+ pending: 'soft-amber',
243
+ paid: 'soft-green',
244
+ overdue: 'soft-red',
245
+ };
246
+
247
+ type LineItemField = 'description' | 'quantity' | 'unitPrice';
248
+
249
+ export interface InvoiceFormContext {
250
+ // -- Coopted contexts ------------------------------------------------------
251
+ shell: PageShellContext<PeekItem>;
252
+ // -- Page-owned state ------------------------------------------------------
253
+ mode: 'create' | 'edit';
254
+ loaded: Ref<boolean>;
255
+ invoiceNumber: Ref<string | null>;
256
+ status: Ref<InvoiceStatus>;
257
+ draft: InvoiceDraft;
258
+ /** Server 422 errors, keyed Laravel-style (`customerId`, `lineItems.2.unitPrice`). */
259
+ errors: Ref<Record<string, string[]>>;
260
+ saving: Ref<boolean>;
261
+ isDirty: ComputedRef<boolean>;
262
+ lineItemSearch: Ref<string>;
263
+ visibleLineItems: ComputedRef<LineItemDraft[]>;
264
+ subtotal: ComputedRef<number>;
265
+ taxAmount: ComputedRef<number>;
266
+ total: ComputedRef<number>;
267
+ // -- Item providers (handed straight to the selects) ------------------------
268
+ fetchCustomers: (query: string, prefill: boolean) => Promise<Customer[]>;
269
+ fetchProjects: () => Promise<Project[]>;
270
+ // -- Row-level error lookup --------------------------------------------------
271
+ lineItemError: (
272
+ line: LineItemDraft,
273
+ field: LineItemField
274
+ ) => string[] | undefined;
275
+ // -- Draft mutations (the cells and the peek write through these) -----------
276
+ updateLineItem: (
277
+ line: LineItemDraft,
278
+ patch: Partial<Omit<LineItemDraft, 'id'>>
279
+ ) => void;
280
+ addLineItem: () => void;
281
+ duplicateLineItem: (line: LineItemDraft) => void;
282
+ removeLineItem: (line: LineItemDraft) => void;
283
+ applyCustomerDefaults: (customer: CustomerDetail) => void;
284
+ // -- Peek grammar ------------------------------------------------------------
285
+ peekCustomer: () => void;
286
+ // -- Actions (complete: API + 422 mapping + toast + redirect) ----------------
287
+ saveInvoice: () => Promise<void>;
288
+ saveAsDraft: () => Promise<void>;
289
+ deleteInvoice: () => Promise<void>;
290
+ }
291
+
292
+ const key: InjectionKey<InvoiceFormContext> = Symbol('invoice-form');
293
+
294
+ export function provideInvoiceForm(): InvoiceFormContext {
295
+ const route = useRoute();
296
+ const router = useRouter();
297
+ const { toast } = useToast();
298
+ const { confirm } = useConfirm();
299
+
300
+ // -- Coopt the shell: once, here, for the whole page. ------------------------
301
+ const shell = usePageShellContext<PeekItem>();
302
+
303
+ // /invoices/create has no id; /invoices/:id/edit does.
304
+ //
305
+ // NOT `const`: both routes render THIS component, so the create→edit
306
+ // `router.replace` in `saveAsDraft` patches the existing instance rather than
307
+ // remounting it — setup never runs again. Promote them by hand there, or
308
+ // `mode` stays 'create' forever and a second "Save as draft" creates a
309
+ // SECOND invoice.
310
+ let invoiceId = route.params.id ? Number(route.params.id) : null;
311
+ let mode: 'create' | 'edit' = invoiceId === null ? 'create' : 'edit';
312
+
313
+ // -- The draft ---------------------------------------------------------------
314
+ // Unsaved rows get negative local ids so `item-value` stays stable and the
315
+ // payload can tell the server which lines are new (negative → null).
316
+ let nextLocalId = -1;
317
+ const blankLineItem = (): LineItemDraft => ({
318
+ id: nextLocalId--,
319
+ description: '',
320
+ quantity: 1,
321
+ unitPrice: 0,
322
+ });
323
+
324
+ const draft = reactive<InvoiceDraft>({
325
+ customerId: null,
326
+ projectId: null,
327
+ issuedAt: null,
328
+ dueDate: null,
329
+ paymentTerms: null,
330
+ poNumber: null,
331
+ taxRate: null,
332
+ lineItems: [blankLineItem()],
333
+ notes: null,
334
+ terms: null,
335
+ });
336
+
337
+ const loaded = ref(mode === 'create');
338
+ const invoiceNumber = ref<string | null>(null);
339
+ const status = ref<InvoiceStatus>('draft');
340
+ const errors = ref<Record<string, string[]>>({});
341
+ const saving = ref(false);
342
+
343
+ // Dirty = the draft's JSON diverged from the last committed snapshot.
344
+ // Gated on `loaded` so the async seed of edit mode never reads as dirty.
345
+ const snapshot = ref(JSON.stringify(draft));
346
+ const isDirty = computed(
347
+ () => loaded.value && JSON.stringify(draft) !== snapshot.value
348
+ );
349
+
350
+ if (mode === 'edit' && invoiceId !== null) {
351
+ api.invoices.get(invoiceId).then((invoice: Invoice) => {
352
+ invoiceNumber.value = invoice.number;
353
+ status.value = invoice.status;
354
+ draft.customerId = invoice.customerId;
355
+ draft.projectId = invoice.projectId;
356
+ draft.issuedAt = invoice.issuedAt;
357
+ draft.dueDate = invoice.dueDate;
358
+ draft.paymentTerms = invoice.paymentTerms;
359
+ draft.poNumber = invoice.poNumber;
360
+ draft.taxRate = invoice.taxRate;
361
+ draft.lineItems = invoice.lineItems.map((line) => ({ ...line }));
362
+ draft.notes = invoice.notes;
363
+ draft.terms = invoice.terms;
364
+ snapshot.value = JSON.stringify(draft);
365
+ loaded.value = true;
366
+ });
367
+ }
368
+
369
+ // -- Item providers -----------------------------------------------------------
370
+ // Component-initiated calls (`prefill === true`) must keep the current
371
+ // selection resolvable, or the chip loses its text.
372
+ const fetchCustomers = async (
373
+ query: string,
374
+ prefill: boolean
375
+ ): Promise<Customer[]> => {
376
+ if (prefill && draft.customerId !== null) {
377
+ return api.customers.byIds([draft.customerId]);
378
+ }
379
+ return api.customers.list({ search: query });
380
+ };
381
+
382
+ // Re-run by the project select's `dependencies: [draft.customerId]`; the
383
+ // response always contains the customer's full project list, so an existing
384
+ // `projectId` stays resolvable and `enforce-coherence` never wipes a valid pick.
385
+ const fetchProjects = (): Promise<Project[]> =>
386
+ draft.customerId === null
387
+ ? Promise.resolve([])
388
+ : api.projects.list({ customer: draft.customerId });
389
+
390
+ // -- Line items -----------------------------------------------------------------
391
+ const lineItemSearch = ref('');
392
+ const visibleLineItems = computed(() => {
393
+ // A `clearable` BbTextInput emits **null** when it is emptied, not `''` —
394
+ // so coalesce before calling a string method, or the first clear throws
395
+ // `Cannot read properties of null (reading 'trim')` and the section stops
396
+ // re-rendering.
397
+ const query = (lineItemSearch.value ?? '').trim().toLowerCase();
398
+ if (!query) return draft.lineItems;
399
+ return draft.lineItems.filter((line) =>
400
+ line.description.toLowerCase().includes(query)
401
+ );
402
+ });
403
+
404
+ const subtotal = computed(() =>
405
+ draft.lineItems.reduce(
406
+ (sum, line) => sum + line.quantity * line.unitPrice,
407
+ 0
408
+ )
409
+ );
410
+ const taxAmount = computed(
411
+ () => subtotal.value * ((draft.taxRate ?? 0) / 100)
412
+ );
413
+ const total = computed(() => subtotal.value + taxAmount.value);
414
+
415
+ // Server 422 keys index lines by payload position, which is draft order —
416
+ // resolve a row's key through its id so the lookup survives filtering.
417
+ const lineItemError = (
418
+ line: LineItemDraft,
419
+ field: LineItemField
420
+ ): string[] | undefined => {
421
+ const index = draft.lineItems.findIndex(
422
+ (candidate) => candidate.id === line.id
423
+ );
424
+ return errors.value[`lineItems.${index}.${field}`];
425
+ };
426
+
427
+ const updateLineItem = (
428
+ line: LineItemDraft,
429
+ patch: Partial<Omit<LineItemDraft, 'id'>>
430
+ ) => {
431
+ const target = draft.lineItems.find(
432
+ (candidate) => candidate.id === line.id
433
+ );
434
+ if (target) Object.assign(target, patch);
435
+ };
436
+ const addLineItem = () => {
437
+ draft.lineItems.push(blankLineItem());
438
+ };
439
+ const duplicateLineItem = (line: LineItemDraft) => {
440
+ const index = draft.lineItems.findIndex(
441
+ (candidate) => candidate.id === line.id
442
+ );
443
+ draft.lineItems.splice(index + 1, 0, { ...line, id: nextLocalId-- });
444
+ };
445
+ const removeLineItem = (line: LineItemDraft) => {
446
+ draft.lineItems = draft.lineItems.filter(
447
+ (candidate) => candidate.id !== line.id
448
+ );
449
+ };
450
+
451
+ // The peek writes back into the draft: the sidebar is a workbench.
452
+ const applyCustomerDefaults = (customer: CustomerDetail) => {
453
+ draft.paymentTerms = customer.defaultPaymentTerms;
454
+ draft.taxRate = customer.defaultTaxRate;
455
+ toast({
456
+ title: `Applied ${customer.name}'s billing defaults.`,
457
+ variant: 'success',
458
+ });
459
+ };
460
+
461
+ // -- Peek grammar ----------------------------------------------------------------
462
+ const peekCustomer = () => {
463
+ if (draft.customerId === null) return;
464
+ shell.push({ type: 'customer', id: draft.customerId }, true);
465
+ };
466
+
467
+ // -- Persistence -----------------------------------------------------------------
468
+ // New lines travel with `id: null`; the server assigns real ids on save.
469
+ const payload = (nextStatus: InvoiceStatus) => ({
470
+ ...draft,
471
+ status: nextStatus,
472
+ lineItems: draft.lineItems.map((line) => ({
473
+ ...line,
474
+ id: line.id > 0 ? line.id : null,
475
+ })),
476
+ });
477
+
478
+ const persist = async (
479
+ nextStatus: InvoiceStatus
480
+ ): Promise<Invoice | null> => {
481
+ saving.value = true;
482
+ errors.value = {};
483
+ try {
484
+ const saved =
485
+ mode === 'edit' && invoiceId !== null
486
+ ? await api.invoices.update(invoiceId, payload(nextStatus))
487
+ : await api.invoices.create(payload(nextStatus));
488
+ // Re-baseline BEFORE navigating so the leave guard lets the redirect through.
489
+ snapshot.value = JSON.stringify(draft);
490
+ status.value = saved.status;
491
+ invoiceNumber.value = saved.number;
492
+ return saved;
493
+ } catch (error: unknown) {
494
+ const err = error as {
495
+ status?: number;
496
+ body?: { errors?: Record<string, string[]> };
497
+ };
498
+ if (err.status === 422) {
499
+ // Laravel-style: { errors: { 'lineItems.2.unitPrice': ['Must be positive.'] } }
500
+ errors.value = err.body?.errors ?? {};
501
+ toast({ title: 'Some fields need attention.', variant: 'destructive' });
502
+ } else {
503
+ toast({
504
+ title: 'Something went wrong. Try again.',
505
+ variant: 'destructive',
506
+ });
507
+ }
508
+ return null;
509
+ } finally {
510
+ saving.value = false;
511
+ }
512
+ };
513
+
514
+ const saveInvoice = async () => {
515
+ // Creating finalizes the invoice; editing keeps whatever status it has.
516
+ const saved = await persist(mode === 'edit' ? status.value : 'pending');
517
+ if (!saved) return;
518
+ toast({ title: `Invoice ${saved.number} saved.`, variant: 'success' });
519
+ router.push(`/invoices/${saved.id}`);
520
+ };
521
+
522
+ const saveAsDraft = async () => {
523
+ const saved = await persist('draft');
524
+ if (!saved) return;
525
+ toast({ title: `Draft ${saved.number} saved.`, variant: 'success' });
526
+ // Stay on the page; swap the URL so a refresh lands in edit mode. The
527
+ // component is patched, not remounted, so promote this instance too.
528
+ if (mode === 'create') {
529
+ await router.replace(`/invoices/${saved.id}/edit`);
530
+ invoiceId = saved.id;
531
+ mode = 'edit';
532
+ }
533
+ };
534
+
535
+ const deleteInvoice = async () => {
536
+ if (mode !== 'edit' || invoiceId === null) return;
537
+ const ok = await confirm({
538
+ variant: 'destructive',
539
+ title: 'Delete invoice',
540
+ text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
541
+ yes: 'Delete',
542
+ no: 'Cancel',
543
+ });
544
+ if (!ok) return;
545
+ await api.invoices.delete(invoiceId);
546
+ // Re-baseline so the guard doesn't ask about a record that no longer exists.
547
+ snapshot.value = JSON.stringify(draft);
548
+ toast({ title: `${invoiceNumber.value} deleted.`, variant: 'success' });
549
+ router.push('/invoices');
550
+ };
551
+
552
+ // -- Route-leave guard ---------------------------------------------------------
553
+ // Lives with the state it protects. `onBeforeRouteLeave` registers against
554
+ // the page component because provideInvoiceForm() runs in its setup.
555
+ onBeforeRouteLeave(async () => {
556
+ if (!isDirty.value) return true;
557
+ return await confirm({
558
+ variant: 'destructive',
559
+ title: 'Unsaved changes',
560
+ text: 'You have unsaved changes on this invoice. Leave without saving?',
561
+ yes: 'Discard changes',
562
+ no: 'Keep editing',
563
+ });
564
+ });
565
+
566
+ const ctx: InvoiceFormContext = {
567
+ shell,
568
+ mode,
569
+ loaded,
570
+ invoiceNumber,
571
+ status,
572
+ draft,
573
+ errors,
574
+ saving,
575
+ isDirty,
576
+ lineItemSearch,
577
+ visibleLineItems,
578
+ subtotal,
579
+ taxAmount,
580
+ total,
581
+ fetchCustomers,
582
+ fetchProjects,
583
+ lineItemError,
584
+ updateLineItem,
585
+ addLineItem,
586
+ duplicateLineItem,
587
+ removeLineItem,
588
+ applyCustomerDefaults,
589
+ peekCustomer,
590
+ saveInvoice,
591
+ saveAsDraft,
592
+ deleteInvoice,
593
+ };
594
+ provide(key, ctx);
595
+ return ctx;
596
+ }
597
+
598
+ export function useInvoiceForm(): InvoiceFormContext {
599
+ const ctx = inject(key);
600
+ if (!ctx) throw new Error('useInvoiceForm() called outside InvoiceForm');
601
+ return ctx;
602
+ }
603
+ ```
604
+
605
+ ### Index.vue — the assembly
606
+
607
+ ```vue
608
+ <!-- InvoiceForm/Index.vue -->
609
+ <template>
610
+ <PageShell>
611
+ <!-- Topbar: breadcrumbs left, page search right. The search scopes the
612
+ work surface — here, the line items. -->
613
+ <template #topbar>
614
+ <div class="flex items-center justify-between gap-4 border-b px-4 py-2">
615
+ <!-- Breadcrumbs take the row's slack on a stable basis (min-w-0 flex-auto);
616
+ without it their overflow recompute fights the flex layout every frame. -->
617
+ <BbBreadcrumbs class="min-w-0 flex-auto" :items="trail" />
618
+ <BbTextInput
619
+ v-model="ctx.lineItemSearch.value"
620
+ autocomplete="off"
621
+ class="shrink-0"
622
+ clearable
623
+ compact
624
+ hide-label
625
+ label="Search line items"
626
+ placeholder="Search line items…"
627
+ prepend:icon="lucide:search"
628
+ />
629
+ </div>
630
+ </template>
631
+
632
+ <div
633
+ v-if="ctx.loaded.value"
634
+ class="mx-auto flex w-full max-w-4xl flex-col gap-6 p-4"
635
+ >
636
+ <header class="flex items-center gap-3">
637
+ <h1 class="text-lg font-semibold">
638
+ {{
639
+ ctx.mode === 'edit'
640
+ ? `Edit ${ctx.invoiceNumber.value}`
641
+ : 'New invoice'
642
+ }}
643
+ </h1>
644
+ <BbBadge v-if="ctx.mode === 'edit'" variant="outline">{{
645
+ ctx.status.value
646
+ }}</BbBadge>
647
+ </header>
648
+
649
+ <!-- One form, one submit. `novalidate` keeps error UX on the inputs'
650
+ `errors` surface instead of browser bubbles; `autocomplete="off"`
651
+ (echoed on every field) keeps browser autofill off the draft. -->
652
+ <form
653
+ autocomplete="off"
654
+ class="flex flex-col gap-6"
655
+ novalidate
656
+ @submit.prevent="ctx.saveInvoice"
657
+ >
658
+ <DetailsSection />
659
+ <LineItemsSection />
660
+ <NotesSection />
661
+ <FormActions />
662
+ </form>
663
+ </div>
664
+
665
+ <div v-else class="flex justify-center p-12">
666
+ <BbSpinner label="Loading invoice…" />
667
+ </div>
668
+
669
+ <!-- Stacked peek sidebar: the shell owns back/close; we render by type. -->
670
+ <template #sidebar>
671
+ <CustomerPeek
672
+ v-if="ctx.shell.current.value?.type === 'customer'"
673
+ :customer-id="ctx.shell.current.value.id"
674
+ />
675
+ </template>
676
+ </PageShell>
677
+ </template>
678
+
679
+ <script setup lang="ts">
680
+ import { computed } from 'vue';
681
+ import { BbBadge, BbBreadcrumbs, BbSpinner, BbTextInput } from 'bitboss-ui';
682
+ import PageShell from '@/components/layout/PageShell.vue';
683
+ import { provideInvoiceForm } from './context';
684
+ import CustomerPeek from './CustomerPeek.vue';
685
+ import DetailsSection from './DetailsSection.vue';
686
+ import FormActions from './FormActions.vue';
687
+ import LineItemsSection from './LineItemsSection.vue';
688
+ import NotesSection from './NotesSection.vue';
689
+
690
+ const ctx = provideInvoiceForm();
691
+
692
+ // A real trail, ≥ 2 linked levels; the current page carries no target.
693
+ const trail = computed(() => [
694
+ { key: 'dashboard', text: 'Dashboard', to: '/dashboard' },
695
+ { key: 'billing', text: 'Billing', to: '/billing' },
696
+ { key: 'invoices', text: 'Invoices', to: '/invoices' },
697
+ {
698
+ key: 'invoice',
699
+ text:
700
+ ctx.mode === 'edit'
701
+ ? (ctx.invoiceNumber.value ?? 'Invoice')
702
+ : 'New invoice',
703
+ },
704
+ ]);
705
+ </script>
706
+ ```
707
+
708
+ ### DetailsSection.vue
709
+
710
+ ```vue
711
+ <!-- InvoiceForm/DetailsSection.vue -->
712
+ <template>
713
+ <section class="flex flex-col gap-3">
714
+ <h2
715
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
716
+ >
717
+ Details
718
+ </h2>
719
+
720
+ <div class="grid gap-4 sm:grid-cols-2">
721
+ <!-- Tied selects: project depends on customer. `dependencies` re-runs
722
+ the project provider; `enforce-coherence` clears a project that is
723
+ no longer among the new options. No watchers. -->
724
+ <div class="flex flex-col gap-1">
725
+ <BbSelect
726
+ v-model="ctx.draft.customerId"
727
+ autocomplete="off"
728
+ :errors="ctx.errors.value.customerId"
729
+ item-text="name"
730
+ item-value="id"
731
+ :items="ctx.fetchCustomers"
732
+ label="Customer"
733
+ placeholder="Search customers…"
734
+ />
735
+ <!-- Clicking the NAME of a thing peeks it. -->
736
+ <BbButton
737
+ v-if="ctx.draft.customerId !== null"
738
+ append:icon="lucide:panel-right-open"
739
+ class="self-start"
740
+ size="sm"
741
+ variant="link"
742
+ @click="ctx.peekCustomer"
743
+ >
744
+ View customer
745
+ </BbButton>
746
+ </div>
747
+
748
+ <BbSelect
749
+ v-model="ctx.draft.projectId"
750
+ autocomplete="off"
751
+ :dependencies="[ctx.draft.customerId]"
752
+ :disabled="ctx.draft.customerId === null"
753
+ enforce-coherence
754
+ :errors="ctx.errors.value.projectId"
755
+ item-text="name"
756
+ item-value="id"
757
+ :items="ctx.fetchProjects"
758
+ label="Project"
759
+ placeholder="Pick the customer first"
760
+ />
761
+
762
+ <!-- `floating` keeps the model a plain YYYY-MM-DD string, so the due
763
+ date's `min` can be fed straight from the issue date. -->
764
+ <BbDatePickerInput
765
+ v-model="ctx.draft.issuedAt"
766
+ autocomplete="off"
767
+ :errors="ctx.errors.value.issuedAt"
768
+ floating
769
+ label="Issue date"
770
+ prepend:icon="lucide:calendar"
771
+ />
772
+ <BbDatePickerInput
773
+ v-model="ctx.draft.dueDate"
774
+ autocomplete="off"
775
+ :errors="ctx.errors.value.dueDate"
776
+ floating
777
+ label="Due date"
778
+ :min="ctx.draft.issuedAt ?? undefined"
779
+ prepend:icon="lucide:calendar"
780
+ />
781
+
782
+ <BbSelect
783
+ v-model="ctx.draft.paymentTerms"
784
+ autocomplete="off"
785
+ :errors="ctx.errors.value.paymentTerms"
786
+ :items="['Due on receipt', 'Net 15', 'Net 30', 'Net 60']"
787
+ label="Payment terms"
788
+ placeholder="Choose terms"
789
+ />
790
+
791
+ <BbTextInput
792
+ v-model="ctx.draft.poNumber"
793
+ autocomplete="off"
794
+ :errors="ctx.errors.value.poNumber"
795
+ label="PO / reference"
796
+ placeholder="PO-2026-0641"
797
+ />
798
+
799
+ <BbNumberInput
800
+ v-model="ctx.draft.taxRate"
801
+ autocomplete="off"
802
+ :errors="ctx.errors.value.taxRate"
803
+ hint="Applied to the subtotal below."
804
+ label="Tax rate"
805
+ :max="100"
806
+ :max-precision="3"
807
+ :min="0"
808
+ >
809
+ <template #suffix>%</template>
810
+ </BbNumberInput>
811
+ </div>
812
+ </section>
813
+ </template>
814
+
815
+ <script setup lang="ts">
816
+ import {
817
+ BbButton,
818
+ BbDatePickerInput,
819
+ BbNumberInput,
820
+ BbSelect,
821
+ BbTextInput,
822
+ } from 'bitboss-ui';
823
+ import { useInvoiceForm } from './context';
824
+
825
+ const ctx = useInvoiceForm();
826
+ </script>
827
+ ```
828
+
829
+ ### LineItemsSection.vue
830
+
831
+ ```vue
832
+ <!-- InvoiceForm/LineItemsSection.vue -->
833
+ <template>
834
+ <section class="flex flex-col gap-3">
835
+ <div class="flex items-center justify-between">
836
+ <h2
837
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
838
+ >
839
+ Line items
840
+ </h2>
841
+ <BbButton
842
+ prepend:icon="lucide:plus"
843
+ variant="outline"
844
+ @click="ctx.addLineItem"
845
+ >
846
+ Add line item
847
+ </BbButton>
848
+ </div>
849
+
850
+ <!-- One bordered panel whose rows are divided by hairlines — not a
851
+ BbTable (no selection, paging or fetch) and not a stack of floating
852
+ cards. Each row keeps the same §6.3 inline-edit cells per field. -->
853
+ <div
854
+ v-if="ctx.visibleLineItems.value.length"
855
+ class="flex flex-col rounded-[var(--bb-radius)] border"
856
+ >
857
+ <LineItemCard
858
+ v-for="line in ctx.visibleLineItems.value"
859
+ :key="line.id"
860
+ :line="line"
861
+ />
862
+ </div>
863
+
864
+ <!-- Soft empty band — a wash, not a dashed outline. -->
865
+ <div
866
+ v-else
867
+ class="flex flex-col items-center gap-2 rounded-[var(--bb-radius)] bg-[color:var(--bb-muted)] p-6 text-center"
868
+ >
869
+ <p class="text-sm text-[color:var(--bb-text-muted)]">
870
+ {{
871
+ ctx.lineItemSearch.value
872
+ ? 'No line items match your search.'
873
+ : 'No line items yet.'
874
+ }}
875
+ </p>
876
+ <BbButton
877
+ v-if="!ctx.lineItemSearch.value"
878
+ variant="outline"
879
+ @click="ctx.addLineItem"
880
+ >
881
+ Add the first line
882
+ </BbButton>
883
+ </div>
884
+
885
+ <!-- Totals: live computed from the draft — they move as cells commit. -->
886
+ <dl class="ml-auto grid w-60 grid-cols-[1fr_auto] gap-y-1 text-sm">
887
+ <dt class="text-[color:var(--bb-text-muted)]">Subtotal</dt>
888
+ <dd class="text-right tabular-nums">
889
+ {{ currency.format(ctx.subtotal.value) }}
890
+ </dd>
891
+ <dt class="text-[color:var(--bb-text-muted)]">
892
+ Tax ({{ ctx.draft.taxRate ?? 0 }}%)
893
+ </dt>
894
+ <dd class="text-right tabular-nums">
895
+ {{ currency.format(ctx.taxAmount.value) }}
896
+ </dd>
897
+ <dt class="font-semibold">Total</dt>
898
+ <dd class="text-right font-semibold tabular-nums">
899
+ {{ currency.format(ctx.total.value) }}
900
+ </dd>
901
+ </dl>
902
+ </section>
903
+ </template>
904
+
905
+ <script setup lang="ts">
906
+ import { BbButton } from 'bitboss-ui';
907
+ import LineItemCard from './LineItemCard.vue';
908
+ import { useInvoiceForm } from './context';
909
+
910
+ const ctx = useInvoiceForm();
911
+
912
+ const currency = new Intl.NumberFormat('en-US', {
913
+ style: 'currency',
914
+ currency: 'USD',
915
+ });
916
+ </script>
917
+ ```
918
+
919
+ ### LineItemCard.vue
920
+
921
+ ```vue
922
+ <!-- InvoiceForm/LineItemCard.vue -->
923
+ <template>
924
+ <article class="flex flex-col gap-3 border-b p-3 last:border-b-0">
925
+ <div class="flex items-end gap-3">
926
+ <div class="grid min-w-0 flex-1 grid-cols-3 gap-3">
927
+ <div>
928
+ <p
929
+ class="mb-1 text-right text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
930
+ >
931
+ Qty
932
+ </p>
933
+ <EditableQuantityCell :line="line" />
934
+ </div>
935
+ <div>
936
+ <p
937
+ class="mb-1 text-right text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
938
+ >
939
+ Unit price
940
+ </p>
941
+ <EditableRateCell :line="line" />
942
+ </div>
943
+ <div>
944
+ <p
945
+ class="mb-1 text-right text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
946
+ >
947
+ Amount
948
+ </p>
949
+ <!-- Virtual field: computed from the row, never edited. -->
950
+ <p class="px-1 py-0.5 text-right tabular-nums">
951
+ {{ currency.format(line.quantity * line.unitPrice) }}
952
+ </p>
953
+ </div>
954
+ </div>
955
+
956
+ <div class="flex shrink-0 items-center gap-1">
957
+ <BbButton
958
+ icon="lucide:copy"
959
+ size="sm"
960
+ variant="ghost"
961
+ @click="() => ctx.duplicateLineItem(line)"
962
+ >
963
+ Duplicate line
964
+ </BbButton>
965
+ <BbButton
966
+ icon="lucide:trash-2"
967
+ size="sm"
968
+ variant="ghost"
969
+ @click="() => ctx.removeLineItem(line)"
970
+ >
971
+ Remove line
972
+ </BbButton>
973
+ </div>
974
+ </div>
975
+
976
+ <div>
977
+ <p
978
+ class="mb-1 text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
979
+ >
980
+ Description
981
+ </p>
982
+ <EditableDescriptionCell :line="line" />
983
+ </div>
984
+ </article>
985
+ </template>
986
+
987
+ <script setup lang="ts">
988
+ import { BbButton } from 'bitboss-ui';
989
+ import EditableDescriptionCell from './EditableDescriptionCell.vue';
990
+ import EditableQuantityCell from './EditableQuantityCell.vue';
991
+ import EditableRateCell from './EditableRateCell.vue';
992
+ import { useInvoiceForm } from './context';
993
+ import type { LineItemDraft } from '@/types';
994
+
995
+ defineProps<{ line: LineItemDraft }>();
996
+
997
+ const ctx = useInvoiceForm();
998
+
999
+ const currency = new Intl.NumberFormat('en-US', {
1000
+ style: 'currency',
1001
+ currency: 'USD',
1002
+ });
1003
+ </script>
1004
+ ```
1005
+
1006
+ ### EditableDescriptionCell.vue
1007
+
1008
+ ```vue
1009
+ <!-- InvoiceForm/EditableDescriptionCell.vue -->
1010
+ <template>
1011
+ <BbTextarea
1012
+ v-if="editing"
1013
+ ref="inputRef"
1014
+ v-model="value"
1015
+ auto-grow
1016
+ compact
1017
+ :errors="ctx.lineItemError(line, 'description')"
1018
+ hide-label
1019
+ label="Line description"
1020
+ placeholder="What was delivered?"
1021
+ :rows="2"
1022
+ @blur="commit"
1023
+ @keydown.esc="revert"
1024
+ />
1025
+ <button
1026
+ v-else
1027
+ class="w-full whitespace-pre-wrap rounded-[var(--bb-radius)] px-1 py-0.5 text-left hover:bg-[color:var(--bb-hover)]"
1028
+ :class="{
1029
+ 'text-[color:var(--bb-text-muted)]': !line.description,
1030
+ 'text-[color:var(--bb-danger)]': hasError,
1031
+ }"
1032
+ type="button"
1033
+ @click="start"
1034
+ >
1035
+ {{ line.description || 'Add a description…' }}
1036
+ </button>
1037
+ </template>
1038
+
1039
+ <script setup lang="ts">
1040
+ import { computed, nextTick, ref } from 'vue';
1041
+ import { BbTextarea } from 'bitboss-ui';
1042
+ import { useInvoiceForm } from './context';
1043
+ import type { LineItemDraft } from '@/types';
1044
+
1045
+ const props = defineProps<{ line: LineItemDraft }>();
1046
+
1047
+ const ctx = useInvoiceForm();
1048
+
1049
+ // Rung 1 of the ladder: only this cell reads or writes its editing state.
1050
+ const editing = ref(false);
1051
+ const value = ref<string | null>(null);
1052
+ const inputRef = ref<{ $el?: HTMLElement } | null>(null);
1053
+
1054
+ const hasError = computed(() => !!ctx.lineItemError(props.line, 'description'));
1055
+
1056
+ /** Focus the native textarea after the editor mounts — HTML `autofocus` only
1057
+ * runs on page load, not on later mounts. */
1058
+ const focusInput = async () => {
1059
+ await nextTick();
1060
+ inputRef.value?.$el?.querySelector('textarea')?.focus();
1061
+ };
1062
+
1063
+ const start = () => {
1064
+ value.value = props.line.description;
1065
+ editing.value = true;
1066
+ void focusInput();
1067
+ };
1068
+
1069
+ // Commit on blur, revert on Esc (§6.3). Enter inserts a newline (textarea),
1070
+ // so it is not wired to commit the way a single-line input would be; the
1071
+ // `editing` guard keeps the blur that follows an Esc from re-committing.
1072
+ const commit = () => {
1073
+ if (!editing.value) return;
1074
+ editing.value = false;
1075
+ ctx.updateLineItem(props.line, { description: value.value ?? '' });
1076
+ };
1077
+
1078
+ const revert = () => {
1079
+ editing.value = false;
1080
+ };
1081
+ </script>
1082
+ ```
1083
+
1084
+ ### EditableQuantityCell.vue
1085
+
1086
+ ```vue
1087
+ <!-- InvoiceForm/EditableQuantityCell.vue -->
1088
+ <template>
1089
+ <BbNumberInput
1090
+ v-if="editing"
1091
+ ref="inputRef"
1092
+ v-model="value"
1093
+ class="[&_input]:text-right"
1094
+ compact
1095
+ :errors="ctx.lineItemError(line, 'quantity')"
1096
+ hide-label
1097
+ label="Quantity"
1098
+ :max-precision="2"
1099
+ :min="0"
1100
+ @blur="commit"
1101
+ @keydown.enter.prevent="commit"
1102
+ @keydown.esc="revert"
1103
+ >
1104
+ <!-- Outer steppers: mousedown.prevent keeps focus in the field so blur
1105
+ doesn't commit/unmount before the click lands. -->
1106
+ <template #prepend-outer="{ decrease }">
1107
+ <BbButton
1108
+ aria-label="Decrease quantity"
1109
+ icon="lucide:minus"
1110
+ size="xs"
1111
+ variant="ghost"
1112
+ @click="decrease"
1113
+ @mousedown.prevent
1114
+ />
1115
+ </template>
1116
+ <template #append-outer="{ increase }">
1117
+ <BbButton
1118
+ aria-label="Increase quantity"
1119
+ icon="lucide:plus"
1120
+ size="xs"
1121
+ variant="ghost"
1122
+ @click="increase"
1123
+ @mousedown.prevent
1124
+ />
1125
+ </template>
1126
+ </BbNumberInput>
1127
+ <button
1128
+ v-else
1129
+ class="w-full rounded-[var(--bb-radius)] px-1 py-0.5 text-right tabular-nums hover:bg-[color:var(--bb-hover)]"
1130
+ :class="{ 'text-[color:var(--bb-danger)]': hasError }"
1131
+ type="button"
1132
+ @click="start"
1133
+ >
1134
+ {{ line.quantity }}
1135
+ </button>
1136
+ </template>
1137
+
1138
+ <script setup lang="ts">
1139
+ import { computed, nextTick, ref } from 'vue';
1140
+ import { BbButton, BbNumberInput } from 'bitboss-ui';
1141
+ import { useInvoiceForm } from './context';
1142
+ import type { LineItemDraft } from '@/types';
1143
+
1144
+ const props = defineProps<{ line: LineItemDraft }>();
1145
+
1146
+ const ctx = useInvoiceForm();
1147
+
1148
+ const editing = ref(false);
1149
+ const value = ref<number | null>(null);
1150
+ const inputRef = ref<{ $el?: HTMLElement } | null>(null);
1151
+
1152
+ const hasError = computed(() => !!ctx.lineItemError(props.line, 'quantity'));
1153
+
1154
+ /** Focus the native input after the editor mounts — HTML `autofocus` only
1155
+ * runs on page load, not on later mounts. */
1156
+ const focusInput = async () => {
1157
+ await nextTick();
1158
+ inputRef.value?.$el?.querySelector('input')?.focus();
1159
+ };
1160
+
1161
+ const start = () => {
1162
+ value.value = props.line.quantity;
1163
+ editing.value = true;
1164
+ void focusInput();
1165
+ };
1166
+
1167
+ const commit = () => {
1168
+ if (!editing.value) return;
1169
+ editing.value = false;
1170
+ // An emptied field emits null — treat it as a revert, not a zero.
1171
+ if (value.value === null) return;
1172
+ ctx.updateLineItem(props.line, { quantity: value.value });
1173
+ };
1174
+
1175
+ const revert = () => {
1176
+ editing.value = false;
1177
+ };
1178
+ </script>
1179
+ ```
1180
+
1181
+ ### EditableRateCell.vue
1182
+
1183
+ ```vue
1184
+ <!-- InvoiceForm/EditableRateCell.vue -->
1185
+ <template>
1186
+ <BbNumberInput
1187
+ v-if="editing"
1188
+ ref="inputRef"
1189
+ v-model="value"
1190
+ class="[&_input]:text-right"
1191
+ compact
1192
+ :errors="ctx.lineItemError(line, 'unitPrice')"
1193
+ hide-label
1194
+ label="Unit price"
1195
+ :max-precision="2"
1196
+ :min="0"
1197
+ @blur="commit"
1198
+ @keydown.enter.prevent="commit"
1199
+ @keydown.esc="revert"
1200
+ >
1201
+ <template #prefix>$</template>
1202
+ </BbNumberInput>
1203
+ <button
1204
+ v-else
1205
+ class="w-full rounded-[var(--bb-radius)] px-1 py-0.5 text-right tabular-nums hover:bg-[color:var(--bb-hover)]"
1206
+ :class="{ 'text-[color:var(--bb-danger)]': hasError }"
1207
+ type="button"
1208
+ @click="start"
1209
+ >
1210
+ {{ currency.format(line.unitPrice) }}
1211
+ </button>
1212
+ </template>
1213
+
1214
+ <script setup lang="ts">
1215
+ import { computed, nextTick, ref } from 'vue';
1216
+ import { BbNumberInput } from 'bitboss-ui';
1217
+ import { useInvoiceForm } from './context';
1218
+ import type { LineItemDraft } from '@/types';
1219
+
1220
+ const props = defineProps<{ line: LineItemDraft }>();
1221
+
1222
+ const ctx = useInvoiceForm();
1223
+
1224
+ const editing = ref(false);
1225
+ const value = ref<number | null>(null);
1226
+ const inputRef = ref<{ $el?: HTMLElement } | null>(null);
1227
+
1228
+ const hasError = computed(() => !!ctx.lineItemError(props.line, 'unitPrice'));
1229
+
1230
+ const currency = new Intl.NumberFormat('en-US', {
1231
+ style: 'currency',
1232
+ currency: 'USD',
1233
+ });
1234
+
1235
+ /** Focus the native input after the editor mounts — HTML `autofocus` only
1236
+ * runs on page load, not on later mounts. */
1237
+ const focusInput = async () => {
1238
+ await nextTick();
1239
+ inputRef.value?.$el?.querySelector('input')?.focus();
1240
+ };
1241
+
1242
+ const start = () => {
1243
+ value.value = props.line.unitPrice;
1244
+ editing.value = true;
1245
+ void focusInput();
1246
+ };
1247
+
1248
+ const commit = () => {
1249
+ if (!editing.value) return;
1250
+ editing.value = false;
1251
+ if (value.value === null) return;
1252
+ ctx.updateLineItem(props.line, { unitPrice: value.value });
1253
+ };
1254
+
1255
+ const revert = () => {
1256
+ editing.value = false;
1257
+ };
1258
+ </script>
1259
+ ```
1260
+
1261
+ ### NotesSection.vue
1262
+
1263
+ ```vue
1264
+ <!-- InvoiceForm/NotesSection.vue -->
1265
+ <template>
1266
+ <section class="flex flex-col gap-2">
1267
+ <!-- BbCollapsible ships no trigger: this button owns the disclosure
1268
+ ARIA (`aria-expanded` + `aria-controls`). -->
1269
+ <BbButton
1270
+ append:icon="lucide:chevron-down"
1271
+ aria-controls="invoice-notes"
1272
+ :aria-expanded="open"
1273
+ class="self-start"
1274
+ variant="ghost"
1275
+ @click="open = !open"
1276
+ >
1277
+ Notes &amp; terms
1278
+ </BbButton>
1279
+
1280
+ <!-- `eager` mounts the fields up front so their 422 errors render even
1281
+ if the user never opened the section. Spacing lives on the inner
1282
+ content — the collapsible zeroes its own box when closed. -->
1283
+ <BbCollapsible id="invoice-notes" v-model="open" eager>
1284
+ <div class="flex flex-col gap-4 pt-1">
1285
+ <BbTextarea
1286
+ v-model="ctx.draft.notes"
1287
+ auto-grow
1288
+ description="Shown on the invoice, under the line items."
1289
+ :errors="ctx.errors.value.notes"
1290
+ label="Notes to the customer"
1291
+ placeholder="Second milestone of the relaunch engagement…"
1292
+ :rows="2"
1293
+ />
1294
+ <BbTextarea
1295
+ v-model="ctx.draft.terms"
1296
+ auto-grow
1297
+ description="Payment terms printed in the invoice footer."
1298
+ :errors="ctx.errors.value.terms"
1299
+ label="Terms"
1300
+ placeholder="Payment due within 30 days…"
1301
+ :rows="2"
1302
+ />
1303
+ </div>
1304
+ </BbCollapsible>
1305
+ </section>
1306
+ </template>
1307
+
1308
+ <script setup lang="ts">
1309
+ import { ref } from 'vue';
1310
+ import { BbButton, BbCollapsible, BbTextarea } from 'bitboss-ui';
1311
+ import { useInvoiceForm } from './context';
1312
+
1313
+ const ctx = useInvoiceForm();
1314
+
1315
+ // Rung 1: only this section cares whether it is open. The section mounts
1316
+ // after the invoice loaded (Index gates on ctx.loaded), so seeding from the
1317
+ // draft starts an annotated invoice open and a blank one closed.
1318
+ const open = ref(ctx.draft.notes !== null || ctx.draft.terms !== null);
1319
+ </script>
1320
+ ```
1321
+
1322
+ ### FormActions.vue
1323
+
1324
+ ```vue
1325
+ <!-- InvoiceForm/FormActions.vue -->
1326
+ <template>
1327
+ <!-- Sticky action row: the commit affordance never scrolls away. Not the
1328
+ floating bottom panel — that is selection chrome, and a form has no
1329
+ selection. -->
1330
+ <div
1331
+ class="sticky bottom-0 z-10 -mx-4 flex items-center gap-3 border-t bg-[color:var(--bb-panel)] px-4 py-3"
1332
+ >
1333
+ <BbButton
1334
+ v-if="ctx.mode === 'edit'"
1335
+ prepend:icon="lucide:trash-2"
1336
+ variant="destructive"
1337
+ @click="ctx.deleteInvoice"
1338
+ >
1339
+ Delete
1340
+ </BbButton>
1341
+ <p
1342
+ v-if="ctx.isDirty.value"
1343
+ class="text-xs text-[color:var(--bb-text-muted)]"
1344
+ >
1345
+ Unsaved changes
1346
+ </p>
1347
+
1348
+ <div class="ml-auto flex items-center gap-2">
1349
+ <!-- Cancel is navigation: the route-leave guard asks about a dirty
1350
+ draft, so no bespoke confirm here. -->
1351
+ <BbButton :disabled="ctx.saving.value" to="/invoices" variant="ghost">
1352
+ Cancel
1353
+ </BbButton>
1354
+ <BbButton
1355
+ v-if="ctx.mode === 'create'"
1356
+ :disabled="ctx.saving.value"
1357
+ variant="outline"
1358
+ @click="ctx.saveAsDraft"
1359
+ >
1360
+ Save as draft
1361
+ </BbButton>
1362
+ <BbButton :loading="ctx.saving.value" type="submit" variant="primary">
1363
+ {{ ctx.mode === 'edit' ? 'Save changes' : 'Create invoice' }}
1364
+ </BbButton>
1365
+ </div>
1366
+ </div>
1367
+ </template>
1368
+
1369
+ <script setup lang="ts">
1370
+ import { BbButton } from 'bitboss-ui';
1371
+ import { useInvoiceForm } from './context';
1372
+
1373
+ const ctx = useInvoiceForm();
1374
+ </script>
1375
+ ```
1376
+
1377
+ ### CustomerPeek.vue
1378
+
1379
+ ```vue
1380
+ <!-- InvoiceForm/CustomerPeek.vue -->
1381
+ <template>
1382
+ <div v-if="customer" class="flex flex-col gap-4 text-sm">
1383
+ <header class="flex items-center gap-3">
1384
+ <BbAvatar :alt="customer.name" :src="customer.avatarUrl" />
1385
+ <div class="flex flex-col">
1386
+ <h2 class="text-base font-semibold">{{ customer.name }}</h2>
1387
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
1388
+ {{ customer.email }} · {{ customer.country }}
1389
+ </p>
1390
+ </div>
1391
+ </header>
1392
+
1393
+ <!-- Stat strip. -->
1394
+ <div class="grid grid-cols-3 gap-2">
1395
+ <div class="rounded-[var(--bb-radius)] border p-2">
1396
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Total billed</p>
1397
+ <p class="font-semibold">{{ currency.format(customer.totalBilled) }}</p>
1398
+ </div>
1399
+ <div class="rounded-[var(--bb-radius)] border p-2">
1400
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Outstanding</p>
1401
+ <p class="font-semibold">{{ currency.format(customer.outstanding) }}</p>
1402
+ </div>
1403
+ <div class="rounded-[var(--bb-radius)] border p-2">
1404
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Invoices</p>
1405
+ <p class="font-semibold">{{ customer.invoiceCount }}</p>
1406
+ </div>
1407
+ </div>
1408
+
1409
+ <!-- Billing profile: exactly the fields this form negotiates. -->
1410
+ <section class="flex flex-col gap-1.5">
1411
+ <h3
1412
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1413
+ >
1414
+ Billing profile
1415
+ </h3>
1416
+ <dl class="grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5">
1417
+ <dt class="text-[color:var(--bb-text-muted)]">Default terms</dt>
1418
+ <dd>{{ customer.defaultPaymentTerms }}</dd>
1419
+ <dt class="text-[color:var(--bb-text-muted)]">Default tax rate</dt>
1420
+ <dd>{{ customer.defaultTaxRate }}%</dd>
1421
+ <dt class="text-[color:var(--bb-text-muted)]">Tax ID</dt>
1422
+ <dd>{{ customer.taxId }}</dd>
1423
+ <dt class="text-[color:var(--bb-text-muted)]">Billing email</dt>
1424
+ <dd>{{ customer.billingEmail }}</dd>
1425
+ </dl>
1426
+ <!-- The peek acts on the form: this writes into the draft. -->
1427
+ <BbButton
1428
+ class="mt-1 self-start"
1429
+ prepend:icon="lucide:sparkles"
1430
+ size="sm"
1431
+ variant="secondary"
1432
+ @click="() => ctx.applyCustomerDefaults(customer!)"
1433
+ >
1434
+ Apply billing defaults
1435
+ </BbButton>
1436
+ </section>
1437
+
1438
+ <!-- Recent invoices: real links — leaving a dirty draft still goes
1439
+ through the route-leave guard. -->
1440
+ <section class="flex flex-col gap-1.5">
1441
+ <h3
1442
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1443
+ >
1444
+ Recent invoices
1445
+ </h3>
1446
+ <ul class="flex flex-col">
1447
+ <li
1448
+ v-for="recent in customer.recentInvoices"
1449
+ :key="recent.id"
1450
+ class="flex items-center justify-between gap-2 border-b py-1.5 last:border-b-0"
1451
+ >
1452
+ <BbButton :to="`/invoices/${recent.id}`" size="sm" variant="link">
1453
+ {{ recent.number }}
1454
+ </BbButton>
1455
+ <BbBadge variant="outline">{{ recent.status }}</BbBadge>
1456
+ <span class="text-xs tabular-nums text-[color:var(--bb-text-muted)]">
1457
+ {{ currency.format(recent.amount) }}
1458
+ </span>
1459
+ </li>
1460
+ </ul>
1461
+ </section>
1462
+
1463
+ <footer class="mt-2 flex items-center gap-2 border-t pt-3">
1464
+ <BbButton
1465
+ append:icon="lucide:arrow-up-right"
1466
+ size="sm"
1467
+ :to="`/customers/${customer.id}`"
1468
+ variant="ghost"
1469
+ >
1470
+ Open customer
1471
+ </BbButton>
1472
+ </footer>
1473
+ </div>
1474
+
1475
+ <div v-else class="flex justify-center p-8">
1476
+ <BbSpinner />
1477
+ </div>
1478
+ </template>
1479
+
1480
+ <script setup lang="ts">
1481
+ import { ref, watchEffect } from 'vue';
1482
+ import { BbAvatar, BbBadge, BbButton, BbSpinner } from 'bitboss-ui';
1483
+ import { useInvoiceForm } from './context';
1484
+ import { api } from '@/api';
1485
+ import type { CustomerDetail } from '@/types';
1486
+
1487
+ const props = defineProps<{ customerId: number }>();
1488
+
1489
+ const ctx = useInvoiceForm();
1490
+
1491
+ const customer = ref<CustomerDetail | null>(null);
1492
+ watchEffect(async () => {
1493
+ customer.value = await api.customers.getDetail(props.customerId);
1494
+ });
1495
+
1496
+ const currency = new Intl.NumberFormat('en-US', {
1497
+ style: 'currency',
1498
+ currency: 'USD',
1499
+ });
1500
+ </script>
1501
+ ```
1502
+
1503
+ ## Why it is built this way
1504
+
1505
+ - **The context coopts, leaves consume.** The shell is joined once in
1506
+ `provideInvoiceForm()`; ten components share the draft, the errors, the
1507
+ peek stack and every action through one `useInvoiceForm()` call. The only
1508
+ props on the page are data-identity props: the cells' `line` and the
1509
+ peek's `customer-id`. Notably there is **no table context** here — the
1510
+ line-items table has no selection, no paging and no fetch; its entire
1511
+ state _is_ the draft, so there is nothing for a `useBbTableContext`
1512
+ handle to carry.
1513
+ - **The draft is the mutation boundary.** On a workspace page every action
1514
+ hits the API; on a form the unsaved state is the product. Cell commits,
1515
+ line add/duplicate/remove and "apply billing defaults" therefore mutate
1516
+ `ctx.draft` (still context actions — leaves never reach around it), and
1517
+ the single `persist()` call is where the API, the 422 mapping, the toast
1518
+ and the snapshot re-baseline live.
1519
+ - **422 keys are the server's shape, not reshaped.** Scalar inputs bind
1520
+ `ctx.errors.value.<field>` directly; row errors keep their
1521
+ `lineItems.<index>.<field>` keys and the cells resolve them through
1522
+ `lineItemError`, which derives the index from the row's id — so the
1523
+ lookup survives the page-search filter reordering what is visible.
1524
+ - **Tied selects trust the machinery.** `dependencies: [draft.customerId]`
1525
+ re-runs the project provider, `enforce-coherence` prunes a stale pick,
1526
+ and both providers honor the prefill contract (return the selected
1527
+ record on component-initiated calls) so a valid selection is never
1528
+ wiped — the exact failure mode the BbSelect guide warns about.
1529
+ - **The inline-edit grammar is three tiny leaves, not one configurable
1530
+ cell.** Each editable cell owns rung-1 state (`editing`, the in-flight
1531
+ value), commits on blur/Enter and reverts on Esc. Enter is
1532
+ `.prevent`-ed so it commits the cell instead of submitting the enclosing
1533
+ form, and the `editing` guard keeps the unmount blur after an Esc from
1534
+ re-committing the reverted value.
1535
+ - **The dirty snapshot re-baselines before every self-inflicted
1536
+ navigation** — successful save, draft save, delete — so the
1537
+ `onBeforeRouteLeave` confirm fires only when the user genuinely walks
1538
+ away. Cancel is a plain `to` link for the same reason: the guard _is_ the
1539
+ confirm, so the button needs none of its own.
1540
+ - **A sticky action row, not the floating bottom panel.** The panel from
1541
+ the guides is selection-driven chrome that comes and goes; a form's
1542
+ commit affordance must be permanently visible, so it is a sticky row on
1543
+ the page surface (`--bb-panel` background, top border) hosting the one
1544
+ `variant="primary"` of the page.
1545
+ - **Sizing:** the form fields are full-height — a form is not a dense
1546
+ surface. `compact` appears where density is real: the topbar search, the
1547
+ line-items table and its cell inputs. `sm` buttons appear only in the
1548
+ table's row actions, the "View customer" link and the peek; everything
1549
+ in the sticky row is default `md`.
1550
+ - **Destructive actions ride `useConfirm`** — delete and the leave guard
1551
+ both — and the peek is a workbench: it acts on the draft and links out
1552
+ with real `to` links, never `@click` + router.
1553
+
1554
+ ## Variations
1555
+
1556
+ - **Inside a `BbDialog`** (quick create from the invoices workspace): drop
1557
+ the route guard and breadcrumbs, keep `isDirty`, confirm on the dialog's
1558
+ close instead, and move the action row into the dialog `#footer` — the
1559
+ context and sections carry over unchanged.
1560
+ - **Autosave drafts**: debounce a watcher on `draft` that calls
1561
+ `persist('draft')` silently and re-baselines per save; the "Save as
1562
+ draft" button disappears and the sticky row shows "Saved 12s ago".
1563
+ - **Client-side pre-validation**: validate required fields on submit
1564
+ before calling the API and merge the messages into the same `errors`
1565
+ map — the inputs cannot tell the difference, which is the point.
1566
+ - **Per-line tax**: add an `EditableTaxCell` per row (its own leaf, per
1567
+ the no-API-monster rule) and group the totals block by rate.
1568
+ - **Send flow**: the primary becomes "Save and send" and opens a
1569
+ `BbDialog` preview (recipient, subject, PDF) whose open-state lives on
1570
+ the context, before persisting with `status: 'pending'`.
1571
+ - **Per-field persistence**: this page deliberately has no per-cell save
1572
+ feedback because no per-cell save exists — the draft is the mutation
1573
+ boundary and Save is the one commit. When the domain wants every field
1574
+ to persist itself (no Save button), that is the autosave pattern: see
1575
+ the [Inline Edit Playbook](../../guides/inline-edit-playbook.md) and
1576
+ the inline-edit-workspace recipe.
1577
+
1578
+ ## Related
1579
+
1580
+ - [Records Workspace (Vue)](./records-workspace.md) — the listing page
1581
+ this form is reached from.
1582
+ - [Page Shell](../../guides/page-shell.md) — the app-side layout the
1583
+ customer peek renders inside.
1584
+ - [BbTable](../../BbTable.md), [BbSelect](../../BbSelect.md),
1585
+ [BbCollapsible](../../BbCollapsible.md) — the components this page
1586
+ leans on hardest.