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,1845 @@
1
+ ---
2
+ title: Upload Center (Vue)
3
+ summary: Full-anatomy expense-receipts upload center for a vue-router SPA — multi-file dropzone into an inline-editable table (text, category popover, amount, date cells), per-file progress with inline retry, submit-all with count, bulk bottom panel, and a stacked receipt/merchant peek sidebar, all through one coopting page context.
4
+ ---
5
+
6
+ # Recipe: Upload Center (Vue)
7
+
8
+ An Expensify-grade expense receipts submission page for a **plain Vue SPA
9
+ with vue-router**, at full standard anatomy: a multi-file dropzone feeding
10
+ an inline-editable table, per-file upload progress with inline retry,
11
+ one-click category cells, bulk actions in the floating bottom panel, and a
12
+ stacked receipt/merchant peek sidebar.
13
+
14
+ Sibling recipes: [Nuxt](../nuxt/upload-center.md) ·
15
+ [Inertia](../inertia/upload-center.md).
16
+
17
+ ## Prerequisites
18
+
19
+ - **[Layout Scaffold](./layout-scaffold.md) — build it first.** This recipe
20
+ imports `PageShell`, `usePageShellContext` and `FloatingBottomPanel` from your own app.
21
+ They are not package exports; the scaffold recipe is their source. Copy
22
+ those files before anything below, and do not hand-roll replacements —
23
+ the peek stack, the close semantics and the sidebar's out-of-flow
24
+ behaviour are all load-bearing here.
25
+ - `<BbConfirm />` and `<BbToast />` mounted once in the app root (`App.vue`) — never in a page.
26
+ - [App Layout](../../guides/app-layout.md), [Page Shell](../../guides/page-shell.md)
27
+ and [Floating Bottom Panel](../../guides/floating-bottom-panel.md) copied
28
+ into `src/components/layout/` per their guides — every recipe page assumes
29
+ this chrome exists and renders inside it.
30
+ - A `useCategoriesStore()` Pinia store exposing the shared expense-category
31
+ catalog (Travel, Meals & entertainment, Lodging, Rideshare & transit,
32
+ Software & subscriptions, Office supplies, Fuel, Client entertainment).
33
+ - The registered `soft-*` badge variants (`soft-gray` / `soft-amber` /
34
+ `soft-green`) from the [Inline Edit Workspace](./inline-edit-workspace.md)
35
+ recipe — the receipt-status maps in `context.ts` use them
36
+ (design-language § Using color).
37
+
38
+ ## Key ideas
39
+
40
+ - **One coopting page context.** `provideUploadCenter()` joins the
41
+ page-shell stack and the table context once, coopts the shared category
42
+ catalog from `useCategoriesStore()`, owns the filters, the tab, and the
43
+ **upload queue**, and exposes complete actions. Every leaf calls
44
+ `useUploadCenter()` and nothing else.
45
+ - **Capture and transfer are two layers.** `BbDropzone` only validates and
46
+ hands over `File[]`; the context runs the uploads (AbortController +
47
+ progress callback per file) and the dropzone leaf immediately drains its
48
+ model into `ctx.enqueueFiles()`. The component never uploads — that is
49
+ its documented contract.
50
+ - **The drafts table lists two kinds of rows.** In-flight/failed uploads
51
+ (`kind: 'upload'`, local state) render above the server drafts
52
+ (`kind: 'receipt'`, fetched). Progress ticks mutate the live row objects
53
+ — no refetch per tick; only membership changes (enqueue, remove,
54
+ completion) bump `refreshKey`.
55
+ - **Every draft cell edits in place.** Merchant is a text cell committing
56
+ on blur/Enter (§6.3), category is a one-click badge popover (§6.1),
57
+ amount is a `$`-prefixed number cell, date commits on pick. Each cell
58
+ type is its own leaf with a single `receipt` prop; failed saves revert
59
+ via refetch and toast destructive.
60
+ - **Tabs are URL filters.** Drafts / Submitted / Reimbursed carry `href`
61
+ (`?tab=drafts`) and live counts from every fetch; the same table is the
62
+ pane, read-only outside Drafts.
63
+ - **Clicking the name of a thing peeks it.** Filename → receipt peek
64
+ (fresh stack) with preview placeholder, extracted OCR fields and
65
+ activity; the merchant name inside the peek → merchant peek **stacked**
66
+ with a back arrow, whose recent receipts drill back down.
67
+ - **Buttons are `md` by default**; `sm`/`xs` only in the table rows, the
68
+ filter pills, the peek footers and the bottom bar. One
69
+ `variant="primary"`: **Submit all** with its live count.
70
+
71
+ - **Spread the filters object into `dependencies`.** `BbTable` hash-compares
72
+ `dependencies`; it does not deep-watch them. Passing the reactive `filters`
73
+ proxy itself tracks only its identity — which never changes — so the table
74
+ never refetches. `{ ...ctx.filters }` reads every field during render, so any
75
+ field change yields a new, differently-hashed array. Read `.value` off the
76
+ refs for the same reason: context members are not auto-unwrapped in a template.
77
+
78
+ ## Page anatomy
79
+
80
+ ```
81
+ UploadCenter/
82
+ Index.vue ← assembly: PageShell slots, dropzone, tabs, table, pagination
83
+ context.ts ← coopting page context (shell + table + categories + upload queue + actions)
84
+ ReceiptDropzone.vue ← multi-file capture, constraint errors mapped to messages
85
+ FilterRail.vue ← pill filters + clear-all
86
+ ReceiptFileCell.vue ← file icon + name (peek link) + size, both row kinds
87
+ UploadProgressCell.vue ← per-file BbProgress / failed state with inline retry
88
+ MerchantCell.vue ← inline text edit, commit on blur/Enter (§6.3)
89
+ CategoryCell.vue ← one-click badge → BbSelectPopover (§6.1)
90
+ AmountCell.vue ← inline number edit with $ prefix
91
+ DateCell.vue ← date picker cell, commit on pick
92
+ RowActions.vue ← remove-from-queue / per-receipt "…" dropdown
93
+ SelectionBar.vue ← bulk categorize + bulk remove in the floating bottom panel
94
+ ReceiptPeek.vue ← sidebar workbench, stack level 1
95
+ MerchantPeek.vue ← stacked peek, back arrow via the shell
96
+ ```
97
+
98
+ Chrome assumed from the guides: [App Layout](../../guides/app-layout.md)
99
+ (left nav + fat footer), [Page Shell](../../guides/page-shell.md),
100
+ [Floating Bottom Panel](../../guides/floating-bottom-panel.md).
101
+
102
+ ## Action inventory
103
+
104
+ | # | Action | Trigger | Mechanism |
105
+ | --- | --------------------------------- | ---------------------------------- | ----------------------------------------------------- |
106
+ | 1 | Upload receipts | dropzone (drag, click, Browse) | `enqueueFiles()` → per-file upload with progress |
107
+ | 2 | Retry a failed upload | inline in the progress cell | `retryUpload(id)` re-issues the request |
108
+ | 3 | Remove an in-flight upload | row actions (x) | `removeUpload(id)` aborts + drops the row |
109
+ | 4 | Page search | topbar right | `filters.search` → fetch dependency |
110
+ | 5 | Filter category / merchant / date | filter rail pills | `BbSelectPopover` multiple / query-aware / date range |
111
+ | 6 | Clear filters | rail right (only when active) | context `clearFilters()` |
112
+ | 7 | Switch tab | href tabs with counts | URL + fetch dependency |
113
+ | 8 | Edit merchant inline | merchant cell | commit on blur/Enter, Esc reverts (§6.3) |
114
+ | 9 | Change category one-click | category badge in row & peek | `BbSelectPopover` on the badge (§6.1) |
115
+ | 10 | Edit amount inline | amount cell ($ prefix) | commit on blur/Enter, Esc reverts |
116
+ | 11 | Edit expense date inline | date cell | commit on pick |
117
+ | 12 | Submit one receipt | row `…`, peek footer | `submitReceipt()` (API + refresh + toast) |
118
+ | 13 | Submit all with count | topbar, the page's one `primary` | `submitAll()` — count from every fetch |
119
+ | 14 | Remove a draft | row `…`, peek footer | destructive behind `useConfirm` |
120
+ | 15 | Bulk categorize | floating bottom panel popover | `bulkCategorize()` on `table.selected` |
121
+ | 16 | Bulk remove | floating bottom panel | destructive behind `useConfirm`, count in message |
122
+ | 17 | Select rows / select all | table checkboxes (drafts only) | table context, `selectable` predicate |
123
+ | 18 | Peek receipt | filename cell / merchant peek list | `peekReceipt(id)` → shell stack |
124
+ | 19 | Peek merchant (stacked) | merchant name inside the peek | `stackMerchant(name)` → back arrow |
125
+ | 20 | Download original | row `…`, peek footer | navigation (`/receipts/:id/file`) |
126
+
127
+ ## The code
128
+
129
+ ### context.ts
130
+
131
+ ```ts
132
+ // UploadCenter/context.ts
133
+ import {
134
+ computed,
135
+ inject,
136
+ provide,
137
+ reactive,
138
+ ref,
139
+ type ComputedRef,
140
+ type InjectionKey,
141
+ type Ref,
142
+ } from 'vue';
143
+ import {
144
+ useBbTableContext,
145
+ useConfirm,
146
+ useToast,
147
+ type BadgeVariantType,
148
+ type BbTableContext,
149
+ } from 'bitboss-ui';
150
+ import {
151
+ usePageShellContext,
152
+ type PageShellContext,
153
+ } from '@/components/layout/usePageShellContext';
154
+ import { useCategoriesStore } from '@/stores/categories';
155
+ import { api } from '@/api';
156
+ import type { Category, Receipt, ReceiptStatus } from '@/types';
157
+
158
+ /** What the stacked sidebar can show. Clicking a name pushes one of these. */
159
+ export type PeekItem =
160
+ | { type: 'receipt'; id: string }
161
+ | { type: 'merchant'; name: string };
162
+
163
+ export type UploadCenterTab = 'drafts' | 'submitted' | 'reimbursed';
164
+
165
+ export interface ReceiptFilters {
166
+ search: string;
167
+ categoryIds: string[];
168
+ merchant: string | null;
169
+ /**
170
+ * `[start, end]` as `YYYY-MM-DD`, or `[]` when unset. Range mode requires an
171
+ * array modelValue -- binding `null` throws, so the empty filter is `[]`.
172
+ */
173
+ spentBetween: string[];
174
+ }
175
+
176
+ /** A dropped file whose transfer is still in flight (or failed). Local-only. */
177
+ export type UploadRow = {
178
+ /** Local id (`upload-…`) — never collides with server receipt ids. */
179
+ id: string;
180
+ kind: 'upload';
181
+ filename: string;
182
+ size: number;
183
+ /** 0–100. Mutated in place per progress tick — reactive, no refetch. */
184
+ progress: number;
185
+ failed: boolean;
186
+ };
187
+
188
+ /** A server receipt as the table renders it. */
189
+ export type ReceiptRow = Receipt & { kind: 'receipt' };
190
+
191
+ /** What the table actually lists on the Drafts tab: uploads first. */
192
+ export type UploadCenterRow = UploadRow | ReceiptRow;
193
+
194
+ /** The only fields the inline cells may change. */
195
+ export type ReceiptPatch = Partial<
196
+ Pick<Receipt, 'merchant' | 'categoryId' | 'amount' | 'date'>
197
+ >;
198
+
199
+ // -- Receipt-status badge maps: one closed set, mapped once for the whole page.
200
+ // The receipt lifecycle (table rows, the receipt peek header, the merchant
201
+ // peek's recent list) is a small closed set — the textbook case for the soft
202
+ // accents (design-language.md § Using color), registered via badge-variants.d.ts.
203
+ // draft = idle/neutral, submitted = pending approval, reimbursed = done.
204
+ export const STATUS_LABEL: Record<ReceiptStatus, string> = {
205
+ draft: 'Draft',
206
+ submitted: 'Submitted',
207
+ reimbursed: 'Reimbursed',
208
+ };
209
+ export const STATUS_VARIANT: Record<ReceiptStatus, BadgeVariantType> = {
210
+ draft: 'soft-gray',
211
+ submitted: 'soft-amber',
212
+ reimbursed: 'soft-green',
213
+ };
214
+
215
+ export interface UploadCenterContext {
216
+ // -- Coopted contexts ------------------------------------------------------
217
+ shell: PageShellContext<PeekItem>;
218
+ table: BbTableContext;
219
+ /** Shared expense-category catalog, coopted from the store. */
220
+ categories: ComputedRef<Category[]>;
221
+ // -- Page-owned state ------------------------------------------------------
222
+ filters: ReceiptFilters;
223
+ hasActiveFilters: ComputedRef<boolean>;
224
+ tab: Ref<UploadCenterTab>;
225
+ tabCounts: Ref<Record<UploadCenterTab, number>>;
226
+ /** Drafts that are complete (merchant + category + amount + date). */
227
+ readyCount: Ref<number>;
228
+ /** The live upload queue — in-flight and failed transfers. */
229
+ uploads: Ref<UploadRow[]>;
230
+ refreshKey: Ref<number>;
231
+ // -- Data ------------------------------------------------------------------
232
+ fetchRows: () => Promise<UploadCenterRow[]>;
233
+ searchMerchants: (query: string) => Promise<string[]>;
234
+ // -- Peek grammar ----------------------------------------------------------
235
+ peekReceipt: (id: string) => void;
236
+ stackReceipt: (id: string) => void;
237
+ stackMerchant: (name: string) => void;
238
+ // -- Actions (complete: API + refresh + toast) ------------------------------
239
+ clearFilters: () => void;
240
+ enqueueFiles: (files: File[]) => void;
241
+ retryUpload: (id: string) => void;
242
+ removeUpload: (id: string) => void;
243
+ updateReceipt: (receipt: Receipt, patch: ReceiptPatch) => Promise<void>;
244
+ submitReceipt: (receipt: Receipt) => Promise<void>;
245
+ submitAll: () => Promise<void>;
246
+ /** Resolves `true` when the receipt was actually deleted (confirm accepted). */
247
+ deleteReceipt: (receipt: Receipt) => Promise<boolean>;
248
+ bulkCategorize: (categoryId: string) => Promise<void>;
249
+ bulkRemove: () => Promise<void>;
250
+ }
251
+
252
+ const key: InjectionKey<UploadCenterContext> = Symbol('upload-center');
253
+
254
+ export function provideUploadCenter(): UploadCenterContext {
255
+ const { toast } = useToast();
256
+ const { confirm } = useConfirm();
257
+
258
+ // -- Coopt the specific contexts: once, here, for the whole page. ----------
259
+ const shell = usePageShellContext<PeekItem>();
260
+ const table = useBbTableContext('receipts-table', { perPage: 25 });
261
+ const categoriesStore = useCategoriesStore();
262
+ const categories = computed(() => categoriesStore.categories);
263
+ // A shared catalog store does not seed itself just by being read. Kick the
264
+ // load here (idempotent — the store dedupes on an in-flight promise), or the
265
+ // category cells and the bulk-categorize popover stay permanently empty.
266
+ void categoriesStore.load();
267
+
268
+ // -- Page state -------------------------------------------------------------
269
+ const filters = reactive<ReceiptFilters>({
270
+ search: '',
271
+ categoryIds: [],
272
+ merchant: null,
273
+ spentBetween: [],
274
+ });
275
+ const hasActiveFilters = computed(
276
+ () =>
277
+ filters.search !== '' ||
278
+ filters.categoryIds.length > 0 ||
279
+ filters.merchant !== null ||
280
+ filters.spentBetween.length > 0
281
+ );
282
+ const tab = ref<UploadCenterTab>('drafts');
283
+ const tabCounts = ref<Record<UploadCenterTab, number>>({
284
+ drafts: 0,
285
+ submitted: 0,
286
+ reimbursed: 0,
287
+ });
288
+ const readyCount = ref(0);
289
+ const refreshKey = ref(0);
290
+
291
+ const clearFilters = () => {
292
+ filters.search = '';
293
+ filters.categoryIds = [];
294
+ filters.merchant = null;
295
+ filters.spentBetween = [];
296
+ };
297
+
298
+ const refresh = () => {
299
+ refreshKey.value++;
300
+ };
301
+
302
+ // -- Data ---------------------------------------------------------------------
303
+ // The one place the list is fetched. Writes the paging totals into the
304
+ // table context and keeps the tab counts and submit-all count live. A
305
+ // drafts page looks like:
306
+ // { id: 'rcp_3128', filename: 'uber-2026-07-08.pdf', merchant: 'Uber',
307
+ // categoryId: 'cat-rideshare', amount: 42.8, date: '2026-07-08', … }
308
+ // { id: 'rcp_3127', filename: 'IMG_4021.jpg', merchant: 'Starbucks Reserve',
309
+ // categoryId: 'cat-meals', amount: 11.4, date: '2026-07-08', … }
310
+ // { id: 'rcp_3120', filename: 'delta-ticket-0472.pdf', merchant: 'Delta Air Lines',
311
+ // categoryId: 'cat-travel', amount: 428.6, date: '2026-07-06', … }
312
+ // { id: 'rcp_3117', filename: 'marriott-folio.pdf', merchant: 'Marriott Marquis SF',
313
+ // categoryId: 'cat-lodging', amount: 612.33, date: '2026-07-05', … }
314
+ // On the Drafts tab the live upload queue renders above the fetched page.
315
+ const uploads = ref<UploadRow[]>([]);
316
+
317
+ const fetchRows = async (): Promise<UploadCenterRow[]> => {
318
+ const response = await api.receipts.list({
319
+ ...filters,
320
+ tab: tab.value,
321
+ page: table.page.value,
322
+ perPage: table.perPage.value,
323
+ });
324
+ table.total.value = response.total;
325
+ tabCounts.value = response.tabCounts;
326
+ readyCount.value = response.readyCount;
327
+ const rows = response.data.map(
328
+ (receipt): ReceiptRow => ({ ...receipt, kind: 'receipt' })
329
+ );
330
+ return tab.value === 'drafts' ? [...uploads.value, ...rows] : rows;
331
+ };
332
+
333
+ const searchMerchants = (query: string): Promise<string[]> =>
334
+ api.merchants.search(query);
335
+
336
+ // -- Upload machinery ----------------------------------------------------------
337
+ // The queue rows are reactive: progress ticks mutate them in place and the
338
+ // rendered cells update without a refetch. Only membership changes
339
+ // (enqueue, remove, completion) bump refreshKey so the table re-runs its
340
+ // items function. Files and abort controllers live in closure maps — they
341
+ // are not render state.
342
+ const uploadFiles = new Map<string, File>();
343
+ const controllers = new Map<string, AbortController>();
344
+
345
+ const startUpload = async (id: string) => {
346
+ const file = uploadFiles.get(id);
347
+ const row = uploads.value.find((upload) => upload.id === id);
348
+ if (!file || !row) return;
349
+ row.failed = false;
350
+ row.progress = 0;
351
+ const controller = new AbortController();
352
+ controllers.set(id, controller);
353
+ try {
354
+ await api.receipts.upload(file, {
355
+ signal: controller.signal,
356
+ onProgress: (percent) => {
357
+ row.progress = percent;
358
+ },
359
+ });
360
+ // Success: the file re-enters as a server draft with OCR-extracted
361
+ // merchant/amount/date prefilled — the refetch swaps the rows.
362
+ uploads.value = uploads.value.filter((upload) => upload.id !== id);
363
+ uploadFiles.delete(id);
364
+ refresh();
365
+ } catch {
366
+ // Keep the row: the progress cell renders the inline Retry.
367
+ row.failed = true;
368
+ } finally {
369
+ controllers.delete(id);
370
+ }
371
+ };
372
+
373
+ const enqueueFiles = (files: File[]) => {
374
+ for (const file of files) {
375
+ const id = `upload-${crypto.randomUUID()}`;
376
+ uploadFiles.set(id, file);
377
+ uploads.value.push({
378
+ id,
379
+ kind: 'upload',
380
+ filename: file.name,
381
+ size: file.size,
382
+ progress: 0,
383
+ failed: false,
384
+ });
385
+ void startUpload(id);
386
+ }
387
+ refresh();
388
+ };
389
+
390
+ const retryUpload = (id: string) => {
391
+ void startUpload(id);
392
+ };
393
+
394
+ const removeUpload = (id: string) => {
395
+ controllers.get(id)?.abort();
396
+ controllers.delete(id);
397
+ uploadFiles.delete(id);
398
+ uploads.value = uploads.value.filter((upload) => upload.id !== id);
399
+ refresh();
400
+ };
401
+
402
+ // -- Peek grammar ----------------------------------------------------------------
403
+ // peekX opens a fresh stack (from the list); stackX drills down (from a peek).
404
+ const peekReceipt = (id: string) => shell.push({ type: 'receipt', id }, true);
405
+ const stackReceipt = (id: string) => shell.push({ type: 'receipt', id });
406
+ const stackMerchant = (name: string) =>
407
+ shell.push({ type: 'merchant', name });
408
+
409
+ // -- Actions --------------------------------------------------------------------
410
+ const updateReceipt = async (receipt: Receipt, patch: ReceiptPatch) => {
411
+ try {
412
+ await api.receipts.update(receipt.id, patch);
413
+ refresh(); // silent on success — the cell already shows the new value
414
+ } catch {
415
+ refresh(); // the refetch reverts the cell to the server value
416
+ toast({
417
+ title: `Could not save ${receipt.filename}. Changes were reverted.`,
418
+ variant: 'destructive',
419
+ });
420
+ }
421
+ };
422
+
423
+ const submitReceipt = async (receipt: Receipt) => {
424
+ await api.receipts.submit(receipt.id);
425
+ refresh();
426
+ toast({
427
+ title: `${receipt.merchant ?? receipt.filename} submitted for approval.`,
428
+ variant: 'success',
429
+ });
430
+ };
431
+
432
+ const submitAll = async () => {
433
+ const { submitted } = await api.receipts.submitDrafts();
434
+ refresh();
435
+ toast({
436
+ title: `${submitted} receipts submitted for approval.`,
437
+ variant: 'success',
438
+ });
439
+ };
440
+
441
+ const deleteReceipt = async (receipt: Receipt): Promise<boolean> => {
442
+ const ok = await confirm({
443
+ variant: 'destructive',
444
+ title: 'Remove receipt',
445
+ text: `Remove ${receipt.filename}? The file is deleted and cannot be recovered.`,
446
+ yes: 'Remove',
447
+ no: 'Cancel',
448
+ });
449
+ if (!ok) return false;
450
+ await api.receipts.delete(receipt.id);
451
+ refresh();
452
+ toast({ title: `${receipt.filename} removed.`, variant: 'success' });
453
+ return true;
454
+ };
455
+
456
+ // Bulk actions read and clear the coopted table context themselves. Only
457
+ // draft receipt rows are selectable, so `selected` holds receipt ids.
458
+ const bulkIds = (): string[] => table.selected.value;
459
+ const clearSelection = () => {
460
+ table.selected.value = [];
461
+ };
462
+
463
+ const bulkCategorize = async (categoryId: string) => {
464
+ const ids = bulkIds();
465
+ await api.receipts.categorizeMany(ids, categoryId);
466
+ const category = categories.value.find((entry) => entry.id === categoryId);
467
+ clearSelection();
468
+ refresh();
469
+ toast({
470
+ title: `${ids.length} receipts filed under ${category?.name ?? 'the selected category'}.`,
471
+ variant: 'success',
472
+ });
473
+ };
474
+
475
+ const bulkRemove = async () => {
476
+ const ids = bulkIds();
477
+ const ok = await confirm({
478
+ variant: 'destructive',
479
+ title: 'Remove receipts',
480
+ text: `Remove ${ids.length} receipts? Their files are deleted and cannot be recovered.`,
481
+ yes: 'Remove',
482
+ no: 'Cancel',
483
+ });
484
+ if (!ok) return;
485
+ await api.receipts.deleteMany(ids);
486
+ clearSelection();
487
+ refresh();
488
+ toast({ title: `${ids.length} receipts removed.`, variant: 'success' });
489
+ };
490
+
491
+ const ctx: UploadCenterContext = {
492
+ shell,
493
+ table,
494
+ categories,
495
+ filters,
496
+ hasActiveFilters,
497
+ tab,
498
+ tabCounts,
499
+ readyCount,
500
+ uploads,
501
+ refreshKey,
502
+ fetchRows,
503
+ searchMerchants,
504
+ peekReceipt,
505
+ stackReceipt,
506
+ stackMerchant,
507
+ clearFilters,
508
+ enqueueFiles,
509
+ retryUpload,
510
+ removeUpload,
511
+ updateReceipt,
512
+ submitReceipt,
513
+ submitAll,
514
+ deleteReceipt,
515
+ bulkCategorize,
516
+ bulkRemove,
517
+ };
518
+ provide(key, ctx);
519
+ return ctx;
520
+ }
521
+
522
+ export function useUploadCenter(): UploadCenterContext {
523
+ const ctx = inject(key);
524
+ if (!ctx) throw new Error('useUploadCenter() called outside UploadCenter');
525
+ return ctx;
526
+ }
527
+ ```
528
+
529
+ ### Index.vue — the assembly
530
+
531
+ ```vue
532
+ <!-- UploadCenter/Index.vue -->
533
+ <template>
534
+ <PageShell>
535
+ <!-- Topbar: breadcrumbs left, page search + submit-all right. -->
536
+ <template #topbar>
537
+ <div class="flex items-center justify-between gap-4 border-b px-4 py-2">
538
+ <!-- Breadcrumbs take the row's slack on a stable basis (min-w-0 flex-auto);
539
+ without it their overflow recompute fights the flex layout every frame. -->
540
+ <BbBreadcrumbs
541
+ class="min-w-0 flex-auto"
542
+ :items="[
543
+ { key: 'dashboard', text: 'Dashboard', to: '/dashboard' },
544
+ { key: 'expenses', text: 'Expenses', to: '/expenses' },
545
+ { key: 'receipts', text: 'Receipts' },
546
+ ]"
547
+ />
548
+ <div class="flex shrink-0 items-center gap-2">
549
+ <BbTextInput
550
+ v-model="ctx.filters.search"
551
+ autocomplete="off"
552
+ clearable
553
+ compact
554
+ hide-label
555
+ label="Search receipts"
556
+ placeholder="Search merchant or filename…"
557
+ prepend:icon="lucide:search"
558
+ />
559
+ <!-- The page's single primary: submit-all with a live count.
560
+ BbButton tracks the async handler, so it shows its own
561
+ loading state while the batch submits. -->
562
+ <BbButton
563
+ :disabled="ctx.readyCount.value === 0"
564
+ prepend:icon="lucide:send"
565
+ variant="primary"
566
+ @click="ctx.submitAll"
567
+ >
568
+ {{ submitLabel }}
569
+ </BbButton>
570
+ </div>
571
+ </div>
572
+ </template>
573
+
574
+ <div class="flex flex-col gap-3 p-4">
575
+ <!-- Capture surface: drafts tab only. -->
576
+ <ReceiptDropzone v-if="ctx.tab.value === 'drafts'" />
577
+
578
+ <FilterRail />
579
+
580
+ <!-- Tabs as URL filters: href updates the query, the key feeds the
581
+ fetch. Counts come from the server on every fetch. -->
582
+ <BbTabs
583
+ v-model="ctx.tab.value"
584
+ compact
585
+ :items="[
586
+ {
587
+ key: 'drafts',
588
+ label: `Drafts · ${ctx.tabCounts.value.drafts}`,
589
+ href: '?tab=drafts',
590
+ },
591
+ {
592
+ key: 'submitted',
593
+ label: `Submitted · ${ctx.tabCounts.value.submitted}`,
594
+ href: '?tab=submitted',
595
+ },
596
+ {
597
+ key: 'reimbursed',
598
+ label: `Reimbursed · ${ctx.tabCounts.value.reimbursed}`,
599
+ href: '?tab=reimbursed',
600
+ },
601
+ ]"
602
+ />
603
+
604
+ <BbTable
605
+ id="receipts-table"
606
+ actions
607
+ caption="Expense receipts"
608
+ :columns="columns"
609
+ compact
610
+ :dependencies="[
611
+ { ...ctx.filters },
612
+ ctx.tab.value,
613
+ ctx.refreshKey.value,
614
+ ]"
615
+ :deps-debounce-time="300"
616
+ item-value="id"
617
+ :items="ctx.fetchRows"
618
+ loading-text="Loading receipts…"
619
+ :row-class="rowClass"
620
+ :selectable="isDraft"
621
+ >
622
+ <!-- Clicking the NAME of a thing peeks it. -->
623
+ <template #filename="{ item }">
624
+ <ReceiptFileCell :row="item" />
625
+ </template>
626
+
627
+ <!-- Editable cells on draft rows; plain text everywhere else. -->
628
+ <template #merchant="{ item }">
629
+ <MerchantCell v-if="isDraft(item)" :receipt="item" />
630
+ <span
631
+ v-else-if="item.kind === 'upload'"
632
+ class="text-[color:var(--bb-text-muted)]"
633
+ >—</span
634
+ >
635
+ <span v-else>{{ item.merchant ?? '—' }}</span>
636
+ </template>
637
+
638
+ <!-- Slot names are normalized: `categoryId` → `#categoryid`. -->
639
+ <template #categoryid="{ item }">
640
+ <CategoryCell v-if="isDraft(item)" :receipt="item" />
641
+ <span
642
+ v-else-if="item.kind === 'upload'"
643
+ class="text-[color:var(--bb-text-muted)]"
644
+ >—</span
645
+ >
646
+ <span v-else>{{ categoryName(item.categoryId) }}</span>
647
+ </template>
648
+
649
+ <template #amount="{ item }">
650
+ <AmountCell v-if="isDraft(item)" :receipt="item" />
651
+ <span
652
+ v-else-if="item.kind === 'upload'"
653
+ class="text-[color:var(--bb-text-muted)]"
654
+ >—</span
655
+ >
656
+ <span v-else>{{
657
+ item.amount === null ? '—' : currency.format(item.amount)
658
+ }}</span>
659
+ </template>
660
+
661
+ <template #date="{ item }">
662
+ <DateCell v-if="isDraft(item)" :receipt="item" />
663
+ <span
664
+ v-else-if="item.kind === 'upload'"
665
+ class="text-[color:var(--bb-text-muted)]"
666
+ >—</span
667
+ >
668
+ <span v-else>{{ item.date ? shortDate(item.date) : '—' }}</span>
669
+ </template>
670
+
671
+ <!-- Status column doubles as the transfer surface for queue rows. -->
672
+ <template #status="{ item }">
673
+ <UploadProgressCell v-if="item.kind === 'upload'" :upload="item" />
674
+ <BbBadge v-else :variant="STATUS_VARIANT[item.status]">{{
675
+ STATUS_LABEL[item.status]
676
+ }}</BbBadge>
677
+ </template>
678
+
679
+ <template #actions="{ item }">
680
+ <RowActions :row="item" />
681
+ </template>
682
+
683
+ <template #no-data>
684
+ <div class="flex flex-col items-center gap-2 p-8 text-center">
685
+ <BbIcon
686
+ aria-hidden="true"
687
+ class="text-[color:var(--bb-text-muted)]"
688
+ :icon="
689
+ ctx.hasActiveFilters.value
690
+ ? 'lucide:search-x'
691
+ : 'lucide:receipt'
692
+ "
693
+ size="2xl"
694
+ />
695
+ <p class="text-sm font-semibold">
696
+ {{
697
+ ctx.hasActiveFilters.value
698
+ ? 'No matching receipts'
699
+ : ctx.tab.value === 'drafts'
700
+ ? 'No drafts yet'
701
+ : 'Nothing in this tab yet'
702
+ }}
703
+ </p>
704
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
705
+ {{
706
+ ctx.hasActiveFilters.value
707
+ ? 'Loosen a filter above, or switch tabs to widen the view.'
708
+ : ctx.tab.value === 'drafts'
709
+ ? 'Drop receipts above to get started.'
710
+ : 'Submitted and reimbursed receipts land in their own tabs.'
711
+ }}
712
+ </p>
713
+ <BbButton
714
+ v-if="ctx.hasActiveFilters.value"
715
+ prepend:icon="lucide:x"
716
+ variant="ghost"
717
+ @click="ctx.clearFilters"
718
+ >
719
+ Clear filters
720
+ </BbButton>
721
+ </div>
722
+ </template>
723
+ </BbTable>
724
+
725
+ <!-- Joins the table context by id: no page/totalPages wiring at all. -->
726
+ <BbPagination table-id="receipts-table" />
727
+ </div>
728
+
729
+ <SelectionBar />
730
+
731
+ <!-- Stacked peek sidebar: the shell owns back/close; we render by type. -->
732
+ <template #sidebar>
733
+ <ReceiptPeek
734
+ v-if="ctx.shell.current.value?.type === 'receipt'"
735
+ :receipt-id="ctx.shell.current.value.id"
736
+ />
737
+ <MerchantPeek
738
+ v-else-if="ctx.shell.current.value?.type === 'merchant'"
739
+ :merchant-name="ctx.shell.current.value.name"
740
+ />
741
+ </template>
742
+ </PageShell>
743
+ </template>
744
+
745
+ <script setup lang="ts">
746
+ import { computed } from 'vue';
747
+ import {
748
+ BbBadge,
749
+ BbBreadcrumbs,
750
+ BbButton,
751
+ BbIcon,
752
+ BbPagination,
753
+ BbTable,
754
+ BbTabs,
755
+ BbTextInput,
756
+ } from 'bitboss-ui';
757
+ import PageShell from '@/components/layout/PageShell.vue';
758
+ import {
759
+ provideUploadCenter,
760
+ STATUS_LABEL,
761
+ STATUS_VARIANT,
762
+ type ReceiptRow,
763
+ type UploadCenterRow,
764
+ } from './context';
765
+ import AmountCell from './AmountCell.vue';
766
+ import CategoryCell from './CategoryCell.vue';
767
+ import DateCell from './DateCell.vue';
768
+ import FilterRail from './FilterRail.vue';
769
+ import MerchantCell from './MerchantCell.vue';
770
+ import MerchantPeek from './MerchantPeek.vue';
771
+ import ReceiptDropzone from './ReceiptDropzone.vue';
772
+ import ReceiptFileCell from './ReceiptFileCell.vue';
773
+ import ReceiptPeek from './ReceiptPeek.vue';
774
+ import RowActions from './RowActions.vue';
775
+ import SelectionBar from './SelectionBar.vue';
776
+ import UploadProgressCell from './UploadProgressCell.vue';
777
+
778
+ const ctx = provideUploadCenter();
779
+
780
+ const currency = new Intl.NumberFormat('en-US', {
781
+ style: 'currency',
782
+ currency: 'USD',
783
+ });
784
+ const shortDate = (value: string) =>
785
+ new Date(value).toLocaleDateString('en-US', {
786
+ month: 'short',
787
+ day: 'numeric',
788
+ });
789
+
790
+ // Every cell renders through a slot, so columns stay label-only definitions.
791
+ const columns = [
792
+ { key: 'filename', label: 'Receipt' },
793
+ { key: 'merchant', label: 'Merchant' },
794
+ { key: 'categoryId', label: 'Category' },
795
+ { key: 'amount', label: 'Amount', align: 'right' as const },
796
+ { key: 'date', label: 'Date' },
797
+ { key: 'status', label: 'Status' },
798
+ ];
799
+
800
+ // Only server-side drafts are editable and selectable; queue rows and
801
+ // submitted/reimbursed receipts are not. The narrow predicate keeps the
802
+ // `v-else` (non-draft receipt) branch a real `ReceiptRow`, not `never`.
803
+ const isDraft = (
804
+ item: UploadCenterRow
805
+ ): item is ReceiptRow & { status: 'draft' } =>
806
+ item.kind === 'receipt' && item.status === 'draft';
807
+
808
+ // Failed transfers get a tinted row — public row-class API, no internals.
809
+ const rowClass = (item: UploadCenterRow) =>
810
+ item.kind === 'upload' && item.failed
811
+ ? 'bg-red-50 dark:bg-red-950/20'
812
+ : undefined;
813
+
814
+ const categoryName = (categoryId: string | null) =>
815
+ ctx.categories.value.find((category) => category.id === categoryId)?.name ??
816
+ '—';
817
+
818
+ const submitLabel = computed(() =>
819
+ ctx.readyCount.value === 0
820
+ ? 'Submit receipts'
821
+ : `Submit ${ctx.readyCount.value} ${ctx.readyCount.value === 1 ? 'receipt' : 'receipts'}`
822
+ );
823
+ </script>
824
+ ```
825
+
826
+ ### ReceiptDropzone.vue
827
+
828
+ ```vue
829
+ <!-- UploadCenter/ReceiptDropzone.vue -->
830
+ <template>
831
+ <BbDropzone
832
+ v-model="pending"
833
+ :accept="ACCEPT"
834
+ :errors="dropError"
835
+ :max-files="20"
836
+ :max-size="MAX_SIZE"
837
+ multiple
838
+ @error="onError"
839
+ >
840
+ <template #default="{ dragging, focused, open }">
841
+ <div
842
+ class="flex flex-col items-center gap-2 rounded-[var(--bb-radius)] border-2 border-dashed p-6 text-center transition-colors"
843
+ :class="[
844
+ dragging ? 'border-[var(--bb-primary)]' : 'border-[var(--bb-border)]',
845
+ focused ? 'ring-2 ring-[var(--bb-primary)] ring-offset-2' : '',
846
+ ]"
847
+ >
848
+ <BbIcon
849
+ class="text-[color:var(--bb-text-muted)]"
850
+ icon="lucide:receipt"
851
+ size="lg"
852
+ />
853
+ <p class="text-sm font-medium">
854
+ {{ dragging ? 'Drop to add receipts' : 'Drop receipts here' }}
855
+ </p>
856
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
857
+ JPG, PNG, HEIC or PDF · up to 10 MB each · 20 files per drop
858
+ </p>
859
+ <BbButton
860
+ prepend:icon="lucide:folder-open"
861
+ variant="ghost"
862
+ @click="open"
863
+ >
864
+ Browse files
865
+ </BbButton>
866
+ </div>
867
+ </template>
868
+ </BbDropzone>
869
+ </template>
870
+
871
+ <script setup lang="ts">
872
+ import { ref, watch } from 'vue';
873
+ import { BbButton, BbDropzone, BbIcon, type DropZoneError } from 'bitboss-ui';
874
+ import { useUploadCenter } from './context';
875
+
876
+ // Pair every extension with its MIME type: the MIME rule matches by content
877
+ // type, the .ext rule catches drag-drops where the OS leaves file.type empty.
878
+ const ACCEPT = [
879
+ 'image/jpeg',
880
+ '.jpg',
881
+ '.jpeg',
882
+ 'image/png',
883
+ '.png',
884
+ 'image/heic',
885
+ '.heic',
886
+ 'application/pdf',
887
+ '.pdf',
888
+ ];
889
+ const MAX_SIZE = 10 * 1024 * 1024; // 10 MB per receipt
890
+
891
+ const ctx = useUploadCenter();
892
+
893
+ // BbDropzone captures and validates; the context uploads. The model is a
894
+ // hand-off buffer: drain every validated batch into the queue, then clear it
895
+ // (which also resets the duplicate check for future corrections).
896
+ const pending = ref<File[]>([]);
897
+ watch(pending, (files) => {
898
+ if (files.length === 0) return;
899
+ dropError.value = undefined;
900
+ ctx.enqueueFiles(files);
901
+ pending.value = [];
902
+ });
903
+
904
+ // The errors display is a round-trip: map each typed reject to a sentence
905
+ // and feed it back through the `errors` prop (rendered in the built-in
906
+ // aria-live region and referenced from the input's aria-describedby). Batch drops emit one error per file; showing the last
907
+ // message keeps the surface calm.
908
+ const dropError = ref<string | undefined>();
909
+ const onError = (error: DropZoneError) => {
910
+ if (error.type === 'maxSize') {
911
+ dropError.value = `${error.filename} is ${error.formattedSize} — receipts are capped at ${error.formattedMaxSize}.`;
912
+ } else if (error.type === 'accept') {
913
+ dropError.value = `${error.filename} is not a JPG, PNG, HEIC or PDF.`;
914
+ } else if (error.type === 'uniqueness') {
915
+ dropError.value = `${error.filename} is already in this drop.`;
916
+ } else {
917
+ dropError.value = `That drop had ${error.totalFiles} files — add at most 20 at a time.`;
918
+ }
919
+ };
920
+ </script>
921
+ ```
922
+
923
+ ### FilterRail.vue
924
+
925
+ ```vue
926
+ <!-- UploadCenter/FilterRail.vue -->
927
+ <template>
928
+ <div class="flex flex-wrap items-center gap-2">
929
+ <!-- Category: multi-select pill over the coopted catalog. -->
930
+ <BbSelectPopover
931
+ v-model="ctx.filters.categoryIds"
932
+ item-text="name"
933
+ item-value="id"
934
+ :items="ctx.categories.value"
935
+ multiple
936
+ width="240px"
937
+ >
938
+ <template #activator="{ props }">
939
+ <BbButton
940
+ v-bind="props"
941
+ append:icon="lucide:chevron-down"
942
+ size="sm"
943
+ variant="outline"
944
+ >
945
+ Category{{
946
+ ctx.filters.categoryIds.length
947
+ ? ` · ${ctx.filters.categoryIds.length}`
948
+ : ''
949
+ }}
950
+ </BbButton>
951
+ </template>
952
+ </BbSelectPopover>
953
+
954
+ <!-- Merchant: query-aware search. Merchant names are their own values,
955
+ so the pill labels itself straight from the filter state. -->
956
+ <BbSelectPopover
957
+ v-model="ctx.filters.merchant"
958
+ :items="ctx.searchMerchants"
959
+ width="240px"
960
+ >
961
+ <template #activator="{ props }">
962
+ <BbButton
963
+ v-bind="props"
964
+ append:icon="lucide:chevron-down"
965
+ size="sm"
966
+ variant="outline"
967
+ >
968
+ {{ ctx.filters.merchant ?? 'Merchant' }}
969
+ </BbButton>
970
+ </template>
971
+ </BbSelectPopover>
972
+
973
+ <!-- Spent-between range: a compact input is 28px — flush with the pills. -->
974
+ <BbDatePickerInput
975
+ v-model="ctx.filters.spentBetween"
976
+ clearable
977
+ compact
978
+ floating
979
+ hide-label
980
+ label="Spent between"
981
+ placeholder="Spent between…"
982
+ range
983
+ />
984
+
985
+ <!-- Clear-all renders only while something is active. -->
986
+ <BbButton
987
+ v-if="ctx.hasActiveFilters.value"
988
+ class="ml-auto"
989
+ prepend:icon="lucide:x"
990
+ size="sm"
991
+ variant="ghost"
992
+ @click="ctx.clearFilters"
993
+ >
994
+ Clear filters
995
+ </BbButton>
996
+ </div>
997
+ </template>
998
+
999
+ <script setup lang="ts">
1000
+ import { BbButton, BbDatePickerInput, BbSelectPopover } from 'bitboss-ui';
1001
+ import { useUploadCenter } from './context';
1002
+
1003
+ const ctx = useUploadCenter();
1004
+ </script>
1005
+ ```
1006
+
1007
+ ### ReceiptFileCell.vue
1008
+
1009
+ ```vue
1010
+ <!-- UploadCenter/ReceiptFileCell.vue -->
1011
+ <template>
1012
+ <div class="flex items-center gap-2">
1013
+ <BbIcon
1014
+ class="shrink-0 text-[color:var(--bb-text-muted)]"
1015
+ :icon="fileIcon"
1016
+ size="16"
1017
+ />
1018
+ <div class="flex min-w-0 flex-col">
1019
+ <!-- Server receipts peek on click; queue rows are not peekable yet. -->
1020
+ <BbButton
1021
+ v-if="row.kind === 'receipt'"
1022
+ class="justify-start"
1023
+ size="sm"
1024
+ variant="link"
1025
+ @click="() => ctx.peekReceipt(row.id)"
1026
+ >
1027
+ {{ row.filename }}
1028
+ </BbButton>
1029
+ <span v-else class="truncate text-sm">{{ row.filename }}</span>
1030
+ <span class="text-xs text-[color:var(--bb-text-muted)]">{{
1031
+ formattedSize
1032
+ }}</span>
1033
+ </div>
1034
+ </div>
1035
+ </template>
1036
+
1037
+ <script setup lang="ts">
1038
+ import { computed } from 'vue';
1039
+ import { BbButton, BbIcon } from 'bitboss-ui';
1040
+ import { useUploadCenter, type UploadCenterRow } from './context';
1041
+
1042
+ const props = defineProps<{ row: UploadCenterRow }>();
1043
+
1044
+ const ctx = useUploadCenter();
1045
+
1046
+ const fileIcon = computed(() =>
1047
+ props.row.filename.toLowerCase().endsWith('.pdf')
1048
+ ? 'lucide:file-text'
1049
+ : 'lucide:image'
1050
+ );
1051
+
1052
+ const formattedSize = computed(() => {
1053
+ const bytes =
1054
+ props.row.kind === 'upload' ? props.row.size : props.row.fileSize;
1055
+ return bytes >= 1024 * 1024
1056
+ ? `${(bytes / (1024 * 1024)).toFixed(1)} MB`
1057
+ : `${Math.max(1, Math.round(bytes / 1024))} KB`;
1058
+ });
1059
+ </script>
1060
+ ```
1061
+
1062
+ ### UploadProgressCell.vue
1063
+
1064
+ ```vue
1065
+ <!-- UploadCenter/UploadProgressCell.vue -->
1066
+ <template>
1067
+ <!-- In flight: a live bar. `upload.progress` is a reactive field mutated
1068
+ by the context's progress callback — no refetch per tick. -->
1069
+ <div v-if="!upload.failed" class="flex min-w-32 items-center gap-2">
1070
+ <BbProgress
1071
+ :aria-label="`Uploading ${upload.filename}`"
1072
+ class="flex-1"
1073
+ :model-value="upload.progress"
1074
+ />
1075
+ <span class="text-xs tabular-nums text-[color:var(--bb-text-muted)]"
1076
+ >{{ upload.progress }}%</span
1077
+ >
1078
+ </div>
1079
+
1080
+ <!-- Failed: say so and retry inline. `xs` is fine here — this is the
1081
+ densest surface on the page. -->
1082
+ <div v-else class="flex items-center gap-2">
1083
+ <span class="text-xs font-medium text-red-600 dark:text-red-400"
1084
+ >Upload failed</span
1085
+ >
1086
+ <BbButton
1087
+ prepend:icon="lucide:rotate-cw"
1088
+ size="xs"
1089
+ variant="outline"
1090
+ @click="() => ctx.retryUpload(upload.id)"
1091
+ >
1092
+ Retry
1093
+ </BbButton>
1094
+ </div>
1095
+ </template>
1096
+
1097
+ <script setup lang="ts">
1098
+ import { BbButton, BbProgress } from 'bitboss-ui';
1099
+ import { useUploadCenter, type UploadRow } from './context';
1100
+
1101
+ defineProps<{ upload: UploadRow }>();
1102
+
1103
+ const ctx = useUploadCenter();
1104
+ </script>
1105
+ ```
1106
+
1107
+ ### MerchantCell.vue
1108
+
1109
+ ```vue
1110
+ <!-- UploadCenter/MerchantCell.vue -->
1111
+ <template>
1112
+ <BbTextInput
1113
+ v-model="draft"
1114
+ compact
1115
+ hide-label
1116
+ label="Merchant"
1117
+ placeholder="Add merchant"
1118
+ @blur="commit"
1119
+ @keydown.enter="commit"
1120
+ @keydown.esc="revert"
1121
+ />
1122
+ </template>
1123
+
1124
+ <script setup lang="ts">
1125
+ import { ref, watch } from 'vue';
1126
+ import { BbTextInput } from 'bitboss-ui';
1127
+ import { useUploadCenter } from './context';
1128
+ import type { Receipt } from '@/types';
1129
+
1130
+ const props = defineProps<{ receipt: Receipt }>();
1131
+
1132
+ const ctx = useUploadCenter();
1133
+
1134
+ // Inline-edit doctrine (§6.3): a local draft, commit on blur/Enter, revert
1135
+ // on Esc. The server value re-seeds the draft whenever a refetch updates the
1136
+ // row — which is also how a failed save reverts.
1137
+ const draft = ref<string | null>(props.receipt.merchant);
1138
+ watch(
1139
+ () => props.receipt.merchant,
1140
+ (value) => {
1141
+ draft.value = value;
1142
+ }
1143
+ );
1144
+
1145
+ const commit = () => {
1146
+ const merchant = draft.value?.trim() || null;
1147
+ if (merchant === props.receipt.merchant) return;
1148
+ void ctx.updateReceipt(props.receipt, { merchant });
1149
+ };
1150
+ const revert = () => {
1151
+ draft.value = props.receipt.merchant;
1152
+ };
1153
+ </script>
1154
+ ```
1155
+
1156
+ ### CategoryCell.vue
1157
+
1158
+ ```vue
1159
+ <!-- UploadCenter/CategoryCell.vue -->
1160
+ <template>
1161
+ <BbSelectPopover
1162
+ compact
1163
+ disable-writing
1164
+ item-text="name"
1165
+ item-value="id"
1166
+ :items="ctx.categories.value"
1167
+ :model-value="receipt.categoryId"
1168
+ width="220px"
1169
+ @update:model-value="(categoryId) => pick(categoryId as string)"
1170
+ >
1171
+ <template #activator="{ props: activatorProps, shown }">
1172
+ <!-- One-click pattern (§6.1): the badge is the focusable trigger —
1173
+ BbBadgeButton takes over the badge body, the trailing chevron says
1174
+ "this can change", and while the save runs `loading` swaps the
1175
+ spinner into the chevron's place. A category is a label, not a
1176
+ semantic status, so a set category reads neutral (`secondary`);
1177
+ only the unset state stays `outline` so empty cells read as
1178
+ quieter to-dos, not values. -->
1179
+ <BbBadge
1180
+ append:icon="lucide:chevron-down"
1181
+ :class="{ 'category-cell--open': shown }"
1182
+ :loading="saving"
1183
+ :variant="receipt.categoryId ? 'secondary' : 'outline'"
1184
+ >
1185
+ <BbBadgeButton v-bind="activatorProps">{{
1186
+ categoryName
1187
+ }}</BbBadgeButton>
1188
+ </BbBadge>
1189
+ </template>
1190
+ </BbSelectPopover>
1191
+ </template>
1192
+
1193
+ <script setup lang="ts">
1194
+ import { computed, ref } from 'vue';
1195
+ import { BbBadge, BbBadgeButton, BbSelectPopover } from 'bitboss-ui';
1196
+ import { useUploadCenter } from './context';
1197
+ import type { Receipt } from '@/types';
1198
+
1199
+ const props = defineProps<{ receipt: Receipt }>();
1200
+
1201
+ const ctx = useUploadCenter();
1202
+
1203
+ // In-flight flag for the save feedback — rung-1 local state, not context.
1204
+ const saving = ref(false);
1205
+ const pick = async (categoryId: string) => {
1206
+ saving.value = true;
1207
+ try {
1208
+ await ctx.updateReceipt(props.receipt, { categoryId });
1209
+ } finally {
1210
+ saving.value = false;
1211
+ }
1212
+ };
1213
+
1214
+ // The trigger labels itself from the coopted catalog, never from the
1215
+ // popover's lazy `text` slot prop.
1216
+ const categoryName = computed(
1217
+ () =>
1218
+ ctx.categories.value.find(
1219
+ (category) => category.id === props.receipt.categoryId
1220
+ )?.name ?? 'Set category'
1221
+ );
1222
+ </script>
1223
+
1224
+ <style scoped>
1225
+ /* Open = the badge's own hue, deepened, plus its variant ring — the same
1226
+ grammar as every badge-activator cell. */
1227
+ .category-cell--open {
1228
+ --bg: color-mix(in oklab, var(--color) 24%, var(--bb-panel));
1229
+ --border-color: color-mix(in oklab, var(--color) 45%, var(--bb-panel));
1230
+ box-shadow: 0 0 0 var(--bb-ring-size) var(--ring);
1231
+ }
1232
+ </style>
1233
+ ```
1234
+
1235
+ ### AmountCell.vue
1236
+
1237
+ ```vue
1238
+ <!-- UploadCenter/AmountCell.vue -->
1239
+ <template>
1240
+ <BbNumberInput
1241
+ v-model="draft"
1242
+ compact
1243
+ hide-label
1244
+ label="Amount"
1245
+ :max-precision="2"
1246
+ :min="0"
1247
+ placeholder="0.00"
1248
+ @blur="commit"
1249
+ @keydown.enter="commit"
1250
+ @keydown.esc="revert"
1251
+ >
1252
+ <template #prefix>$</template>
1253
+ </BbNumberInput>
1254
+ </template>
1255
+
1256
+ <script setup lang="ts">
1257
+ import { ref, watch } from 'vue';
1258
+ import { BbNumberInput } from 'bitboss-ui';
1259
+ import { useUploadCenter } from './context';
1260
+ import type { Receipt } from '@/types';
1261
+
1262
+ const props = defineProps<{ receipt: Receipt }>();
1263
+
1264
+ const ctx = useUploadCenter();
1265
+
1266
+ // Same commit/revert contract as the merchant cell, on the number model.
1267
+ const draft = ref<number | string | null>(props.receipt.amount);
1268
+ watch(
1269
+ () => props.receipt.amount,
1270
+ (value) => {
1271
+ draft.value = value;
1272
+ }
1273
+ );
1274
+
1275
+ const commit = () => {
1276
+ const amount =
1277
+ draft.value === null || draft.value === '' ? null : Number(draft.value);
1278
+ if (amount === props.receipt.amount) return;
1279
+ void ctx.updateReceipt(props.receipt, { amount });
1280
+ };
1281
+ const revert = () => {
1282
+ draft.value = props.receipt.amount;
1283
+ };
1284
+ </script>
1285
+ ```
1286
+
1287
+ ### DateCell.vue
1288
+
1289
+ ```vue
1290
+ <!-- UploadCenter/DateCell.vue -->
1291
+ <template>
1292
+ <!-- Picking a date IS the commit — no blur dance for calendar input.
1293
+ `floating` keeps the model a plain YYYY-MM-DD string. -->
1294
+ <BbDatePickerInput
1295
+ compact
1296
+ floating
1297
+ hide-label
1298
+ label="Expense date"
1299
+ :model-value="receipt.date"
1300
+ placeholder="YYYY-MM-DD"
1301
+ @update:model-value="commit"
1302
+ />
1303
+ </template>
1304
+
1305
+ <script setup lang="ts">
1306
+ import { BbDatePickerInput } from 'bitboss-ui';
1307
+ import { useUploadCenter } from './context';
1308
+ import type { Receipt } from '@/types';
1309
+
1310
+ const props = defineProps<{ receipt: Receipt }>();
1311
+
1312
+ const ctx = useUploadCenter();
1313
+
1314
+ const commit = (value: string | string[] | null) => {
1315
+ const date = Array.isArray(value) ? (value[0] ?? null) : value;
1316
+ if (date === props.receipt.date) return;
1317
+ void ctx.updateReceipt(props.receipt, { date });
1318
+ };
1319
+ </script>
1320
+ ```
1321
+
1322
+ ### RowActions.vue
1323
+
1324
+ ```vue
1325
+ <!-- UploadCenter/RowActions.vue -->
1326
+ <template>
1327
+ <!-- Queue rows: one explicit remove (aborts the transfer). -->
1328
+ <BbButton
1329
+ v-if="row.kind === 'upload'"
1330
+ :aria-label="`Remove ${row.filename} from the queue`"
1331
+ icon="lucide:x"
1332
+ size="sm"
1333
+ variant="ghost"
1334
+ @click="() => ctx.removeUpload(row.id)"
1335
+ />
1336
+
1337
+ <!-- Server receipts: contextual dropdown, entries vary by status. -->
1338
+ <BbDropdown v-else :items="items">
1339
+ <template #activator="{ props }">
1340
+ <BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
1341
+ Receipt actions
1342
+ </BbButton>
1343
+ </template>
1344
+ </BbDropdown>
1345
+ </template>
1346
+
1347
+ <script setup lang="ts">
1348
+ import { computed } from 'vue';
1349
+ import { BbButton, BbDropdown } from 'bitboss-ui';
1350
+ import { useUploadCenter, type UploadCenterRow } from './context';
1351
+
1352
+ const props = defineProps<{ row: UploadCenterRow }>();
1353
+
1354
+ const ctx = useUploadCenter();
1355
+
1356
+ const items = computed(() => {
1357
+ if (props.row.kind !== 'receipt') return [];
1358
+ const receipt = props.row;
1359
+ const isDraft = receipt.status === 'draft';
1360
+ return [
1361
+ ...(isDraft
1362
+ ? [
1363
+ {
1364
+ key: 'submit',
1365
+ text: 'Submit for approval',
1366
+ 'prepend:icon': 'lucide:send',
1367
+ onClick: () => ctx.submitReceipt(receipt),
1368
+ },
1369
+ ]
1370
+ : []),
1371
+ {
1372
+ key: 'download',
1373
+ text: 'Download original',
1374
+ 'prepend:icon': 'lucide:download',
1375
+ href: `/receipts/${receipt.id}/file`,
1376
+ },
1377
+ ...(isDraft
1378
+ ? [
1379
+ {
1380
+ key: 'remove',
1381
+ text: 'Remove',
1382
+ 'prepend:icon': 'lucide:trash-2',
1383
+ variant: 'destructive' as const,
1384
+ onClick: () => ctx.deleteReceipt(receipt),
1385
+ },
1386
+ ]
1387
+ : []),
1388
+ ];
1389
+ });
1390
+ </script>
1391
+ ```
1392
+
1393
+ ### SelectionBar.vue
1394
+
1395
+ ```vue
1396
+ <!-- UploadCenter/SelectionBar.vue -->
1397
+ <template>
1398
+ <FloatingBottomPanel :open="selectedCount > 0">
1399
+ <span class="px-2 text-sm">{{ selectedCount }} selected</span>
1400
+
1401
+ <!-- Bulk categorize: the picker lives right in the bar — a one-shot
1402
+ popover (model stays null) whose selection IS the action. -->
1403
+ <BbSelectPopover
1404
+ item-text="name"
1405
+ item-value="id"
1406
+ :items="ctx.categories.value"
1407
+ :model-value="null"
1408
+ placement="top"
1409
+ width="220px"
1410
+ @update:model-value="
1411
+ (categoryId) => categoryId && ctx.bulkCategorize(categoryId)
1412
+ "
1413
+ >
1414
+ <template #activator="{ props }">
1415
+ <BbButton
1416
+ v-bind="props"
1417
+ prepend:icon="lucide:tag"
1418
+ size="sm"
1419
+ variant="ghost"
1420
+ >
1421
+ Set category
1422
+ </BbButton>
1423
+ </template>
1424
+ </BbSelectPopover>
1425
+
1426
+ <div class="floating-bottom-panel__right flex items-center gap-1">
1427
+ <BbButton size="sm" variant="destructive" @click="ctx.bulkRemove"
1428
+ >Remove</BbButton
1429
+ >
1430
+ <BbButton
1431
+ aria-label="Clear selection"
1432
+ icon="lucide:x"
1433
+ size="sm"
1434
+ variant="ghost"
1435
+ @click="clearSelection"
1436
+ />
1437
+ </div>
1438
+ </FloatingBottomPanel>
1439
+ </template>
1440
+
1441
+ <script setup lang="ts">
1442
+ import { computed } from 'vue';
1443
+ import { BbButton, BbSelectPopover } from 'bitboss-ui';
1444
+ import FloatingBottomPanel from '@/components/layout/FloatingBottomPanel.vue';
1445
+ import { useUploadCenter } from './context';
1446
+
1447
+ const ctx = useUploadCenter();
1448
+
1449
+ const selectedCount = computed(() => ctx.table.selected.value?.length ?? 0);
1450
+ const clearSelection = () => {
1451
+ ctx.table.selected.value = [];
1452
+ };
1453
+ </script>
1454
+ ```
1455
+
1456
+ ### ReceiptPeek.vue
1457
+
1458
+ ```vue
1459
+ <!-- UploadCenter/ReceiptPeek.vue -->
1460
+ <template>
1461
+ <div v-if="receipt" class="flex flex-col gap-4 text-sm">
1462
+ <!-- Header: merchant identity + amount + status. The merchant name
1463
+ drills DOWN — stacked peek, back arrow via the shell. -->
1464
+ <header class="flex flex-col gap-1.5">
1465
+ <div class="flex items-center justify-between gap-2">
1466
+ <BbButton
1467
+ v-if="receipt.merchant"
1468
+ size="sm"
1469
+ variant="link"
1470
+ @click="() => ctx.stackMerchant(receipt!.merchant!)"
1471
+ >
1472
+ {{ receipt.merchant }}
1473
+ </BbButton>
1474
+ <span v-else class="text-[color:var(--bb-text-muted)]"
1475
+ >No merchant yet</span
1476
+ >
1477
+ <BbBadge variant="outline">{{ receipt.status }}</BbBadge>
1478
+ </div>
1479
+ <p class="text-xl font-semibold">
1480
+ {{
1481
+ receipt.amount === null
1482
+ ? 'Amount missing'
1483
+ : currency.format(receipt.amount)
1484
+ }}
1485
+ </p>
1486
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
1487
+ {{ receipt.filename }} · spent
1488
+ {{ receipt.date ? longDate(receipt.date) : '—' }}
1489
+ </p>
1490
+ </header>
1491
+
1492
+ <!-- Preview placeholder: the real app renders the scanned image here. -->
1493
+ <div
1494
+ class="flex h-44 flex-col items-center justify-center gap-1 rounded-[var(--bb-radius)] border bg-[var(--bb-panel)] text-[color:var(--bb-text-muted)]"
1495
+ >
1496
+ <BbIcon icon="lucide:receipt" size="lg" />
1497
+ <span class="text-xs">Receipt preview</span>
1498
+ </div>
1499
+
1500
+ <!-- Extracted fields: what OCR read off the scan, with confidence. -->
1501
+ <section class="flex flex-col gap-1.5">
1502
+ <div class="flex items-center justify-between">
1503
+ <h3
1504
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1505
+ >
1506
+ Extracted fields
1507
+ </h3>
1508
+ <BbBadge size="xs" variant="outline">{{
1509
+ `OCR · ${receipt.extracted.confidence}%`
1510
+ }}</BbBadge>
1511
+ </div>
1512
+ <dl class="grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5">
1513
+ <dt class="text-[color:var(--bb-text-muted)]">Merchant</dt>
1514
+ <dd>{{ receipt.extracted.merchant ?? '—' }}</dd>
1515
+ <dt class="text-[color:var(--bb-text-muted)]">Total</dt>
1516
+ <dd>
1517
+ {{
1518
+ receipt.extracted.total === null
1519
+ ? '—'
1520
+ : currency.format(receipt.extracted.total)
1521
+ }}
1522
+ </dd>
1523
+ <dt class="text-[color:var(--bb-text-muted)]">Tax</dt>
1524
+ <dd>
1525
+ {{
1526
+ receipt.extracted.tax === null
1527
+ ? '—'
1528
+ : currency.format(receipt.extracted.tax)
1529
+ }}
1530
+ </dd>
1531
+ <dt class="text-[color:var(--bb-text-muted)]">Date</dt>
1532
+ <dd>
1533
+ {{ receipt.extracted.date ? longDate(receipt.extracted.date) : '—' }}
1534
+ </dd>
1535
+ <dt class="text-[color:var(--bb-text-muted)]">Paid with</dt>
1536
+ <dd>{{ receipt.extracted.paymentMethod ?? '—' }}</dd>
1537
+ </dl>
1538
+ </section>
1539
+
1540
+ <!-- Properties: the peek is a workbench — the category is the same
1541
+ one-click cell as in the table. -->
1542
+ <section class="flex flex-col gap-1.5">
1543
+ <h3
1544
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1545
+ >
1546
+ Details
1547
+ </h3>
1548
+ <dl class="grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-1.5">
1549
+ <dt class="text-[color:var(--bb-text-muted)]">Category</dt>
1550
+ <dd><CategoryCell :receipt="receipt" /></dd>
1551
+ <dt class="text-[color:var(--bb-text-muted)]">Uploaded</dt>
1552
+ <dd>{{ longDate(receipt.uploadedAt) }}</dd>
1553
+ <dt class="text-[color:var(--bb-text-muted)]">Report</dt>
1554
+ <dd>{{ receipt.reportName ?? 'Not on a report yet' }}</dd>
1555
+ </dl>
1556
+ </section>
1557
+
1558
+ <!-- Activity feed. -->
1559
+ <section class="flex flex-col gap-1.5">
1560
+ <h3
1561
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1562
+ >
1563
+ Activity
1564
+ </h3>
1565
+ <ul class="flex flex-col gap-2">
1566
+ <li
1567
+ v-for="entry in receipt.activity"
1568
+ :key="entry.id"
1569
+ class="flex gap-2"
1570
+ >
1571
+ <BbIcon
1572
+ class="mt-0.5 shrink-0 text-[color:var(--bb-text-muted)]"
1573
+ :icon="entry.icon"
1574
+ size="14"
1575
+ />
1576
+ <div class="flex flex-col">
1577
+ <span>{{ entry.text }}</span>
1578
+ <span class="text-xs text-[color:var(--bb-text-muted)]"
1579
+ >{{ entry.actor }} · {{ longDate(entry.at) }}</span
1580
+ >
1581
+ </div>
1582
+ </li>
1583
+ </ul>
1584
+ </section>
1585
+
1586
+ <!-- Act here, or leave for the original file. -->
1587
+ <footer class="mt-2 flex items-center gap-2 border-t pt-3">
1588
+ <BbButton
1589
+ v-if="receipt.status === 'draft'"
1590
+ prepend:icon="lucide:send"
1591
+ size="sm"
1592
+ variant="secondary"
1593
+ @click="() => ctx.submitReceipt(receipt!)"
1594
+ >
1595
+ Submit
1596
+ </BbButton>
1597
+ <BbButton
1598
+ append:icon="lucide:arrow-up-right"
1599
+ :href="`/receipts/${receipt.id}/file`"
1600
+ size="sm"
1601
+ variant="ghost"
1602
+ >
1603
+ Download original
1604
+ </BbButton>
1605
+ <BbButton
1606
+ v-if="receipt.status === 'draft'"
1607
+ class="ml-auto"
1608
+ prepend:icon="lucide:trash-2"
1609
+ size="sm"
1610
+ variant="destructive"
1611
+ @click="removeAndClose"
1612
+ >
1613
+ Remove
1614
+ </BbButton>
1615
+ </footer>
1616
+ </div>
1617
+
1618
+ <div v-else class="flex justify-center p-8">
1619
+ <BbSpinner />
1620
+ </div>
1621
+ </template>
1622
+
1623
+ <script setup lang="ts">
1624
+ import { ref, watchEffect } from 'vue';
1625
+ import { BbBadge, BbButton, BbIcon, BbSpinner } from 'bitboss-ui';
1626
+ import CategoryCell from './CategoryCell.vue';
1627
+ import { useUploadCenter } from './context';
1628
+ import { api } from '@/api';
1629
+ import type { ReceiptDetail } from '@/types';
1630
+
1631
+ const props = defineProps<{ receiptId: string }>();
1632
+
1633
+ const ctx = useUploadCenter();
1634
+
1635
+ // Re-fetches whenever the stack shows a different receipt; refreshKey makes
1636
+ // inline edits (category, submit) reflect here immediately.
1637
+ const receipt = ref<ReceiptDetail | null>(null);
1638
+ watchEffect(async () => {
1639
+ void ctx.refreshKey.value;
1640
+ receipt.value = await api.receipts.get(props.receiptId);
1641
+ });
1642
+
1643
+ // deleteReceipt resolves true only when the confirm was accepted — don't
1644
+ // close the peek on a cancelled dialog.
1645
+ const removeAndClose = async () => {
1646
+ if (!receipt.value) return;
1647
+ if (await ctx.deleteReceipt(receipt.value)) ctx.shell.close();
1648
+ };
1649
+
1650
+ const currency = new Intl.NumberFormat('en-US', {
1651
+ style: 'currency',
1652
+ currency: 'USD',
1653
+ });
1654
+ const longDate = (value: string) =>
1655
+ new Date(value).toLocaleDateString('en-US', {
1656
+ month: 'short',
1657
+ day: 'numeric',
1658
+ year: 'numeric',
1659
+ });
1660
+ </script>
1661
+ ```
1662
+
1663
+ ### MerchantPeek.vue
1664
+
1665
+ ```vue
1666
+ <!-- UploadCenter/MerchantPeek.vue -->
1667
+ <template>
1668
+ <div v-if="merchant" class="flex flex-col gap-4 text-sm">
1669
+ <header class="flex items-center gap-3">
1670
+ <div
1671
+ class="grid h-9 w-9 shrink-0 place-items-center rounded-[var(--bb-radius)] border"
1672
+ >
1673
+ <BbIcon
1674
+ class="text-[color:var(--bb-text-muted)]"
1675
+ icon="lucide:store"
1676
+ size="18"
1677
+ />
1678
+ </div>
1679
+ <div class="flex flex-col">
1680
+ <h2 class="text-base font-semibold">{{ merchant.name }}</h2>
1681
+ <p class="text-xs text-[color:var(--bb-text-muted)]">
1682
+ {{ merchant.defaultCategoryName }} · this year
1683
+ </p>
1684
+ </div>
1685
+ </header>
1686
+
1687
+ <!-- Stat strip. -->
1688
+ <div class="grid grid-cols-3 gap-2">
1689
+ <div class="rounded-[var(--bb-radius)] border p-2">
1690
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Total spent</p>
1691
+ <p class="font-semibold">{{ currency.format(merchant.totalSpent) }}</p>
1692
+ </div>
1693
+ <div class="rounded-[var(--bb-radius)] border p-2">
1694
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Receipts</p>
1695
+ <p class="font-semibold">{{ merchant.receiptCount }}</p>
1696
+ </div>
1697
+ <div class="rounded-[var(--bb-radius)] border p-2">
1698
+ <p class="text-xs text-[color:var(--bb-text-muted)]">Average</p>
1699
+ <p class="font-semibold">
1700
+ {{ currency.format(merchant.averageAmount) }}
1701
+ </p>
1702
+ </div>
1703
+ </div>
1704
+
1705
+ <!-- Recent receipts: names drill down again — the stack keeps growing. -->
1706
+ <section class="flex flex-col gap-1.5">
1707
+ <h3
1708
+ class="text-xs font-semibold uppercase tracking-wide text-[color:var(--bb-text-muted)]"
1709
+ >
1710
+ Recent receipts
1711
+ </h3>
1712
+ <ul class="flex flex-col">
1713
+ <li
1714
+ v-for="recent in merchant.recentReceipts"
1715
+ :key="recent.id"
1716
+ class="flex items-center justify-between gap-2 border-b py-1.5 last:border-b-0"
1717
+ >
1718
+ <BbButton
1719
+ size="sm"
1720
+ variant="link"
1721
+ @click="() => ctx.stackReceipt(recent.id)"
1722
+ >
1723
+ {{ recent.filename }}
1724
+ </BbButton>
1725
+ <BbBadge variant="outline">{{ recent.status }}</BbBadge>
1726
+ <span class="text-xs tabular-nums text-[color:var(--bb-text-muted)]">
1727
+ {{ currency.format(recent.amount) }}
1728
+ </span>
1729
+ </li>
1730
+ </ul>
1731
+ </section>
1732
+
1733
+ <footer class="mt-2 flex items-center gap-2 border-t pt-3">
1734
+ <BbButton
1735
+ append:icon="lucide:arrow-up-right"
1736
+ size="sm"
1737
+ :to="`/expenses/receipts?merchant=${encodeURIComponent(merchant.name)}`"
1738
+ variant="ghost"
1739
+ >
1740
+ All receipts from {{ merchant.name }}
1741
+ </BbButton>
1742
+ </footer>
1743
+ </div>
1744
+
1745
+ <div v-else class="flex justify-center p-8">
1746
+ <BbSpinner />
1747
+ </div>
1748
+ </template>
1749
+
1750
+ <script setup lang="ts">
1751
+ import { ref, watchEffect } from 'vue';
1752
+ import { BbBadge, BbButton, BbIcon, BbSpinner } from 'bitboss-ui';
1753
+ import { useUploadCenter } from './context';
1754
+ import { api } from '@/api';
1755
+ import type { MerchantSummary } from '@/types';
1756
+
1757
+ const props = defineProps<{ merchantName: string }>();
1758
+
1759
+ const ctx = useUploadCenter();
1760
+
1761
+ const merchant = ref<MerchantSummary | null>(null);
1762
+ watchEffect(async () => {
1763
+ merchant.value = await api.merchants.get(props.merchantName);
1764
+ });
1765
+
1766
+ const currency = new Intl.NumberFormat('en-US', {
1767
+ style: 'currency',
1768
+ currency: 'USD',
1769
+ });
1770
+ </script>
1771
+ ```
1772
+
1773
+ ## Why it is built this way
1774
+
1775
+ - **The context coopts, leaves consume.** `shell`, `table` **and the
1776
+ category catalog** are joined once in `provideUploadCenter()`; thirteen
1777
+ components share the filters, the queue, selection, the peek stack and
1778
+ every action through one `useUploadCenter()` call. No leaf imports
1779
+ `@/api` or a store directly — even the query-aware merchant pill gets
1780
+ its provider (`ctx.searchMerchants`) from the context, so the page has
1781
+ exactly one import surface.
1782
+ - **Capture ≠ transfer.** `BbDropzone`'s documented contract is "these
1783
+ files are valid", nothing more: no request, no progress, no retry. So
1784
+ the dropzone leaf drains its model into `ctx.enqueueFiles()` and resets
1785
+ it, and the context owns the whole transfer lifecycle — one
1786
+ `AbortController` per file in a closure map (not render state), a
1787
+ progress callback writing into the reactive queue row, retry as a plain
1788
+ re-issue of the same upload. Constraint rejects never reach the model;
1789
+ they arrive as typed `@error` events that the leaf maps to sentences and
1790
+ feeds back through `errors` (the display is a round-trip by design).
1791
+ - **Progress ticks don't refetch.** The items function returns the _live_
1792
+ queue row objects ahead of the fetched page, so a progress mutation
1793
+ re-renders exactly the one cell reading it. Membership changes —
1794
+ enqueue, remove, upload completed — are the only events that bump
1795
+ `refreshKey`; a completed upload re-enters as a server draft with the
1796
+ OCR-extracted fields prefilled, which is the row's "done" feedback (no
1797
+ per-file success toast for a 15-file drop).
1798
+ - **Each editable cell type is its own leaf** — `MerchantCell`,
1799
+ `CategoryCell`, `AmountCell`, `DateCell` — never one `EditableCell` with
1800
+ a `type` prop. All four take exactly one data prop (`receipt`) and call
1801
+ one context action; the text/number cells hold a local draft (rung 1)
1802
+ with commit-on-blur/Enter and Esc-revert, the option/date cells commit
1803
+ on pick. Failed saves converge on the same path: `updateReceipt`
1804
+ refetches (reverting the cell to the server value) and toasts
1805
+ `destructive`.
1806
+ - **The table context is the paging and selection spine.**
1807
+ `useBbTableContext('receipts-table', { perPage: 25 })` seeds paging;
1808
+ `fetchRows` writes `table.total`; `BbPagination table-id` joins by id;
1809
+ the bulk bar reads `table.selected` with zero props from the table. The
1810
+ `selectable` predicate limits selection to server-side drafts, so bulk
1811
+ ids are always submittable receipt ids.
1812
+ - **Tabs carry `href` and live counts** (`?tab=drafts`) and the same table
1813
+ is the pane — outside Drafts the cell slots fall through to plain
1814
+ formatted text, so Submitted/Reimbursed are read-only views of the same
1815
+ columns rather than a second table component.
1816
+ - **`peekX` vs `stackX` is the whole stack grammar.** Filename →
1817
+ `peekReceipt` (replaces the stack); merchant name inside the peek →
1818
+ `stackMerchant` (pushes, back arrow appears); a recent receipt inside
1819
+ the merchant peek → `stackReceipt` (deeper still). The grammar lives in
1820
+ the context — a leaf cannot accidentally nuke the stack. The peek is a
1821
+ workbench: one-click category (the same `CategoryCell`), submit,
1822
+ download, confirm-guarded remove.
1823
+ - **Sizing:** topbar follows `md`-first (`compact` search at 28px flush
1824
+ beside the default-size primary); `sm` appears exactly where the
1825
+ doctrine allows — row actions, pills, peek footers, the bulk bar — and
1826
+ the one `xs` (inline Retry) sits inside a table cell, the densest
1827
+ surface on the page. **One `variant="primary"`** (Submit all, with its
1828
+ live count and auto-tracked loading). Destructive actions — single,
1829
+ bulk, in-peek — all ride `useConfirm` with the filename or count in the
1830
+ message.
1831
+
1832
+ ## Variations
1833
+
1834
+ - **Expense reports**: group receipts into named reports (a `reportId`
1835
+ column + a "Add to report" bulk action feeding a `BbSelectPopover` of
1836
+ open reports); the Submit-all primary becomes "Submit report".
1837
+ - **Policy checks**: server flags out-of-policy drafts
1838
+ (`receipt.policyWarning`); tint the row, badge the amount cell, and
1839
+ render a `BbAlert` above the table summarizing the count.
1840
+ - **Camera-first mobile**: keep `accept` image-heavy and rely on the
1841
+ native picker offering the camera; the dropzone slot collapses to a
1842
+ single "Snap a receipt" affordance under the mobile breakpoint.
1843
+ - **Auto-submit on high confidence**: when `extracted.confidence` ≥ 95 and
1844
+ all four fields resolved, submit server-side on upload and toast an
1845
+ undo — the Drafts tab then only holds receipts needing review.