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

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 (363) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +9 -3
  3. package/dist/ai/BbAccordion.md +38 -19
  4. package/dist/ai/BbBadge.md +25 -22
  5. package/dist/ai/BbBreadcrumbs.md +1 -1
  6. package/dist/ai/BbButton.md +32 -27
  7. package/dist/ai/BbCalendar.md +1 -0
  8. package/dist/ai/BbCarousel.md +6 -4
  9. package/dist/ai/BbCheckboxGroup.md +2 -1
  10. package/dist/ai/BbColorInput.md +1 -1
  11. package/dist/ai/BbConfirm.md +65 -81
  12. package/dist/ai/BbConfirmPortal.md +2 -2
  13. package/dist/ai/BbDatePicker.md +1 -6
  14. package/dist/ai/BbDatePickerInput.md +2 -2
  15. package/dist/ai/BbDialog.md +233 -164
  16. package/dist/ai/BbDropdown.md +52 -16
  17. package/dist/ai/BbDropdownButton.md +11 -12
  18. package/dist/ai/BbDropzone.md +12 -8
  19. package/dist/ai/BbForm.md +100 -13
  20. package/dist/ai/BbHost.md +2 -2
  21. package/dist/ai/BbHoverCardPortal.md +1 -1
  22. package/dist/ai/BbIcon.md +1 -1
  23. package/dist/ai/BbIndicator.md +17 -15
  24. package/dist/ai/BbNumberInput.md +7 -5
  25. package/dist/ai/BbOffCanvas.md +29 -7
  26. package/dist/ai/BbPagination.md +2 -2
  27. package/dist/ai/BbPopover.md +15 -9
  28. package/dist/ai/BbPopoverPortal.md +1 -1
  29. package/dist/ai/BbRadioGroup.md +29 -7
  30. package/dist/ai/BbRating.md +8 -7
  31. package/dist/ai/BbSelect.md +29 -8
  32. package/dist/ai/BbSelectPopover.md +9 -3
  33. package/dist/ai/BbSlider.md +12 -8
  34. package/dist/ai/BbSpinner.md +3 -2
  35. package/dist/ai/BbSwitch.md +3 -3
  36. package/dist/ai/BbSwitchGroup.md +7 -6
  37. package/dist/ai/BbTable.md +205 -82
  38. package/dist/ai/BbTabs.md +29 -4
  39. package/dist/ai/BbTag.md +1 -1
  40. package/dist/ai/BbTextInput.md +7 -5
  41. package/dist/ai/BbTextarea.md +4 -3
  42. package/dist/ai/BbTimePickerInput.md +1 -1
  43. package/dist/ai/BbToast.md +3 -2
  44. package/dist/ai/BbTooltip.md +22 -17
  45. package/dist/ai/BbTree.md +49 -24
  46. package/dist/ai/CommonFieldInput.md +1 -1
  47. package/dist/ai/changelog.json +242 -9
  48. package/dist/ai/components.json +52 -51
  49. package/dist/ai/composables/useBbDialog.md +5 -8
  50. package/dist/ai/composables/useBbForm.md +3 -0
  51. package/dist/ai/composables/useConfirm.md +65 -56
  52. package/dist/ai/composables/useToast.md +2 -1
  53. package/dist/ai/guides/agent-contract.md +3 -3
  54. package/dist/ai/guides/app-layout.md +3 -2
  55. package/dist/ai/guides/eslint-rules.md +3 -1
  56. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  57. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  58. package/dist/ai/guides/icons-policy.md +7 -5
  59. package/dist/ai/guides/inertia-helpers.md +35 -30
  60. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  61. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  62. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  63. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  64. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  65. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  67. package/dist/ai/guides/migration/components/use-confirm.md +72 -26
  68. package/dist/ai/guides/migration/v2-to-v3.md +52 -10
  69. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  70. package/dist/ai/guides/options-items-playbook.md +4 -3
  71. package/dist/ai/guides/passthrough.md +2 -2
  72. package/dist/ai/helpers/inertia/manifest.json +28 -15
  73. package/dist/ai/helpers/inertia/messages.ts +3 -3
  74. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  75. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  76. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  77. package/dist/ai/index.md +3 -3
  78. package/dist/ai/manifest/common.json +3 -3
  79. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  80. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  81. package/dist/ai/manifest/components/BbBadge.json +8 -7
  82. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  83. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  84. package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
  85. package/dist/ai/manifest/components/BbButton.json +5 -6
  86. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  87. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  88. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  89. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  90. package/dist/ai/manifest/components/BbColorInput.json +1 -1
  91. package/dist/ai/manifest/components/BbColorInput.tree.json +1 -1
  92. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  93. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  94. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  95. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  96. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  97. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  98. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  99. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  100. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +1 -1
  101. package/dist/ai/manifest/components/BbDialog.json +6 -1
  102. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  103. package/dist/ai/manifest/components/BbDropdown.json +9 -8
  104. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  105. package/dist/ai/manifest/components/BbDropdownButton.json +8 -9
  106. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  107. package/dist/ai/manifest/components/BbForm.json +3 -1
  108. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  109. package/dist/ai/manifest/components/BbNumberInput.tree.json +1 -1
  110. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  111. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  112. package/dist/ai/manifest/components/BbPagination.json +1 -1
  113. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  114. package/dist/ai/manifest/components/BbRating.json +2 -2
  115. package/dist/ai/manifest/components/BbSelect.json +16 -15
  116. package/dist/ai/manifest/components/BbSelect.tree.json +1 -1
  117. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  118. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  119. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  120. package/dist/ai/manifest/components/BbTable.json +15 -14
  121. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  122. package/dist/ai/manifest/components/BbTabs.json +3 -3
  123. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  124. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  125. package/dist/ai/manifest/components/BbTag.json +1 -1
  126. package/dist/ai/manifest/components/BbTag.tree.json +1 -1
  127. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  128. package/dist/ai/manifest/components/BbTextInput.tree.json +1 -1
  129. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  130. package/dist/ai/manifest/components/BbTextarea.tree.json +1 -1
  131. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  132. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  133. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  135. package/dist/ai/manifest/components/BbTree.json +2 -2
  136. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  137. package/dist/ai/manifest/index.json +4 -4
  138. package/dist/ai/manifest/meta.json +5 -1
  139. package/dist/ai/manifest/types.advanced.json +9 -9
  140. package/dist/ai/manifest/types.api.json +6 -5
  141. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  142. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  143. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  144. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  145. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  146. package/dist/ai/recipes/inertia/record-form.md +12 -8
  147. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  148. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  149. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  150. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  151. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  152. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  153. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  154. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  155. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  156. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  157. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  158. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  159. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  160. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  161. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/vue/onboarding.md +5 -4
  165. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/vue/record-form.md +14 -10
  167. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  168. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  169. package/dist/ai/recipes/vue/upload-center.md +17 -9
  170. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  171. package/dist/ai/source/BbAccordion.md +50 -16
  172. package/dist/ai/source/BbBadge.md +420 -26
  173. package/dist/ai/source/BbBadgeButton.md +378 -12
  174. package/dist/ai/source/BbButton.md +205 -55
  175. package/dist/ai/source/BbCalendar.md +5 -0
  176. package/dist/ai/source/BbCheckboxGroup.md +38 -13
  177. package/dist/ai/source/BbConfigScope.md +19 -2
  178. package/dist/ai/source/BbConfirm.md +74 -80
  179. package/dist/ai/source/BbConfirmPortal.md +6 -6
  180. package/dist/ai/source/BbDatePicker.md +9 -2
  181. package/dist/ai/source/BbDatePickerInput.md +3 -1
  182. package/dist/ai/source/BbDialog.md +53 -2
  183. package/dist/ai/source/BbDropdown.md +350 -98
  184. package/dist/ai/source/BbDropdownButton.md +20 -12
  185. package/dist/ai/source/BbDropdownGroup.md +136 -58
  186. package/dist/ai/source/BbForm.md +152 -11
  187. package/dist/ai/source/BbOffCanvas.md +53 -2
  188. package/dist/ai/source/BbPagination.md +1 -1
  189. package/dist/ai/source/BbRadioGroup.md +72 -10
  190. package/dist/ai/source/BbRating.md +30 -22
  191. package/dist/ai/source/BbSelect.md +11 -1
  192. package/dist/ai/source/BbSelectPopover.md +105 -34
  193. package/dist/ai/source/BbSwitch.md +23 -8
  194. package/dist/ai/source/BbSwitchGroup.md +67 -21
  195. package/dist/ai/source/BbTable.md +359 -48
  196. package/dist/ai/source/BbTabs.md +6 -0
  197. package/dist/ai/source/BbTabsList.md +10 -0
  198. package/dist/ai/source/BbTabsPanels.md +6 -0
  199. package/dist/ai/source/BbTabsRoot.md +6 -0
  200. package/dist/ai/source/BbTree.md +14 -4
  201. package/dist/ai/source/CommonFieldInput.md +2 -1
  202. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  203. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  204. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  205. package/dist/components/BbAccordion/types.d.ts +21 -7
  206. package/dist/components/BbAccordion/types.js +1 -1
  207. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  208. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  209. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  210. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  211. package/dist/components/BbBadge/types.d.ts +15 -12
  212. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  213. package/dist/components/BbButton/types.d.ts +7 -6
  214. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  215. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  216. package/dist/components/BbCalendar/types.d.ts +5 -0
  217. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  218. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  219. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  220. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/dist/components/BbCheckboxGroup/types.d.ts +2 -2
  222. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  223. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  224. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  225. package/dist/components/BbConfirm/types.d.ts +5 -5
  226. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  227. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  228. package/dist/components/BbDatePicker/types.d.ts +5 -0
  229. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  230. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  231. package/dist/components/BbDatePickerInput/types.d.ts +2 -1
  232. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  233. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  234. package/dist/components/BbDialog/overlayActions.js +94 -0
  235. package/dist/components/BbDialog/types.d.ts +24 -0
  236. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  237. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +382 -332
  238. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  239. package/dist/components/BbDropdown/normalizeGroups.js +58 -48
  240. package/dist/components/BbDropdown/types.d.ts +107 -48
  241. package/dist/components/BbDropdown/types.js +2 -2
  242. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +71 -71
  243. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  244. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  245. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +241 -199
  246. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  247. package/dist/components/BbForm/recognizeValidation.js +55 -0
  248. package/dist/components/BbForm/validationError.d.ts +10 -0
  249. package/dist/components/BbForm/validationError.js +11 -0
  250. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  251. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  252. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  253. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  254. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  255. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  256. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  257. package/dist/components/BbRadioGroup/types.d.ts +9 -3
  258. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +112 -103
  259. package/dist/components/BbRating/types.d.ts +3 -2
  260. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -8
  261. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  262. package/dist/components/BbSelect/types.d.ts +8 -0
  263. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  264. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  265. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  266. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  267. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  268. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  269. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  270. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  271. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  272. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  273. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  274. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  275. package/dist/components/BbTable/types.d.ts +32 -17
  276. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  277. package/dist/components/BbTabs/types.d.ts +6 -0
  278. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  279. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  280. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  281. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  282. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  284. package/dist/components/BbTree/types.d.ts +8 -2
  285. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  286. package/dist/composables/formSubmitLock.js +15 -8
  287. package/dist/composables/overlayRegistry.d.ts +5 -0
  288. package/dist/composables/overlayRegistry.js +154 -148
  289. package/dist/composables/useBbDropdown.d.ts +8 -0
  290. package/dist/composables/useBbDropdown.js +3 -1
  291. package/dist/composables/useBbTabs.js +138 -138
  292. package/dist/composables/useConfirm.d.ts +63 -52
  293. package/dist/composables/useConfirm.js +22 -18
  294. package/dist/deprecation/ai-deprecations.json.js +1 -1
  295. package/dist/directives/bbDropdown.d.ts +7 -7
  296. package/dist/directives/bbDropdown.js +21 -14
  297. package/dist/directives/bbTooltip.d.ts +3 -3
  298. package/dist/directives/createPopoverDirective.js +57 -35
  299. package/dist/i18n/locales/ar.json +5 -1
  300. package/dist/i18n/locales/cs.json +5 -1
  301. package/dist/i18n/locales/da.json +5 -1
  302. package/dist/i18n/locales/de-CH.json +5 -1
  303. package/dist/i18n/locales/de.json +5 -1
  304. package/dist/i18n/locales/el.json +5 -1
  305. package/dist/i18n/locales/en-GB.json +5 -1
  306. package/dist/i18n/locales/en.json +5 -1
  307. package/dist/i18n/locales/es-MX.json +5 -1
  308. package/dist/i18n/locales/es.json +5 -1
  309. package/dist/i18n/locales/fa.json +5 -1
  310. package/dist/i18n/locales/fi.json +5 -1
  311. package/dist/i18n/locales/fr.json +5 -1
  312. package/dist/i18n/locales/he.json +5 -1
  313. package/dist/i18n/locales/hu.json +5 -1
  314. package/dist/i18n/locales/it.json +5 -1
  315. package/dist/i18n/locales/ja.json +5 -1
  316. package/dist/i18n/locales/ko.json +5 -1
  317. package/dist/i18n/locales/nb.json +5 -1
  318. package/dist/i18n/locales/nl.json +5 -1
  319. package/dist/i18n/locales/pl.json +5 -1
  320. package/dist/i18n/locales/pt-BR.json +5 -1
  321. package/dist/i18n/locales/pt-PT.json +5 -1
  322. package/dist/i18n/locales/ro.json +5 -1
  323. package/dist/i18n/locales/ru.json +5 -1
  324. package/dist/i18n/locales/sv.json +5 -1
  325. package/dist/i18n/locales/tr.json +5 -1
  326. package/dist/i18n/locales/uk.json +5 -1
  327. package/dist/i18n/locales/zh-CN.json +5 -1
  328. package/dist/i18n/locales/zh-HK.json +5 -1
  329. package/dist/i18n/locales/zh-TW.json +5 -1
  330. package/dist/index.d.ts +2 -0
  331. package/dist/index.js +4 -3
  332. package/dist/llms-full.txt +1997 -1151
  333. package/dist/llms-medium.txt +21 -18
  334. package/dist/llms.txt +2 -2
  335. package/dist/locale-blueprint.json +5 -1
  336. package/dist/plugin.js +17 -40
  337. package/dist/pluginCore.js +30 -0
  338. package/dist/styles.css +2 -2
  339. package/dist/types/ActionButton.d.ts +26 -5
  340. package/dist/types/ActionButton.js +11 -0
  341. package/dist/types/ConfigDefaults.d.ts +34 -3
  342. package/dist/types/ConfigDefaults.js +14 -8
  343. package/dist/types/ItemPath.d.ts +33 -4
  344. package/dist/types/ptComponentMap.d.ts +1 -1
  345. package/dist/utilities/functions/clickCount.js +14 -0
  346. package/dist/utilities/functions/hash.js +90 -3
  347. package/dist/utilities/functions/isEqual.js +61 -3
  348. package/dist/utils/versionCheck.js +1 -1
  349. package/dist/vite.js +0 -1
  350. package/llms.txt +2 -2
  351. package/package.json +12 -2
  352. package/scripts/README.md +43 -39
  353. package/scripts/lib/adoption-checklist.json +2 -2
  354. package/scripts/lib/eslint-disable.mjs +5 -3
  355. package/scripts/lib/eslint-plugin.d.ts +2 -0
  356. package/scripts/lib/eslint-plugin.mjs +213 -1
  357. package/scripts/lib/helpers-add.mjs +21 -2
  358. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  359. package/scripts/lib/release-results.mjs +180 -5
  360. package/scripts/lib/renamed-item-field.mjs +4 -1
  361. package/scripts/lib/tab-links.mjs +4 -1
  362. package/scripts/lib/tree-default-expandable.mjs +53 -0
  363. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -558,8 +558,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
558
558
  variant: 'destructive',
559
559
  title: 'Leave campaign setup?',
560
560
  text: 'You have unsaved changes. Leave and lose them, or stay and save the draft.',
561
- yes: 'Leave',
562
- no: 'Keep editing',
561
+ ok: 'Leave',
562
+ cancel: 'Keep editing',
563
563
  });
564
564
  });
565
565
 
@@ -652,8 +652,8 @@ export function provideCampaignWizard(): CampaignWizardContext {
652
652
  variant: 'destructive',
653
653
  title: 'Discard draft',
654
654
  text: `Delete "${campaign.value?.name ?? 'this campaign'}" and everything entered so far? This cannot be undone.`,
655
- yes: 'Discard',
656
- no: 'Keep draft',
655
+ ok: 'Discard',
656
+ cancel: 'Keep draft',
657
657
  });
658
658
  if (!ok) return;
659
659
  snapshot.value = JSON.stringify(draft); // don't double-prompt via the leave guard
@@ -480,8 +480,8 @@ export function provideApprovalsInbox(): ApprovalsInboxContext {
480
480
  variant: 'destructive',
481
481
  title: 'Reject expenses',
482
482
  text: `Reject ${count} expenses? The submitters are notified.`,
483
- yes: 'Reject',
484
- no: 'Cancel',
483
+ ok: 'Reject',
484
+ cancel: 'Cancel',
485
485
  });
486
486
  if (!ok) return;
487
487
  await api.expenses.rejectMany(bulkSelection(), reason);
@@ -913,10 +913,11 @@ const submitterLabel = computed(
913
913
  <template #activator="{ props }">
914
914
  <BbButton
915
915
  v-bind="props"
916
- aria-label="Approve highlighted expense"
917
916
  :disabled="!ctx.highlightedExpense.value"
918
- icon="lucide:check"
917
+ icon-only
918
+ prepend:icon="lucide:check"
919
919
  size="xs"
920
+ text="Approve highlighted expense"
920
921
  variant="ghost"
921
922
  @click="ctx.approveHighlighted"
922
923
  />
@@ -933,10 +934,11 @@ const submitterLabel = computed(
933
934
  <template #activator="{ props }">
934
935
  <BbButton
935
936
  v-bind="props"
936
- aria-label="Reject highlighted expense"
937
937
  :disabled="!ctx.highlightedExpense.value"
938
- icon="lucide:x"
938
+ icon-only
939
+ prepend:icon="lucide:x"
939
940
  size="xs"
941
+ text="Reject highlighted expense"
940
942
  variant="ghost"
941
943
  @click="ctx.rejectHighlighted"
942
944
  />
@@ -953,10 +955,11 @@ const submitterLabel = computed(
953
955
  <template #activator="{ props }">
954
956
  <BbButton
955
957
  v-bind="props"
956
- aria-label="Snooze highlighted expense"
957
958
  :disabled="!ctx.highlightedExpense.value"
958
- icon="lucide:clock"
959
+ icon-only
960
+ prepend:icon="lucide:clock"
959
961
  size="xs"
962
+ text="Snooze highlighted expense"
960
963
  variant="ghost"
961
964
  @click="ctx.snoozeHighlighted"
962
965
  />
@@ -1018,10 +1021,11 @@ defineProps<{ expense: Expense }>();
1018
1021
  <template #activator="{ props }">
1019
1022
  <BbButton
1020
1023
  v-bind="props"
1021
- aria-label="Approve"
1022
1024
  :disabled="resolved"
1023
- icon="lucide:check"
1025
+ icon-only
1026
+ prepend:icon="lucide:check"
1024
1027
  size="xs"
1028
+ text="Approve"
1025
1029
  variant="ghost"
1026
1030
  @click="() => ctx.approve(expense)"
1027
1031
  />
@@ -1032,10 +1036,11 @@ defineProps<{ expense: Expense }>();
1032
1036
  <BbButton
1033
1037
  v-bb-dialog="{ id: 'reject-expense', data: expense }"
1034
1038
  v-bind="props"
1035
- aria-label="Reject"
1036
1039
  :disabled="resolved"
1037
- icon="lucide:x"
1040
+ icon-only
1041
+ prepend:icon="lucide:x"
1038
1042
  size="xs"
1043
+ text="Reject"
1039
1044
  variant="ghost"
1040
1045
  />
1041
1046
  </template>
@@ -1045,10 +1050,11 @@ defineProps<{ expense: Expense }>();
1045
1050
  <BbButton
1046
1051
  v-bb-dialog="{ id: 'snooze-expense', data: expense }"
1047
1052
  v-bind="props"
1048
- aria-label="Snooze"
1049
1053
  :disabled="resolved"
1050
- icon="lucide:clock"
1054
+ icon-only
1055
+ prepend:icon="lucide:clock"
1051
1056
  size="xs"
1057
+ text="Snooze"
1052
1058
  variant="ghost"
1053
1059
  />
1054
1060
  </template>
@@ -1285,9 +1291,10 @@ const submit = () =>
1285
1291
  Reject
1286
1292
  </BbButton>
1287
1293
  <BbButton
1288
- aria-label="Clear selection"
1289
- icon="lucide:x"
1294
+ icon-only
1295
+ prepend:icon="lucide:x"
1290
1296
  size="sm"
1297
+ text="Clear selection"
1291
1298
  variant="ghost"
1292
1299
  @click="ctx.clearSelection"
1293
1300
  />
@@ -636,8 +636,8 @@ export function provideBacklogWorkspace(): BacklogWorkspaceContext {
636
636
  variant: 'destructive',
637
637
  title: 'Delete issue',
638
638
  text: `Delete ${issue.ref} — “${issue.title}”? This cannot be undone.`,
639
- yes: 'Delete',
640
- no: 'Cancel',
639
+ ok: 'Delete',
640
+ cancel: 'Cancel',
641
641
  });
642
642
  if (!ok) return;
643
643
  await api.issues.delete(issue.id);
@@ -1440,7 +1440,13 @@ const assignee = computed(() => ctx.valueOf(props.issue, 'assignee'));
1440
1440
  ]"
1441
1441
  >
1442
1442
  <template #activator="{ props }">
1443
- <BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
1443
+ <BbButton
1444
+ v-bind="props"
1445
+ icon-only
1446
+ prepend:icon="lucide:ellipsis"
1447
+ size="sm"
1448
+ variant="ghost"
1449
+ >
1444
1450
  Issue actions
1445
1451
  </BbButton>
1446
1452
  </template>
@@ -1531,9 +1537,10 @@ const ctx = useBacklogWorkspace();
1531
1537
 
1532
1538
  <div class="floating-bottom-panel__right flex items-center gap-1">
1533
1539
  <BbButton
1534
- aria-label="Clear selection"
1535
- icon="lucide:x"
1540
+ icon-only
1541
+ prepend:icon="lucide:x"
1536
1542
  size="sm"
1543
+ text="Clear selection"
1537
1544
  variant="ghost"
1538
1545
  @click="ctx.clearSelection"
1539
1546
  />
@@ -154,7 +154,8 @@ under it.
154
154
  <header class="page-shell__sidebar-chrome">
155
155
  <BbButton
156
156
  v-if="shell.depth.value > 1"
157
- icon="lucide:arrow-left"
157
+ icon-only
158
+ prepend:icon="lucide:arrow-left"
158
159
  size="sm"
159
160
  variant="ghost"
160
161
  @click="shell.pop"
@@ -170,7 +171,8 @@ under it.
170
171
  </h2>
171
172
  <span v-else class="page-shell__sidebar-spacer" />
172
173
  <BbButton
173
- icon="lucide:x"
174
+ icon-only
175
+ prepend:icon="lucide:x"
174
176
  size="sm"
175
177
  variant="ghost"
176
178
  @click="shell.close"
@@ -753,7 +755,7 @@ read once. Default to a **topbar affordance**: a keyboard icon in
753
755
  ```vue
754
756
  <BbPopover>
755
757
  <template #activator="{ props }">
756
- <BbButton v-bind="props" aria-label="Keyboard shortcuts" icon="lucide:keyboard" size="sm" variant="ghost" />
758
+ <BbButton v-bind="props" text="Keyboard shortcuts" icon-only prepend:icon="lucide:keyboard" size="sm" variant="ghost" />
757
759
  </template>
758
760
  <dl class="shortcuts">…</dl>
759
761
  </BbPopover>
@@ -574,8 +574,8 @@ export function provideOnboardingWorkspace(): OnboardingWorkspaceContext {
574
574
  variant: 'destructive',
575
575
  title: 'Dismiss onboarding',
576
576
  text: 'Hide the setup checklist for everyone in this workspace? Unfinished steps stay available under Settings → Setup.',
577
- yes: 'Dismiss',
578
- no: 'Keep it',
577
+ ok: 'Dismiss',
578
+ cancel: 'Keep it',
579
579
  });
580
580
  if (!ok) return;
581
581
  await api.onboarding.dismiss();
@@ -1228,10 +1228,11 @@ const submit = () => {
1228
1228
  >
1229
1229
  </span>
1230
1230
  <BbButton
1231
- aria-label="Remove selected file"
1232
1231
  :disabled="ctx.importState.uploading"
1233
- icon="lucide:x"
1232
+ icon-only
1233
+ prepend:icon="lucide:x"
1234
1234
  size="sm"
1235
+ text="Remove selected file"
1235
1236
  variant="ghost"
1236
1237
  @click="() => (file = null)"
1237
1238
  />
@@ -535,15 +535,14 @@ export function useOwnershipAtlas(): OwnershipAtlasContext {
535
535
  text: ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all',
536
536
  delay: 400,
537
537
  }"
538
- :aria-label="
539
- ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'
540
- "
541
- :icon="
538
+ icon-only
539
+ :prepend:icon="
542
540
  ctx.allExpandedOnPage.value
543
541
  ? 'lucide:chevrons-down-up'
544
542
  : 'lucide:chevrons-up-down'
545
543
  "
546
544
  size="sm"
545
+ :text="ctx.allExpandedOnPage.value ? 'Collapse all' : 'Expand all'"
547
546
  variant="ghost"
548
547
  @click="ctx.toggleExpandAll"
549
548
  />
@@ -752,12 +751,15 @@ const { isMobile } = useMobile();
752
751
  * control in the actions column. On a phone Team and Region leave (the BbTable
753
752
  * guide's "hide columns, don't scroll"): four equal tracks at 390px would
754
753
  * break names mid-word. */
755
- const columns = computed<Array<BbTableColumn<Owner>>>(() => [
756
- { key: 'name', label: 'Owner' },
757
- { key: 'team', label: 'Team', hidden: isMobile.value },
758
- { key: 'region', label: 'Region', hidden: isMobile.value },
759
- { key: 'monthlyTotal', label: '$ / mo', align: 'right' },
760
- ]);
754
+ const columns = computed(
755
+ () =>
756
+ [
757
+ { key: 'name', label: 'Owner' },
758
+ { key: 'team', label: 'Team', hidden: isMobile.value },
759
+ { key: 'region', label: 'Region', hidden: isMobile.value },
760
+ { key: 'monthlyTotal', label: '$ / mo', align: 'right' },
761
+ ] satisfies Array<BbTableColumn<Owner>>
762
+ );
761
763
 
762
764
  const money = (value: number) =>
763
765
  new Intl.NumberFormat('en-US', {
@@ -907,12 +909,25 @@ const { isMobile } = useMobile();
907
909
  * columns that snap onto them hide too: a hidden parent column has no track
908
910
  * for a child cell to land on.
909
911
  */
910
- const columns = computed<Array<BbTableColumn<Holding>>>(() => [
911
- { key: 'name', label: 'Resource', snap: 'name' },
912
- { key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
913
- { key: 'status', label: 'Status', snap: 'region', hidden: isMobile.value },
914
- { key: 'monthlyCost', label: '$ / mo', align: 'right', snap: 'monthlyTotal' },
915
- ]);
912
+ const columns = computed(
913
+ () =>
914
+ [
915
+ { key: 'name', label: 'Resource', snap: 'name' },
916
+ { key: 'kind', label: 'Type', snap: 'team', hidden: isMobile.value },
917
+ {
918
+ key: 'status',
919
+ label: 'Status',
920
+ snap: 'region',
921
+ hidden: isMobile.value,
922
+ },
923
+ {
924
+ key: 'monthlyCost',
925
+ label: '$ / mo',
926
+ align: 'right',
927
+ snap: 'monthlyTotal',
928
+ },
929
+ ] satisfies Array<BbTableColumn<Holding>>
930
+ );
916
931
 
917
932
  const money = (value: number) =>
918
933
  value === 0
@@ -1054,9 +1069,10 @@ const kindOptions = (
1054
1069
  <div class="floating-bottom-panel__right flex items-center gap-1">
1055
1070
  <BbButton
1056
1071
  v-bb-tooltip="{ text: 'Clear selection', delay: 400 }"
1057
- aria-label="Clear selection"
1058
- icon="lucide:x"
1072
+ icon-only
1073
+ prepend:icon="lucide:x"
1059
1074
  size="sm"
1075
+ text="Clear selection"
1060
1076
  variant="ghost"
1061
1077
  @click="ctx.clearSelection"
1062
1078
  />
@@ -610,8 +610,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
610
610
  variant: 'destructive',
611
611
  title: 'Delete invoice',
612
612
  text: `Delete ${invoiceNumber.value}? This cannot be undone.`,
613
- yes: 'Delete',
614
- no: 'Cancel',
613
+ ok: 'Delete',
614
+ cancel: 'Cancel',
615
615
  });
616
616
  if (!ok) return;
617
617
  await api.invoices.delete(invoiceId);
@@ -633,8 +633,8 @@ export function provideInvoiceForm(): InvoiceFormContext {
633
633
  variant: 'destructive',
634
634
  title: 'Unsaved changes',
635
635
  text: 'You have unsaved changes on this invoice. Leave without saving?',
636
- yes: 'Discard changes',
637
- no: 'Keep editing',
636
+ ok: 'Discard changes',
637
+ cancel: 'Keep editing',
638
638
  });
639
639
  });
640
640
 
@@ -1066,7 +1066,8 @@ const currency = new Intl.NumberFormat('en-US', {
1066
1066
 
1067
1067
  <div class="flex shrink-0 items-center gap-1">
1068
1068
  <BbButton
1069
- icon="lucide:copy"
1069
+ icon-only
1070
+ prepend:icon="lucide:copy"
1070
1071
  size="sm"
1071
1072
  variant="ghost"
1072
1073
  @click="() => ctx.duplicateLineItem(line)"
@@ -1074,7 +1075,8 @@ const currency = new Intl.NumberFormat('en-US', {
1074
1075
  Duplicate line
1075
1076
  </BbButton>
1076
1077
  <BbButton
1077
- icon="lucide:trash-2"
1078
+ icon-only
1079
+ prepend:icon="lucide:trash-2"
1078
1080
  size="sm"
1079
1081
  variant="ghost"
1080
1082
  @click="() => ctx.removeLineItem(line)"
@@ -1216,9 +1218,10 @@ const revert = () => {
1216
1218
  doesn't commit/unmount before the click lands. -->
1217
1219
  <template #prepend:outer="{ decrease }">
1218
1220
  <BbButton
1219
- aria-label="Decrease quantity"
1220
- icon="lucide:minus"
1221
+ icon-only
1222
+ prepend:icon="lucide:minus"
1221
1223
  size="xs"
1224
+ text="Decrease quantity"
1222
1225
  variant="ghost"
1223
1226
  @click="decrease"
1224
1227
  @mousedown.prevent
@@ -1226,9 +1229,10 @@ const revert = () => {
1226
1229
  </template>
1227
1230
  <template #append:outer="{ increase }">
1228
1231
  <BbButton
1229
- aria-label="Increase quantity"
1230
- icon="lucide:plus"
1232
+ icon-only
1233
+ prepend:icon="lucide:plus"
1231
1234
  size="xs"
1235
+ text="Increase quantity"
1232
1236
  variant="ghost"
1233
1237
  @click="increase"
1234
1238
  @mousedown.prevent
@@ -476,8 +476,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
476
476
  variant: 'destructive',
477
477
  title: 'Delete invoice',
478
478
  text: `Delete ${invoice.number}? This cannot be undone.`,
479
- yes: 'Delete',
480
- no: 'Cancel',
479
+ ok: 'Delete',
480
+ cancel: 'Cancel',
481
481
  });
482
482
  if (!ok) return;
483
483
  await api.invoices.delete(invoice.id);
@@ -539,8 +539,8 @@ export function provideInvoicesWorkspace(): InvoicesWorkspaceContext {
539
539
  variant: 'destructive',
540
540
  title: 'Archive invoices',
541
541
  text: `Archive ${count} invoices? They move out of every tab except Archived.`,
542
- yes: 'Archive',
543
- no: 'Cancel',
542
+ ok: 'Archive',
543
+ cancel: 'Cancel',
544
544
  });
545
545
  if (!ok) return;
546
546
  await api.invoices.archiveMany(bulkSelection());
@@ -1410,7 +1410,13 @@ const pillLabel = computed(() =>
1410
1410
  ]"
1411
1411
  >
1412
1412
  <template #activator="{ props }">
1413
- <BbButton v-bind="props" icon="lucide:ellipsis" size="sm" variant="ghost">
1413
+ <BbButton
1414
+ v-bind="props"
1415
+ icon-only
1416
+ prepend:icon="lucide:ellipsis"
1417
+ size="sm"
1418
+ variant="ghost"
1419
+ >
1414
1420
  Invoice actions
1415
1421
  </BbButton>
1416
1422
  </template>
@@ -1460,9 +1466,10 @@ const ctx = useInvoicesWorkspace();
1460
1466
  >Archive</BbButton
1461
1467
  >
1462
1468
  <BbButton
1463
- aria-label="Clear selection"
1464
- icon="lucide:x"
1469
+ icon-only
1470
+ prepend:icon="lucide:x"
1465
1471
  size="sm"
1472
+ text="Clear selection"
1466
1473
  variant="ghost"
1467
1474
  @click="ctx.clearSelection"
1468
1475
  />
@@ -673,8 +673,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
673
673
  text: invited
674
674
  ? `The link sent to ${member.email} stops working. You can invite them again later.`
675
675
  : `${member.name} loses access to Fennel & Hart immediately. Invoices they created stay.`,
676
- yes: invited ? 'Revoke invitation' : 'Remove member',
677
- no: 'Cancel',
676
+ ok: invited ? 'Revoke invitation' : 'Remove member',
677
+ cancel: 'Cancel',
678
678
  });
679
679
  if (!ok) return;
680
680
  await api.settings.removeMember(member.id);
@@ -692,8 +692,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
692
692
  variant: 'destructive',
693
693
  title: `Make ${member.name} the owner`,
694
694
  text: `${member.name} gets full control of Fennel & Hart, including deleting it. You stay on as an admin, and only the new owner can undo this.`,
695
- yes: 'Transfer ownership',
696
- no: 'Cancel',
695
+ ok: 'Transfer ownership',
696
+ cancel: 'Cancel',
697
697
  });
698
698
  if (!ok) return;
699
699
  members.value = await api.settings.transferOwnership(member.id);
@@ -729,8 +729,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
729
729
  variant: 'destructive',
730
730
  title: `Revoke ${apiKey.name}`,
731
731
  text: `Requests signed with ${apiKey.preview} start failing immediately. This cannot be undone.`,
732
- yes: 'Revoke key',
733
- no: 'Cancel',
732
+ ok: 'Revoke key',
733
+ cancel: 'Cancel',
734
734
  });
735
735
  if (!ok) return;
736
736
  await api.settings.revokeApiKey(apiKey.id);
@@ -786,8 +786,8 @@ export function provideSettingsWorkspace(): SettingsWorkspaceContext {
786
786
  variant: 'destructive',
787
787
  title: 'Discard unsaved changes',
788
788
  text: 'Your profile has changes that are not saved yet. Leave anyway?',
789
- yes: 'Discard changes',
790
- no: 'Keep editing',
789
+ ok: 'Discard changes',
790
+ cancel: 'Keep editing',
791
791
  });
792
792
  });
793
793
  // Closing the tab or reloading: the browser's own prompt (it ignores copy).
@@ -1808,31 +1808,34 @@ const seatsLeft = computed(() =>
1808
1808
 
1809
1809
  // Rank the columns: identity + role stay on a phone; activity folds into the
1810
1810
  // identity cell (the BbTable guide's "hide columns, don't scroll").
1811
- const columns = computed<Array<BbTableColumn<WorkspaceMember>>>(() => [
1812
- // On a phone the identity track may shrink (long emails ellipse) instead of
1813
- // pushing the row menu off screen.
1814
- {
1815
- key: 'name',
1816
- label: 'Member',
1817
- skeleton: 'avatar-text',
1818
- width: isMobile.value ? '1fr' : undefined,
1819
- // The identity cell may shrink below its content, so a long email
1820
- // ellipses instead of widening the track.
1821
- tdClass: 'min-w-0 overflow-hidden',
1822
- },
1823
- {
1824
- key: 'role',
1825
- label: 'Role',
1826
- width: isMobile.value ? undefined : '10rem',
1827
- skeleton: 'badge',
1828
- },
1829
- {
1830
- key: 'lastActiveAt',
1831
- label: 'Last active',
1832
- width: '9rem',
1833
- hidden: isMobile.value,
1834
- },
1835
- ]);
1811
+ const columns = computed(
1812
+ () =>
1813
+ [
1814
+ // On a phone the identity track may shrink (long emails ellipse) instead of
1815
+ // pushing the row menu off screen.
1816
+ {
1817
+ key: 'name',
1818
+ label: 'Member',
1819
+ skeleton: 'avatar-text',
1820
+ width: isMobile.value ? '1fr' : undefined,
1821
+ // The identity cell may shrink below its content, so a long email
1822
+ // ellipses instead of widening the track.
1823
+ tdClass: 'min-w-0 overflow-hidden',
1824
+ },
1825
+ {
1826
+ key: 'role',
1827
+ label: 'Role',
1828
+ width: isMobile.value ? undefined : '10rem',
1829
+ skeleton: 'badge',
1830
+ },
1831
+ {
1832
+ key: 'lastActiveAt',
1833
+ label: 'Last active',
1834
+ width: '9rem',
1835
+ hidden: isMobile.value,
1836
+ },
1837
+ ] satisfies Array<BbTableColumn<WorkspaceMember>>
1838
+ );
1836
1839
 
1837
1840
  const activity = (member: WorkspaceMember) =>
1838
1841
  member.status === 'invited'
@@ -1915,11 +1918,12 @@ The row menu (v-bb-dropdown).
1915
1918
  <!-- The row's "…" menu (resend, copy, transfer, remove). -->
1916
1919
  <template>
1917
1920
  <!-- A plain items menu on a trigger we already have: the directive, not a
1918
- BbDropdown wrapper. The owner and you get no menu at all. -->
1921
+ BbDropdown wrapper. The owner and you get no menu: with no rows the
1922
+ directive hides the button itself. -->
1919
1923
  <BbButton
1920
- v-if="items.length"
1921
1924
  v-bb-dropdown:bottom-end="{ items, width: 220 }"
1922
- icon="lucide:ellipsis"
1925
+ icon-only
1926
+ prepend:icon="lucide:ellipsis"
1923
1927
  size="sm"
1924
1928
  variant="ghost"
1925
1929
  >
@@ -2286,24 +2290,27 @@ const INVOICE_BADGE: Record<
2286
2290
  refunded: { label: 'Refunded', variant: 'soft-gray' },
2287
2291
  };
2288
2292
 
2289
- const columns = computed<Array<BbTableColumn<BillingInvoice>>>(() => [
2290
- { key: 'number', label: 'Invoice' },
2291
- {
2292
- key: 'date',
2293
- label: 'Date',
2294
- formatter: (date) => formatDate(String(date)),
2295
- hidden: isMobile.value,
2296
- },
2297
- {
2298
- key: 'amount',
2299
- label: 'Amount',
2300
- align: 'right',
2301
- formatter: (amount) =>
2302
- formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
2303
- tdClass: 'tabular-nums',
2304
- },
2305
- { key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
2306
- ]);
2293
+ const columns = computed(
2294
+ () =>
2295
+ [
2296
+ { key: 'number', label: 'Invoice' },
2297
+ {
2298
+ key: 'date',
2299
+ label: 'Date',
2300
+ formatter: (date) => formatDate(String(date)),
2301
+ hidden: isMobile.value,
2302
+ },
2303
+ {
2304
+ key: 'amount',
2305
+ label: 'Amount',
2306
+ align: 'right',
2307
+ formatter: (amount) =>
2308
+ formatMoney(Number(amount), ctx.billing.value?.currency ?? 'EUR'),
2309
+ tdClass: 'tabular-nums',
2310
+ },
2311
+ { key: 'status', label: 'Status', skeleton: 'badge', width: '7rem' },
2312
+ ] satisfies Array<BbTableColumn<BillingInvoice>>
2313
+ );
2307
2314
  </script>
2308
2315
  ```
2309
2316
 
@@ -2441,12 +2448,15 @@ const SCOPE_BADGE: Record<
2441
2448
  admin: { label: 'Full access', variant: 'soft-amber' },
2442
2449
  };
2443
2450
 
2444
- const columns = computed<Array<BbTableColumn<ApiKey>>>(() => [
2445
- { key: 'name', label: 'Key' },
2446
- { key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
2447
- { key: 'createdAt', label: 'Created', hidden: isMobile.value },
2448
- { key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
2449
- ]);
2451
+ const columns = computed(
2452
+ () =>
2453
+ [
2454
+ { key: 'name', label: 'Key' },
2455
+ { key: 'scope', label: 'Access', skeleton: 'badge', width: '9rem' },
2456
+ { key: 'createdAt', label: 'Created', hidden: isMobile.value },
2457
+ { key: 'lastUsedAt', label: 'Last used', hidden: isMobile.value },
2458
+ ] satisfies Array<BbTableColumn<ApiKey>>
2459
+ );
2450
2460
  </script>
2451
2461
  ```
2452
2462