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
@@ -82,6 +82,7 @@
82
82
  :model-value-debounce-time="modelValueDebounceTime"
83
83
  :multiple="multiple"
84
84
  :off-canvas-props="resolvedOffCanvasProps"
85
+ :open="openModel"
85
86
  :prefill="computedPrefill"
86
87
  :pt="popoverPt()"
87
88
  :query-debounce-time="queryDebounceTime"
@@ -91,6 +92,7 @@
91
92
  :transition-duration="transitionDuration"
92
93
  width="100%"
93
94
  v-bind="popoverListeners()"
95
+ @update:open="setOpenModel"
94
96
  >
95
97
  <template
96
98
  #activator="{
@@ -367,6 +369,7 @@ import {
367
369
  import { useMobile } from '@/composables/useMobile';
368
370
  import { useConfigDefaults } from '@/composables/useConfigDefaults';
369
371
  import { useFormBinding } from '@/composables/useFormBinding';
372
+ import { useOpenProp } from '@/composables/useOpenModel';
370
373
  import { useLocale } from '@/composables/useLocale';
371
374
  import {
372
375
  formControlPtActive,
@@ -499,6 +502,15 @@ const resolvedLabelMode = computed(() => configDefaults.labelMode);
499
502
  */
500
503
  const open = ref(false);
501
504
 
505
+ /**
506
+ * `v-model:open`, handed to the popover bound, so its own
507
+ * open and close paths run and every close writes back here.
508
+ */
509
+ const { model: openModel, set: setOpenModel } = useOpenProp(
510
+ declaredProps,
511
+ declaredEmit
512
+ );
513
+
502
514
  /**
503
515
  * Passthrough. `panel` and `option` are the popover's: their raw entries are forwarded to it under the same words (`panel` → its `panel`, the painted bubble), so `option:selected` is resolved per option where the selection is known.
504
516
  */
@@ -1194,6 +1206,11 @@ export type BbSelectProps<
1194
1206
  ) => PtItemResult);
1195
1207
  } & {
1196
1208
  /* eslint-enable @typescript-eslint/consistent-indexed-object-style */
1209
+ /**
1210
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
1211
+ * Bound, the app opens and closes it; unbound, the initial state.
1212
+ */
1213
+ open?: boolean;
1197
1214
  /**
1198
1215
  * Passthrough, object form: the same keys as the `pt:*` attributes
1199
1216
  * without the prefix. See the `pt:<part>` row.
@@ -1329,10 +1346,10 @@ export type BbSelectProps<
1329
1346
  disabled?: boolean;
1330
1347
 
1331
1348
  /**
1332
- * After every successful load that is not a search, removes the picks the
1333
- * fetched rows do not contain (a single model resets to `null`). A `stash`
1334
- * does not count, a value a `known-items` row names is kept until a parent change; a search or a
1335
- * failed load never prunes.
1349
+ * After each successful non-search load, removes the picks the fetched rows
1350
+ * lack (a single model resets to `null`). A `stash` does not count; a
1351
+ * `known-items` value stays until a parent change; a search or a failed load
1352
+ * never prunes.
1336
1353
  */
1337
1354
  enforceCoherence?: boolean;
1338
1355
 
@@ -1610,10 +1627,9 @@ export type BbSelectProps<
1610
1627
  selectedLabelsFn?: (count: number) => string;
1611
1628
 
1612
1629
  /**
1613
- * Keeps picked options named across searches: a pick stays resolvable (its
1614
- * chip keeps its text) when a later search or a failed load no longer
1615
- * returns it. It follows the model, and does not keep a pick valid:
1616
- * `enforce-coherence` still prunes it.
1630
+ * Keeps picks named (their chips keep their text) when a later search or a
1631
+ * failed load no longer returns them. It follows the model; it does not
1632
+ * keep a pick valid (`enforce-coherence` still prunes it).
1617
1633
  */
1618
1634
  stash?: boolean;
1619
1635
 
@@ -1635,6 +1651,8 @@ export type BbSelectEvents<V = any> = {
1635
1651
  (e: 'shown'): void;
1636
1652
  /** Emitted as soon as the options surface starts to close. */
1637
1653
  (e: 'hide'): void;
1654
+ /** The panel opened or closed (`v-model:open`). */
1655
+ (e: 'update:open', value: boolean): void;
1638
1656
  /** Emitted once the options surface has finished closing. */
1639
1657
  (e: 'hidden'): void;
1640
1658
  /** Emitted when the activator loses focus. Forwards the original DOM `FocusEvent`. */
@@ -1810,21 +1828,19 @@ export type BbSelectSlots<
1810
1828
  loading?: (props: { query: string }) => any;
1811
1829
  /**
1812
1830
  * Content shown when no options match the query or the list is empty.
1813
- * `error` is what the latest failed load threw, untouched (`null` when
1814
- * none). `close()` closes the panel, for an action that does not move
1815
- * focus out of it.
1831
+ * Empty only: a failed load shows the failure row (`failed-text`, then
1832
+ * "Try again"). `close()` closes the panel, for an action that does not
1833
+ * move focus out of it.
1816
1834
  */
1817
1835
  empty?: (props: {
1818
1836
  query: string;
1819
1837
  focus: () => void;
1820
1838
  close: () => Promise<void>;
1821
- error: unknown;
1822
1839
  }) => any;
1823
1840
  /**
1824
- * Replaces the default rendering of each option row in the dropdown. With
1825
- * `known-items` bound, a row the list has not brought yet is the known
1826
- * `{ value, label }` row, `known: true`: check `known` before reading an
1827
- * option field off `item`.
1841
+ * Each option row's content. With `known-items` bound, a row the list has
1842
+ * not brought yet is the known `{ value, label }` row (`known: true`):
1843
+ * check `known` before reading an option field off `item`.
1828
1844
  */
1829
1845
  option?: (props: BbSelectOptionSlotProps<T, Known>) => any;
1830
1846
  /**
@@ -1834,10 +1850,9 @@ export type BbSelectSlots<
1834
1850
  */
1835
1851
  group?: (props: BbSelectGroupSlotProps<T>) => any;
1836
1852
  /**
1837
- * Replaces the default badge rendered for each selection in `multiple` mode.
1838
- * Not called in `comma` mode, nor for the collapsed "+N" summary. With
1839
- * `known-items` bound, `item` is the known `{ value, label }` row
1840
- * (`known: true`) until the list brings the real one.
1853
+ * Each selection's badge with `multiple` (not in `comma` mode, nor the
1854
+ * "+N" summary). With `known-items` bound, `item` is the known
1855
+ * `{ value, label }` row (`known: true`) until the list brings the real one.
1841
1856
  */
1842
1857
  chip?: (props: BbSelectChipSlotProps<T, Known>) => any;
1843
1858
  /**
@@ -142,7 +142,7 @@
142
142
  :described="described"
143
143
  :empty-text="computedNoDataText"
144
144
  :failed-text="itemsError !== null ? computedNoDataText : undefined"
145
- :groups="groupBy ? groupedOptions : undefined"
145
+ :groups="groupBy ? listGroups : undefined"
146
146
  :header-height="headerHeight"
147
147
  :list-label="useOffcanvas ? activatorName : listLabel"
148
148
  :list-labelledby="useOffcanvas ? undefined : listLabelledby"
@@ -152,12 +152,13 @@
152
152
  :multiple="multiple"
153
153
  :open="shown"
154
154
  :option-height="itemHeight"
155
- :options="groupBy ? undefined : filteredOptions"
155
+ :options="groupBy ? undefined : listOptions"
156
156
  :passthrough="passthrough"
157
157
  @focused:change="onListboxFocusedChange"
158
158
  @option:selected="onOptionSelected"
159
159
  @option:unselected="onOptionUnselected"
160
160
  @pointerdown="keepUserOffset"
161
+ @retry="runRetry($event, retryLoad, focusPopoverContentEl)"
161
162
  @touchmove.passive="keepUserOffset"
162
163
  @wheel.passive="keepUserOffset"
163
164
  >
@@ -165,7 +166,6 @@
165
166
  <template #empty
166
167
  ><slot
167
168
  :close="close"
168
- :error="itemsError"
169
169
  :focus="focusPopoverContent"
170
170
  name="empty"
171
171
  :query="query"
@@ -408,6 +408,7 @@ import {
408
408
  import { useUntil } from '../../composables/useUntil';
409
409
  import { useClosingInert } from '@/composables/useClosingInert';
410
410
  import { wait } from '@/utilities/functions/wait';
411
+ import { useOpenModel } from '@/composables/useOpenModel';
411
412
  import BbBadge from '../BbBadge/BbBadge.vue';
412
413
  import BbIcon from '../BbIcon/BbIcon.vue';
413
414
  import BbOffCanvas from '../BbOffCanvas/BbOffCanvas.vue';
@@ -435,6 +436,7 @@ import { transitions } from '@/utilities/misc/transitions';
435
436
  import { removedPropsFor } from '@/deprecation/removedProps';
436
437
  import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
437
438
  import { hasVnodeListener } from '@/utilities/functions/hasVnodeListener';
439
+ import { runRetry } from '@/utils/loadRetry';
438
440
 
439
441
  // The element(s) the fall-through attributes reach, as typed below.
440
442
  // @attrTargets span dialog
@@ -704,7 +706,7 @@ const computedAriaDescribedby = computed(() => {
704
706
  // While the latest load FAILED and the panel is open, the combobox is also
705
707
  // described by the listbox's failure footer, so a reader landing
706
708
  // on the field hears why the list is what it is.
707
- if (shown.value && itemsError.value !== null)
709
+ if (shown.value && itemsError.value !== null && !computedLoading.value)
708
710
  own.push(`${id}_listbox_failed`);
709
711
  // Below `min-query-length` the search box says how much to type.
710
712
  if (shown.value && belowMinQuery.value && computedAllowWriting.value)
@@ -1140,6 +1142,11 @@ const onEnter = async () => {
1140
1142
  if (!computedAllowWriting.value || belowMinQuery.value) return;
1141
1143
  const text = query.value.trim();
1142
1144
  if (isItemSelected(text)) return;
1145
+ addOption(text);
1146
+ };
1147
+
1148
+ /** `option:add` with the typed text, the field emptied: Enter and the create row. */
1149
+ const addOption = (text: string) => {
1143
1150
  emit('option:add', text);
1144
1151
  query.value = '';
1145
1152
  };
@@ -1243,6 +1250,7 @@ const {
1243
1250
  settledArgs,
1244
1251
  settledCount,
1245
1252
  inFlight,
1253
+ failedArgs,
1246
1254
  discard: discardRequests,
1247
1255
  discardScheduled: discardScheduledRequests,
1248
1256
  } = useItemsGetter({
@@ -2120,6 +2128,26 @@ async function load(
2120
2128
  return outcome;
2121
2129
  }
2122
2130
 
2131
+ /**
2132
+ * The failure row's "Try again": the failed call again, with its own query and
2133
+ * reason, and the follow-up that reason's load runs (a non-search load prunes).
2134
+ */
2135
+ const retryLoad = () => {
2136
+ const args = failedArgs();
2137
+ if (!args) return;
2138
+ const [text, reason] = args;
2139
+ void load(
2140
+ text ?? '',
2141
+ reason as Parameters<typeof load>[1],
2142
+ props.modelValue
2143
+ ).then((outcome) => {
2144
+ if (outcome === 'applied' && reason !== 'search') pruneAgainstFetchedRows();
2145
+ });
2146
+ };
2147
+ /** Where focus goes when the retry takes the button away: the search field, else the panel's combobox. */
2148
+ const focusPopoverContentEl = () =>
2149
+ computedAllowWriting.value ? searchInput.value : popoverFocusProxy.value;
2150
+
2123
2151
  /** The source became an array: no load will lift a mask or serve a stale-list reload. */
2124
2152
  function releaseForArray() {
2125
2153
  listStale = false;
@@ -2372,6 +2400,8 @@ useHashedWatcher(
2372
2400
  );
2373
2401
 
2374
2402
  const onOptionSelected = async (option: BaseOption) => {
2403
+ // The create row adds what was typed, as Enter does; it is never picked.
2404
+ if (option.create) return addOption(option.create.query);
2375
2405
  // Sampled before anything awaits: the question is where focus was when the
2376
2406
  // user acted, not where it drifted to while the model settled.
2377
2407
  const mayRestoreSearchFocus = canHandOffFocusToSearchInput();
@@ -2574,6 +2604,56 @@ const groupedOptions = computed<GroupedOptions[]>(() => {
2574
2604
  .filter((g) => g.options.length);
2575
2605
  });
2576
2606
 
2607
+ /**
2608
+ * "Create «query»": with `option:add` wired, a typed query
2609
+ * (trimmed, past `min-query-length`) that no listed option matches exactly
2610
+ * (case aside) gets a real option row, LAST after the matches or alone in
2611
+ * place of the no-results text. No icon; the query is emphasised. Not while
2612
+ * the list loads or failed: a match may be on its way.
2613
+ */
2614
+ const CREATE_HASH = '__bb-create__';
2615
+ const createOption = computed<BaseOption<Item> | null>(() => {
2616
+ if (!computedAllowWriting.value || belowMinQuery.value) return null;
2617
+ if (computedLoading.value || itemsError.value !== null) return null;
2618
+ if (!hasVnodeListener(instance, 'option:add')) return null;
2619
+ const text = query.value.trim();
2620
+ if (!text || isItemSelected(text)) return null;
2621
+ const key = text.toLocaleLowerCase();
2622
+ if (
2623
+ filteredOptions.value.some(
2624
+ (option) => option.text.trim().toLocaleLowerCase() === key
2625
+ )
2626
+ )
2627
+ return null;
2628
+ const marker = '\u0000';
2629
+ const [before = '', after = ''] = t(
2630
+ 'select.createOption',
2631
+ marker
2632
+ ).value.split(marker);
2633
+ return {
2634
+ text: `${before}${text}${after}`,
2635
+ value: undefined,
2636
+ item: undefined as Item,
2637
+ valueHash: CREATE_HASH,
2638
+ create: { before, query: text, after },
2639
+ };
2640
+ });
2641
+ /** What the list shows: the options, then the create row. */
2642
+ const listOptions = computed(() =>
2643
+ createOption.value
2644
+ ? [...filteredOptions.value, createOption.value]
2645
+ : filteredOptions.value
2646
+ );
2647
+ /** The same for the grouped list: the create row is a last, headerless group. */
2648
+ const listGroups = computed<GroupedOptions[]>(() =>
2649
+ createOption.value
2650
+ ? [
2651
+ ...groupedOptions.value,
2652
+ { id: CREATE_HASH, data: null, options: [createOption.value] },
2653
+ ]
2654
+ : groupedOptions.value
2655
+ );
2656
+
2577
2657
  /**
2578
2658
  * START POPOVER STATE
2579
2659
  */
@@ -2996,6 +3076,10 @@ const toggle = () => {
2996
3076
  if (shown.value) return close();
2997
3077
  return open();
2998
3078
  };
3079
+
3080
+ // `v-model:open`: the same open and close the activator
3081
+ // makes; every close (a pick, Escape, outside, the sheet's own) writes back.
3082
+ useOpenModel(props, emit, { isOpen: () => shown.value, open, close });
2999
3083
  /**
3000
3084
  * END POPOVER STATE
3001
3085
  */
@@ -3601,6 +3685,11 @@ export type BbSelectPopoverProps<
3601
3685
  ) => PtItemResult);
3602
3686
  } & {
3603
3687
  /* eslint-enable @typescript-eslint/consistent-indexed-object-style */
3688
+ /**
3689
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
3690
+ * Bound, the app opens and closes it; unbound, the initial state.
3691
+ */
3692
+ open?: boolean;
3604
3693
  /**
3605
3694
  * Passthrough, object form: the same keys as the `pt:*` attributes
3606
3695
  * without the prefix. See the `pt:<part>` row.
@@ -3928,6 +4017,8 @@ export type BbSelectPopoverEvents<V = any> = {
3928
4017
  (e: 'shown'): void;
3929
4018
  /** Emitted as soon as the options surface starts to close. */
3930
4019
  (e: 'hide'): void;
4020
+ /** The panel opened or closed (`v-model:open`). */
4021
+ (e: 'update:open', value: boolean): void;
3931
4022
  /** Emitted once the options surface has finished closing. */
3932
4023
  (e: 'hidden'): void;
3933
4024
  /**
@@ -4098,15 +4189,14 @@ export type BbSelectPopoverSlots<
4098
4189
  loading?: (props: { query: string }) => any;
4099
4190
  /**
4100
4191
  * Content shown when no options match the query or the list is empty.
4101
- * `error` is what the latest failed load threw, untouched (`null` when
4102
- * none). `close()` closes the panel, for an action that does not move
4103
- * focus out of it.
4192
+ * Empty only: a failed load shows the library's failure row instead (its
4193
+ * message is `failed-text`, and it ends with "Try again"). `close()` closes
4194
+ * the panel, for an action that does not move focus out of it.
4104
4195
  */
4105
4196
  empty?: (props: {
4106
4197
  query: string;
4107
4198
  focus: () => void;
4108
4199
  close: () => Promise<void>;
4109
- error: unknown;
4110
4200
  }) => any;
4111
4201
  /**
4112
4202
  * Replaces the default rendering of each option row in the dropdown. With
@@ -4415,6 +4505,10 @@ export type BbSelectPopoverSlots<
4415
4505
  calc(round(down, calc(100dvh - 130px), var(--option-h)) - 1px)
4416
4506
  );
4417
4507
  overflow: auto;
4508
+ /* The windowed groups are placed by `top` (sticky headers need
4509
+ layout positions): the browser's scroll anchoring would nudge
4510
+ the list as they mount. The list places itself. */
4511
+ overflow-anchor: none;
4418
4512
  overflow-x: clip;
4419
4513
  padding: 0.25rem;
4420
4514
  text-align: start;
@@ -4441,12 +4535,21 @@ export type BbSelectPopoverSlots<
4441
4535
  width: 100%;
4442
4536
  }
4443
4537
 
4538
+ /* Sticky: the scrolled group's header stays
4539
+ pinned at the top while its options pass under it, and
4540
+ leaves with its group's last row. Opaque, on the panel, and
4541
+ pinned over the scroll area's block padding (sticky insets
4542
+ by it) so no row peeks above it. */
4444
4543
  .bb-listbox__group-header {
4445
4544
  align-items: center;
4545
+ background-color: var(--bg);
4446
4546
  display: flex;
4447
4547
  height: var(--group-header-height, 32px);
4448
4548
  padding: 0 0.5rem;
4549
+ position: sticky;
4550
+ top: -0.25rem;
4449
4551
  user-select: none;
4552
+ z-index: 1;
4450
4553
 
4451
4554
  .bb-listbox__group-header-label {
4452
4555
  /* Muted, like BbDropdown's group titles (parity): faint fails
@@ -4588,6 +4691,11 @@ export type BbSelectPopoverSlots<
4588
4691
  white-space: nowrap;
4589
4692
  }
4590
4693
 
4694
+ /* "Create «query»": the typed query stands out in the label. */
4695
+ .bb-listbox__create-query {
4696
+ font-weight: 600;
4697
+ }
4698
+
4591
4699
  .bb-listbox__item-description {
4592
4700
  color: var(--bb-text-muted);
4593
4701
  font-size: calc(var(--option-font-size, var(--bb-fs)) - 2px);
@@ -69,6 +69,7 @@
69
69
  :loading-text="loadingText"
70
70
  :options="options"
71
71
  :passthrough="passthrough"
72
+ @retry="runRetry($event, retryLoad, () => optionsElement)"
72
73
  >
73
74
  <template #prepend><slot name="prepend"></slot></template>
74
75
  <template #loading><slot name="loading"></slot></template>
@@ -147,6 +148,7 @@ import type { FallthroughAttrs } from '@/types/fallthrough';
147
148
  import { vAutofocus } from '@/utilities/misc/autofocus';
148
149
  import CommonField from '../CommonField/CommonField.vue';
149
150
  import OptionsContainer from '../OptionsContainer/OptionsContainer.vue';
151
+ import { runRetry } from '@/utils/loadRetry';
150
152
  import BbBaseSwitchIcon from '../BbBaseSwitchIcon/BbBaseSwitchIcon.vue';
151
153
  import {
152
154
  aliasParts,
@@ -318,6 +320,7 @@ const {
318
320
  items: internalItems,
319
321
  loading,
320
322
  error: itemsError,
323
+ retry,
321
324
  ssrMarker,
322
325
  } = useItemsGetter({ items, marker: true });
323
326
 
@@ -327,6 +330,11 @@ const alignToCoherenceSettings = () => {
327
330
  }
328
331
  };
329
332
 
333
+ /** The failure row's "Try again": the failed load again, then coherence on rows it applied. */
334
+ const retryLoad = async () => {
335
+ if ((await retry()) === 'applied') alignToCoherenceSettings();
336
+ };
337
+
330
338
  const { hasPrefilled, whenPrefilled } = usePrefill({
331
339
  alreadyLoaded: hydratedFromSsr,
332
340
  clientReproducible,
@@ -707,11 +715,10 @@ export type BbSwitchGroupSlots<T> = {
707
715
  loading?: (props: object) => any;
708
716
  /**
709
717
  * Content shown when no options are available (replaces the default "no
710
- * data" text). `error` is what the latest failed load rejected with,
711
- * untouched, and `null` when nothing failed — a failed load clears the
712
- * rows, so this slot is where it shows.
718
+ * data" text). Empty only: a failed load shows the library's failure row
719
+ * instead (its message is `failed-text`, and it ends with "Try again").
713
720
  */
714
- empty?: (props: { error: unknown }) => any;
721
+ empty?: (props: object) => any;
715
722
  /**
716
723
  * Replaces the default switch track visual for each option. Receives the
717
724
  * switch state plus the source item and its display text.