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
@@ -1,9 +1,9 @@
1
1
  import e from "./BbOffCanvas.vue.js";
2
2
  import { camelize as t } from "vue";
3
3
  // src/components/BbOffCanvas/sheetAttrs.ts
4
- var n = new Set(Object.keys(e.props ?? {})), r = (e) => {
5
- let r;
6
- for (let [i, a] of Object.entries(e)) n.has(t(i)) && (r ??= { ...e }, delete r[i], r[`^${i}`] = a);
7
- return r ?? e;
4
+ var n = null, r = () => n ??= new Set(Object.keys(e.props ?? {})), i = (e) => {
5
+ let n;
6
+ for (let [i, a] of Object.entries(e)) r().has(t(i)) && (n ??= { ...e }, delete n[i], n[`^${i}`] = a);
7
+ return n ?? e;
8
8
  };
9
- export { r as asSheetAttrs };
9
+ export { i as asSheetAttrs };
@@ -1,5 +1,6 @@
1
1
  import { BbDialogResult } from '../../composables/overlayRegistry.js';
2
2
  import { Size } from '../../types/CommonProps.js';
3
+ import { ActionButtonConfig, BbAction } from '../../types/ActionButton.js';
3
4
  import { PtCompoundProps, PtMap } from '../../types/passthrough.js';
4
5
  import { Sizes } from '../../types/SizeScale.js';
5
6
  import { Responsive } from '../../types/ResponsiveSize.js';
@@ -166,6 +167,23 @@ export type BbOffCanvasProps = BbOffCanvasPtProps & {
166
167
  * @defaultValue `'sm'`
167
168
  */
168
169
  size?: Responsive<OffCanvasSize>;
170
+ /**
171
+ * The primary footer button: `true` (the locale's OK), a label, or a
172
+ * button config. Clicked: its `onClick`, else it submits the one `BbForm`
173
+ * inside, else `complete(data)`. Unset: no button. Config sets its look.
174
+ */
175
+ ok?: BbAction;
176
+ /**
177
+ * The dismiss button, before `ok`: `true` (the locale's Cancel), a label,
178
+ * or a button config. Clicked: its `onClick`, then the panel closes as a
179
+ * dismissal (`reason: 'close'`). Unset: no button.
180
+ */
181
+ cancel?: BbAction;
182
+ /**
183
+ * Footer buttons replacing `ok` / `cancel`, in order: each runs its
184
+ * `onClick`, then completes the panel with `data`. `false`: none.
185
+ */
186
+ actions?: false | readonly ActionButtonConfig[];
169
187
  /**
170
188
  * Title text announced to assistive technologies. If omitted, no header is rendered and
171
189
  * accessibility must be handled manually.
@@ -187,6 +205,12 @@ export type BbOffCanvasProps = BbOffCanvasPtProps & {
187
205
  side?: Responsive<'start' | 'end' | 'left' | 'top' | 'right' | 'bottom'>;
188
206
  };
189
207
  export type BbOffCanvasEvents = {
208
+ /**
209
+ * The panel completes (`ok`, `complete(value)`): the same value as the
210
+ * opener's `onComplete`, before it. Return a promise to keep the panel
211
+ * open and locked until it settles; `false` or a throw keeps it open.
212
+ */
213
+ (e: 'complete', value: any): unknown;
190
214
  /** Emitted as soon as the user triggers the open action (model becomes true). */
191
215
  (e: 'show'): void;
192
216
  /**
@@ -232,7 +232,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
232
232
  ref: K,
233
233
  class: "bb-pagination__pages"
234
234
  }, [
235
- h("li", null, [g(D(n), x(v(he.value)), {
235
+ h("li", null, [g(n, x(v(he.value)), {
236
236
  default: k(() => [T(r.$slots, "previous", {}, () => [h("span", A, E(D(I)("pagination.previous").value), 1), g(e, b({
237
237
  class: "bb-pagination__icon",
238
238
  icon: D(t),
@@ -244,7 +244,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
244
244
  key: 0,
245
245
  "aria-hidden": "true",
246
246
  class: "bb-pagination__ellipsis bb-pagination__page bb-pagination__page--ellipsis"
247
- }, { ref_for: !0 }, D(F).ellipsis), [T(r.$slots, "ellipsis", {}, () => [h("span", j, E(P.ellipsis), 1)])], 16)) : (S(), ae(D(n), b({
247
+ }, { ref_for: !0 }, D(F).ellipsis), [T(r.$slots, "ellipsis", {}, () => [h("span", j, E(P.ellipsis), 1)])], 16)) : (S(), ae(n, b({
248
248
  key: 1,
249
249
  ref_for: !0
250
250
  }, ge(e)), {
@@ -255,7 +255,7 @@ var de = ["aria-label"], A = { class: "bb-pagination__page-label bb-sr-only" },
255
255
  }, () => [h("span", M, E(e.page), 1)])]),
256
256
  _: 2
257
257
  }, 1040))]))), 128)),
258
- h("li", null, [g(D(n), x(v(_e.value)), {
258
+ h("li", null, [g(n, x(v(_e.value)), {
259
259
  default: k(() => [T(r.$slots, "next", {}, () => [h("span", N, E(D(I)("pagination.next").value), 1), g(e, b({
260
260
  class: "bb-pagination__icon",
261
261
  icon: D(t),
@@ -61,14 +61,12 @@ export type BbRadioProps = BbRadioPtProps & {
61
61
  layout?: Responsive<FieldLayout>;
62
62
  /**
63
63
  * Vertical position of the label block in a side-by-side row; not
64
- * `labelPosition`, the horizontal one. Omitted, the label's first line
65
- * meets the control's.
64
+ * `labelPosition`, the horizontal one. Omitted, `'top'`.
66
65
  */
67
66
  labelAlign?: FieldCrossAlign;
68
67
  /**
69
68
  * Vertical position of the control in a side-by-side row; not
70
- * `inputPosition`, the horizontal one. Omitted, the control's first line
71
- * meets the label's.
69
+ * `inputPosition`, the horizontal one. Omitted, `'top'`.
72
70
  */
73
71
  inputAlign?: FieldCrossAlign;
74
72
  /**
@@ -1,6 +1,8 @@
1
+ import { ItemGetter } from '../../types/ItemAccessor.js';
2
+ import { ItemKeyInput, OptionValueOf } from '../../types/ItemPath.js';
1
3
  import { BbRadioGroupProps, BbRadioGroupEvents, BbRadioGroupSlots } from './types.js';
2
4
  export type { BbRadioGroupProps, BbRadioGroupEvents, BbRadioGroupSlots };
3
- 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<{
5
+ declare const __VLS_export: <const T = any, A extends string | ((...args: never[]) => unknown) | undefined = undefined, Tx extends string | undefined = undefined>(__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
6
  props: import('vue').PublicProps & __VLS_PrettifyLocal<({
5
7
  [x: `pt:${string}&${string}`]: unknown;
6
8
  } & {
@@ -160,6 +162,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
160
162
  "indicator:line"?: import('../../types/passthrough.js').PtValue | undefined;
161
163
  }) | undefined;
162
164
  autofocus?: import('vue').InputHTMLAttributes["autofocus"];
165
+ clearable?: boolean;
163
166
  compact?: boolean;
164
167
  dependencies?: unknown[];
165
168
  depsDebounceTime?: number;
@@ -203,10 +206,13 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
203
206
  required?: boolean;
204
207
  reverse?: boolean;
205
208
  selectable?: boolean | ((item: T) => boolean) | undefined;
206
- } & import('../../composables/useFormBinding.js').FormFieldProps<any> & 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" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | keyof import('./ptKeys.generated.js').BbRadioGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup" | "onClick"> & {}) & {
209
+ } & import('../../composables/useFormBinding.js').FormFieldProps<any> & {
210
+ itemValue?: ItemKeyInput<T, A> | ItemGetter<T, any>;
211
+ itemText?: ItemKeyInput<T, Tx> | ItemGetter<T, string>;
212
+ } & 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" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "name" | "persistentHint" | "required" | keyof import('../../composables/useFormBinding.js').FormFieldProps<any> | "depsDebounceTime" | "enforceCoherence" | "hideLegend" | "items" | "itemText" | "itemValue" | "itemProps" | "itemLabelAlign" | "itemInputAlign" | "legendPosition" | "legendMode" | "loadingText" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | keyof import('./ptKeys.generated.js').BbRadioGroupPtKeys | "onFocus" | "onBlur" | "onChange" | "onInput" | "onKeydown" | "onMousedown" | "onMouseup"> & {}) & {
207
213
  onActive?: (() => any) | undefined;
208
214
  onInput?: ((event: Event) => any) | undefined;
209
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
215
+ "onUpdate:modelValue"?: ((value: OptionValueOf<T, A>) => any) | undefined;
210
216
  onBlur?: ((event: FocusEvent) => any) | undefined;
211
217
  onInactive?: (() => any) | undefined;
212
218
  onChange?: ((event: Event) => any) | undefined;
@@ -221,7 +227,7 @@ declare const __VLS_export: <T = any>(__VLS_props: NonNullable<Awaited<typeof __
221
227
  expose: (exposed: {}) => void;
222
228
  attrs: any;
223
229
  slots: BbRadioGroupSlots<T>;
224
- emit: BbRadioGroupEvents;
230
+ emit: BbRadioGroupEvents<OptionValueOf<T, A>>;
225
231
  }>) => import('vue').VNode & {
226
232
  __ctx?: Awaited<typeof __VLS_setup>;
227
233
  };
@@ -5,29 +5,31 @@ import r from "../OptionsContainer/OptionsContainer.vue.js";
5
5
  import i from "../BbBaseRadioIcon/BbBaseRadioIcon.vue.js";
6
6
  import { aliasParts as a, formControlPtActive as o, pickActive as s, usePassthrough as c, variantPt as l } from "../../composables/usePassthrough.js";
7
7
  import { useId as u } from "../../composables/useId.js";
8
- import { isNotEmpty as d } from "../../utilities/functions/isNotEmpty.js";
9
- import { withItemDescribedby as ee } from "../../utilities/functions/itemProps.js";
10
- import { hash as te } from "../../utilities/functions/hash.js";
11
- import { preventReadonlyClick as ne, preventReadonlyKeydown as re, revertReadonlyChange as ie, toggleInputAttrs as ae, toggleInputValue as oe } from "../../utilities/functions/toggleInput.js";
12
- import { useToggleListFocus as se } from "../../composables/useToggleInput.js";
13
- import { useChoiceIndicator as ce } from "../../composables/useChoiceIndicator.js";
14
- import { useItemsGetter as le } from "../../composables/useItemsGetter.js";
15
- import { usePrefill as ue } from "../../composables/usePrefill.js";
8
+ import { useLocale as d } from "../../composables/useLocale.js";
9
+ import { isNotEmpty as ee } from "../../utilities/functions/isNotEmpty.js";
10
+ import { withItemDescribedby as te } from "../../utilities/functions/itemProps.js";
11
+ import { hash as ne } from "../../utilities/functions/hash.js";
12
+ import { createClickCount as re } from "../../utilities/functions/clickCount.js";
13
+ import { preventReadonlyClick as ie, preventReadonlyKeydown as ae, revertReadonlyChange as oe, toggleInputAttrs as se, toggleInputValue as ce } from "../../utilities/functions/toggleInput.js";
14
+ import { useToggleListFocus as le } from "../../composables/useToggleInput.js";
15
+ import { useChoiceIndicator as ue } from "../../composables/useChoiceIndicator.js";
16
+ import { useItemsGetter as de } from "../../composables/useItemsGetter.js";
17
+ import { usePrefill as fe } from "../../composables/usePrefill.js";
16
18
  import { useIndexById as f } from "../../composables/useIndexById.js";
17
- import { useBaseOptions as p } from "../../composables/useBaseOptions.js";
18
- import { useCoherence as m } from "../../composables/useCoherence.js";
19
- import { useHashedWatcher as h } from "../../composables/useHashedWatcher.js";
20
- import { useActiveInactiveState as de } from "../../composables/useActiveInactiveState.js";
21
- import { useOnFalsy as fe } from "../../composables/useOnFalsy.js";
22
- import { useOnTruthy as pe } from "../../composables/useOnTruthy.js";
23
- import { removedPropsFor as me } from "../../deprecation/removedProps.js";
24
- import { warnRemovedAttrs as he } from "../../utilities/functions/warnRemovedAttrs.js";
25
- import { BB_RADIO_GROUP_PT as g } from "./types.js";
26
- import { useFormBinding as ge } from "../../composables/useFormBinding.js";
27
- import { Fragment as _e, computed as _, createBlock as ve, createElementBlock as v, createElementVNode as ye, createSlots as be, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeProps as S, nextTick as xe, normalizeProps as C, openBlock as w, ref as Se, renderList as Ce, renderSlot as T, shallowRef as we, toRef as E, unref as D, useAttrs as O, useSlots as k, withCtx as A, withDirectives as Te } from "vue";
19
+ import { useBaseOptions as pe } from "../../composables/useBaseOptions.js";
20
+ import { useCoherence as me } from "../../composables/useCoherence.js";
21
+ import { useHashedWatcher as p } from "../../composables/useHashedWatcher.js";
22
+ import { useActiveInactiveState as he } from "../../composables/useActiveInactiveState.js";
23
+ import { useOnFalsy as ge } from "../../composables/useOnFalsy.js";
24
+ import { useOnTruthy as _e } from "../../composables/useOnTruthy.js";
25
+ import { removedPropsFor as ve } from "../../deprecation/removedProps.js";
26
+ import { warnRemovedAttrs as ye } from "../../utilities/functions/warnRemovedAttrs.js";
27
+ import { BB_RADIO_GROUP_PT as m } from "./types.js";
28
+ import { useFormBinding as be } from "../../composables/useFormBinding.js";
29
+ import { Fragment as xe, computed as h, createBlock as Se, createCommentVNode as Ce, createElementBlock as g, createElementVNode as we, createSlots as Te, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as x, normalizeProps as S, openBlock as C, ref as Ee, renderList as De, renderSlot as w, shallowRef as Oe, toDisplayString as ke, toRef as T, unref as E, useAttrs as Ae, useSlots as je, withCtx as D, withDirectives as Me } from "vue";
28
30
  // src/components/BbRadioGroup/BbRadioGroup.vue?vue&type=script&setup=true&lang.ts
29
- var j = /*@__PURE__*/ b({
30
- mixins: [l(g)],
31
+ var Ne = ["id"], O = /*@__PURE__*/ v({
32
+ mixins: [l(m)],
31
33
  inheritAttrs: !1,
32
34
  __name: "BbRadioGroup",
33
35
  props: {
@@ -155,6 +157,7 @@ var j = /*@__PURE__*/ b({
155
157
  "pt:indicator:outline": {},
156
158
  pt: {},
157
159
  autofocus: { type: [Boolean, String] },
160
+ clearable: { type: Boolean },
158
161
  compact: {
159
162
  type: Boolean,
160
163
  default: void 0
@@ -231,223 +234,235 @@ var j = /*@__PURE__*/ b({
231
234
  "mouseup",
232
235
  "update:modelValue"
233
236
  ],
234
- setup(l, { emit: b }) {
235
- let j = l, Ee = b, De = k(), M = e("BbRadioGroup", j, {
237
+ setup(l, { emit: v }) {
238
+ let O = l, Pe = v, Fe = je(), k = e("BbRadioGroup", O, {
236
239
  inputPosition: "start",
237
240
  compact: !1,
238
241
  itemReverse: !1,
239
242
  reverse: !1,
240
243
  block: !1
241
- }), { props: N, emit: P, showAsterisk: Oe, errors: ke, ariaRequired: Ae, readonly: F } = ge(j, Ee, {
244
+ }), { props: A, emit: j, showAsterisk: Ie, errors: Le, ariaRequired: Re, readonly: M } = be(O, Pe, {
242
245
  componentName: "BbRadioGroup",
243
- identifierFallback: () => j.legend,
246
+ identifierFallback: () => O.legend,
244
247
  leaveOn: "inactive"
245
- }), I = () => !!N.legend || !!De.legend;
246
- process.env.NODE_ENV !== "production" && he("BbRadioGroup", me("BbRadioGroup"));
247
- let je = u().id, L = _(() => N.name || je.value), Me = [], R = _(() => N.items === void 0 ? Me : N.items), z = we(null), Ne = (e) => {
248
- z.value = e?.$el ?? null;
249
- }, { active: B } = de(z), V = Se(!1), Pe = _(() => N.persistentHint || V.value);
250
- fe(B, () => {
251
- V.value = !1, P("inactive");
252
- }), pe(B, () => {
253
- V.value = !0, P("active");
248
+ }), N = () => !!A.legend || !!Fe.legend;
249
+ process.env.NODE_ENV !== "production" && ye("BbRadioGroup", ve("BbRadioGroup"));
250
+ let ze = u().id, P = h(() => A.name || ze.value), { t: Be } = d(), F = u().id, Ve = Be("radioGroup.clearHint"), I = h(() => A.clearable && !A.disabled && !A.readonly), He = [], L = h(() => A.items === void 0 ? He : A.items), R = Oe(null), Ue = (e) => {
251
+ R.value = e?.$el ?? null;
252
+ }, { active: z } = he(R), B = Ee(!1), We = h(() => A.persistentHint || B.value);
253
+ ge(z, () => {
254
+ B.value = !1, j("inactive");
255
+ }), _e(z, () => {
256
+ B.value = !0, j("active");
254
257
  });
255
- let { getter: H, clientReproducible: Fe, hydratedFromSsr: Ie, items: Le, loading: U, error: Re, ssrMarker: ze } = le({
256
- items: R,
258
+ let { getter: V, clientReproducible: Ge, hydratedFromSsr: Ke, items: qe, loading: H, error: Je, ssrMarker: Ye } = de({
259
+ items: L,
257
260
  marker: !0
258
- }), W = () => {
259
- N.enforceCoherence && !q.value && P("update:modelValue", null);
260
- }, { hasPrefilled: G, whenPrefilled: Be } = ue({
261
- alreadyLoaded: Ie,
262
- clientReproducible: Fe,
261
+ }), U = () => {
262
+ A.enforceCoherence && !K.value && j("update:modelValue", null);
263
+ }, { hasPrefilled: W, whenPrefilled: Xe } = fe({
264
+ alreadyLoaded: Ke,
265
+ clientReproducible: Ge,
263
266
  trigger: !0,
264
- currentValue: N.modelValue,
267
+ currentValue: A.modelValue,
265
268
  multiple: !1,
266
269
  fn: async () => {
267
- await H(void 0, "initial", N.modelValue) === "applied" && W();
270
+ await V(void 0, "initial", A.modelValue) === "applied" && U();
268
271
  }
269
- }), { data: Ve } = f({ items: _(() => [N.modelValue]) }), { options: K } = p({
270
- disabled: E(() => N.disabled),
271
- items: Le,
272
- itemText: N.itemText,
273
- itemProps: E(() => N.itemProps),
274
- itemValue: N.itemValue,
272
+ }), { data: Ze } = f({ items: h(() => [A.modelValue]) }), { options: G } = pe({
273
+ disabled: T(() => A.disabled),
274
+ items: qe,
275
+ itemText: A.itemText,
276
+ itemProps: T(() => A.itemProps),
277
+ itemValue: A.itemValue,
275
278
  optionDefaults: !0,
276
279
  max: Infinity,
277
- selectable: E(() => N.selectable),
278
- selectedIndexedByHash: Ve
279
- }), { data: He } = f({
280
- items: K,
280
+ selectable: T(() => A.selectable),
281
+ selectedIndexedByHash: Ze
282
+ }), { data: Qe } = f({
283
+ items: G,
281
284
  key: "valueHash"
282
- }), { coherent: q } = m({
283
- modelValue: E(() => N.modelValue),
285
+ }), { coherent: K } = me({
286
+ modelValue: T(() => A.modelValue),
284
287
  multiple: !1,
285
- iteratee: (e) => !!He.value[te(e)]
286
- }), J = 0;
287
- h(() => N.modelValue, async () => {
288
- J++, q.value || await H(void 0, "model", N.modelValue) === "applied" && W(), J--;
289
- }, { debounce: N.modelValueDebounceTime === void 0 ? 0 : N.modelValueDebounceTime }), h(() => [N.dependencies, R.value], async () => {
290
- G.value || await Be(), G.value && (J++, await H(void 0, "dependencies", N.modelValue) === "applied" && J === 1 && W(), J--);
291
- }, { debounce: N.depsDebounceTime === void 0 ? 0 : N.depsDebounceTime });
292
- let Y = _(() => d(N.modelValue)), X = c({
288
+ iteratee: (e) => !!Qe.value[ne(e)]
289
+ }), q = 0;
290
+ p(() => A.modelValue, async () => {
291
+ q++, K.value || await V(void 0, "model", A.modelValue) === "applied" && U(), q--;
292
+ }, { debounce: A.modelValueDebounceTime === void 0 ? 0 : A.modelValueDebounceTime }), p(() => [A.dependencies, L.value], async () => {
293
+ W.value || await Xe(), W.value && (q++, await V(void 0, "dependencies", A.modelValue) === "applied" && q === 1 && U(), q--);
294
+ }, { debounce: A.depsDebounceTime === void 0 ? 0 : A.depsDebounceTime });
295
+ let J = h(() => ee(A.modelValue)), Y = c({
293
296
  component: "BbRadioGroup",
294
- attrs: O(),
295
- props: N,
296
- parts: g.parts,
297
- states: g.states,
297
+ attrs: Ae(),
298
+ props: A,
299
+ parts: m.parts,
300
+ states: m.states,
298
301
  variant: {
299
- ...g.variant,
300
- current: () => N.variant
302
+ ...m.variant,
303
+ current: () => A.variant
301
304
  },
302
305
  active: {
303
- ...s(o(N, () => Y.value), [
306
+ ...s(o(A, () => J.value), [
304
307
  "errors",
305
308
  "warnings",
306
309
  "disabled",
307
310
  "readonly",
308
311
  "hasValue"
309
312
  ]),
310
- loading: () => U.value
313
+ loading: () => H.value
311
314
  }
312
- }), Ue = _(() => M.listLayout === "vertical"), { boxes: We, ready: Ge, styleOf: Ke } = ce({
315
+ }), $e = h(() => k.listLayout === "vertical"), { boxes: et, ready: tt, styleOf: nt } = ue({
313
316
  kind: "radio",
314
- variant: () => N.variant,
315
- vertical: () => Ue.value,
316
- list: () => z.value,
317
- rows: () => K.value,
317
+ variant: () => A.variant,
318
+ vertical: () => $e.value,
319
+ list: () => R.value,
320
+ rows: () => G.value,
318
321
  rowClass: "bb-radio-group__item"
319
- }), Z = a(X, { label: "legend" }), Q = se(), $ = (e, t) => {
322
+ }), rt = a(Y, { label: "legend" }), X = le(), Z = (e, t) => {
320
323
  if (t) return [t, e.valueHash].filter(Boolean).join("-");
321
- }, qe = () => {
322
- let e = z.value?.querySelectorAll("input[type=\"radio\"]") ?? [];
323
- e.length === K.value.length && K.value.forEach((t, n) => {
324
+ }, Q = () => {
325
+ let e = R.value?.querySelectorAll("input[type=\"radio\"]") ?? [];
326
+ e.length === G.value.length && G.value.forEach((t, n) => {
324
327
  e[n].checked = !!t.selected;
325
328
  });
326
- }, Je = (e) => ({
329
+ }, $ = re(), it = (e) => !A.clearable || A.readonly || e.disabled || !e.selected ? !1 : (j("update:modelValue", null), x(Q), !0), at = (e) => ({
327
330
  onBlur: (t) => {
328
- Q.onBlur(e.valueHash), P("blur", t);
331
+ X.onBlur(e.valueHash), j("blur", t);
329
332
  },
330
333
  onChange: (t) => {
331
- N.readonly ? t.target instanceof HTMLInputElement && ie(t.target, N.readonly, !!e.selected) : (P("change", t), P("update:modelValue", e.value), xe(qe));
334
+ A.readonly ? t.target instanceof HTMLInputElement && oe(t.target, A.readonly, !!e.selected) : (j("change", t), j("update:modelValue", e.value), x(Q));
332
335
  },
333
- onClick: (e) => {
334
- ne(e, N.readonly), P("click", e);
336
+ onClick: (t) => {
337
+ ie(t, A.readonly), j("click", t), $.count(t) <= 1 && it(e);
335
338
  },
336
339
  onFocus: (t) => {
337
- Q.onFocus(e.valueHash, t), V.value = !0, P("focus", t);
340
+ X.onFocus(e.valueHash, t), B.value = !0, j("focus", t);
338
341
  },
339
- onInput: (e) => P("input", e),
342
+ onInput: (e) => j("input", e),
340
343
  onKeydown: (e) => {
341
- re(e, N.readonly), P("keydown", e);
344
+ ae(e, A.readonly), j("keydown", e);
342
345
  },
343
- onMousedown: (e) => P("mousedown", e),
344
- onMouseup: (e) => P("mouseup", e)
345
- }), Ye = (e, t, n, r, i, a) => ({
346
- ...ae("radio", {
347
- ariaDescribedby: ee(r, a),
346
+ onKeyup: (t) => {
347
+ t.key === " " && it(e) && t.preventDefault();
348
+ },
349
+ onMousedown: (e) => j("mousedown", e),
350
+ onMouseup: (e) => j("mouseup", e)
351
+ }), ot = (e, t, n, r, i, a) => ({
352
+ ...se("radio", {
353
+ ariaDescribedby: [te(r, a), I.value ? F.value : void 0].filter(Boolean).join(" ") || void 0,
348
354
  ariaLabelledby: i,
349
- autofocus: N.autofocus && !t,
355
+ autofocus: A.autofocus && !t,
350
356
  checked: !!e.selected,
351
357
  disabled: e.disabled,
352
- id: $(e, n),
353
- name: L.value,
354
- readonly: N.readonly,
355
- required: N.required,
358
+ id: Z(e, n),
359
+ name: P.value,
360
+ readonly: A.readonly,
361
+ required: A.required,
356
362
  value: e.value
357
363
  }),
358
- ...Je(e)
359
- }), Xe = (e, t, n, r) => ({
364
+ ...at(e)
365
+ }), st = (e, t, n, r) => ({
360
366
  checked: !!e.selected,
361
367
  disabled: !!e.disabled,
362
- focused: Q.focused(e.valueHash),
363
- focusVisible: Q.focusVisible(e.valueHash),
368
+ focused: X.focused(e.valueHash),
369
+ focusVisible: X.focusVisible(e.valueHash),
364
370
  hasErrors: !!n,
365
371
  hasWarnings: !!r && !n,
366
- id: $(e, t),
367
- name: L.value,
368
- parsedValue: oe("radio", e.value),
369
- readonly: !!N.readonly,
372
+ id: Z(e, t),
373
+ name: P.value,
374
+ parsedValue: ce("radio", e.value),
375
+ readonly: !!A.readonly,
370
376
  value: e.value
371
377
  });
372
- return (e, a) => (w(), ve(n, S({
378
+ return (e, a) => (C(), Se(n, b({
373
379
  id: l.id,
374
380
  class: "bb-radio-group",
375
- compact: D(M).compact,
381
+ compact: E(k).compact,
376
382
  description: l.description,
377
383
  disabled: l.disabled,
378
- errors: D(ke),
384
+ errors: E(Le),
379
385
  "has-errors": l.hasErrors,
380
- "has-value": Y.value,
386
+ "has-value": J.value,
381
387
  "has-warnings": l.hasWarnings,
382
388
  "hide-label": l.hideLegend,
383
389
  hint: l.hint,
384
390
  "input-align": l.inputAlign,
385
- "input-position": D(M).inputPosition,
391
+ "input-position": E(k).inputPosition,
386
392
  label: l.legend,
387
393
  "label-align": l.labelAlign,
388
394
  "label-mode": l.legendMode,
389
395
  "label-position": l.legendPosition,
390
396
  "label-tag": "legend",
391
- layout: D(M).layout,
392
- loading: D(U),
393
- name: L.value,
394
- passthrough: D(Z),
395
- readonly: D(F),
396
- reverse: D(M).reverse,
397
- "show-asterisk": D(Oe),
398
- "show-hint": Pe.value,
399
- "ssr-marker": D(ze),
397
+ layout: E(k).layout,
398
+ loading: E(H),
399
+ name: P.value,
400
+ passthrough: E(rt),
401
+ readonly: E(M),
402
+ reverse: E(k).reverse,
403
+ "show-asterisk": E(Ie),
404
+ "show-hint": We.value,
405
+ "ssr-marker": E(Ye),
400
406
  tag: "fieldset",
401
407
  warnings: l.warnings
402
- }, D(X).forwardAttrs), be({
403
- label: A((t) => [T(e.$slots, "legend", C(x(t)))]),
404
- input: A(({ id: n, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [y(r, {
405
- ref: Ne,
406
- "aria-labelledby": I() ? `${n}__label` : void 0,
407
- "aria-readonly": I() && D(F) ? !0 : void 0,
408
- "aria-required": I() ? D(Ae) : void 0,
408
+ }, E(Y).forwardAttrs), Te({
409
+ label: D((t) => [w(e.$slots, "legend", S(y(t)))]),
410
+ input: D(({ id: n, hasErrors: a, hasWarnings: o, ariaDescribedby: s }) => [_(r, {
411
+ ref: Ue,
412
+ "aria-labelledby": N() ? `${n}__label` : void 0,
413
+ "aria-readonly": N() && E(M) ? !0 : void 0,
414
+ "aria-required": N() ? E(Re) : void 0,
409
415
  block: "bb-radio-group",
410
416
  "empty-text": l.emptyText,
411
- error: D(Re),
417
+ error: E(Je),
412
418
  "failed-text": l.failedText,
413
419
  "has-errors": a,
414
420
  "has-warnings": o,
415
421
  "hide-label": l.hideLabel,
416
- "indicator-ready": D(Ge),
422
+ "indicator-ready": E(tt),
417
423
  "item-input-align": l.itemInputAlign,
418
424
  "item-label-align": l.itemLabelAlign,
419
- "item-layout": D(M).itemLayout,
420
- "item-reverse": D(M).itemReverse,
421
- "list-block": D(M).block,
422
- "list-layout": D(M).listLayout,
423
- loading: !!D(U),
425
+ "item-layout": E(k).itemLayout,
426
+ "item-reverse": E(k).itemReverse,
427
+ "list-block": E(k).block,
428
+ "list-layout": E(k).listLayout,
429
+ loading: !!E(H),
424
430
  "loading-text": l.loadingText,
425
- options: D(K),
426
- passthrough: D(X),
427
- role: I() ? "radiogroup" : void 0,
428
- variant: l.variant
431
+ options: E(G),
432
+ passthrough: E(Y),
433
+ role: N() ? "radiogroup" : void 0,
434
+ variant: l.variant,
435
+ onMousedownCapture: E($).onPress
429
436
  }, {
430
- prepend: A(() => [(w(!0), v(_e, null, Ce(D(We), (e) => (w(), v("span", S({
431
- key: e.key,
432
- "aria-hidden": "true",
433
- class: "bb-radio-group__indicator",
434
- style: D(Ke)(e)
435
- }, { ref_for: !0 }, D(X).indicator), null, 16))), 128)), T(e.$slots, "prepend")]),
436
- loading: A(() => [T(e.$slots, "loading")]),
437
- empty: A((t) => [T(e.$slots, "empty", C(x(t)))]),
438
- label: A((t) => [T(e.$slots, "label", C(x(t)))]),
439
- input: A(({ option: r, index: c, labelId: l, descriptionId: u, rowStates: d }) => [Te(ye("input", C(x(Ye(r, c, n, s, l, u))), null, 16), [[D(t)]]), T(e.$slots, "icon", S({
437
+ prepend: D(() => [
438
+ (C(!0), g(xe, null, De(E(et), (e) => (C(), g("span", b({
439
+ key: e.key,
440
+ "aria-hidden": "true",
441
+ class: "bb-radio-group__indicator",
442
+ style: E(nt)(e)
443
+ }, { ref_for: !0 }, E(Y).indicator), null, 16))), 128)),
444
+ I.value ? (C(), g("span", {
445
+ key: 0,
446
+ id: E(F),
447
+ hidden: ""
448
+ }, ke(E(Ve)), 9, Ne)) : Ce("", !0),
449
+ w(e.$slots, "prepend")
450
+ ]),
451
+ loading: D(() => [w(e.$slots, "loading")]),
452
+ empty: D((t) => [w(e.$slots, "empty", S(y(t)))]),
453
+ label: D((t) => [w(e.$slots, "label", S(y(t)))]),
454
+ input: D(({ option: r, index: c, labelId: l, descriptionId: u, rowStates: d }) => [Me(we("input", S(y(ot(r, c, n, s, l, u))), null, 16), [[E(t)]]), w(e.$slots, "icon", b({
440
455
  item: r.item,
441
456
  text: r.text
442
- }, Xe(r, n, a, o)), () => [y(i, S({
457
+ }, st(r, n, a, o)), () => [_(i, b({
443
458
  checked: !!r.selected,
444
459
  disabled: !!r.disabled,
445
- "focus-visible": D(Q).focusVisible(r.valueHash),
446
- focused: D(Q).focused(r.valueHash),
460
+ "focus-visible": E(X).focusVisible(r.valueHash),
461
+ focused: E(X).focused(r.valueHash),
447
462
  "has-errors": !!a,
448
463
  "has-warnings": !!o && !a,
449
- readonly: !!D(F)
450
- }, D(X).part("icon", d, r.item)), null, 16, [
464
+ readonly: !!E(M)
465
+ }, E(Y).part("icon", d, r.item)), null, 16, [
451
466
  "checked",
452
467
  "disabled",
453
468
  "focus-visible",
@@ -456,7 +471,7 @@ var j = /*@__PURE__*/ b({
456
471
  "has-warnings",
457
472
  "readonly"
458
473
  ])])]),
459
- append: A(() => [T(e.$slots, "append")]),
474
+ append: D(() => [w(e.$slots, "append")]),
460
475
  _: 2
461
476
  }, 1032, [
462
477
  "aria-labelledby",
@@ -480,14 +495,15 @@ var j = /*@__PURE__*/ b({
480
495
  "options",
481
496
  "passthrough",
482
497
  "role",
483
- "variant"
498
+ "variant",
499
+ "onMousedownCapture"
484
500
  ])]),
485
501
  _: 2
486
502
  }, [e.$slots.description ? {
487
503
  name: "description",
488
- fn: A((t) => [T(e.$slots, "description", C(x(t)))]),
504
+ fn: D((t) => [w(e.$slots, "description", S(y(t)))]),
489
505
  key: "0"
490
506
  } : void 0]), 1040, /* @__PURE__ */ "id.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.input-position.label.label-align.label-mode.label-position.layout.loading.name.passthrough.readonly.reverse.show-asterisk.show-hint.ssr-marker.warnings".split(".")));
491
507
  }
492
508
  });
493
- export { j as default };
509
+ export { O as default };