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

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 (359) hide show
  1. package/README.md +2 -2
  2. package/bin/cli.mjs +6 -1
  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 +230 -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 +93 -7
  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 +238 -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 +69 -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 +144 -10
  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 +240 -198
  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 +1984 -1145
  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/utils/versionCheck.js +1 -1
  347. package/llms.txt +2 -2
  348. package/package.json +11 -1
  349. package/scripts/README.md +31 -27
  350. package/scripts/lib/adoption-checklist.json +2 -2
  351. package/scripts/lib/eslint-disable.mjs +5 -3
  352. package/scripts/lib/eslint-plugin.d.ts +2 -0
  353. package/scripts/lib/eslint-plugin.mjs +213 -1
  354. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  355. package/scripts/lib/release-results.mjs +32 -1
  356. package/scripts/lib/renamed-item-field.mjs +4 -1
  357. package/scripts/lib/tab-links.mjs +4 -1
  358. package/scripts/lib/tree-default-expandable.mjs +53 -0
  359. package/scripts/lib/validate-bb-markup.mjs +536 -52
@@ -9,12 +9,15 @@
9
9
  ```vue
10
10
  <template>
11
11
  <BbDialog
12
+ :actions="dialogActions"
12
13
  :aria-describedby="hasText && current?.title ? textId : undefined"
14
+ :cancel="dialogCancel"
13
15
  :class="dialogClasses"
14
16
  :focus-target="current?.focusTarget"
15
17
  :fullscreen="current?.fullscreen"
16
18
  :hide-close="isBusy || !!current?.hideClose"
17
19
  :model-value="state.processing"
20
+ :ok="dialogOk"
18
21
  :persistent="isBusy || !!current?.persistent"
19
22
  :pt="passthrough.forward(DIALOG_PARTS, BB_DIALOG_PT.states)"
20
23
  v-bind="dialogAttrs"
@@ -36,65 +39,19 @@
36
39
  </div>
37
40
  <component :is="portalContent" v-else v-bind="portalBindings" />
38
41
  </div>
39
- <!-- eslint-disable vue/attributes-order -- `pt:action` binds LAST so a consumer listener runs after ours (PASSTHROUGH.md T17) -->
40
- <template v-if="showActions" #footer>
41
- <template v-if="resolvedActions">
42
- <BbButton
43
- v-for="(action, index) in resolvedActions"
44
- :key="index"
45
- :append:icon="action['append:icon']"
46
- :block="action.block"
47
- :disabled="state.actionBusy !== null && state.actionBusy !== index"
48
- :icon="action.icon"
49
- :loading="state.actionBusy === index"
50
- :prepend:icon="action['prepend:icon']"
51
- :size="action.size"
52
- :text="action.text"
53
- :variant="action.variant"
54
- @click="action.onClick()"
55
- class="bb-confirm__action"
56
- v-bind="passthrough.action"
57
- />
58
- </template>
59
-
60
- <BbButton
61
- v-if="resolvedNo"
62
- :append:icon="resolvedNo['append:icon']"
63
- :block="resolvedNo.block"
64
- :disabled="state.yesBusy"
65
- :icon="resolvedNo.icon"
66
- :loading="state.noBusy"
67
- :prepend:icon="resolvedNo['prepend:icon']"
68
- :size="resolvedNo.size"
69
- :text="resolvedNo.text"
70
- :variant="resolvedNo.variant"
71
- @click="resolvedNo.onClick()"
72
- class="bb-confirm__action"
73
- v-bind="passthrough.action"
74
- />
75
-
76
- <BbButton
77
- v-if="resolvedYes"
78
- :append:icon="resolvedYes['append:icon']"
79
- :block="resolvedYes.block"
80
- :disabled="state.noBusy"
81
- :icon="resolvedYes.icon"
82
- :loading="state.yesBusy"
83
- :prepend:icon="resolvedYes['prepend:icon']"
84
- :size="resolvedYes.size"
85
- :text="resolvedYes.text"
86
- :variant="resolvedYes.variant"
87
- @click="resolvedYes.onClick()"
88
- class="bb-confirm__action"
89
- v-bind="passthrough.action"
90
- />
91
- </template>
92
- <!-- eslint-enable vue/attributes-order -->
93
42
  </BbDialog>
94
43
  </template>
95
44
 
96
45
  <script setup lang="ts">
97
- import { computed, inject, markRaw, onMounted, useAttrs } from 'vue';
46
+ import {
47
+ computed,
48
+ inject,
49
+ markRaw,
50
+ mergeProps,
51
+ onMounted,
52
+ provide,
53
+ useAttrs,
54
+ } from 'vue';
98
55
  import {
99
56
  CONFIRM_STACK,
100
57
  namedPortalRegistry,
@@ -111,7 +68,10 @@ import { usePassthrough, variantPt } from '@/composables/usePassthrough';
111
68
  import { BB_DIALOG_PT } from '../BbDialog/types';
112
69
  import { BB_CONFIRM_PT, type BbConfirmProps } from './types';
113
70
  import { CONFIRM_ENTRY } from './confirmEntry';
114
- import BbButton from '../BbButton/BbButton.vue';
71
+ import { BB_OVERLAY_ACTION_ATTRS } from '../BbDialog/overlayActions';
72
+ import type { BbActionLook } from '@/types/ActionButton';
73
+ import { ACTION_LOOK_KEYS } from '@/types/ConfigDefaults';
74
+ import type { ResolvedButtonConfig } from '@/composables/useConfirm';
115
75
 
116
76
  // Describes the dialog by its plain-text message (WAI-APG dialog pattern): a
117
77
  // confirm's text is short and static, so aria-describedby is safe here —
@@ -195,7 +155,7 @@ onMounted(() => {
195
155
  });
196
156
 
197
157
  const isBusy = computed(
198
- () => state.yesBusy || state.noBusy || state.actionBusy !== null
158
+ () => state.okBusy || state.cancelBusy || state.actionBusy !== null
199
159
  );
200
160
 
201
161
  const hasText = computed(() => Boolean(current.value?.text));
@@ -203,8 +163,8 @@ const hasText = computed(() => Boolean(current.value?.text));
203
163
  /** What a named portal's slot gets: this confirm's own data and answers. */
204
164
  const portalScope = {
205
165
  data: current.value.data ?? {},
206
- yes: () => processMessage(true, false, entry),
207
- no: () => processMessage(false, true, entry),
166
+ ok: () => processMessage(true, false, entry),
167
+ cancel: () => processMessage(false, true, entry),
208
168
  };
209
169
 
210
170
  const portalContent = computed(() => {
@@ -223,24 +183,58 @@ const portalBindings = computed(() => {
223
183
  return data;
224
184
  });
225
185
 
226
- const showActions = computed(() => current.value?.actions !== false);
227
-
228
- // Custom actions replace yes/no entirely; yes/no are undefined on the stack
229
- // message in that case, so the default buttons below never co-render.
230
- const resolvedActions = computed(() => {
186
+ /*
187
+ * The buttons render through BbDialog's `ok` / `cancel` / `actions`. Each
188
+ * click runs the confirm's own handler, which settles the promise and closes
189
+ * the confirm itself (a failing action closes it and rejects `confirm()`:
190
+ * the caller owns the error), then answers `false`, so the dialog neither
191
+ * completes nor reports anything.
192
+ */
193
+ const okProps = useConfigSetting<BbActionLook>(
194
+ 'BbConfirm',
195
+ ACTION_LOOK_KEYS.ok
196
+ );
197
+ const cancelProps = useConfigSetting<BbActionLook>(
198
+ 'BbConfirm',
199
+ ACTION_LOOK_KEYS.cancel
200
+ );
201
+ const forDialog = (
202
+ button: ResolvedButtonConfig | undefined,
203
+ look?: BbActionLook
204
+ ) => {
205
+ if (!button) return false;
206
+ const { onClick, defaulted = [], ...own } = button;
207
+ const out: Record<string, unknown> = { ...own };
208
+ for (const [key, value] of Object.entries(look ?? {}))
209
+ if (
210
+ value !== undefined &&
211
+ (out[key] === undefined || (defaulted as readonly string[]).includes(key))
212
+ )
213
+ out[key] = value;
214
+ return {
215
+ ...out,
216
+ onClick: async () => {
217
+ await onClick();
218
+ return false;
219
+ },
220
+ };
221
+ };
222
+ const dialogOk = computed(() => forDialog(current.value?.ok, okProps()));
223
+ const dialogCancel = computed(() =>
224
+ forDialog(current.value?.cancel, cancelProps())
225
+ );
226
+ // `false`: no footer; an array replaces ok / cancel; unset: ok / cancel.
227
+ const dialogActions = computed(() => {
231
228
  const actions = current.value?.actions;
232
- return Array.isArray(actions) && actions.length ? actions : null;
233
- });
234
-
235
- const resolvedNo = computed(() => {
236
- const btn = current.value?.no;
237
- return btn || null;
238
- });
239
-
240
- const resolvedYes = computed(() => {
241
- const btn = current.value?.yes;
242
- return btn || null;
229
+ if (actions === false) return false;
230
+ return Array.isArray(actions) && actions.length
231
+ ? actions.map((action) => forDialog(action) as Record<string, unknown>)
232
+ : undefined;
243
233
  });
234
+ // Each footer button carries our class and `pt:action`.
235
+ provide(BB_OVERLAY_ACTION_ATTRS, () =>
236
+ mergeProps({ class: 'bb-confirm__action' }, passthrough.action)
237
+ );
244
238
 
245
239
  const dialogClasses = computed(() => [
246
240
  'bb-confirm',
@@ -289,7 +283,7 @@ import type { BbConfirmPtKeys } from './ptKeys.generated';
289
283
  * @part text - The confirm's plain-text body — not a portal's content.
290
284
  * @part footer - The action buttons' band.
291
285
  * @part close - The ✕.
292
- * @part action - Every footer button — yes, no and each custom `actions`
286
+ * @part action - Every footer button — ok, cancel and each custom `actions`
293
287
  * entry — at the button's root. A broadcast.
294
288
  */
295
289
  export type BbConfirmPtPart =
@@ -372,10 +366,10 @@ export type BbConfirmProps = BbConfirmPtProps & {
372
366
  export type BbConfirmPortalSlotProps<P = any> = {
373
367
  /** The `data` the `confirm()` passed. */
374
368
  data: P;
375
- /** Resolves the confirm with `true`. */
376
- yes: () => void;
377
- /** Resolves the confirm with `false`. */
378
- no: () => void;
369
+ /** Resolves the confirm with `true` (through `ok.onClick` when set). */
370
+ ok: () => void;
371
+ /** Resolves the confirm with `false` (through `cancel.onClick` when set). */
372
+ cancel: () => void;
379
373
  };
380
374
  ```
381
375
 
@@ -25,7 +25,7 @@ watchEffect((onCleanup) => {
25
25
  // Never populated during SSR — the registry is module state and would leak
26
26
  // across requests (same guard as useBbTabs's tabsRegistry).
27
27
  if (typeof window === 'undefined') return;
28
- // The bare slot: each confirm calls it with its own `{ yes, no, data }`,
28
+ // The bare slot: each confirm calls it with its own `{ ok, cancel, data }`,
29
29
  // so two open confirms never answer each other.
30
30
  const cleanup = registerNamedPortal(props.name, (scope) =>
31
31
  slots.default?.(scope)
@@ -67,7 +67,7 @@ import type { BbConfirmPtKeys } from './ptKeys.generated';
67
67
  * @part text - The confirm's plain-text body — not a portal's content.
68
68
  * @part footer - The action buttons' band.
69
69
  * @part close - The ✕.
70
- * @part action - Every footer button — yes, no and each custom `actions`
70
+ * @part action - Every footer button — ok, cancel and each custom `actions`
71
71
  * entry — at the button's root. A broadcast.
72
72
  */
73
73
  export type BbConfirmPtPart =
@@ -150,10 +150,10 @@ export type BbConfirmProps = BbConfirmPtProps & {
150
150
  export type BbConfirmPortalSlotProps<P = any> = {
151
151
  /** The `data` the `confirm()` passed. */
152
152
  data: P;
153
- /** Resolves the confirm with `true`. */
154
- yes: () => void;
155
- /** Resolves the confirm with `false`. */
156
- no: () => void;
153
+ /** Resolves the confirm with `true` (through `ok.onClick` when set). */
154
+ ok: () => void;
155
+ /** Resolves the confirm with `false` (through `cancel.onClick` when set). */
156
+ cancel: () => void;
157
157
  };
158
158
  ```
159
159
 
@@ -39,6 +39,7 @@
39
39
  <BbCalendar
40
40
  :active-segment="activeSegment"
41
41
  :ampm="ampm"
42
+ :clearable="clearable"
42
43
  :disabled="disabled"
43
44
  :first-day-of-week="firstDayOfWeek"
44
45
  :floating="floating"
@@ -893,6 +894,11 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
893
894
  disabled?: boolean;
894
895
  /** Prevents opening while keeping the activator visible. */
895
896
  readonly?: boolean;
897
+ /**
898
+ * Clicking the selected date (week, month, year) again clears a single
899
+ * value. Off: re-picking keeps it. `multiple` and `range` ignore it.
900
+ */
901
+ clearable?: boolean;
896
902
  /**
897
903
  * On mobile, open in a bottom off-canvas sheet instead of a floating popover.
898
904
  * When unset, falls back to the global `all.adaptive`.
@@ -1106,8 +1112,9 @@ export type BbDatePickerSlots = {
1106
1112
  the box inherits them. `pt:panel="[--px:2px]"` then retunes the grid on
1107
1113
  both surfaces; declared on the box, a sheet-level value would never reach
1108
1114
  it. `--sheet-cell` is here so the time rail (the grid's sibling inside the
1109
- calendar) can align its wheels to the same column grid. */
1110
- .bb-date-picker__sheet {
1115
+ calendar) can align its wheels to the same column grid. Two classes so
1116
+ the sheet's own `--px` / `--py` never win on load order. */
1117
+ .bb-offcanvas.bb-date-picker__sheet {
1111
1118
  --sheet-cell: 40px;
1112
1119
  --cell: var(--sheet-cell);
1113
1120
  --px: 6px;
@@ -210,6 +210,7 @@
210
210
  :adaptive="configDefaults.adaptive"
211
211
  :ampm="ampm"
212
212
  :anchor="wrapper"
213
+ :clearable="clearable"
213
214
  :disabled="disabled"
214
215
  :first-day-of-week="firstDayOfWeek"
215
216
  :floating="configDefaults.floating"
@@ -2778,7 +2779,8 @@ export type BbDatePickerInputBaseProps = BbDatePickerInputPtProps & {
2778
2779
  autofocus?: InputHTMLAttributes['autofocus'];
2779
2780
 
2780
2781
  /**
2781
- * Displays a clear button when the input has a value and is being interacted with.
2782
+ * Displays a clear button when the input has a value and is being
2783
+ * interacted with, and lets re-picking the selected date clear it.
2782
2784
  */
2783
2785
  clearable?: boolean;
2784
2786
 
@@ -182,7 +182,9 @@
182
182
  :data="overlay.data.value"
183
183
  name="footer"
184
184
  :reset="overlay.reset"
185
- ></slot>
185
+ >
186
+ <FooterActions />
187
+ </slot>
186
188
  </div>
187
189
  </template>
188
190
  <!-- A refused close is announced, not only shaken. -->
@@ -247,6 +249,7 @@ import { registerTopLayerHost } from '@/composables/useTopLayer';
247
249
  import { useBodyScrollLock } from '@/composables/useBodyScrollLock';
248
250
  import { useRefusedCloseAnnouncement } from '@/composables/useRefusedCloseAnnouncement';
249
251
  import { provideOverlaySubmitGuard } from '@/composables/formSubmitLock';
252
+ import { ownCompleteListener, useOverlayActions } from './overlayActions';
250
253
  import {
251
254
  type OverlayCloseReason,
252
255
  provideOverlayStandIn,
@@ -288,6 +291,9 @@ const props = withDefaults(
288
291
  // reach the config default, while keeping the Boolean type so the valueless
289
292
  // `<Dialog adaptive>` shorthand still resolves to `true`.
290
293
  adaptive: undefined,
294
+ // `undefined` keeps "unset" apart from `false` (no buttons): a Boolean in
295
+ // the type would cast an absent `actions` to `false`.
296
+ actions: undefined,
291
297
  // Three-state the same way: unset follows a saving BbForm
292
298
  // inside, `true` always locks, `false` stays closable mid-save.
293
299
  preventClose: undefined,
@@ -340,6 +346,7 @@ const overlay = useOverlayHost('dialog', {
340
346
  model,
341
347
  element: () => rootElementOf(instance),
342
348
  defaultData: () => props.defaultData,
349
+ onComplete: () => ownCompleteListener(instance),
343
350
  });
344
351
  provideOverlayStandIn();
345
352
  /*
@@ -435,6 +442,9 @@ const canvasBindings = computed<Partial<BbOffCanvasProps>>(() => ({
435
442
  size: 'auto',
436
443
  snapPoints: props.snapPoints,
437
444
  snap: snapModel.value,
445
+ ok: footerActions.resolved.value.ok ?? undefined,
446
+ cancel: footerActions.resolved.value.cancel ?? undefined,
447
+ actions: footerActions.resolved.value.actions,
438
448
  'onUpdate:snap': (value: BbSnapPoint) => {
439
449
  snapModel.value = value;
440
450
  },
@@ -528,7 +538,23 @@ const hasDocument = () => typeof document !== 'undefined';
528
538
  * `prevent-close` says otherwise (`true` always, `false` never). On the phone
529
539
  * the sheet gets `prevent-close` as is and its own forms register with it.
530
540
  */
531
- const formSaving = provideOverlaySubmitGuard();
541
+ const formGuard = provideOverlaySubmitGuard();
542
+ const formSaving = formGuard.saving;
543
+ /*
544
+ * `ok` / `cancel` / `actions`: the footer slot's
545
+ * fallback, so a `#footer` replaces them all. The phone sheet is handed them
546
+ * resolved (the look applied) and renders its own.
547
+ */
548
+ const footerActions = useOverlayActions({
549
+ component: 'BbDialog',
550
+ props: () => props,
551
+ surface: formGuard,
552
+ complete: overlay.complete,
553
+ data: () => overlay.data.value,
554
+ close: () => requestClose(),
555
+ block: 'bb-dialog',
556
+ });
557
+ const FooterActions = () => footerActions.render();
532
558
  // an opener's `onComplete` promise locks it like a saving form.
533
559
  const isLocked = computed(
534
560
  () => props.preventClose ?? (formSaving() || overlay.completing.value)
@@ -996,6 +1022,7 @@ onDeactivated(() => closeWith('unmounted'));
996
1022
  ```ts
997
1023
  import type { BbDialogResult } from '@/composables/overlayRegistry';
998
1024
  import type { Size } from '@/types/CommonProps';
1025
+ import type { ActionButtonConfig, BbAction } from '@/types/ActionButton';
999
1026
  import type { PtCompoundProps, PtMap } from '@/types/passthrough';
1000
1027
  import type { Sizes } from '@/types/SizeScale';
1001
1028
  import type { Responsive } from '@/types/ResponsiveSize';
@@ -1197,6 +1224,23 @@ export type BbDialogProps = BbDialogPtProps & {
1197
1224
  * so Back leaves the page instead of closing the dialog.
1198
1225
  */
1199
1226
  replace?: boolean;
1227
+ /**
1228
+ * The primary footer button: `true` (the locale's OK), a label, or a
1229
+ * button config. Clicked: its `onClick`, else it submits the one `BbForm`
1230
+ * inside, else `complete(data)`. Unset: no button. Config sets its look.
1231
+ */
1232
+ ok?: BbAction;
1233
+ /**
1234
+ * The dismiss button, before `ok`: `true` (the locale's Cancel), a label,
1235
+ * or a button config. Clicked: its `onClick`, then the dialog closes as a
1236
+ * dismissal (`reason: 'close'`). Unset: no button.
1237
+ */
1238
+ cancel?: BbAction;
1239
+ /**
1240
+ * Footer buttons replacing `ok` / `cancel`, in order: each runs its
1241
+ * `onClick`, then completes the dialog with `data`. `false`: none.
1242
+ */
1243
+ actions?: false | readonly ActionButtonConfig[];
1200
1244
  /**
1201
1245
  * Title text announced to assistive technologies. If omitted, no header is
1202
1246
  * rendered (unless a `header` slot is supplied) and accessibility must be
@@ -1211,6 +1255,13 @@ export type BbDialogProps = BbDialogPtProps & {
1211
1255
  };
1212
1256
 
1213
1257
  export type BbDialogEvents = {
1258
+ /**
1259
+ * The dialog completes (`ok`, `complete(value)`): the same value as the
1260
+ * opener's `onComplete`, before it. Return a promise to keep the dialog
1261
+ * open and locked until it settles; `false` or a throw keeps it open.
1262
+ */
1263
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any -- the opening's value is `any`, like `data`
1264
+ (e: 'complete', value: any): unknown;
1214
1265
  /** Emitted as soon as the dialog starts to open (model becomes true). */
1215
1266
  (e: 'show'): void;
1216
1267
  /**