bitboss-ui 3.0.0-beta.70 → 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 (413) 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 +4 -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/BbCheckbox.md +5 -6
  10. package/dist/ai/BbCheckboxGroup.md +27 -27
  11. package/dist/ai/BbColorInput.md +4 -5
  12. package/dist/ai/BbConfirm.md +65 -81
  13. package/dist/ai/BbConfirmPortal.md +2 -2
  14. package/dist/ai/BbDatePicker.md +1 -6
  15. package/dist/ai/BbDatePickerInput.md +5 -6
  16. package/dist/ai/BbDialog.md +230 -164
  17. package/dist/ai/BbDropdown.md +87 -17
  18. package/dist/ai/BbDropdownButton.md +15 -15
  19. package/dist/ai/BbDropzone.md +12 -8
  20. package/dist/ai/BbForm.md +93 -7
  21. package/dist/ai/BbHost.md +2 -2
  22. package/dist/ai/BbHoverCardPortal.md +1 -1
  23. package/dist/ai/BbIcon.md +1 -1
  24. package/dist/ai/BbIndicator.md +17 -15
  25. package/dist/ai/BbNumberInput.md +10 -9
  26. package/dist/ai/BbOffCanvas.md +29 -7
  27. package/dist/ai/BbPagination.md +2 -2
  28. package/dist/ai/BbPopover.md +15 -9
  29. package/dist/ai/BbPopoverPortal.md +1 -1
  30. package/dist/ai/BbRadio.md +5 -6
  31. package/dist/ai/BbRadioGroup.md +53 -37
  32. package/dist/ai/BbRating.md +11 -16
  33. package/dist/ai/BbSelect.md +25 -5
  34. package/dist/ai/BbSelectPopover.md +9 -3
  35. package/dist/ai/BbSlider.md +15 -17
  36. package/dist/ai/BbSpinner.md +3 -2
  37. package/dist/ai/BbSwitch.md +9 -9
  38. package/dist/ai/BbSwitchGroup.md +11 -13
  39. package/dist/ai/BbTable.md +205 -82
  40. package/dist/ai/BbTabs.md +29 -4
  41. package/dist/ai/BbTag.md +4 -5
  42. package/dist/ai/BbTextInput.md +18 -16
  43. package/dist/ai/BbTextarea.md +12 -11
  44. package/dist/ai/BbTimePickerInput.md +4 -5
  45. package/dist/ai/BbToast.md +3 -2
  46. package/dist/ai/BbTooltip.md +39 -30
  47. package/dist/ai/BbTree.md +49 -24
  48. package/dist/ai/CommonField.md +2 -10
  49. package/dist/ai/CommonFieldInput.md +1 -1
  50. package/dist/ai/OptionsContainer.md +5 -13
  51. package/dist/ai/changelog.json +278 -10
  52. package/dist/ai/components.json +59 -58
  53. package/dist/ai/composables/useBbDialog.md +5 -8
  54. package/dist/ai/composables/useBbForm.md +3 -0
  55. package/dist/ai/composables/useConfirm.md +65 -56
  56. package/dist/ai/composables/useToast.md +2 -1
  57. package/dist/ai/guides/agent-contract.md +3 -3
  58. package/dist/ai/guides/app-layout.md +3 -2
  59. package/dist/ai/guides/eslint-rules.md +3 -1
  60. package/dist/ai/guides/fetch-items-playbook.md +1 -1
  61. package/dist/ai/guides/floating-bottom-panel.md +3 -2
  62. package/dist/ai/guides/icons-policy.md +7 -5
  63. package/dist/ai/guides/inertia-helpers.md +35 -30
  64. package/dist/ai/guides/installation-and-plugin-setup.md +17 -14
  65. package/dist/ai/guides/migration/adoption-checklist.md +2 -2
  66. package/dist/ai/guides/migration/components/bb-badge.md +12 -1
  67. package/dist/ai/guides/migration/components/bb-button.md +24 -0
  68. package/dist/ai/guides/migration/components/bb-dropdown-button.md +11 -0
  69. package/dist/ai/guides/migration/components/bb-tabs.md +2 -2
  70. package/dist/ai/guides/migration/components/bb-toast.md +11 -0
  71. package/dist/ai/guides/migration/components/use-confirm.md +69 -26
  72. package/dist/ai/guides/migration/v2-to-v3.md +78 -12
  73. package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -1
  74. package/dist/ai/guides/options-items-playbook.md +4 -3
  75. package/dist/ai/guides/passthrough.md +2 -2
  76. package/dist/ai/guides/preset-components.md +35 -10
  77. package/dist/ai/helpers/definePreset.json +8 -1
  78. package/dist/ai/helpers/definePreset.ts +35 -10
  79. package/dist/ai/helpers/inertia/manifest.json +28 -15
  80. package/dist/ai/helpers/inertia/messages.ts +3 -3
  81. package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +10 -10
  82. package/dist/ai/helpers/inertia/usePromiseForm.ts +1 -1
  83. package/dist/ai/helpers/inertia/usePromiseRouter.ts +7 -2
  84. package/dist/ai/index.md +3 -3
  85. package/dist/ai/manifest/common.json +5 -5
  86. package/dist/ai/manifest/components/BbAccordion.json +8 -5
  87. package/dist/ai/manifest/components/BbAccordion.tree.json +1 -0
  88. package/dist/ai/manifest/components/BbBadge.json +8 -7
  89. package/dist/ai/manifest/components/BbBadge.removed.json +3 -1
  90. package/dist/ai/manifest/components/BbBadge.tree.json +73 -0
  91. package/dist/ai/manifest/components/BbBreadcrumbs.json +2 -2
  92. package/dist/ai/manifest/components/BbButton.json +5 -6
  93. package/dist/ai/manifest/components/BbButton.removed.json +3 -1
  94. package/dist/ai/manifest/components/BbButton.tree.json +24 -7
  95. package/dist/ai/manifest/components/BbCalendar.json +2 -1
  96. package/dist/ai/manifest/components/BbCheckbox.json +2 -2
  97. package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
  98. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  99. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +9 -19
  100. package/dist/ai/manifest/components/BbColorInput.json +3 -3
  101. package/dist/ai/manifest/components/BbColorInput.tree.json +2 -2
  102. package/dist/ai/manifest/components/BbConfirm.json +2 -2
  103. package/dist/ai/manifest/components/BbConfirm.removed.json +9 -0
  104. package/dist/ai/manifest/components/BbConfirm.tree.json +4 -5
  105. package/dist/ai/manifest/components/BbConfirmPortal.json +3 -3
  106. package/dist/ai/manifest/components/BbConfirmPortal.removed.json +7 -0
  107. package/dist/ai/manifest/components/BbDatePicker.json +2 -1
  108. package/dist/ai/manifest/components/BbDatePicker.tree.json +0 -6
  109. package/dist/ai/manifest/components/BbDatePickerInput.json +2 -2
  110. package/dist/ai/manifest/components/BbDatePickerInput.tree.json +2 -2
  111. package/dist/ai/manifest/components/BbDialog.json +6 -1
  112. package/dist/ai/manifest/components/BbDialog.tree.json +41 -1
  113. package/dist/ai/manifest/components/BbDropdown.json +10 -9
  114. package/dist/ai/manifest/components/BbDropdown.tree.json +4 -0
  115. package/dist/ai/manifest/components/BbDropdownButton.json +9 -10
  116. package/dist/ai/manifest/components/BbDropdownButton.removed.json +3 -1
  117. package/dist/ai/manifest/components/BbForm.json +3 -1
  118. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  119. package/dist/ai/manifest/components/BbNumberInput.tree.json +2 -2
  120. package/dist/ai/manifest/components/BbOffCanvas.json +6 -1
  121. package/dist/ai/manifest/components/BbOffCanvas.tree.json +40 -0
  122. package/dist/ai/manifest/components/BbPagination.json +1 -1
  123. package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
  124. package/dist/ai/manifest/components/BbRadioGroup.json +4 -3
  125. package/dist/ai/manifest/components/BbRadioGroup.tree.json +8 -18
  126. package/dist/ai/manifest/components/BbRating.json +2 -2
  127. package/dist/ai/manifest/components/BbRating.tree.json +1 -1
  128. package/dist/ai/manifest/components/BbSelect.json +2 -1
  129. package/dist/ai/manifest/components/BbSelect.tree.json +2 -2
  130. package/dist/ai/manifest/components/BbSelectPopover.json +1 -0
  131. package/dist/ai/manifest/components/BbSlider.tree.json +1 -1
  132. package/dist/ai/manifest/components/BbSwitch.json +4 -4
  133. package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
  134. package/dist/ai/manifest/components/BbSwitchGroup.json +7 -7
  135. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -2
  136. package/dist/ai/manifest/components/BbTable.json +15 -14
  137. package/dist/ai/manifest/components/BbTable.tree.json +2 -0
  138. package/dist/ai/manifest/components/BbTabs.json +3 -3
  139. package/dist/ai/manifest/components/BbTabsList.json +1 -1
  140. package/dist/ai/manifest/components/BbTabsRoot.json +1 -1
  141. package/dist/ai/manifest/components/BbTag.json +1 -1
  142. package/dist/ai/manifest/components/BbTag.tree.json +2 -2
  143. package/dist/ai/manifest/components/BbTextInput.json +1 -1
  144. package/dist/ai/manifest/components/BbTextInput.tree.json +2 -2
  145. package/dist/ai/manifest/components/BbTextarea.json +1 -1
  146. package/dist/ai/manifest/components/BbTextarea.tree.json +2 -2
  147. package/dist/ai/manifest/components/BbTimePicker.json +1 -1
  148. package/dist/ai/manifest/components/BbTimePickerInput.json +1 -1
  149. package/dist/ai/manifest/components/BbTimePickerInput.tree.json +2 -2
  150. package/dist/ai/manifest/components/BbToast.removed.json +2 -1
  151. package/dist/ai/manifest/components/BbTooltip.json +1 -1
  152. package/dist/ai/manifest/components/BbTooltip.tree.json +2 -2
  153. package/dist/ai/manifest/components/BbTree.json +2 -2
  154. package/dist/ai/manifest/components/CommonField.tree.json +5 -10
  155. package/dist/ai/manifest/components/CommonFieldInput.tree.json +3 -3
  156. package/dist/ai/manifest/components/OptionsContainer.tree.json +5 -13
  157. package/dist/ai/manifest/index.json +4 -4
  158. package/dist/ai/manifest/meta.json +5 -1
  159. package/dist/ai/manifest/types.advanced.json +9 -9
  160. package/dist/ai/manifest/types.api.json +7 -6
  161. package/dist/ai/recipes/inertia/approvals-inbox.md +23 -16
  162. package/dist/ai/recipes/inertia/inline-edit-workspace.md +12 -5
  163. package/dist/ai/recipes/inertia/layout-scaffold.md +5 -3
  164. package/dist/ai/recipes/inertia/onboarding.md +23 -12
  165. package/dist/ai/recipes/inertia/ownership-atlas.md +34 -18
  166. package/dist/ai/recipes/inertia/record-form.md +12 -8
  167. package/dist/ai/recipes/inertia/records-workspace.md +14 -7
  168. package/dist/ai/recipes/inertia/settings-workspace.md +75 -60
  169. package/dist/ai/recipes/inertia/upload-center.md +17 -9
  170. package/dist/ai/recipes/inertia/wizard-form.md +2 -2
  171. package/dist/ai/recipes/nuxt/approvals-inbox.md +23 -16
  172. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +12 -5
  173. package/dist/ai/recipes/nuxt/layout-scaffold.md +5 -3
  174. package/dist/ai/recipes/nuxt/onboarding.md +5 -4
  175. package/dist/ai/recipes/nuxt/ownership-atlas.md +34 -18
  176. package/dist/ai/recipes/nuxt/record-form.md +14 -10
  177. package/dist/ai/recipes/nuxt/records-workspace.md +14 -7
  178. package/dist/ai/recipes/nuxt/settings-workspace.md +70 -60
  179. package/dist/ai/recipes/nuxt/upload-center.md +17 -9
  180. package/dist/ai/recipes/nuxt/wizard-form.md +4 -4
  181. package/dist/ai/recipes/vue/approvals-inbox.md +23 -16
  182. package/dist/ai/recipes/vue/inline-edit-workspace.md +12 -5
  183. package/dist/ai/recipes/vue/layout-scaffold.md +5 -3
  184. package/dist/ai/recipes/vue/onboarding.md +5 -4
  185. package/dist/ai/recipes/vue/ownership-atlas.md +34 -18
  186. package/dist/ai/recipes/vue/record-form.md +14 -10
  187. package/dist/ai/recipes/vue/records-workspace.md +14 -7
  188. package/dist/ai/recipes/vue/settings-workspace.md +70 -60
  189. package/dist/ai/recipes/vue/upload-center.md +17 -9
  190. package/dist/ai/recipes/vue/wizard-form.md +4 -4
  191. package/dist/ai/source/BbAccordion.md +50 -16
  192. package/dist/ai/source/BbBadge.md +420 -26
  193. package/dist/ai/source/BbBadgeButton.md +378 -12
  194. package/dist/ai/source/BbBreadcrumbs.md +31 -12
  195. package/dist/ai/source/BbButton.md +205 -55
  196. package/dist/ai/source/BbCalendar.md +5 -0
  197. package/dist/ai/source/BbCheckbox.md +36 -42
  198. package/dist/ai/source/BbCheckboxGroup.md +40 -17
  199. package/dist/ai/source/BbColorInput.md +2 -4
  200. package/dist/ai/source/BbConfigScope.md +19 -2
  201. package/dist/ai/source/BbConfirm.md +74 -80
  202. package/dist/ai/source/BbConfirmPortal.md +6 -6
  203. package/dist/ai/source/BbDatePicker.md +9 -2
  204. package/dist/ai/source/BbDatePickerInput.md +5 -5
  205. package/dist/ai/source/BbDialog.md +53 -2
  206. package/dist/ai/source/BbDropdown.md +360 -99
  207. package/dist/ai/source/BbDropdownButton.md +24 -13
  208. package/dist/ai/source/BbDropdownGroup.md +145 -60
  209. package/dist/ai/source/BbForm.md +144 -10
  210. package/dist/ai/source/BbNumberInput.md +2 -4
  211. package/dist/ai/source/BbOffCanvas.md +53 -2
  212. package/dist/ai/source/BbPagination.md +1 -1
  213. package/dist/ai/source/BbRadio.md +36 -42
  214. package/dist/ai/source/BbRadioGroup.md +74 -14
  215. package/dist/ai/source/BbRating.md +32 -36
  216. package/dist/ai/source/BbSelect.md +40 -13
  217. package/dist/ai/source/BbSelectPopover.md +105 -34
  218. package/dist/ai/source/BbSlider.md +2 -4
  219. package/dist/ai/source/BbSwitch.md +57 -46
  220. package/dist/ai/source/BbSwitchGroup.md +67 -21
  221. package/dist/ai/source/BbTable.md +363 -49
  222. package/dist/ai/source/BbTabs.md +6 -0
  223. package/dist/ai/source/BbTabsList.md +10 -0
  224. package/dist/ai/source/BbTabsPanels.md +6 -0
  225. package/dist/ai/source/BbTabsRoot.md +6 -0
  226. package/dist/ai/source/BbTag.md +2 -4
  227. package/dist/ai/source/BbTextInput.md +2 -4
  228. package/dist/ai/source/BbTextarea.md +2 -4
  229. package/dist/ai/source/BbTimePickerInput.md +2 -4
  230. package/dist/ai/source/BbTooltip.md +9 -3
  231. package/dist/ai/source/BbTree.md +14 -4
  232. package/dist/ai/source/CommonField.md +17 -106
  233. package/dist/ai/source/CommonFieldInput.md +2 -1
  234. package/dist/ai/source/GuidesComponent.md +3 -0
  235. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +7 -3
  236. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +52 -38
  237. package/dist/components/BbAccordion/ptKeys.generated.d.ts +20 -0
  238. package/dist/components/BbAccordion/types.d.ts +21 -7
  239. package/dist/components/BbAccordion/types.js +1 -1
  240. package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -1
  241. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +5 -5
  242. package/dist/components/BbBadge/BbBadge.vue.d.ts +1 -1
  243. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +65 -42
  244. package/dist/components/BbBadge/types.d.ts +15 -12
  245. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +106 -106
  246. package/dist/components/BbBreadcrumbs/types.d.ts +6 -0
  247. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +79 -73
  248. package/dist/components/BbButton/types.d.ts +7 -6
  249. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +2 -1
  250. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +2 -1
  251. package/dist/components/BbCalendar/types.d.ts +5 -0
  252. package/dist/components/BbCalendar/useCalendarGrid.js +1 -1
  253. package/dist/components/BbCalendar/useDayGrid.js +1 -1
  254. package/dist/components/BbCheckbox/types.d.ts +2 -4
  255. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +10 -4
  256. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  257. package/dist/components/BbCheckboxGroup/types.d.ts +4 -6
  258. package/dist/components/BbColorInput/types.d.ts +2 -4
  259. package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +8 -8
  260. package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +71 -132
  261. package/dist/components/BbConfirm/ptKeys.generated.d.ts +5 -5
  262. package/dist/components/BbConfirm/types.d.ts +5 -5
  263. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +2 -1
  264. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +3 -0
  265. package/dist/components/BbDatePicker/types.d.ts +5 -0
  266. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +1 -1
  267. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +2 -0
  268. package/dist/components/BbDatePickerInput/types.d.ts +4 -5
  269. package/dist/components/BbDialog/BbDialog.vue.d.ts +3 -0
  270. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +263 -235
  271. package/dist/components/BbDialog/overlayActions.js +94 -0
  272. package/dist/components/BbDialog/types.d.ts +24 -0
  273. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +4 -3
  274. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +384 -332
  275. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +121 -120
  276. package/dist/components/BbDropdown/dropdownHandle.js +6 -0
  277. package/dist/components/BbDropdown/normalizeGroups.js +58 -44
  278. package/dist/components/BbDropdown/types.d.ts +116 -50
  279. package/dist/components/BbDropdown/types.js +2 -2
  280. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +105 -104
  281. package/dist/components/BbDropdownButton/types.d.ts +2 -4
  282. package/dist/components/BbForm/BbForm.vue.d.ts +2 -1
  283. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +240 -198
  284. package/dist/components/BbForm/recognizeValidation.d.ts +9 -0
  285. package/dist/components/BbForm/recognizeValidation.js +55 -0
  286. package/dist/components/BbForm/validationError.d.ts +10 -0
  287. package/dist/components/BbForm/validationError.js +11 -0
  288. package/dist/components/BbNumberInput/types.d.ts +2 -4
  289. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +3 -0
  290. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +414 -389
  291. package/dist/components/BbOffCanvas/sheetAttrs.js +5 -5
  292. package/dist/components/BbOffCanvas/types.d.ts +24 -0
  293. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +3 -3
  294. package/dist/components/BbRadio/types.d.ts +2 -4
  295. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +10 -4
  296. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +173 -157
  297. package/dist/components/BbRadioGroup/types.d.ts +11 -7
  298. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +126 -119
  299. package/dist/components/BbRating/types.d.ts +5 -6
  300. package/dist/components/BbSelect/BbSelect.vue.d.ts +17 -10
  301. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +3 -1
  302. package/dist/components/BbSelect/types.d.ts +12 -6
  303. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +11 -4
  304. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +513 -502
  305. package/dist/components/BbSelectPopover/types.d.ts +10 -2
  306. package/dist/components/BbSlider/types.d.ts +2 -4
  307. package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -0
  308. package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +85 -73
  309. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +10 -4
  310. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +171 -152
  311. package/dist/components/BbSwitchGroup/types.d.ts +1 -1
  312. package/dist/components/BbTable/BbTable.vue.d.ts +36 -25
  313. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1338 -1215
  314. package/dist/components/BbTable/BbTableDataRow.js +2 -1
  315. package/dist/components/BbTable/BbTableRowMenu.js +36 -0
  316. package/dist/components/BbTable/types.d.ts +33 -18
  317. package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +2 -2
  318. package/dist/components/BbTabs/types.d.ts +6 -0
  319. package/dist/components/BbTag/types.d.ts +2 -4
  320. package/dist/components/BbTextInput/BbTextInput.vue.d.ts +1 -1
  321. package/dist/components/BbTextInput/types.d.ts +2 -4
  322. package/dist/components/BbTextarea/BbTextarea.vue.d.ts +1 -1
  323. package/dist/components/BbTextarea/types.d.ts +2 -4
  324. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +1 -1
  325. package/dist/components/BbTimePickerInput/types.d.ts +2 -4
  326. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +88 -94
  327. package/dist/components/BbTooltip/ptKeys.generated.d.ts +4 -4
  328. package/dist/components/BbTooltip/types.d.ts +3 -1
  329. package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +1 -1
  330. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +9 -9
  331. package/dist/components/BbTree/types.d.ts +8 -2
  332. package/dist/components/CommonField/types.d.ts +2 -4
  333. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +39 -39
  334. package/dist/composables/formSubmitLock.js +15 -8
  335. package/dist/composables/overlayRegistry.d.ts +5 -0
  336. package/dist/composables/overlayRegistry.js +154 -148
  337. package/dist/composables/useBbDropdown.d.ts +8 -0
  338. package/dist/composables/useBbDropdown.js +3 -1
  339. package/dist/composables/useBbTabs.js +138 -138
  340. package/dist/composables/useChoiceIndicator.js +67 -64
  341. package/dist/composables/useConfirm.d.ts +63 -52
  342. package/dist/composables/useConfirm.js +22 -18
  343. package/dist/deprecation/ai-deprecations.json.js +1 -1
  344. package/dist/directives/bbDropdown.d.ts +7 -7
  345. package/dist/directives/bbDropdown.js +22 -15
  346. package/dist/directives/bbTooltip.d.ts +3 -3
  347. package/dist/directives/createPopoverDirective.js +57 -35
  348. package/dist/i18n/locales/ar.json +5 -1
  349. package/dist/i18n/locales/cs.json +5 -1
  350. package/dist/i18n/locales/da.json +5 -1
  351. package/dist/i18n/locales/de-CH.json +5 -1
  352. package/dist/i18n/locales/de.json +5 -1
  353. package/dist/i18n/locales/el.json +5 -1
  354. package/dist/i18n/locales/en-GB.json +5 -1
  355. package/dist/i18n/locales/en.json +5 -1
  356. package/dist/i18n/locales/es-MX.json +5 -1
  357. package/dist/i18n/locales/es.json +5 -1
  358. package/dist/i18n/locales/fa.json +5 -1
  359. package/dist/i18n/locales/fi.json +5 -1
  360. package/dist/i18n/locales/fr.json +5 -1
  361. package/dist/i18n/locales/he.json +5 -1
  362. package/dist/i18n/locales/hu.json +5 -1
  363. package/dist/i18n/locales/it.json +5 -1
  364. package/dist/i18n/locales/ja.json +5 -1
  365. package/dist/i18n/locales/ko.json +5 -1
  366. package/dist/i18n/locales/nb.json +5 -1
  367. package/dist/i18n/locales/nl.json +5 -1
  368. package/dist/i18n/locales/pl.json +5 -1
  369. package/dist/i18n/locales/pt-BR.json +5 -1
  370. package/dist/i18n/locales/pt-PT.json +5 -1
  371. package/dist/i18n/locales/ro.json +5 -1
  372. package/dist/i18n/locales/ru.json +5 -1
  373. package/dist/i18n/locales/sv.json +5 -1
  374. package/dist/i18n/locales/tr.json +5 -1
  375. package/dist/i18n/locales/uk.json +5 -1
  376. package/dist/i18n/locales/zh-CN.json +5 -1
  377. package/dist/i18n/locales/zh-HK.json +5 -1
  378. package/dist/i18n/locales/zh-TW.json +5 -1
  379. package/dist/index.d.ts +2 -0
  380. package/dist/index.js +4 -3
  381. package/dist/llms-full.txt +2216 -1332
  382. package/dist/llms-medium.txt +21 -18
  383. package/dist/llms.txt +2 -2
  384. package/dist/locale-blueprint.json +5 -1
  385. package/dist/plugin.js +17 -40
  386. package/dist/pluginCore.js +30 -0
  387. package/dist/styles.css +2 -2
  388. package/dist/types/ActionButton.d.ts +26 -5
  389. package/dist/types/ActionButton.js +11 -0
  390. package/dist/types/ConfigDefaults.d.ts +34 -3
  391. package/dist/types/ConfigDefaults.js +14 -8
  392. package/dist/types/FieldLayout.d.ts +4 -1
  393. package/dist/types/ItemAccessor.d.ts +3 -1
  394. package/dist/types/ItemPath.d.ts +62 -0
  395. package/dist/types/ptComponentMap.d.ts +1 -1
  396. package/dist/utilities/functions/clickCount.js +14 -0
  397. package/dist/utils/versionCheck.js +1 -1
  398. package/llms.txt +2 -2
  399. package/package.json +16 -4
  400. package/scripts/README.md +35 -29
  401. package/scripts/lib/adoption-checklist.json +2 -2
  402. package/scripts/lib/define-preset-copy.mjs +1 -1
  403. package/scripts/lib/eslint-disable.mjs +5 -3
  404. package/scripts/lib/eslint-plugin.d.ts +2 -0
  405. package/scripts/lib/eslint-plugin.mjs +213 -1
  406. package/scripts/lib/redundant-item-accessor.mjs +4 -1
  407. package/scripts/lib/release-results.mjs +32 -1
  408. package/scripts/lib/renamed-item-field.mjs +4 -1
  409. package/scripts/lib/setup.mjs +8 -0
  410. package/scripts/lib/tab-links.mjs +4 -1
  411. package/scripts/lib/toolchain-check.mjs +125 -7
  412. package/scripts/lib/tree-default-expandable.mjs +53 -0
  413. package/scripts/lib/validate-bb-markup.mjs +537 -53
@@ -163,9 +163,11 @@ export type BbButtonOwnProps = {
163
163
  */
164
164
  external?: boolean;
165
165
  /**
166
- * Used when only an icon with no text should be displayed.
166
+ * Shows only the button's icon (`prepend:icon` when it has both); the
167
+ * label is hidden but stays its accessible name, so always write it.
168
+ * `true`, or per breakpoint: `{ default: true, md: false }`.
167
169
  */
168
- icon?: IconType;
170
+ iconOnly?: Responsive<boolean>;
169
171
  /**
170
172
  * Triggers a loading indicator. A loading button is soft-disabled on its
171
173
  * own (`aria-disabled`, out of the tab order, clicks and navigation
@@ -393,11 +395,10 @@ export type BbButtonSlots = {
393
395
  */
394
396
  default?: (props: BbLinkSlotProps) => any;
395
397
  /**
396
- * The icon of an icon-only button, replacing the `icon` prop. Renders inside
397
- * the `icon` part: `pt:icon`, `--icon-size` and the loading spinner apply.
398
+ * The leading icon, replacing `prepend:icon` (the one `icon-only` shows).
399
+ * Renders inside the `icon` part: `pt:icon`, `--icon-size` and the loading
400
+ * spinner apply.
398
401
  */
399
- icon?: (props: BbButtonIconSlotProps) => any;
400
- /** The leading icon, replacing `prepend:icon`; inside the `icon` part. */
401
402
  'prepend:icon'?: (props: BbButtonIconSlotProps) => any;
402
403
  /** The trailing icon, replacing `append:icon`; inside the `icon` part. */
403
404
  'append:icon'?: (props: BbButtonIconSlotProps) => any;
@@ -40,7 +40,8 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
40
40
  utc?: boolean;
41
41
  disabled?: boolean;
42
42
  readonly?: boolean;
43
- } & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "max" | "selectable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
43
+ clearable?: boolean;
44
+ } & BbCalendarModelProps<R, M> & Omit<import('vue').HTMLAttributes, `pt:${string}&${string}` | "readonly" | "disabled" | "step" | "type" | "pt" | "floating" | "clearable" | "max" | "selectable" | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbCalendarPtKeys | keyof BbCalendarModelProps<R, M>> & {}) & {
44
45
  "onUpdate:modelValue"?: ((value: import('./types.js').BbDateValue<R, M>) => any) | undefined;
45
46
  "onUpdate:activeSegment"?: ((value: BbCalendarSegment) => any) | undefined;
46
47
  "onTime-pick"?: ((payload: {
@@ -152,7 +152,8 @@ var De = ["role"], Oe = {
152
152
  firstDayOfWeek: {},
153
153
  utc: { type: Boolean },
154
154
  disabled: { type: Boolean },
155
- readonly: { type: Boolean }
155
+ readonly: { type: Boolean },
156
+ clearable: { type: Boolean }
156
157
  },
157
158
  emits: [
158
159
  "update:modelValue",
@@ -225,6 +225,11 @@ export type BbCalendarBaseProps = BbCalendarPtProps & {
225
225
  disabled?: boolean;
226
226
  /** Shows the calendar and lets the user page through it, but no pick changes the value. */
227
227
  readonly?: boolean;
228
+ /**
229
+ * Clicking the selected date (week, month, year) again clears a single
230
+ * value. Off: re-picking keeps it. `multiple` and `range` ignore it.
231
+ */
232
+ clearable?: boolean;
228
233
  };
229
234
  /**
230
235
  * The v-model of `BbCalendar`, typed by the mode props (vmodel): what the
@@ -224,7 +224,7 @@ var x = ({ props: x, firstDayOfWeek: S, floating: Me, min: Ne, max: Pe, modelVal
224
224
  } else if (x.multiple) {
225
225
  if (!Array.isArray(i)) return;
226
226
  $(r.selected ? i.filter((e) => e !== n) : Te([...i, n]));
227
- } else $(r.selected ? null : n);
227
+ } else $(r.selected && x.clearable ? null : n);
228
228
  };
229
229
  De({
230
230
  passthrough: Ie,
@@ -192,7 +192,7 @@ var D = ({ props: D, cursor: O, panes: k, system: A, nu: j, setCursor: M, pick:
192
192
  } else N(m([...t, s(e.original, I.value)]));
193
193
  }
194
194
  }, we = (e) => {
195
- e.selected ? N(null) : N(s(e.original, I.value));
195
+ e.selected && D.clearable ? N(null) : N(s(e.original, I.value));
196
196
  }, $ = (e, t) => {
197
197
  let n = O.value.clone();
198
198
  for (let r = 0; r < 366; r++) if (n = n.add(e, t), !G(n)) return n;
@@ -67,14 +67,12 @@ export type BbCheckboxFieldProps = {
67
67
  layout?: Responsive<FieldLayout>;
68
68
  /**
69
69
  * Vertical position of the label block in a side-by-side row; not
70
- * `labelPosition`, the horizontal one. Omitted, the label's first line
71
- * meets the control's.
70
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
72
71
  */
73
72
  labelAlign?: FieldCrossAlign;
74
73
  /**
75
74
  * Vertical position of the control in a side-by-side row; not
76
- * `inputPosition`, the horizontal one. Omitted, the control's first line
77
- * meets the label's.
75
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
78
76
  */
79
77
  inputAlign?: FieldCrossAlign;
80
78
  /**
@@ -1,5 +1,7 @@
1
+ import { ItemGetter } from '../../types/ItemAccessor.js';
2
+ import { ItemKeyInput, MultipleInput, OptionValueOf, SelectModelOf } from '../../types/ItemPath.js';
1
3
  import { BbCheckboxGroupEvents, BbCheckboxGroupSlots } from './types.js';
2
- declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ declare const __VLS_export: <const T = any, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined, M extends boolean = true>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
5
  props: import('vue').PublicProps & __VLS_PrettifyLocal<({
4
6
  [x: `pt:${string}&${string}`]: unknown;
5
7
  } & {
@@ -204,10 +206,14 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
204
206
  "indicator:line"?: import('../../types/passthrough.js').PtValue | undefined;
205
207
  }) | undefined;
206
208
  variant?: import('../../index.js').CheckboxVariantType;
207
- } & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "dependencies" | "variant" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | keyof import('./ptKeys.generated.js').BbCheckboxGroupPtKeys | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup" | "onClick"> & {}) & {
209
+ } & {
210
+ itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
211
+ itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
212
+ multiple?: MultipleInput<M, true>;
213
+ } & Omit<import('vue').HTMLAttributes, "legend" | "reverse" | `pt:${string}&${string}` | "readonly" | "disabled" | "warnings" | "errors" | "description" | "hint" | "pt" | "block" | "onClick" | "variant" | "dependencies" | "compact" | "layout" | "inputPosition" | "listLayout" | "itemLayout" | "itemReverse" | "modelValue" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | keyof import('./ptKeys.generated.js').BbCheckboxGroupPtKeys | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
208
214
  onActive?: (() => any) | undefined;
209
215
  onInput?: ((event: Event) => any) | undefined;
210
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
216
+ "onUpdate:modelValue"?: ((value: SelectModelOf<OptionValueOf<T, A>, M>) => any) | undefined;
211
217
  onBlur?: ((event: FocusEvent) => any) | undefined;
212
218
  onInactive?: (() => any) | undefined;
213
219
  onChange?: ((event: Event) => any) | undefined;
@@ -222,7 +228,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
222
228
  expose: (exposed: {}) => void;
223
229
  attrs: any;
224
230
  slots: BbCheckboxGroupSlots<T>;
225
- emit: BbCheckboxGroupEvents;
231
+ emit: BbCheckboxGroupEvents<SelectModelOf<OptionValueOf<T, A>, M>>;
226
232
  }>) => import('vue').VNode & {
227
233
  __ctx?: Awaited<typeof __VLS_setup>;
228
234
  };
@@ -271,7 +271,7 @@ var A = /*@__PURE__*/ x({
271
271
  clientReproducible: Fe,
272
272
  trigger: !0,
273
273
  currentValue: M.modelValue,
274
- multiple: M.multiple,
274
+ multiple: !!M.multiple,
275
275
  fn: async () => {
276
276
  await z(void 0, "initial", M.modelValue) === "applied" && V();
277
277
  }
@@ -299,7 +299,7 @@ var A = /*@__PURE__*/ x({
299
299
  key: "valueHash"
300
300
  }), { coherent: K, coherentValue: We } = h({
301
301
  modelValue: D(() => M.modelValue),
302
- multiple: M.multiple,
302
+ multiple: !!M.multiple,
303
303
  iteratee: (e) => !!Ue.value[ee(e)]
304
304
  }), q = 0;
305
305
  g(() => M.modelValue, async () => {
@@ -77,14 +77,12 @@ export type BbCheckboxGroupBaseProps<T> = {
77
77
  layout?: Responsive<FieldLayout>;
78
78
  /**
79
79
  * Vertical position of the label block in a side-by-side row; not
80
- * `labelPosition`, the horizontal one. Omitted, the label's first line
81
- * meets the control's.
80
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
82
81
  */
83
82
  labelAlign?: FieldCrossAlign;
84
83
  /**
85
84
  * Vertical position of the control in a side-by-side row; not
86
- * `inputPosition`, the horizontal one. Omitted, the control's first line
87
- * meets the label's.
85
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
88
86
  */
89
87
  inputAlign?: FieldCrossAlign;
90
88
  /**
@@ -293,7 +291,7 @@ export type BbCheckboxGroupBaseProps<T> = {
293
291
  */
294
292
  selectable?: boolean | ((item: T) => boolean);
295
293
  } & FormFieldProps<any>;
296
- export type BbCheckboxGroupEvents = {
294
+ export type BbCheckboxGroupEvents<V = any> = {
297
295
  /**
298
296
  * Emitted when one of the generated checkbox inputs loses focus.
299
297
  * Forwards the original DOM `FocusEvent`.
@@ -344,7 +342,7 @@ export type BbCheckboxGroupEvents = {
344
342
  /**
345
343
  * Emitted with the coherent next selection array whenever selection changes.
346
344
  */
347
- (e: 'update:modelValue', value: any): void;
345
+ (e: 'update:modelValue', value: V): void;
348
346
  };
349
347
  /**
350
348
  * BbCheckboxGroup's `pt:*` attributes: the documented keys, and the patterns
@@ -145,14 +145,12 @@ export type BbColorInputProps = BbColorInputPtProps & {
145
145
  layout?: Responsive<FieldLayout>;
146
146
  /**
147
147
  * Vertical position of the label block in a side-by-side row; not
148
- * `labelPosition`, the horizontal one. Omitted, the label's first line
149
- * meets the control's.
148
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
150
149
  */
151
150
  labelAlign?: FieldCrossAlign;
152
151
  /**
153
152
  * Vertical position of the control in a side-by-side row; not
154
- * `inputPosition`, the horizontal one. Omitted, the control's first line
155
- * meets the label's.
153
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
156
154
  */
157
155
  inputAlign?: FieldCrossAlign;
158
156
  /**
@@ -12,16 +12,16 @@ var d = /*@__PURE__*/ o({
12
12
  setup(o) {
13
13
  let d = o;
14
14
  r();
15
- let f = s(n, null), p = t, m = process.env.NODE_ENV === "production" ? null : e(), h = /* @__PURE__ */ new Set(), g, _, v = a(() => {
15
+ let f = s(n, null), p = t, m = process.env.NODE_ENV === "production" ? null : e(), h = /* @__PURE__ */ new Set(), g = (e) => Array.isArray(e) ? e.map(g) : e && typeof e == "object" && [Object.prototype, null].includes(Object.getPrototypeOf(u(e))) ? Object.fromEntries(Object.entries(u(e)).map(([e, t]) => [e, g(t)])) : e, _, v, y = a(() => {
16
16
  let e = d.config;
17
- if (!e) return g = _ = void 0;
18
- let t = JSON.stringify(u(e));
19
- if (t === g && _) return _;
17
+ if (!e) return _ = v = void 0;
18
+ let t = JSON.stringify(u(e), (e, t) => typeof t == "function" ? `fn:${String(t)}` : t);
19
+ if (t === _ && v) return v;
20
20
  if (m) for (let [t, n] of Object.entries(e)) for (let e of Object.keys(n ?? {})) (e === "variants" || p[t]?.includes(e)) && !h.has(`${t}.${e}`) && (h.add(`${t}.${e}`), m.warn(`BbConfigScope: \`config.${t}.${e}\` is app-wide only and is ignored here. Set it in the plugin's \`components\` map.`));
21
- return g = t, _ = {
21
+ return _ = t, v = {
22
22
  source: "<BbConfigScope :config>",
23
- map: JSON.parse(t)
24
- }, _;
23
+ map: g(u(e))
24
+ }, v;
25
25
  });
26
26
  return c(n, a(() => {
27
27
  let e = [...f?.value ?? []];
@@ -29,7 +29,7 @@ var d = /*@__PURE__*/ o({
29
29
  source: `configScopes.${d.name}`,
30
30
  map: i.value[d.name] ?? {}
31
31
  });
32
- let t = v.value;
32
+ let t = y.value;
33
33
  return t && e.push(t), e;
34
34
  })), (e, t) => l(e.$slots, "default");
35
35
  }
@@ -7,13 +7,14 @@ import { usePassthrough as c, variantPt as l } from "../../composables/usePassth
7
7
  import { BB_DIALOG_PT as u } from "../BbDialog/types.js";
8
8
  import { BB_CONFIRM_PT as d } from "./types.js";
9
9
  import { CONFIRM_ENTRY as f } from "./confirmEntry.js";
10
- import p from "../BbButton/BbButton.vue.js";
11
- import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createSlots as y, defineComponent as b, inject as x, markRaw as S, mergeProps as C, normalizeProps as w, onMounted as T, openBlock as E, renderList as D, resolveDynamicComponent as O, toDisplayString as k, unref as A, useAttrs as j, withCtx as M } from "vue";
10
+ import { BB_OVERLAY_ACTION_ATTRS as p } from "../BbDialog/overlayActions.js";
11
+ import { ACTION_LOOK_KEYS as m } from "../../types/ConfigDefaults.js";
12
+ import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, defineComponent as y, inject as b, markRaw as x, mergeProps as S, normalizeProps as C, onMounted as w, openBlock as T, provide as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useAttrs as A, withCtx as j } from "vue";
12
13
  // src/components/BbConfirm/BbConfirm.vue?vue&type=script&setup=true&lang.ts
13
- var N = {
14
+ var M = {
14
15
  key: 0,
15
16
  class: "bb-confirm__content"
16
- }, P = /*@__PURE__*/ b({
17
+ }, N = /*@__PURE__*/ y({
17
18
  mixins: [l(d)],
18
19
  inheritAttrs: !1,
19
20
  __name: "BbConfirm",
@@ -66,160 +67,98 @@ var N = {
66
67
  pt: {}
67
68
  },
68
69
  setup(l) {
69
- let b = l, P = x(f), F = P.state, I = h(() => P.message), { isMobile: L } = o(), R = j(), z = d.parts.filter((e) => e !== "text" && e !== "action"), B = c({
70
+ let y = l, N = b(f), P = N.state, F = h(() => N.message), { isMobile: I } = o(), L = A(), R = d.parts.filter((e) => e !== "text" && e !== "action"), z = c({
70
71
  component: "BbConfirm",
71
- attrs: R,
72
- props: b,
72
+ attrs: L,
73
+ props: y,
73
74
  parts: d.parts,
74
75
  states: d.states,
75
76
  active: {
76
- open: () => F.processing,
77
- fullscreen: () => I.value?.fullscreen === !0 || I.value?.fullscreen === "mobile" && L.value
77
+ open: () => P.processing,
78
+ fullscreen: () => F.value?.fullscreen === !0 || F.value?.fullscreen === "mobile" && I.value
78
79
  },
79
80
  variant: {
80
81
  ...d.variant,
81
- current: () => I.value?.variant ?? "default"
82
+ current: () => F.value?.variant ?? "default"
82
83
  }
83
- }), V = h(() => {
84
- let { class: e, ...t } = R, n = {
84
+ }), B = h(() => {
85
+ let { class: e, ...t } = L, n = {
85
86
  role: "alertdialog",
86
87
  ...t
87
88
  };
88
- return G.value && !I.value?.title ? {
89
- "aria-labelledby": H,
89
+ return W.value && !F.value?.title ? {
90
+ "aria-labelledby": V,
90
91
  ...n
91
92
  } : n;
92
- }), H = `confirm_text_${i().id.value}`, U = a("BbConfirm", "size");
93
- T(() => {
94
- F.processing || r(P);
93
+ }), V = `confirm_text_${i().id.value}`, H = a("BbConfirm", "size");
94
+ w(() => {
95
+ P.processing || r(N);
95
96
  });
96
- let W = h(() => F.yesBusy || F.noBusy || F.actionBusy !== null), G = h(() => !!I.value?.text), K = {
97
- data: I.value.data ?? {},
98
- yes: () => n(!0, !1, P),
99
- no: () => n(!1, !0, P)
100
- }, q = h(() => {
101
- let e = I.value?.portal;
97
+ let U = h(() => P.okBusy || P.cancelBusy || P.actionBusy !== null), W = h(() => !!F.value?.text), G = {
98
+ data: F.value.data ?? {},
99
+ ok: () => n(!0, !1, N),
100
+ cancel: () => n(!1, !0, N)
101
+ }, K = h(() => {
102
+ let e = F.value?.portal;
102
103
  if (!e) return null;
103
104
  if (typeof e != "string") return e;
104
105
  let n = t.get(e);
105
- return n ? S(() => n(K)) : null;
106
- }), J = h(() => G.value || !!q.value), Y = h(() => {
107
- let { portal: e, data: t } = I.value ?? {};
106
+ return n ? x(() => n(G)) : null;
107
+ }), q = h(() => W.value || !!K.value), J = h(() => {
108
+ let { portal: e, data: t } = F.value ?? {};
108
109
  return !e || typeof e == "string" || !t ? {} : t;
109
- }), X = h(() => I.value?.actions !== !1), Z = h(() => {
110
- let e = I.value?.actions;
111
- return Array.isArray(e) && e.length ? e : null;
112
- }), Q = h(() => I.value?.no || null), $ = h(() => I.value?.yes || null), ee = h(() => ["bb-confirm", `bb-confirm--${I.value?.variant ?? "default"}`]), te = (e) => {
113
- e || n(!1, !1, P);
110
+ }), Y = a("BbConfirm", m.ok), X = a("BbConfirm", m.cancel), Z = (e, t) => {
111
+ if (!e) return !1;
112
+ let { onClick: n, defaulted: r = [], ...i } = e, a = { ...i };
113
+ for (let [e, n] of Object.entries(t ?? {})) n !== void 0 && (a[e] === void 0 || r.includes(e)) && (a[e] = n);
114
+ return {
115
+ ...a,
116
+ onClick: async () => (await n(), !1)
117
+ };
118
+ }, Q = h(() => Z(F.value?.ok, Y())), $ = h(() => Z(F.value?.cancel, X())), ee = h(() => {
119
+ let e = F.value?.actions;
120
+ return e === !1 ? !1 : Array.isArray(e) && e.length ? e.map((e) => Z(e)) : void 0;
121
+ });
122
+ E(p, () => S({ class: "bb-confirm__action" }, z.action));
123
+ let te = h(() => ["bb-confirm", `bb-confirm--${F.value?.variant ?? "default"}`]), ne = (e) => {
124
+ e || n(!1, !1, N);
114
125
  };
115
- return (t, n) => (E(), g(s, C({
116
- "aria-describedby": G.value && I.value?.title ? H : void 0,
117
- class: ee.value,
118
- "focus-target": I.value?.focusTarget,
119
- fullscreen: I.value?.fullscreen,
120
- "hide-close": W.value || !!I.value?.hideClose,
121
- "model-value": A(F).processing,
122
- persistent: W.value || !!I.value?.persistent,
123
- pt: A(B).forward(A(z), A(u).states)
124
- }, V.value, {
125
- size: I.value?.size ?? A(U)(),
126
- stack: I.value?.stack ?? A("bb-confirm"),
127
- title: I.value?.title,
128
- "transition-duration": A(e),
129
- onHidden: n[2] ||= (e) => A(r)(A(P)),
130
- "onUpdate:modelValue": te
131
- }), y({
132
- default: M(() => [J.value ? (E(), v("div", N, [G.value ? (E(), v("div", C({
126
+ return (t, n) => (T(), g(s, S({
127
+ actions: ee.value,
128
+ "aria-describedby": W.value && F.value?.title ? V : void 0,
129
+ cancel: $.value,
130
+ class: te.value,
131
+ "focus-target": F.value?.focusTarget,
132
+ fullscreen: F.value?.fullscreen,
133
+ "hide-close": U.value || !!F.value?.hideClose,
134
+ "model-value": k(P).processing,
135
+ ok: Q.value,
136
+ persistent: U.value || !!F.value?.persistent,
137
+ pt: k(z).forward(k(R), k(u).states)
138
+ }, B.value, {
139
+ size: F.value?.size ?? k(H)(),
140
+ stack: F.value?.stack ?? k("bb-confirm"),
141
+ title: F.value?.title,
142
+ "transition-duration": k(e),
143
+ onHidden: n[0] ||= (e) => k(r)(k(N)),
144
+ "onUpdate:modelValue": ne
145
+ }), {
146
+ default: j(() => [q.value ? (T(), v("div", M, [W.value ? (T(), v("div", S({
133
147
  key: 0,
134
- id: H,
148
+ id: V,
135
149
  class: "bb-confirm__text"
136
- }, A(B).text), k(I.value?.text), 17)) : (E(), g(O(q.value), w(C({ key: 1 }, Y.value)), null, 16))])) : _("", !0)]),
137
- _: 2
138
- }, [X.value ? {
139
- name: "footer",
140
- fn: M(() => [
141
- Z.value ? (E(!0), v(m, { key: 0 }, D(Z.value, (e, t) => (E(), g(p, C({
142
- key: t,
143
- "append:icon": e["append:icon"],
144
- block: e.block,
145
- disabled: A(F).actionBusy !== null && A(F).actionBusy !== t,
146
- icon: e.icon,
147
- loading: A(F).actionBusy === t,
148
- "prepend:icon": e["prepend:icon"],
149
- size: e.size,
150
- text: e.text,
151
- variant: e.variant,
152
- onClick: (t) => e.onClick(),
153
- class: "bb-confirm__action"
154
- }, { ref_for: !0 }, A(B).action), null, 16, [
155
- "append:icon",
156
- "block",
157
- "disabled",
158
- "icon",
159
- "loading",
160
- "prepend:icon",
161
- "size",
162
- "text",
163
- "variant",
164
- "onClick"
165
- ]))), 128)) : _("", !0),
166
- Q.value ? (E(), g(p, C({
167
- key: 1,
168
- "append:icon": Q.value["append:icon"],
169
- block: Q.value.block,
170
- disabled: A(F).yesBusy,
171
- icon: Q.value.icon,
172
- loading: A(F).noBusy,
173
- "prepend:icon": Q.value["prepend:icon"],
174
- size: Q.value.size,
175
- text: Q.value.text,
176
- variant: Q.value.variant,
177
- onClick: n[0] ||= (e) => Q.value.onClick(),
178
- class: "bb-confirm__action"
179
- }, A(B).action), null, 16, [
180
- "append:icon",
181
- "block",
182
- "disabled",
183
- "icon",
184
- "loading",
185
- "prepend:icon",
186
- "size",
187
- "text",
188
- "variant"
189
- ])) : _("", !0),
190
- $.value ? (E(), g(p, C({
191
- key: 2,
192
- "append:icon": $.value["append:icon"],
193
- block: $.value.block,
194
- disabled: A(F).noBusy,
195
- icon: $.value.icon,
196
- loading: A(F).yesBusy,
197
- "prepend:icon": $.value["prepend:icon"],
198
- size: $.value.size,
199
- text: $.value.text,
200
- variant: $.value.variant,
201
- onClick: n[1] ||= (e) => $.value.onClick(),
202
- class: "bb-confirm__action"
203
- }, A(B).action), null, 16, [
204
- "append:icon",
205
- "block",
206
- "disabled",
207
- "icon",
208
- "loading",
209
- "prepend:icon",
210
- "size",
211
- "text",
212
- "variant"
213
- ])) : _("", !0)
214
- ]),
215
- key: "0"
216
- } : void 0]), 1040, [
150
+ }, k(z).text), O(F.value?.text), 17)) : (T(), g(D(K.value), C(S({ key: 1 }, J.value)), null, 16))])) : _("", !0)]),
151
+ _: 1
152
+ }, 16, [
153
+ "actions",
217
154
  "aria-describedby",
155
+ "cancel",
218
156
  "class",
219
157
  "focus-target",
220
158
  "fullscreen",
221
159
  "hide-close",
222
160
  "model-value",
161
+ "ok",
223
162
  "persistent",
224
163
  "pt",
225
164
  "size",
@@ -229,4 +168,4 @@ var N = {
229
168
  ]));
230
169
  }
231
170
  });
232
- export { P as default };
171
+ export { N as default };
@@ -162,23 +162,23 @@ export interface BbConfirmPtKeys {
162
162
  */
163
163
  'pt:close:destructive'?: PtValue;
164
164
  /**
165
- * Every footer button — yes, no and each custom `actions` entry — at the button's root. A broadcast.
165
+ * Every footer button — ok, cancel and each custom `actions` entry — at the button's root. A broadcast.
166
166
  */
167
167
  'pt:action'?: PtValue;
168
168
  /**
169
- * Every footer button — yes, no and each custom `actions` entry — at the button's root. While `open`: a confirm is showing. See `pt:action`.
169
+ * Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `open`: a confirm is showing. See `pt:action`.
170
170
  */
171
171
  'pt:action:open'?: PtValue;
172
172
  /**
173
- * Every footer button — yes, no and each custom `actions` entry — at the button's root. While `fullscreen`: the showing confirm is fullscreen (its `fullscreen` option, or `'mobile'` on a phone). See `pt:action`.
173
+ * Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `fullscreen`: the showing confirm is fullscreen (its `fullscreen` option, or `'mobile'` on a phone). See `pt:action`.
174
174
  */
175
175
  'pt:action:fullscreen'?: PtValue;
176
176
  /**
177
- * Every footer button — yes, no and each custom `actions` entry — at the button's root. While `default`: component-wide, from the message: `variant: 'default'`. Merged after the part's base entry and before its states, so the real states still win. See `pt:action`.
177
+ * Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `default`: component-wide, from the message: `variant: 'default'`. Merged after the part's base entry and before its states, so the real states still win. See `pt:action`.
178
178
  */
179
179
  'pt:action:default'?: PtValue;
180
180
  /**
181
- * Every footer button — yes, no and each custom `actions` entry — at the button's root. While `destructive`: component-wide, from the message: `variant: 'destructive'`. Below the real states, like every variant. See `pt:action`.
181
+ * Every footer button — ok, cancel and each custom `actions` entry — at the button's root. While `destructive`: component-wide, from the message: `variant: 'destructive'`. Below the real states, like every variant. See `pt:action`.
182
182
  */
183
183
  'pt:action:destructive'?: PtValue;
184
184
  }
@@ -18,7 +18,7 @@ import { BbConfirmPtKeys } from './ptKeys.generated.js';
18
18
  * @part text - The confirm's plain-text body — not a portal's content.
19
19
  * @part footer - The action buttons' band.
20
20
  * @part close - The ✕.
21
- * @part action - Every footer button — yes, no and each custom `actions`
21
+ * @part action - Every footer button — ok, cancel and each custom `actions`
22
22
  * entry — at the button's root. A broadcast.
23
23
  */
24
24
  export type BbConfirmPtPart = 'root' | 'sheet' | 'header' | 'title' | 'content' | 'text' | 'footer' | 'close' | 'action';
@@ -65,9 +65,9 @@ export type BbConfirmProps = BbConfirmPtProps & {
65
65
  export type BbConfirmPortalSlotProps<P = any> = {
66
66
  /** The `data` the `confirm()` passed. */
67
67
  data: P;
68
- /** Resolves the confirm with `true`. */
69
- yes: () => void;
70
- /** Resolves the confirm with `false`. */
71
- no: () => void;
68
+ /** Resolves the confirm with `true` (through `ok.onClick` when set). */
69
+ ok: () => void;
70
+ /** Resolves the confirm with `false` (through `cancel.onClick` when set). */
71
+ cancel: () => void;
72
72
  };
73
73
  export {};
@@ -41,6 +41,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
41
41
  utc?: boolean;
42
42
  disabled?: boolean;
43
43
  readonly?: boolean;
44
+ clearable?: boolean;
44
45
  adaptive?: boolean;
45
46
  offCanvasProps?: Partial<import('../../index.js').BbOffCanvasProps>;
46
47
  transitionDuration?: number;
@@ -51,7 +52,7 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
51
52
  disableFlip?: boolean;
52
53
  eager?: boolean;
53
54
  label?: string;
54
- } & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
55
+ } & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
55
56
  "onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, M>) => any) | undefined;
56
57
  onHide?: (() => any) | undefined;
57
58
  onShow?: (() => any) | undefined;
@@ -133,6 +133,7 @@ var k = /*@__PURE__*/ v({
133
133
  utc: { type: Boolean },
134
134
  disabled: { type: Boolean },
135
135
  readonly: { type: Boolean },
136
+ clearable: { type: Boolean },
136
137
  adaptive: {
137
138
  type: Boolean,
138
139
  default: void 0
@@ -285,6 +286,7 @@ var k = /*@__PURE__*/ v({
285
286
  default: D(() => [_(ee, {
286
287
  "active-segment": d.activeSegment,
287
288
  ampm: d.ampm,
289
+ clearable: d.clearable,
288
290
  disabled: d.disabled,
289
291
  "first-day-of-week": d.firstDayOfWeek,
290
292
  floating: d.floating,
@@ -317,6 +319,7 @@ var k = /*@__PURE__*/ v({
317
319
  }))]), 1032, [
318
320
  "active-segment",
319
321
  "ampm",
322
+ "clearable",
320
323
  "disabled",
321
324
  "first-day-of-week",
322
325
  "floating",
@@ -193,6 +193,11 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
193
193
  disabled?: boolean;
194
194
  /** Prevents opening while keeping the activator visible. */
195
195
  readonly?: boolean;
196
+ /**
197
+ * Clicking the selected date (week, month, year) again clears a single
198
+ * value. Off: re-picking keeps it. `multiple` and `range` ignore it.
199
+ */
200
+ clearable?: boolean;
196
201
  /**
197
202
  * On mobile, open in a bottom off-canvas sheet instead of a floating popover.
198
203
  * When unset, falls back to the global `all.adaptive`.
@@ -78,7 +78,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
78
78
  time?: string | string[] | null;
79
79
  transitionDuration?: number;
80
80
  utc?: boolean;
81
- } & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "prepend:icon" | "append:icon" | "variant" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
81
+ } & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
82
82
  onActive?: (() => any) | undefined;
83
83
  "onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, false>) => any) | undefined;
84
84
  onInactive?: (() => any) | undefined;