bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -45,6 +45,7 @@
45
45
  :disabled="disabled"
46
46
  :eager="eager"
47
47
  :items="menuItems()"
48
+ :model-value="openModel"
48
49
  :off-canvas-props="offCanvasProps"
49
50
  :offset="offset"
50
51
  :padding="padding"
@@ -58,6 +59,7 @@
58
59
  @item:unselected="(value: unknown) => emit('item:unselected', value)"
59
60
  @show="onMenuShow"
60
61
  @shown="emit('shown')"
62
+ @update:model-value="setOpenModel"
61
63
  >
62
64
  <template #activator="{ props, loading: menuLoading }">
63
65
  <!-- Toggle icon is the chevron by default; the `toggle:icon` prop
@@ -106,6 +108,7 @@ import { BB_DROPDOWN_PT } from '../BbDropdown/types';
106
108
  import { BUTTON_VARIANTS } from '@/types/ButtonVariant';
107
109
  import { DROPDOWN_ITEM_VARIANTS } from '@/types/DropdownItemVariant';
108
110
  import { useLocale } from '@/composables/useLocale';
111
+ import { useOpenProp } from '@/composables/useOpenModel';
109
112
  import { removedPropsFor } from '@/deprecation/removedProps';
110
113
  import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
111
114
  import chevronDownSvg from '@/assets/svgs/chevron_down.svg?raw';
@@ -321,7 +324,7 @@ const menuPt = () => ({
321
324
  ...passthrough.forward(
322
325
  // `submenu` is a surface too; its per-item function travels with it and
323
326
  // is called by the dropdown with the entry that opens the flyout.
324
- ['panel', 'sheet', 'header', 'footer', 'input', 'submenu'],
327
+ ['panel', 'sheet', 'header', 'footer', 'box', 'input', 'list', 'submenu'],
325
328
  // The link states too: the surface's are the main button's, from here.
326
329
  BB_DROPDOWN_PT.states.filter(
327
330
  (state) => state !== 'disabled' && !LINK_STATES.includes(state)
@@ -353,6 +356,13 @@ const onMenuHide = () => {
353
356
  };
354
357
  const toggleLabel = computed(() => t('dropdownButton.open').value);
355
358
 
359
+ /**
360
+ * `v-model:open`: the menu's own `v-model`, bound, so an
361
+ * open from code is the menu's (focus in, back on close) and every close
362
+ * writes back.
363
+ */
364
+ const { model: openModel, set: setOpenModel } = useOpenProp(props, emit);
365
+
356
366
  /** Mirrors `BbDropdown`'s internal async-action loading state onto the toggle. */
357
367
  </script>
358
368
 
@@ -454,6 +464,10 @@ export type BbDropdownButtonItemFnPtPart =
454
464
  * @part footer - The band around your `#footer` slot: at the bottom of the
455
465
  * menu on desktop, the sheet's footer on a phone — handed to the
456
466
  * `BbDropdown`.
467
+ * @part box - A searchable group's search box in the menu (field and
468
+ * magnifier) — handed to the `BbDropdown` as its own `pt:box`.
469
+ * @part list - The menu's top-level items container — handed to the
470
+ * `BbDropdown` as its own `pt:list`.
457
471
  * @part input - A searchable group's search field in the menu — a broadcast,
458
472
  * every searchable group's field — handed to the `BbDropdown` as its own
459
473
  * `pt:input`.
@@ -469,7 +483,9 @@ export type BbDropdownButtonOwnPtPart =
469
483
  | 'sheet'
470
484
  | 'header'
471
485
  | 'footer'
472
- | 'input';
486
+ | 'box'
487
+ | 'input'
488
+ | 'list';
473
489
  /**
474
490
  * The menu-entry parts — broadcasts resolved per entry by the `BbDropdown`.
475
491
  *
@@ -541,7 +557,9 @@ export const BB_DROPDOWN_BUTTON_PT = {
541
557
  'sheet',
542
558
  'header',
543
559
  'footer',
560
+ 'box',
544
561
  'input',
562
+ 'list',
545
563
  'item',
546
564
  'itemText',
547
565
  'itemIcon',
@@ -674,6 +692,11 @@ export type BbDropdownButtonProps = BbDropdownButtonPtProps & {
674
692
  * without the prefix. See the `pt:<part>` row.
675
693
  */
676
694
  pt?: BbDropdownButtonPtMap;
695
+ /**
696
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
697
+ * Bound, the app opens and closes it; unbound, the initial state.
698
+ */
699
+ open?: boolean;
677
700
  } & Pick<
678
701
  BbDropdownProps,
679
702
  | 'adaptive'
@@ -772,6 +795,8 @@ export type BbDropdownButtonEvents = {
772
795
  (e: 'shown'): void;
773
796
  /** Emitted as soon as the menu starts to close. */
774
797
  (e: 'hide'): void;
798
+ /** The panel opened or closed (`v-model:open`). */
799
+ (e: 'update:open', value: boolean): void;
775
800
  /** Emitted once the menu has finished closing. */
776
801
  (e: 'hidden'): void;
777
802
  /**
@@ -447,18 +447,12 @@ export type InternalItem = Omit<
447
447
  * async items load (`'loading'`), when it resolved empty (`'empty'`), or
448
448
  * when its latest load FAILED (`'failed'`: the footer under whatever rows a
449
449
  * `stash` keeps listed). Rendered as a non-interactive row that
450
- * shows `label` or, when provided, the dropdown's `loading` / `empty` slot.
450
+ * shows `label` or, when provided, the dropdown's `loading` / `empty` slot (a
451
+ * `'failed'` row always shows its own).
451
452
  *
452
453
  * @internal Set by `BbDropdownGroup`.
453
454
  */
454
455
  placeholder?: 'loading' | 'empty' | 'failed';
455
- /**
456
- * On a `'failed'` placeholder: what the group's `items` load rejected
457
- * with, handed to the `empty` slot as `error`.
458
- *
459
- * @internal Set by the pipeline resolver.
460
- */
461
- error?: unknown;
462
456
  /**
463
457
  * Marks a row built by the pipeline resolver from a fetched item. Its
464
458
  * `selectable` predicate already ran against the RAW item there, so
@@ -479,9 +473,9 @@ export type InternalItem = Omit<
479
473
  };
480
474
 
481
475
  /**
482
- * An optionally titled, optionally selectable section of the menu. Shares base
483
- * props with {@link InternalItem} but does **not** extend BbBaseButton — it is a section
484
- * descriptor, not an individually rendered button.
476
+ * An optionally titled, optionally selectable group of the menu's rows. Shares
477
+ * base props with {@link InternalItem} but does **not** extend BbBaseButton — it
478
+ * is a group descriptor, not an individually rendered button.
485
479
  */
486
480
  /**
487
481
  * Async/array items getter for a pipeline group, returning the raw items
@@ -507,13 +501,18 @@ export type InternalItem = Omit<
507
501
  * `failedText` with the error. Zero-argument providers keep working. An
508
502
  * unannotated getter reads its context typed (`query` a string on a
509
503
  * `searchable` group); a provider shared with other components is annotated
510
- * `BbDropdownGroupItemsContext`.
504
+ * `BbDropdownGroupItemsContext`. A group whose `searchable` is a runtime
505
+ * boolean takes rows or such a provider; a value typed as this union does
506
+ * not fit it (its query-only member needs `searchable: true`).
511
507
  */
512
508
  export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
513
509
 
514
- /** A group without a search box: no `query` arrives. */
510
+ /**
511
+ * A group without a search box: no `query` arrives (`undefined`, so the two
512
+ * getters' contexts reject each other both ways, whatever the check order).
513
+ */
515
514
  type PlainGetter = (
516
- context: BbDropdownGroupItemsContext
515
+ context: BbDropdownGroupItemsContext & { query?: undefined }
517
516
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- a fetched group's rows are the API's records: the dropdown is not generic, so their type cannot reach the accessors
518
517
  ) => any[] | Promise<any[]>;
519
518
 
@@ -663,12 +662,19 @@ export type InternalGroup = DropdownEntryBase & {
663
662
  /** Placeholder for this group's search field. Defaults to the localized label. */
664
663
  searchPlaceholder?: string;
665
664
  /**
666
- * Sorts the group's rows under titled sections, inside the one group (one
665
+ * Characters to type before the search runs (`BbSelect`'s rule): below
666
+ * it the query counts as empty. Requires `searchable`.
667
+ *
668
+ * @defaultValue `0`
669
+ */
670
+ minQueryLength?: number;
671
+ /**
672
+ * Sorts the group's rows under headings, inside the one group (one
667
673
  * `v-model`, one search field): a field path read off each row (a fetched
668
- * row: its raw item) or a getter returning the section title. Rows with a
669
- * nullish title are listed without a heading. Sections keep the order in
670
- * which their first row appears, like `BbSelect`'s `groupBy`; a search hides
671
- * a section with no matching row.
674
+ * row: its raw item) or a getter returning the heading. Rows with a
675
+ * nullish value are listed first, without a heading. Headings keep the
676
+ * order in which their first row appears, like `BbSelect`'s `groupBy`; a
677
+ * search hides a heading with no matching row.
672
678
  */
673
679
  // eslint-disable-next-line @typescript-eslint/no-explicit-any -- the dropdown is not generic: a fetched row is whatever the getter returned, so an accessor annotated with the app's row type (`(c: Clinic) => c.name`) must fit
674
680
  groupBy?: string | ((row: any) => string | null | undefined);
@@ -704,7 +710,7 @@ export type InternalGroup = DropdownEntryBase & {
704
710
  stash?: boolean;
705
711
  /**
706
712
  * The group's label — rendered as its heading above the items, exposed as the
707
- * section title in the adaptive sheet, and surfaced on `useBbDropdown`
713
+ * group's title in the adaptive sheet, and surfaced on `useBbDropdown`
708
714
  * (handy for chip prefixes / filter summaries).
709
715
  */
710
716
  label?: string;
@@ -789,7 +795,7 @@ export const groupItemsAsArray = (
789
795
 
790
796
  /**
791
797
  * A string or number row: its own text and value (`'Google'` reads "Google"
792
- * and picks `'Google'`), loose, in a section, in a group's `items` or in a
798
+ * and picks `'Google'`), loose, in a divider run, in a group's `items` or in a
793
799
  * submenu's `items`. It declares `searchable` like every entry, so a group
794
800
  * literal beside it still picks its plain or searchable getter.
795
801
  */
@@ -802,7 +808,7 @@ export type ItemEntry = Item | PrimitiveRow;
802
808
  * Items accepted by the dropdown. Entries can be:
803
809
  * - a single {@link InternalItem};
804
810
  * - an array of items — rendered as an anonymous divider-separated group;
805
- * - a {@link InternalGroup} object — a titled / selectable section.
811
+ * - a {@link InternalGroup} object — a titled / selectable group.
806
812
  *
807
813
  * The shapes can be mixed, e.g. `[item, [item, item], { id, label, items }]`.
808
814
  */
@@ -895,7 +901,9 @@ export type NormalizedGroup = {
895
901
  searchable?: boolean;
896
902
  /** Placeholder for this group's search field. */
897
903
  searchPlaceholder?: string;
898
- /** Section title per row (see {@link InternalGroup.groupBy}). */
904
+ /** Characters to type before the search runs (see {@link InternalGroup.minQueryLength}). */
905
+ minQueryLength?: number;
906
+ /** Heading per row (see {@link InternalGroup.groupBy}). */
899
907
  groupBy?: InternalGroup['groupBy'];
900
908
  selectable: boolean;
901
909
  /** Selected row keys (`rowKey`; injected by `BbDropdown`; empty for non-selectable groups). */
@@ -933,6 +941,8 @@ export type MappedItem = InternalItem & {
933
941
  * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
934
942
  * @part header - The menu's header band.
935
943
  * @part footer - The menu's footer band.
944
+ * @part box - Every searchable group's search box (field and magnifier),
945
+ * as `box` on a field; desktop and phone.
936
946
  * @part input - A searchable group's search field — a broadcast: it lands on
937
947
  * every searchable group's field, desktop and phone alike. Its magnifier
938
948
  * glyph is chrome.
@@ -961,6 +971,7 @@ export type BbDropdownPtPart =
961
971
  | 'sheet'
962
972
  | 'header'
963
973
  | 'footer'
974
+ | 'box'
964
975
  | 'input'
965
976
  | 'list'
966
977
  | 'item'
@@ -976,6 +987,7 @@ export type BbDropdownSurfacePtPart =
976
987
  | 'sheet'
977
988
  | 'header'
978
989
  | 'footer'
990
+ | 'box'
979
991
  | 'input'
980
992
  | 'list';
981
993
  /** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
@@ -1038,6 +1050,7 @@ export const BB_DROPDOWN_PT = {
1038
1050
  'sheet',
1039
1051
  'header',
1040
1052
  'footer',
1053
+ 'box',
1041
1054
  'input',
1042
1055
  'list',
1043
1056
  'item',
@@ -1158,11 +1171,13 @@ export type BbDropdownProps = BbDropdownPtProps & {
1158
1171
  * @defaultValue the activator element
1159
1172
  */
1160
1173
  anchor?: ElementOrComponentRef | VirtualAnchor;
1174
+ /** Whether the menu is open (`v-model`): `true` opens it from code at its activator or `anchor`. Unbound: the initial state. */
1175
+ modelValue?: boolean;
1161
1176
  /**
1162
- * Keeps the panel inside this element beside its trigger (sideways for a
1163
- * menu above or below); away from it the panel may pass the edge, and only
1164
- * the viewport flips it. An element, a component ref or a CSS selector (a
1165
- * `useTemplateRef`, not `$refs.x`: not reactive).
1177
+ * Keeps the panel inside this element beside its trigger (sideways under a
1178
+ * menu); away from it only the viewport flips it. An element, component ref
1179
+ * or CSS selector (a `useTemplateRef`, not `$refs.x`). Default in a
1180
+ * `BbTable`: the table's left and right edges.
1166
1181
  */
1167
1182
  // Spelled out, not `ElementOrComponentRefOrSelector`: one type name
1168
1183
  // fewer in the component's agent answer, which sits at its size cap.
@@ -1192,7 +1207,7 @@ export type BbDropdownProps = BbDropdownPtProps & {
1192
1207
  /**
1193
1208
  * The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a
1194
1209
  * flat array for one group, nested arrays for divider-separated groups, or
1195
- * `InternalGroup` objects for titled / selectable sections. A row's own
1210
+ * `InternalGroup` objects for titled / selectable groups. A row's own
1196
1211
  * `items` opens a submenu.
1197
1212
  *
1198
1213
  * @defaultValue `[]`
@@ -1204,23 +1219,11 @@ export type BbDropdownProps = BbDropdownPtProps & {
1204
1219
  * trigger always stays.
1205
1220
  */
1206
1221
  keepActivator?: boolean;
1207
- /**
1208
- * Default placeholder text shown while a pipeline group's async items load.
1209
- * A group's own `loadingText` overrides this; both fall back to the localized
1210
- * `common.loadingText` (`'Loading...'`).
1211
- */
1222
+ /** A pipeline group's loading row; its own `loadingText` wins. Default: `common.loadingText`. */
1212
1223
  loadingText?: string;
1213
- /**
1214
- * Default placeholder text shown when a pipeline group resolves to no items.
1215
- * A group's own `emptyText` overrides this; both fall back to the localized
1216
- * `common.emptyText` (`'No data to display'`).
1217
- */
1224
+ /** A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`. */
1218
1225
  emptyText?: string;
1219
- /**
1220
- * Default placeholder text shown when a pipeline group's latest load FAILED
1221
- * (its `items` getter threw). A group's own `failedText` overrides this; both
1222
- * fall back to the localized `common.failedText` (`"Couldn't load items"`).
1223
- */
1226
+ /** A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`. */
1224
1227
  failedText?: string;
1225
1228
  /**
1226
1229
  * Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on
@@ -1281,6 +1284,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
1281
1284
  };
1282
1285
 
1283
1286
  export type BbDropdownEvents = {
1287
+ /** The menu opened or closed (`v-model`): `true` on open, `false` on close. */
1288
+ (e: 'update:modelValue', value: boolean): void;
1284
1289
  /** Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open. */
1285
1290
  (e: 'show'): void;
1286
1291
  /** Emitted once the menu is open and its open transition has finished. */
@@ -1358,6 +1363,20 @@ export type BbDropdownSlotGroup = {
1358
1363
  selectable: boolean;
1359
1364
  };
1360
1365
 
1366
+ /** A `groupBy` heading's slot scope (`BbSelect`'s `#group`). */
1367
+ export type BbDropdownGroupSlotProps = {
1368
+ /** The heading text. */
1369
+ text: string;
1370
+ /** The raw `groupBy` value. */
1371
+ item: unknown;
1372
+ /** The heading's position. */
1373
+ index: number;
1374
+ /** Its row count. */
1375
+ length: number;
1376
+ /** Every row disabled. */
1377
+ disabled: boolean;
1378
+ };
1379
+
1361
1380
  /** Props exposed by the `item:prepend` and `item:append` slots, and named item slots. */
1362
1381
  export type BbDropdownItemSlotProps = {
1363
1382
  /** The item's muted description line, when set. */
@@ -1419,14 +1438,8 @@ export type BbDropdownPlaceholderSlotProps = {
1419
1438
  * e.g. for "Type at least 2 characters" under a remote search's minimum.
1420
1439
  */
1421
1440
  query: string;
1422
- /** Resolved placeholder text (group `loadingText`/`emptyText`/`failedText` → dropdown default). */
1441
+ /** Resolved placeholder text (group `loadingText`/`emptyText` → dropdown default). */
1423
1442
  text: string;
1424
- /**
1425
- * `empty` slot only: what the group's latest failed `items` load rejected
1426
- * with, untouched (a nullish rejection becomes an `Error`); `null` when the
1427
- * group is genuinely empty. Absent on the `loading` slot.
1428
- */
1429
- error?: unknown;
1430
1443
  };
1431
1444
 
1432
1445
  /**
@@ -1445,9 +1458,10 @@ export type BbDropdownPlaceholderSlotProps = {
1445
1458
  * @dynamicSlot `<groupId>:item` {BbDropdownItemSlotProps} - The content of every row of that group, and no other; a row's own `#<value>` still wins.
1446
1459
  * @dynamicSlot `<groupId>:item:prepend` {BbDropdownItemSlotProps} - The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.
1447
1460
  * @dynamicSlot `<groupId>:item:append` {BbDropdownItemSlotProps} - The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
1448
- * @dynamicSlot `<groupId>` {BbDropdownItemSlotProps} - That group's title line (the group is passed as `item`, `groupTitle` is `true`).
1461
+ * @dynamicSlot `<groupId>:label` {BbDropdownItemSlotProps} - That group's title content (`item` is the group, `groupTitle` is `true`).
1449
1462
  * @dynamicSlot `<groupId>:prepend` {BbDropdownItemSlotProps} - The leading region of that group's title line.
1450
1463
  * @dynamicSlot `<groupId>:append` {BbDropdownItemSlotProps} - The trailing region of that group's title line.
1464
+ * @dynamicSlot `<groupId>:group` {BbDropdownGroupSlotProps} - That group's `groupBy` headings; beats `group`.
1451
1465
  */
1452
1466
  export type BbDropdownSlots = {
1453
1467
  /**
@@ -1462,7 +1476,8 @@ export type BbDropdownSlots = {
1462
1476
  loading?: (props: BbDropdownPlaceholderSlotProps) => any;
1463
1477
  /**
1464
1478
  * Replaces the default "no data" placeholder row shown in a pipeline group
1465
- * that resolved to no items. Rendered once per empty group.
1479
+ * that resolved to no items. Rendered once per empty group. A failed load
1480
+ * is not empty: it keeps its own row (the error icon and `failedText`).
1466
1481
  */
1467
1482
  empty?: (props: BbDropdownPlaceholderSlotProps) => any;
1468
1483
  /**
@@ -1476,13 +1491,13 @@ export type BbDropdownSlots = {
1476
1491
  header?: (props: BbDropdownEdgeSlotProps) => any;
1477
1492
  /**
1478
1493
  * The leading region of every row (and group title line), replacing its
1479
- * `prepend:icon`. A row's own or its group's named slot wins over it.
1494
+ * `prepend:icon` wherever it renders. A named slot wins.
1480
1495
  */
1481
1496
  'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
1482
1497
  /**
1483
1498
  * The trailing region of every row (and group title line), replacing its
1484
- * `append:icon`. A named slot wins over it; the submenu chevron and the
1485
- * check on a selected row take its place.
1499
+ * `append:icon` wherever it renders. A named slot wins; the submenu
1500
+ * chevron and the check on a selected row take its place.
1486
1501
  */
1487
1502
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
1488
1503
  /**
@@ -1490,6 +1505,8 @@ export type BbDropdownSlots = {
1490
1505
  * action buttons.
1491
1506
  */
1492
1507
  footer?: (props: BbDropdownEdgeSlotProps) => any;
1508
+ /** Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it. */
1509
+ group?: (props: BbDropdownGroupSlotProps) => unknown;
1493
1510
  } & Record<string, (props: BbDropdownItemSlotProps) => any>;
1494
1511
 
1495
1512
  /**
@@ -1888,6 +1905,21 @@ export type BbDropdownGroupEvents = {
1888
1905
  }
1889
1906
  }
1890
1907
 
1908
+ /* `groupBy` headings are sticky, as BbSelect's group headers: the
1909
+ scrolled heading stays pinned while its rows pass under it, over the
1910
+ list's own inset so no row peeks above it. A row focused from the
1911
+ keyboard stops below it, never under it. */
1912
+ .bb-dropdown__section-title {
1913
+ background-color: var(--bg);
1914
+ position: sticky;
1915
+ top: calc(-1 * var(--menu-inset));
1916
+ z-index: 1;
1917
+ }
1918
+
1919
+ .bb-dropdown__section .bb-dropdown__item {
1920
+ scroll-margin-top: 1.75rem;
1921
+ }
1922
+
1891
1923
  .bb-dropdown__divider {
1892
1924
  /* Negative inline margins cancel the container padding so the rule
1893
1925
  * spans the full width of the dropdown panel, edge to edge. */
@@ -2034,10 +2066,12 @@ export type BbDropdownGroupEvents = {
2034
2066
  * append icon were present. Absolute + pad-only-when-selected lets
2035
2067
  * unselected labels use the full row.
2036
2068
  */
2069
+ /* sized by the `--icon-size` knob, like the row's
2070
+ icons: a 14px-icon menu gets a 14px check and a matching clearance. */
2037
2071
  .item__check {
2038
- --size: 16px;
2072
+ --size: var(--icon-size);
2039
2073
  color: var(--bb-text);
2040
- font-size: 15px;
2074
+ font-size: calc(var(--icon-size) - 1px);
2041
2075
  inset-inline-end: 6px;
2042
2076
  pointer-events: none;
2043
2077
  position: absolute;
@@ -2054,7 +2088,7 @@ export type BbDropdownGroupEvents = {
2054
2088
 
2055
2089
  &.bb-dropdown__item--selected {
2056
2090
  /* Keep the label clear of the absolute check. */
2057
- padding-inline-end: calc(6px + 16px + 4px);
2091
+ padding-inline-end: calc(6px + var(--check-w, var(--icon-size)) + 4px);
2058
2092
 
2059
2093
  .item__check path {
2060
2094
  stroke-dashoffset: 0;
@@ -2137,6 +2171,9 @@ export type BbDropdownGroupEvents = {
2137
2171
  and passed it again. Tied to the same constant, a title can no longer end
2138
2172
  up smaller than the list beneath it whatever that constant becomes. */
2139
2173
  --dialog-title-fs: var(--sheet-option-fs, 1rem);
2174
+ /* The sheet reads no `--icon-size` (its rows size their own glyphs): the
2175
+ check's clearance stays 16px whatever the menu sets. */
2176
+ --check-w: 16px;
2140
2177
 
2141
2178
  /* Root sheet title via `offCanvasProps.title` (no drill nav / custom
2142
2179
  `#header`): centre it and tighten the title→divider air like BbSelect.
@@ -2523,6 +2560,31 @@ export type BbDropdownGroupEvents = {
2523
2560
  * both apply they agree, so nothing shifts on selection.
2524
2561
  */
2525
2562
  .bb-dropdown__panel--reserve-check .bb-dropdown__item:has(.item__check) {
2526
- padding-inline-end: calc(6px + 16px + 4px);
2563
+ padding-inline-end: calc(6px + var(--check-w, var(--icon-size)) + 4px);
2564
+ }
2565
+
2566
+ /* A root-level group's failed load, drawn next to
2567
+ the menu by DropdownFailures.vue: the destructive alert's voice, as the
2568
+ in-menu row it replaces, then "Try again". Its own divider only when rows
2569
+ sit above it; otherwise the search field's is the one divider. */
2570
+ .bb-dropdown .bb-dropdown__failed {
2571
+ align-items: center;
2572
+ color: var(--bb-danger);
2573
+ column-gap: 8px;
2574
+ display: flex;
2575
+ line-height: 1.2;
2576
+ min-height: 28px;
2577
+ padding: 2px calc(6px + var(--menu-inset, 4px)) var(--menu-inset, 4px);
2578
+
2579
+ .bb-dropdown__placeholder-icon {
2580
+ --size: 1rem;
2581
+ flex: none;
2582
+ /* The seat measured level against the text (see the listbox footer). */
2583
+ margin-top: -1.5px;
2584
+ }
2585
+ }
2586
+
2587
+ .bb-dropdown .bb-dropdown__list:has(.bb-dropdown__item) ~ .bb-dropdown__failed {
2588
+ border-top: var(--bb-border-w) solid var(--bb-border);
2527
2589
  }
2528
2590
  ```
@@ -27,7 +27,7 @@
27
27
  form's own validation still gates the submit.
28
28
  -->
29
29
  <form
30
- :id="id"
30
+ :id="formId"
31
31
  ref="form-el"
32
32
  novalidate
33
33
  @reset.prevent="resetAll()"
@@ -72,6 +72,7 @@ import {
72
72
  shallowRef,
73
73
  toRaw,
74
74
  unref,
75
+ useId,
75
76
  useTemplateRef,
76
77
  watch,
77
78
  } from 'vue';
@@ -92,6 +93,7 @@ import { customFieldsOf } from '@/composables/useBbFormField';
92
93
  import BbFormCustomField from './BbFormCustomField';
93
94
  import { isEqual } from '@/utilities/functions/isEqual';
94
95
  import type { ValidationMode } from '@/types/Config';
96
+ import type { BbFormSlots } from './types';
95
97
  import {
96
98
  type BbFormInvalidPayload,
97
99
  type BbFormSchema,
@@ -207,6 +209,8 @@ const emit = defineEmits<{
207
209
  'submit-error': [error: unknown];
208
210
  }>();
209
211
 
212
+ defineSlots<BbFormSlots>();
213
+
210
214
  /*
211
215
  * The two vee-validate `useForm` options BbForm adopts, passed
212
216
  * straight through. A Standard Schema is wrapped for vee-validate on the way
@@ -803,16 +807,24 @@ provide(BB_FORM_SUBMIT_LOCK, {
803
807
  });
804
808
  // the BbDialog / BbOffCanvas around the form refuses user closes
805
809
  // while the lock is on (so `disable-submit-lock` releases it too).
806
- // Its `ok` button submits from outside the form (no `form=`): it counts as
807
- // one of the form's own controls for `focusServerErrors`.
810
+ // Its `ok` button submits from outside the form: it counts as one of the
811
+ // form's own controls for `focusServerErrors`.
808
812
  let overlaySubmitter: Element | undefined;
813
+ const internalId = useId();
809
814
  const tellOverlay = joinOverlaySubmitGuard({
810
815
  locked: submitLocked,
816
+ pending: () => savesInFlight.value > 0,
817
+ id: () => props.id ?? internalId,
811
818
  submit: async (submitter) => {
812
819
  overlaySubmitter = submitter;
813
820
  return (await onSubmitEvent()) === true;
814
821
  },
815
822
  });
823
+ // inside a surface the `<form>` always has an id (the
824
+ // written one, else an internal one): its `ok` names it in `form=`.
825
+ const formId = computed(
826
+ () => props.id ?? (tellOverlay ? internalId : undefined)
827
+ );
816
828
 
817
829
  type SubmitListener = (
818
830
  values: Record<string, unknown>,
@@ -914,7 +926,7 @@ const runSubmitListeners = (
914
926
  }
915
927
  }
916
928
  if (!listeners.length) {
917
- tellOverlay({ value: undefined, values: formValues });
929
+ tellOverlay?.({ value: undefined, values: formValues });
918
930
  return true;
919
931
  }
920
932
 
@@ -954,7 +966,7 @@ const runSubmitListeners = (
954
966
  // Await only what is actually awaitable, so a sync handler keeps the exact
955
967
  // timing it has today rather than being pushed a microtask later.
956
968
  if (!pending.length) {
957
- tellOverlay(outcome());
969
+ tellOverlay?.(outcome());
958
970
  return !failed;
959
971
  }
960
972
  // the form locks for exactly as long as the save runs. Its own
@@ -969,7 +981,7 @@ const runSubmitListeners = (
969
981
  countSave(submitter, -1);
970
982
  })
971
983
  .then(() => {
972
- tellOverlay(outcome());
984
+ tellOverlay?.(outcome());
973
985
  return !failed;
974
986
  });
975
987
  };
@@ -1256,6 +1268,15 @@ const removeField = (path: string): void => {
1256
1268
  * errors.
1257
1269
  */
1258
1270
  const onSubmitEvent = (event?: Event) => {
1271
+ /*
1272
+ * a submit while a save is pending is
1273
+ * dropped, neither queued nor a second save (Enter, a submit button,
1274
+ * `submit()`, the dialog's `ok`): it did not go through. The lock or not.
1275
+ */
1276
+ if (savesInFlight.value > 0) {
1277
+ event?.preventDefault();
1278
+ return Promise.resolve(false);
1279
+ }
1259
1280
  unmatchedErrors.value = {};
1260
1281
  return onSubmit(event);
1261
1282
  };
@@ -1329,3 +1350,49 @@ const publishContext = useBbFormHost(() => props.id, {
1329
1350
  defineExpose({ $el: formEl });
1330
1351
  </script>
1331
1352
  ```
1353
+
1354
+ ## Types
1355
+
1356
+ ```ts
1357
+ import type { FormContext, FormMeta, GenericObject } from 'vee-validate';
1358
+ import type {
1359
+ BbFormFieldEntry,
1360
+ BbFormServerErrors,
1361
+ BbFormSetErrorsOptions,
1362
+ } from '@/composables/useBbForm';
1363
+
1364
+ /** BbForm's slots; index it for one slot's type: `BbFormSlots['default']`. */
1365
+ export type BbFormSlots = {
1366
+ /**
1367
+ * The form's fields, with its state and actions in scope: the meta
1368
+ * (`valid`, `dirty`…), `values`, `errors`, `fields`, `unmatchedErrors`,
1369
+ * `isSubmitting`, `submitCount`, `validate`, `resetForm`, `setErrors`,
1370
+ * `snapshot`, `removeField`.
1371
+ */
1372
+ default?: (
1373
+ scope: FormMeta<GenericObject> & {
1374
+ /** Each field's messages, by name. */
1375
+ errors: Record<string, string[]>;
1376
+ /** Each mounted field, by name. */
1377
+ fields: Record<string, BbFormFieldEntry>;
1378
+ isSubmitting: boolean;
1379
+ /** Drops a path and everything under it from the values, for good. */
1380
+ removeField: (path: string) => void;
1381
+ /** Back to the baseline (or to the state passed). */
1382
+ resetForm: FormContext['resetForm'];
1383
+ /** Lands server errors on their fields. */
1384
+ setErrors: (
1385
+ errors: BbFormServerErrors,
1386
+ options?: BbFormSetErrorsOptions
1387
+ ) => void;
1388
+ /** Makes the current values (merged with `next`) the dirty baseline. */
1389
+ snapshot: (next?: Record<string, unknown>) => void;
1390
+ submitCount: number;
1391
+ /** Server errors no mounted field shows, by path. */
1392
+ unmatchedErrors: Record<string, string[]>;
1393
+ validate: FormContext['validate'];
1394
+ values: GenericObject;
1395
+ }
1396
+ ) => unknown;
1397
+ };
1398
+ ```