bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.76

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 (321) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbAvatar.md +86 -58
  5. package/dist/ai/BbBadge.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +3 -3
  7. package/dist/ai/BbButton.md +4 -4
  8. package/dist/ai/BbCalendar.md +5 -2
  9. package/dist/ai/BbCheckboxGroup.md +5 -4
  10. package/dist/ai/BbColorInput.md +13 -1
  11. package/dist/ai/BbColorPalette.md +12 -7
  12. package/dist/ai/BbConfirm.md +1 -1
  13. package/dist/ai/BbDatePicker.md +13 -1
  14. package/dist/ai/BbDatePickerInput.md +18 -2
  15. package/dist/ai/BbDialog.md +6 -3
  16. package/dist/ai/BbDropdown.md +174 -77
  17. package/dist/ai/BbDropdownButton.md +37 -16
  18. package/dist/ai/BbGallery.md +3 -2
  19. package/dist/ai/BbIcon.md +10 -10
  20. package/dist/ai/BbNumberInput.md +3 -1
  21. package/dist/ai/BbOffCanvas.md +3 -2
  22. package/dist/ai/BbPopover.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +227 -105
  25. package/dist/ai/BbSelectPopover.md +139 -14
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +18 -17
  28. package/dist/ai/BbTimePicker.md +13 -1
  29. package/dist/ai/BbTimePickerInput.md +16 -2
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbTree.md +5 -1
  32. package/dist/ai/CommonPopover.md +1 -0
  33. package/dist/ai/FlatListBox.md +1 -0
  34. package/dist/ai/GroupedListBox.md +3 -2
  35. package/dist/ai/ListBox.md +4 -2
  36. package/dist/ai/OptionsContainer.md +4 -4
  37. package/dist/ai/changelog.json +310 -7
  38. package/dist/ai/components.json +33 -35
  39. package/dist/ai/composables/useToast.md +2 -2
  40. package/dist/ai/design-tokens.json +60 -0
  41. package/dist/ai/guides/agent-contract.md +9 -5
  42. package/dist/ai/guides/calendars-and-digits.md +1 -1
  43. package/dist/ai/guides/design-tokens.md +13 -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/icons-policy.md +32 -11
  47. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  48. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  49. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  50. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  52. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  53. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  54. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  55. package/dist/ai/guides/migration/v2-to-v3.md +70 -24
  56. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  57. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  58. package/dist/ai/guides/passthrough.md +58 -58
  59. package/dist/ai/helpers/inertia/manifest.json +1 -1
  60. package/dist/ai/index.md +1 -1
  61. package/dist/ai/manifest/common.json +1 -0
  62. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  63. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  64. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  65. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  68. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  69. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  70. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  71. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  72. package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
  73. package/dist/ai/manifest/components/BbDropdown.json +36 -28
  74. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  75. package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
  76. package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
  77. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  78. package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
  79. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  80. package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
  81. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  82. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  83. package/dist/ai/manifest/components/BbSelect.json +47 -40
  84. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  85. package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
  86. package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
  87. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  88. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbTable.json +6 -6
  90. package/dist/ai/manifest/components/BbTable.tree.json +9 -1
  91. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  92. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  93. package/dist/ai/manifest/components/BbTree.json +1 -1
  94. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  95. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  96. package/dist/ai/manifest/components/GroupedListBox.json +3 -2
  97. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  98. package/dist/ai/manifest/components/ListBox.json +3 -2
  99. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  100. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  101. package/dist/ai/manifest/index.json +2 -2
  102. package/dist/ai/manifest/meta.json +0 -3
  103. package/dist/ai/manifest/types.advanced.json +6 -6
  104. package/dist/ai/manifest/types.api.json +1 -3
  105. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  106. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  107. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  108. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  109. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  110. package/dist/ai/recipes/vue/onboarding.md +2 -2
  111. package/dist/ai/source/BbAccordion.md +4 -5
  112. package/dist/ai/source/BbAvatar.md +128 -11
  113. package/dist/ai/source/BbBadge.md +18 -7
  114. package/dist/ai/source/BbBreadcrumbs.md +57 -56
  115. package/dist/ai/source/BbButton.md +41 -25
  116. package/dist/ai/source/BbCalendar.md +8 -6
  117. package/dist/ai/source/BbCarousel.md +41 -34
  118. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  119. package/dist/ai/source/BbColorInput.md +19 -0
  120. package/dist/ai/source/BbColorPalette.md +23 -2
  121. package/dist/ai/source/BbDatePicker.md +18 -0
  122. package/dist/ai/source/BbDatePickerInput.md +47 -3
  123. package/dist/ai/source/BbDialog.md +14 -1
  124. package/dist/ai/source/BbDropdown.md +296 -99
  125. package/dist/ai/source/BbDropdownButton.md +61 -19
  126. package/dist/ai/source/BbDropdownGroup.md +189 -98
  127. package/dist/ai/source/BbGallery.md +82 -60
  128. package/dist/ai/source/BbHost.md +12 -0
  129. package/dist/ai/source/BbNumberInput.md +17 -10
  130. package/dist/ai/source/BbOffCanvas.md +14 -1
  131. package/dist/ai/source/BbPagination.md +12 -28
  132. package/dist/ai/source/BbRadioGroup.md +12 -5
  133. package/dist/ai/source/BbRating.md +4 -4
  134. package/dist/ai/source/BbSelect.md +151 -112
  135. package/dist/ai/source/BbSelectPopover.md +244 -29
  136. package/dist/ai/source/BbSwitchGroup.md +11 -4
  137. package/dist/ai/source/BbTable.md +114 -35
  138. package/dist/ai/source/BbTimePicker.md +19 -0
  139. package/dist/ai/source/BbTimePickerInput.md +21 -2
  140. package/dist/ai/source/BbToast.md +2 -2
  141. package/dist/ai/source/BbToastPortal.md +2 -2
  142. package/dist/ai/source/BbTree.md +1 -1
  143. package/dist/ai/source/ClearableButton.md +4 -2
  144. package/dist/ai/source/CommonPopover.md +24 -1
  145. package/dist/ai/source/ErrorIcon.md +4 -3
  146. package/dist/ai/source/FlatListBox.md +33 -7
  147. package/dist/ai/source/GroupedListBox.md +85 -14
  148. package/dist/ai/source/ListBox.md +11 -1
  149. package/dist/ai/source/OptionsContainer.md +29 -11
  150. package/dist/ai/source/WarningIcon.md +4 -3
  151. package/dist/assets/svgs/close.svg_raw.js +1 -1
  152. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  153. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  154. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  155. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
  156. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  157. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  158. package/dist/components/BbAvatar/types.d.ts +24 -5
  159. package/dist/components/BbAvatar/types.js +5 -1
  160. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  161. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
  162. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  164. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  165. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  166. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  167. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
  168. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  169. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  170. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  171. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  172. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  173. package/dist/components/BbColorInput/types.d.ts +7 -0
  174. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
  176. package/dist/components/BbColorPalette/types.d.ts +7 -0
  177. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  178. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  179. package/dist/components/BbDatePicker/types.d.ts +7 -0
  180. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
  181. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
  182. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  183. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  184. package/dist/components/BbDialog/leaveGhost.js +22 -17
  185. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
  186. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  187. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
  188. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
  189. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  190. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  191. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  192. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
  193. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  194. package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
  195. package/dist/components/BbDropdown/types.d.ts +109 -87
  196. package/dist/components/BbDropdown/types.js +3 -0
  197. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
  198. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
  199. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
  200. package/dist/components/BbDropdownButton/types.d.ts +23 -10
  201. package/dist/components/BbDropdownButton/types.js +4 -0
  202. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  203. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
  204. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  205. package/dist/components/BbIcon/iconCache.js +1 -1
  206. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  207. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  208. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  209. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  210. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  211. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  212. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  213. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  214. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  215. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  216. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  217. package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
  218. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
  219. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  220. package/dist/components/BbSelect/types.d.ts +110 -111
  221. package/dist/components/BbSelect/types.js +1 -27
  222. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
  223. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
  224. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  225. package/dist/components/BbSelectPopover/types.d.ts +32 -17
  226. package/dist/components/BbSelectPopover/types.js +3 -1
  227. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  228. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  229. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  230. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  231. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
  232. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  233. package/dist/components/BbTable/types.d.ts +11 -10
  234. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  235. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  236. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  237. package/dist/components/BbTimePicker/types.d.ts +7 -0
  238. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
  240. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  241. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
  242. package/dist/components/BbToast/types.d.ts +2 -2
  243. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  244. package/dist/components/BbTree/types.d.ts +1 -1
  245. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  246. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  247. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  248. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  249. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  250. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
  251. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
  252. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  253. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  254. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  255. package/dist/composables/useInternalIcon.js +25 -0
  256. package/dist/composables/useItemsGetter.js +34 -32
  257. package/dist/composables/useOpenModel.js +20 -0
  258. package/dist/deprecation/ai-deprecations.json.js +1 -1
  259. package/dist/i18n/locales/ar.json +2 -0
  260. package/dist/i18n/locales/cs.json +2 -0
  261. package/dist/i18n/locales/da.json +2 -0
  262. package/dist/i18n/locales/de-CH.json +2 -0
  263. package/dist/i18n/locales/de.json +2 -0
  264. package/dist/i18n/locales/el.json +2 -0
  265. package/dist/i18n/locales/en-GB.json +2 -0
  266. package/dist/i18n/locales/en.json +2 -0
  267. package/dist/i18n/locales/es-MX.json +2 -0
  268. package/dist/i18n/locales/es.json +2 -0
  269. package/dist/i18n/locales/fa.json +2 -0
  270. package/dist/i18n/locales/fi.json +2 -0
  271. package/dist/i18n/locales/fr.json +2 -0
  272. package/dist/i18n/locales/he.json +2 -0
  273. package/dist/i18n/locales/hu.json +2 -0
  274. package/dist/i18n/locales/it.json +2 -0
  275. package/dist/i18n/locales/ja.json +2 -0
  276. package/dist/i18n/locales/ko.json +2 -0
  277. package/dist/i18n/locales/nb.json +2 -0
  278. package/dist/i18n/locales/nl.json +2 -0
  279. package/dist/i18n/locales/pl.json +2 -0
  280. package/dist/i18n/locales/pt-BR.json +2 -0
  281. package/dist/i18n/locales/pt-PT.json +2 -0
  282. package/dist/i18n/locales/ro.json +2 -0
  283. package/dist/i18n/locales/ru.json +2 -0
  284. package/dist/i18n/locales/sv.json +2 -0
  285. package/dist/i18n/locales/tr.json +2 -0
  286. package/dist/i18n/locales/uk.json +2 -0
  287. package/dist/i18n/locales/zh-CN.json +2 -0
  288. package/dist/i18n/locales/zh-HK.json +2 -0
  289. package/dist/i18n/locales/zh-TW.json +2 -0
  290. package/dist/icon-scan.d.ts +1 -1
  291. package/dist/icon-scan.js +68 -61
  292. package/dist/index.d.ts +2 -2
  293. package/dist/llms-full.txt +1038 -451
  294. package/dist/llms-medium.txt +33 -28
  295. package/dist/llms.txt +2 -2
  296. package/dist/locale-blueprint.json +2 -0
  297. package/dist/nuxt.js +1 -1
  298. package/dist/styles.css +2 -2
  299. package/dist/types/ActionButton.d.ts +2 -3
  300. package/dist/types/Config.d.ts +8 -1
  301. package/dist/types/ConfigDefaults.d.ts +10 -2
  302. package/dist/types/Option.d.ts +10 -0
  303. package/dist/types/internalIcons.d.ts +89 -0
  304. package/dist/types/internalIcons.js +158 -0
  305. package/dist/types/ptComponentMap.d.ts +5 -5
  306. package/dist/utilities/functions/slotContent.js +19 -0
  307. package/dist/utils/configDefaults.js +75 -64
  308. package/dist/utils/iconsOption.js +48 -0
  309. package/dist/utils/loadRetry.js +8 -0
  310. package/dist/utils/versionCheck.js +1 -1
  311. package/dist/vite-plugin.d.ts +10 -16
  312. package/dist/vite.js +323 -307
  313. package/llms.txt +2 -2
  314. package/package.json +3 -1
  315. package/scripts/README.md +2 -0
  316. package/scripts/lib/adoption-checklist.json +1 -1
  317. package/scripts/lib/agent-setup.mjs +44 -26
  318. package/scripts/lib/update-install.mjs +48 -0
  319. package/scripts/lib/validate-bb-markup.mjs +93 -12
  320. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
  321. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -45,16 +45,23 @@
45
45
  :title="title"
46
46
  :title-id="titleId"
47
47
  >
48
- <p
49
- :id="titleId"
50
- class="bb-gallery__title"
51
- :class="{ 'bb-sr-only': !hasTitle }"
52
- v-bind="passthrough.title"
48
+ <!-- Read at each render, so a `#title` added later (or one that
49
+ renders nothing: the name stays screen-reader only) counts. -->
50
+ <SlotContent
51
+ v-slot="{ nodes: titleNodes }"
52
+ :of="slots.title"
53
+ :props="{ ...slotProps, text: title }"
53
54
  >
54
- <slot v-bind="slotProps" name="title" :text="title">{{
55
- name
56
- }}</slot>
57
- </p>
55
+ <p
56
+ :id="titleId"
57
+ class="bb-gallery__title"
58
+ :class="{ 'bb-sr-only': !title && !titleNodes }"
59
+ v-bind="passthrough.title"
60
+ >
61
+ <SlotNodes v-if="titleNodes" :nodes="titleNodes" />
62
+ <template v-else>{{ name }}</template>
63
+ </p>
64
+ </SlotContent>
58
65
  <CloseButton
59
66
  :aria-label="t('dialog.closeLabel').value"
60
67
  class="bb-gallery__close"
@@ -163,54 +170,64 @@
163
170
  <p aria-live="polite" class="bb-sr-only">{{ announcement }}</p>
164
171
  </div>
165
172
 
166
- <div
167
- v-if="$slots.footer || items.length > 1 || anyCaption"
168
- class="bb-gallery__footer"
169
- v-bind="passthrough.footer"
173
+ <!-- `#footer` rendered once here: one that renders nothing for this
174
+ photo (a `v-if` false) is no footer, and the counter stays. -->
175
+ <SlotContent
176
+ v-slot="{ nodes: footer }"
177
+ :of="slots.footer"
178
+ :props="slotProps"
170
179
  >
171
- <!-- One line, always the same height: the caption centred (equal
172
- side columns, so the counter's width never moves it), the
173
- counter at the end. With a `#footer` slot this row keeps
174
- the caption — there whenever any photo has one — and the
175
- slot owns the row below it. Read in full, the caption runs
176
- on upward from the same line, on the viewer's own plate. -->
177
- <div v-if="!$slots.footer || anyCaption" class="bb-gallery__bar">
178
- <p
179
- v-if="currentCaption"
180
- :id="captionId"
181
- class="bb-gallery__caption"
182
- :class="{ 'bb-gallery__caption--open': captionOpen }"
183
- :tabindex="captionOpen ? 0 : undefined"
184
- v-bind="passthrough.caption"
185
- >
186
- <span ref="captionEl" class="bb-gallery__caption-text">{{
187
- currentCaption
188
- }}</span>
189
- <button
190
- v-if="captionOverflows || captionOpen"
191
- :aria-controls="captionId"
192
- :aria-expanded="captionOpen"
193
- class="bb-gallery__more"
194
- type="button"
195
- v-bind="passthrough.more"
196
- @click="captionOpen = !captionOpen"
180
+ <div
181
+ v-if="footer || items.length > 1 || anyCaption"
182
+ class="bb-gallery__footer"
183
+ v-bind="passthrough.footer"
184
+ >
185
+ <!-- One line, always the same height: the caption centred (equal
186
+ side columns, so the counter's width never moves it), the
187
+ counter at the end. With a `#footer` slot this row keeps
188
+ the caption — there whenever any photo has one — and the
189
+ slot owns the row below it. Read in full, the caption runs
190
+ on upward from the same line, on the viewer's own plate. -->
191
+ <div v-if="!footer || anyCaption" class="bb-gallery__bar">
192
+ <p
193
+ v-if="currentCaption"
194
+ :id="captionId"
195
+ class="bb-gallery__caption"
196
+ :class="{ 'bb-gallery__caption--open': captionOpen }"
197
+ :tabindex="captionOpen ? 0 : undefined"
198
+ v-bind="passthrough.caption"
197
199
  >
198
- {{
199
- captionOpen ? t('gallery.less').value : t('gallery.more').value
200
- }}
201
- </button>
202
- </p>
203
- <p
204
- v-if="!$slots.footer && items.length > 1"
205
- aria-hidden="true"
206
- class="bb-gallery__counter"
207
- v-bind="passthrough.counter"
208
- >
209
- {{ index + 1 }} / {{ items.length }}
210
- </p>
200
+ <span ref="captionEl" class="bb-gallery__caption-text">{{
201
+ currentCaption
202
+ }}</span>
203
+ <button
204
+ v-if="captionOverflows || captionOpen"
205
+ :aria-controls="captionId"
206
+ :aria-expanded="captionOpen"
207
+ class="bb-gallery__more"
208
+ type="button"
209
+ v-bind="passthrough.more"
210
+ @click="captionOpen = !captionOpen"
211
+ >
212
+ {{
213
+ captionOpen
214
+ ? t('gallery.less').value
215
+ : t('gallery.more').value
216
+ }}
217
+ </button>
218
+ </p>
219
+ <p
220
+ v-if="!footer && items.length > 1"
221
+ aria-hidden="true"
222
+ class="bb-gallery__counter"
223
+ v-bind="passthrough.counter"
224
+ >
225
+ {{ index + 1 }} / {{ items.length }}
226
+ </p>
227
+ </div>
228
+ <SlotNodes v-if="footer" :nodes="footer" />
211
229
  </div>
212
- <slot v-if="$slots.footer" v-bind="slotProps" name="footer" />
213
- </div>
230
+ </SlotContent>
214
231
  </template>
215
232
  </dialog>
216
233
  </template>
@@ -230,8 +247,8 @@ import {
230
247
  } from 'vue';
231
248
  import BbIcon from '../BbIcon/BbIcon.vue';
232
249
  import CloseButton from '../CloseIcon/CloseButton.vue';
233
- import chevronLeft from '@/assets/svgs/chevron_left.svg?raw';
234
- import chevronRight from '@/assets/svgs/chevron_right.svg?raw';
250
+ import chevronLeftBuiltin from '@/assets/svgs/chevron_left.svg?raw';
251
+ import chevronRightBuiltin from '@/assets/svgs/chevron_right.svg?raw';
235
252
  import {
236
253
  returnFocusToOpener,
237
254
  rootElementOf,
@@ -249,6 +266,7 @@ import {
249
266
  } from '@/directives/bbGallery';
250
267
  import { animationsSettled } from '@/utilities/functions/animationsSettled';
251
268
  import { wait } from '@/utilities/functions/wait';
269
+ import { SlotContent, SlotNodes } from '@/utilities/functions/slotContent';
252
270
  import { pageText } from '@/utilities/misc/pageText';
253
271
  import { transitions } from '@/utilities/misc/transitions';
254
272
  import {
@@ -265,6 +283,7 @@ import {
265
283
  type BbGallerySlotProps,
266
284
  type BbGallerySlots,
267
285
  } from './types';
286
+ import { useInternalIcon } from '@/composables/useInternalIcon';
268
287
  export type {
269
288
  BbGalleryEvents,
270
289
  BbGalleryHeaderSlotProps,
@@ -274,9 +293,7 @@ export type {
274
293
  BbGallerySlots,
275
294
  BbGalleryTitleSlotProps,
276
295
  } from './types';
277
-
278
296
  defineOptions({ inheritAttrs: false });
279
-
280
297
  /**
281
298
  * The photo in the viewer, `null` while it is closed. Bind it to open the
282
299
  * viewer yourself; `v-bb-gallery` opens it without one.
@@ -284,9 +301,11 @@ defineOptions({ inheritAttrs: false });
284
301
  * @defaultValue `null`
285
302
  */
286
303
  const model = defineModel<number | null>({ default: null });
287
-
288
304
  const props = defineProps<BbGalleryProps<T>>();
289
305
  defineSlots<BbGallerySlots<T>>();
306
+ const chevronRight = useInternalIcon('next', chevronRightBuiltin);
307
+ const chevronLeft = useInternalIcon('prev', chevronLeftBuiltin);
308
+
290
309
  const slots = useSlots();
291
310
 
292
311
  const { t } = useLocale();
@@ -307,7 +326,6 @@ const index = computed(() =>
307
326
  const looping = computed(() => !!props.loop && count.value > 1);
308
327
  const atStart = computed(() => !looping.value && index.value === 0);
309
328
  const atEnd = computed(() => !looping.value && index.value === count.value - 1);
310
- const hasTitle = computed(() => !!props.title || !!slots.title);
311
329
  const name = computed(() => props.title || t('gallery.label').value);
312
330
  const position = (i: number) => t('gallery.position', i + 1, count.value).value;
313
331
 
@@ -593,6 +611,10 @@ const onScroll = () => {
593
611
  frame = requestAnimationFrame(() => {
594
612
  frame = 0;
595
613
  if (!track.value || !isOpen.value || !width() || !shown) return;
614
+ // A width the resize observer has not seen yet is a relayout, not a
615
+ // swipe: WebKit re-snaps the track by pixels before the observer puts
616
+ // it back on the photo shown, which would land on a neighbour.
617
+ if (resize && width() !== lastWidth) return;
596
618
  const p = nearest();
597
619
  if (target !== null) {
598
620
  if (p === target) target = null;
@@ -65,6 +65,18 @@ import BbToast from '../BbToast/BbToast.vue';
65
65
  defineOptions({ name: 'BbHost' });
66
66
 
67
67
  const instance = getCurrentInstance()!;
68
+ // The plugin's host is a render root of its own, and Vue's `useId()` counts
69
+ // per root: its children would restart at the page's `v-0`. A per-host
70
+ // prefix with a letter in it can't meet the page's ids (digits and dashes
71
+ // after the app's `idPrefix`); its children inherit it. The uid is safe: the
72
+ // plugin's host is never server-rendered nor hydrated.
73
+ // `ids` is a Vue internal, pinned in BbHost.onDemand.test.ts ('Vue internals').
74
+ if (isAutoHost(instance))
75
+ (instance as unknown as { ids: [string, number, number] }).ids = [
76
+ `h${instance.uid}-`,
77
+ 0,
78
+ 0,
79
+ ];
68
80
  const state = hostStateOf(instance.appContext);
69
81
  const mountedHere = shallowRef(false);
70
82
  const owns = computed(
@@ -943,29 +943,36 @@ const normalizeNumericValue = (value: number, withMin = true): number => {
943
943
  };
944
944
 
945
945
  /**
946
- * On blur and on Enter, raises a value typed below `min` to `min`, in the
947
- * field and in the model. Never while typing: the live clamp ignores `min`, or
948
- * "15" with min 10 could not be typed through its "1".
946
+ * On blur and on Enter, raises a value below `min` to `min`, in the field and
947
+ * in the model. Never while typing: the live clamp ignores `min`, or "15"
948
+ * with min 10 could not be typed through its "1". A value above `max` (the
949
+ * app set it: typing clamps at once) comes down to `max` the same way, so a
950
+ * user who focused and left the field holds a coherent value; a value the
951
+ * app sets is never moved while nobody touches the field.
949
952
  */
950
953
  const applyMin = () => {
951
954
  // A locked field never moves its value, not even up to `min`.
952
955
  if (locked.value) return;
956
+ const bounded = (value: number) =>
957
+ value < props.min ? props.min : value > props.max ? props.max : value;
953
958
  if (!legacy.value) {
954
959
  // Enter re-reads an outside text first, as blur does (PANEL § 2.7).
955
960
  reconcile();
956
961
  const typed = valueOfRaw(edit.raw);
957
- if (typeof typed !== 'number' || typed >= props.min) return;
958
- setRaw(rawOfNumber(props.min, maxPrecision.value));
959
- committed.value = props.min;
962
+ if (typeof typed !== 'number' || bounded(typed) === typed) return;
963
+ const next = bounded(typed);
964
+ setRaw(rawOfNumber(next, maxPrecision.value));
965
+ committed.value = next;
960
966
  paint(isFocused() ? edit.raw.length : undefined);
961
- emit('update:modelValue', props.min);
967
+ emit('update:modelValue', next);
962
968
  return;
963
969
  }
964
970
  if (!input.value?.value) return;
965
971
  const typed = Number(makeValidNumberString(input.value.value));
966
- if (!Number.isFinite(typed) || typed >= props.min) return;
967
- input.value.value = props.min.toString();
968
- emit('update:modelValue', props.min);
972
+ if (!Number.isFinite(typed) || bounded(typed) === typed) return;
973
+ const next = bounded(typed);
974
+ input.value.value = next.toString();
975
+ emit('update:modelValue', next);
969
976
  };
970
977
 
971
978
  /**
@@ -1799,7 +1799,20 @@ onBeforeUnmount(() => {
1799
1799
  // document (a modal <dialog> loses its top-layer state, a flyout its anchor)
1800
1800
  // and its document listeners would otherwise keep firing for a cached, unseen
1801
1801
  // node. Reactivating shows it closed; the consumer reopens it as usual.
1802
- onDeactivated(() => closeWith('unmounted'));
1802
+ // its close still plays, on a copy, as for an unmount:
1803
+ // the hook runs once KeepAlive has moved it out, so the copy is of the
1804
+ // detached node (leaveGhost.ts).
1805
+ onDeactivated(() => {
1806
+ if (isVisible.value)
1807
+ leaveAsGhost(dialog.value, {
1808
+ id: stackId,
1809
+ openClass: 'bb-offcanvas--open',
1810
+ duration: props.transitionDuration,
1811
+ closingSince,
1812
+ opener,
1813
+ });
1814
+ closeWith('unmounted');
1815
+ });
1803
1816
  </script>
1804
1817
 
1805
1818
  <style lang="postcss">
@@ -25,7 +25,7 @@
25
25
  }}</span>
26
26
  <BbIcon
27
27
  class="bb-pagination__icon"
28
- :icon="caretDownSvg"
28
+ :icon="prevIcon"
29
29
  size="16"
30
30
  v-bind="passthrough.icon"
31
31
  />
@@ -68,7 +68,7 @@
68
68
  }}</span>
69
69
  <BbIcon
70
70
  class="bb-pagination__icon"
71
- :icon="caretDownSvg"
71
+ :icon="nextIcon"
72
72
  size="16"
73
73
  v-bind="passthrough.icon"
74
74
  />
@@ -82,7 +82,9 @@
82
82
 
83
83
  <script setup lang="ts">
84
84
  import BbIcon from '../BbIcon/BbIcon.vue';
85
- import caretDownSvg from '@/assets/svgs/caret_down.svg?raw';
85
+ import chevronLeftSvg from '@/assets/svgs/chevron_left.svg?raw';
86
+ import chevronRightSvg from '@/assets/svgs/chevron_right.svg?raw';
87
+ import { useInternalIcon } from '@/composables/useInternalIcon';
86
88
  import type { FallthroughAttrs } from '@/types/fallthrough';
87
89
  import BbBaseButton from '@/components/BbBaseButton/BbBaseButton.vue';
88
90
  import {
@@ -118,8 +120,6 @@ import {
118
120
  } from './types';
119
121
  import { usePassthrough } from '@/composables/usePassthrough';
120
122
  import { computeNextMaxSize } from './paginationFit';
121
- export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
122
-
123
123
  defineOptions({ inheritAttrs: false });
124
124
  /**
125
125
  * Used by v-model. The 1-based index of the current page — pagination starts
@@ -128,7 +128,6 @@ defineOptions({ inheritAttrs: false });
128
128
  * @defaultValue `1`
129
129
  */
130
130
  const model = defineModel<number>({ default: 1 });
131
-
132
131
  const props = withDefaults(
133
132
  defineProps<
134
133
  BbPaginationProps &
@@ -141,8 +140,10 @@ const props = withDefaults(
141
140
  queryKey: 'page',
142
141
  }
143
142
  );
144
-
145
143
  defineSlots<BbPaginationSlots>();
144
+ const prevIcon = useInternalIcon('prev', chevronLeftSvg);
145
+ const nextIcon = useInternalIcon('next', chevronRightSvg);
146
+ export type { BbPaginationProps, BbPaginationEvents, BbPaginationSlots };
146
147
 
147
148
  /**
148
149
  * Passthrough. `item` is resolved per control, merged LAST onto each control's own attributes (its click handler included — T17).
@@ -997,27 +998,10 @@ export type BbPaginationSlots = {
997
998
  padding: 0;
998
999
  }
999
1000
 
1000
- /* The caret points along the reading order: previous toward the
1001
- inline start, next toward the inline end, so both turn the
1002
- other way right to left. */
1003
- &.bb-pagination__page--previous {
1004
- .bb-pagination__icon {
1005
- rotate: 90deg;
1006
-
1007
- &:dir(rtl) {
1008
- rotate: -90deg;
1009
- }
1010
- }
1011
- }
1012
-
1013
- &.bb-pagination__page--next {
1014
- .bb-pagination__icon {
1015
- rotate: -90deg;
1016
-
1017
- &:dir(rtl) {
1018
- rotate: 90deg;
1019
- }
1020
- }
1001
+ /* Previous points toward the inline start, next toward the
1002
+ inline end: both chevrons mirror right to left. */
1003
+ .bb-pagination__icon:dir(rtl) {
1004
+ scale: -1 1;
1021
1005
  }
1022
1006
 
1023
1007
  svg {
@@ -76,6 +76,7 @@
76
76
  :role="hasLegend() ? 'radiogroup' : undefined"
77
77
  :variant="variant"
78
78
  @mousedown.capture="clicks.onPress"
79
+ @retry="runRetry($event, retryLoad, () => optionsElement)"
79
80
  >
80
81
  <template #prepend>
81
82
  <!-- The `variant` indicators: first in the list, so the
@@ -164,6 +165,7 @@ import type { FallthroughAttrs } from '@/types/fallthrough';
164
165
  import { vAutofocus } from '@/utilities/misc/autofocus';
165
166
  import CommonField from '../CommonField/CommonField.vue';
166
167
  import OptionsContainer from '../OptionsContainer/OptionsContainer.vue';
168
+ import { runRetry } from '@/utils/loadRetry';
167
169
  import BbBaseRadioIcon from '../BbBaseRadioIcon/BbBaseRadioIcon.vue';
168
170
  import {
169
171
  aliasParts,
@@ -370,6 +372,7 @@ const {
370
372
  items: internalItems,
371
373
  loading,
372
374
  error: itemsError,
375
+ retry,
373
376
  ssrMarker,
374
377
  } = useItemsGetter({ items, marker: true });
375
378
 
@@ -379,6 +382,11 @@ const alignToCoherenceSettings = () => {
379
382
  }
380
383
  };
381
384
 
385
+ /** The failure row's "Try again": the failed load again, then coherence on rows it applied. */
386
+ const retryLoad = async () => {
387
+ if ((await retry()) === 'applied') alignToCoherenceSettings();
388
+ };
389
+
382
390
  const { hasPrefilled, whenPrefilled } = usePrefill({
383
391
  alreadyLoaded: hydratedFromSsr,
384
392
  clientReproducible,
@@ -879,7 +887,7 @@ export type BbRadioGroupProps<T> = BbRadioGroupPtProps & {
879
887
  * The options: an array, or a provider called with a
880
888
  * `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or
881
889
  * async. A provider fails by THROWING, never by returning `[]`: the rows
882
- * clear and `#empty` gets the `error`.
890
+ * clear and the failure row shows `failed-text` with "Try again".
883
891
  */
884
892
  items: T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>);
885
893
 
@@ -1176,11 +1184,10 @@ export type BbRadioGroupSlots<T> = {
1176
1184
  loading?: (props: object) => any;
1177
1185
  /**
1178
1186
  * Content shown when no options are available (replaces the default "no
1179
- * data" text). `error` is what the latest failed load rejected with,
1180
- * untouched, and `null` when nothing failed — a failed load clears the
1181
- * rows, so this slot is where it shows.
1187
+ * data" text). Empty only: a failed load shows the library's failure row
1188
+ * instead (its message is `failed-text`, and it ends with "Try again").
1182
1189
  */
1183
- empty?: (props: { error: unknown }) => any;
1190
+ empty?: (props: object) => any;
1184
1191
  /**
1185
1192
  * Replaces the default radio dot icon for each option. Receives the radio
1186
1193
  * state plus the source item and its display text.
@@ -138,7 +138,7 @@ import type { FallthroughAttrs } from '@/types/fallthrough';
138
138
  import { vAutofocus } from '@/utilities/misc/autofocus';
139
139
  import BbIcon from '../BbIcon/BbIcon.vue';
140
140
  import CommonField from '../CommonField/CommonField.vue';
141
- import starSvg from '@/assets/svgs/star.svg?raw';
141
+ import starSvgBuiltin from '@/assets/svgs/star.svg?raw';
142
142
  import {
143
143
  aliasParts,
144
144
  formControlPtActive,
@@ -166,8 +166,7 @@ import {
166
166
  type BbRatingEvents,
167
167
  type BbRatingSlots,
168
168
  } from './types';
169
- export type { BbRatingProps, BbRatingEvents, BbRatingSlots };
170
-
169
+ import { useInternalIcon } from '@/composables/useInternalIcon';
171
170
  defineOptions({ inheritAttrs: false });
172
171
  const declaredProps = withDefaults(
173
172
  defineProps<
@@ -185,8 +184,9 @@ const declaredProps = withDefaults(
185
184
  }
186
185
  );
187
186
  const declaredEmit = defineEmits<BbRatingEvents>();
188
-
189
187
  const slots = defineSlots<BbRatingSlots>();
188
+ const starSvg = useInternalIcon('star', starSvgBuiltin);
189
+ export type { BbRatingProps, BbRatingEvents, BbRatingSlots };
190
190
 
191
191
  const configDefaults = useConfigDefaults('BbRating', declaredProps, {
192
192
  inputPosition: 'start',