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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbAvatar.md +86 -58
  5. package/dist/ai/BbBadge.md +1 -1
  6. package/dist/ai/BbBreadcrumbs.md +3 -3
  7. package/dist/ai/BbButton.md +4 -4
  8. package/dist/ai/BbCalendar.md +5 -2
  9. package/dist/ai/BbCheckboxGroup.md +5 -4
  10. package/dist/ai/BbColorInput.md +13 -1
  11. package/dist/ai/BbColorPalette.md +12 -7
  12. package/dist/ai/BbConfirm.md +1 -1
  13. package/dist/ai/BbDatePicker.md +13 -1
  14. package/dist/ai/BbDatePickerInput.md +18 -2
  15. package/dist/ai/BbDialog.md +6 -3
  16. package/dist/ai/BbDropdown.md +174 -77
  17. package/dist/ai/BbDropdownButton.md +37 -16
  18. package/dist/ai/BbGallery.md +3 -2
  19. package/dist/ai/BbIcon.md +10 -10
  20. package/dist/ai/BbNumberInput.md +3 -1
  21. package/dist/ai/BbOffCanvas.md +3 -2
  22. package/dist/ai/BbPopover.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +227 -105
  25. package/dist/ai/BbSelectPopover.md +139 -14
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +18 -17
  28. package/dist/ai/BbTimePicker.md +13 -1
  29. package/dist/ai/BbTimePickerInput.md +16 -2
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbTree.md +5 -1
  32. package/dist/ai/CommonPopover.md +1 -0
  33. package/dist/ai/FlatListBox.md +1 -0
  34. package/dist/ai/GroupedListBox.md +3 -2
  35. package/dist/ai/ListBox.md +4 -2
  36. package/dist/ai/OptionsContainer.md +4 -4
  37. package/dist/ai/changelog.json +310 -7
  38. package/dist/ai/components.json +33 -35
  39. package/dist/ai/composables/useToast.md +2 -2
  40. package/dist/ai/design-tokens.json +60 -0
  41. package/dist/ai/guides/agent-contract.md +9 -5
  42. package/dist/ai/guides/calendars-and-digits.md +1 -1
  43. package/dist/ai/guides/design-tokens.md +13 -0
  44. package/dist/ai/guides/eslint-rules.md +1 -1
  45. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  46. package/dist/ai/guides/icons-policy.md +32 -11
  47. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  48. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  49. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  50. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  52. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  53. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  54. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  55. package/dist/ai/guides/migration/v2-to-v3.md +70 -24
  56. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  57. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  58. package/dist/ai/guides/passthrough.md +58 -58
  59. package/dist/ai/helpers/inertia/manifest.json +1 -1
  60. package/dist/ai/index.md +1 -1
  61. package/dist/ai/manifest/common.json +1 -0
  62. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  63. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  64. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  65. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  68. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  69. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  70. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  71. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  72. package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
  73. package/dist/ai/manifest/components/BbDropdown.json +36 -28
  74. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  75. package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
  76. package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
  77. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  78. package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
  79. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  80. package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
  81. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  82. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  83. package/dist/ai/manifest/components/BbSelect.json +47 -40
  84. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  85. package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
  86. package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
  87. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  88. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbTable.json +6 -6
  90. package/dist/ai/manifest/components/BbTable.tree.json +9 -1
  91. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  92. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  93. package/dist/ai/manifest/components/BbTree.json +1 -1
  94. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  95. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  96. package/dist/ai/manifest/components/GroupedListBox.json +3 -2
  97. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  98. package/dist/ai/manifest/components/ListBox.json +3 -2
  99. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  100. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  101. package/dist/ai/manifest/index.json +2 -2
  102. package/dist/ai/manifest/meta.json +0 -3
  103. package/dist/ai/manifest/types.advanced.json +6 -6
  104. package/dist/ai/manifest/types.api.json +1 -3
  105. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  106. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  107. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  108. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  109. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  110. package/dist/ai/recipes/vue/onboarding.md +2 -2
  111. package/dist/ai/source/BbAccordion.md +4 -5
  112. package/dist/ai/source/BbAvatar.md +128 -11
  113. package/dist/ai/source/BbBadge.md +18 -7
  114. package/dist/ai/source/BbBreadcrumbs.md +57 -56
  115. package/dist/ai/source/BbButton.md +41 -25
  116. package/dist/ai/source/BbCalendar.md +8 -6
  117. package/dist/ai/source/BbCarousel.md +41 -34
  118. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  119. package/dist/ai/source/BbColorInput.md +19 -0
  120. package/dist/ai/source/BbColorPalette.md +23 -2
  121. package/dist/ai/source/BbDatePicker.md +18 -0
  122. package/dist/ai/source/BbDatePickerInput.md +47 -3
  123. package/dist/ai/source/BbDialog.md +14 -1
  124. package/dist/ai/source/BbDropdown.md +296 -99
  125. package/dist/ai/source/BbDropdownButton.md +61 -19
  126. package/dist/ai/source/BbDropdownGroup.md +189 -98
  127. package/dist/ai/source/BbGallery.md +82 -60
  128. package/dist/ai/source/BbHost.md +12 -0
  129. package/dist/ai/source/BbNumberInput.md +17 -10
  130. package/dist/ai/source/BbOffCanvas.md +14 -1
  131. package/dist/ai/source/BbPagination.md +12 -28
  132. package/dist/ai/source/BbRadioGroup.md +12 -5
  133. package/dist/ai/source/BbRating.md +4 -4
  134. package/dist/ai/source/BbSelect.md +151 -112
  135. package/dist/ai/source/BbSelectPopover.md +244 -29
  136. package/dist/ai/source/BbSwitchGroup.md +11 -4
  137. package/dist/ai/source/BbTable.md +114 -35
  138. package/dist/ai/source/BbTimePicker.md +19 -0
  139. package/dist/ai/source/BbTimePickerInput.md +21 -2
  140. package/dist/ai/source/BbToast.md +2 -2
  141. package/dist/ai/source/BbToastPortal.md +2 -2
  142. package/dist/ai/source/BbTree.md +1 -1
  143. package/dist/ai/source/ClearableButton.md +4 -2
  144. package/dist/ai/source/CommonPopover.md +24 -1
  145. package/dist/ai/source/ErrorIcon.md +4 -3
  146. package/dist/ai/source/FlatListBox.md +33 -7
  147. package/dist/ai/source/GroupedListBox.md +85 -14
  148. package/dist/ai/source/ListBox.md +11 -1
  149. package/dist/ai/source/OptionsContainer.md +29 -11
  150. package/dist/ai/source/WarningIcon.md +4 -3
  151. package/dist/assets/svgs/close.svg_raw.js +1 -1
  152. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  153. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  154. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  155. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
  156. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  157. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  158. package/dist/components/BbAvatar/types.d.ts +24 -5
  159. package/dist/components/BbAvatar/types.js +5 -1
  160. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  161. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
  162. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
  163. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  164. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  165. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  166. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  167. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
  168. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  169. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  170. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  171. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  172. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  173. package/dist/components/BbColorInput/types.d.ts +7 -0
  174. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  175. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
  176. package/dist/components/BbColorPalette/types.d.ts +7 -0
  177. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  178. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  179. package/dist/components/BbDatePicker/types.d.ts +7 -0
  180. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
  181. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
  182. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  183. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  184. package/dist/components/BbDialog/leaveGhost.js +22 -17
  185. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
  186. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  187. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
  188. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
  189. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  190. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  191. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  192. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
  193. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  194. package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
  195. package/dist/components/BbDropdown/types.d.ts +109 -87
  196. package/dist/components/BbDropdown/types.js +3 -0
  197. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
  198. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
  199. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
  200. package/dist/components/BbDropdownButton/types.d.ts +23 -10
  201. package/dist/components/BbDropdownButton/types.js +4 -0
  202. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  203. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
  204. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  205. package/dist/components/BbIcon/iconCache.js +1 -1
  206. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  207. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  208. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  209. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  210. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  211. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  212. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  213. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  214. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  215. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  216. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  217. package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
  218. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
  219. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  220. package/dist/components/BbSelect/types.d.ts +110 -111
  221. package/dist/components/BbSelect/types.js +1 -27
  222. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
  223. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
  224. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  225. package/dist/components/BbSelectPopover/types.d.ts +32 -17
  226. package/dist/components/BbSelectPopover/types.js +3 -1
  227. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  228. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  229. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  230. package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
  231. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
  232. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  233. package/dist/components/BbTable/types.d.ts +11 -10
  234. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  235. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  236. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  237. package/dist/components/BbTimePicker/types.d.ts +7 -0
  238. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
  239. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
  240. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  241. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
  242. package/dist/components/BbToast/types.d.ts +2 -2
  243. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  244. package/dist/components/BbTree/types.d.ts +1 -1
  245. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  246. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  247. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  248. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  249. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  250. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
  251. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
  252. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  253. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  254. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  255. package/dist/composables/useInternalIcon.js +25 -0
  256. package/dist/composables/useItemsGetter.js +34 -32
  257. package/dist/composables/useOpenModel.js +20 -0
  258. package/dist/deprecation/ai-deprecations.json.js +1 -1
  259. package/dist/i18n/locales/ar.json +2 -0
  260. package/dist/i18n/locales/cs.json +2 -0
  261. package/dist/i18n/locales/da.json +2 -0
  262. package/dist/i18n/locales/de-CH.json +2 -0
  263. package/dist/i18n/locales/de.json +2 -0
  264. package/dist/i18n/locales/el.json +2 -0
  265. package/dist/i18n/locales/en-GB.json +2 -0
  266. package/dist/i18n/locales/en.json +2 -0
  267. package/dist/i18n/locales/es-MX.json +2 -0
  268. package/dist/i18n/locales/es.json +2 -0
  269. package/dist/i18n/locales/fa.json +2 -0
  270. package/dist/i18n/locales/fi.json +2 -0
  271. package/dist/i18n/locales/fr.json +2 -0
  272. package/dist/i18n/locales/he.json +2 -0
  273. package/dist/i18n/locales/hu.json +2 -0
  274. package/dist/i18n/locales/it.json +2 -0
  275. package/dist/i18n/locales/ja.json +2 -0
  276. package/dist/i18n/locales/ko.json +2 -0
  277. package/dist/i18n/locales/nb.json +2 -0
  278. package/dist/i18n/locales/nl.json +2 -0
  279. package/dist/i18n/locales/pl.json +2 -0
  280. package/dist/i18n/locales/pt-BR.json +2 -0
  281. package/dist/i18n/locales/pt-PT.json +2 -0
  282. package/dist/i18n/locales/ro.json +2 -0
  283. package/dist/i18n/locales/ru.json +2 -0
  284. package/dist/i18n/locales/sv.json +2 -0
  285. package/dist/i18n/locales/tr.json +2 -0
  286. package/dist/i18n/locales/uk.json +2 -0
  287. package/dist/i18n/locales/zh-CN.json +2 -0
  288. package/dist/i18n/locales/zh-HK.json +2 -0
  289. package/dist/i18n/locales/zh-TW.json +2 -0
  290. package/dist/icon-scan.d.ts +1 -1
  291. package/dist/icon-scan.js +68 -61
  292. package/dist/index.d.ts +2 -2
  293. package/dist/llms-full.txt +1038 -451
  294. package/dist/llms-medium.txt +33 -28
  295. package/dist/llms.txt +2 -2
  296. package/dist/locale-blueprint.json +2 -0
  297. package/dist/nuxt.js +1 -1
  298. package/dist/styles.css +2 -2
  299. package/dist/types/ActionButton.d.ts +2 -3
  300. package/dist/types/Config.d.ts +8 -1
  301. package/dist/types/ConfigDefaults.d.ts +10 -2
  302. package/dist/types/Option.d.ts +10 -0
  303. package/dist/types/internalIcons.d.ts +89 -0
  304. package/dist/types/internalIcons.js +158 -0
  305. package/dist/types/ptComponentMap.d.ts +5 -5
  306. package/dist/utilities/functions/slotContent.js +19 -0
  307. package/dist/utils/configDefaults.js +75 -64
  308. package/dist/utils/iconsOption.js +48 -0
  309. package/dist/utils/loadRetry.js +8 -0
  310. package/dist/utils/versionCheck.js +1 -1
  311. package/dist/vite-plugin.d.ts +10 -16
  312. package/dist/vite.js +323 -307
  313. package/llms.txt +2 -2
  314. package/package.json +3 -1
  315. package/scripts/README.md +2 -0
  316. package/scripts/lib/adoption-checklist.json +1 -1
  317. package/scripts/lib/agent-setup.mjs +44 -26
  318. package/scripts/lib/update-install.mjs +48 -0
  319. package/scripts/lib/validate-bb-markup.mjs +93 -12
  320. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
  321. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -99,6 +99,11 @@ export declare const BB_TIME_PICKER_INPUT_PT: {
99
99
  */
100
100
  type BbTimePickerInputPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_TIME_PICKER_INPUT_PT, PtVariantAttrs<TextControlPtPart | 'activator', keyof TimePickerInputVariantRegistry>> & BbTimePickerInputPtKeys;
101
101
  export type BbTimePickerInputBaseProps = BbTimePickerInputPtProps & {
102
+ /**
103
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
104
+ * Bound, the app opens and closes it; unbound, the initial state.
105
+ */
106
+ open?: boolean;
102
107
  /**
103
108
  * Passthrough, object form: the same keys as the `pt:*` attributes
104
109
  * without the prefix. See the `pt:<part>` row.
@@ -304,6 +309,8 @@ export type BbTimePickerInputEvents<R extends boolean = boolean> = {
304
309
  (e: 'shown'): void;
305
310
  /** Emitted as soon as the time panel starts to close. */
306
311
  (e: 'hide'): void;
312
+ /** The panel opened or closed (`v-model:open`). */
313
+ (e: 'update:open', value: boolean): void;
307
314
  /** Emitted once the time panel has finished closing. */
308
315
  (e: 'hidden'): void;
309
316
  /** Emitted when the composite control receives focus. */
@@ -3,12 +3,13 @@ import t from "../../assets/svgs/x.svg_raw.js";
3
3
  import { useLocale as n } from "../../composables/useLocale.js";
4
4
  import { useConfig as ee } from "../../composables/useConfig.js";
5
5
  import r from "../BbIcon/BbIcon.vue.js";
6
- import te from "../BbSpinner/BbSpinner.vue.js";
7
- import ne from "../BbButton/BbButton.vue.js";
8
- import { namedToastPortalRegistry as re } from "../../composables/useToast.js";
9
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as ie, defineComponent as u, mergeProps as d, normalizeProps as f, onBeforeUnmount as ae, onMounted as oe, openBlock as p, ref as m, renderList as se, resolveDynamicComponent as h, toDisplayString as g, unref as _, watch as v } from "vue";
6
+ import i from "../BbSpinner/BbSpinner.vue.js";
7
+ import te from "../BbButton/BbButton.vue.js";
8
+ import { namedToastPortalRegistry as ne } from "../../composables/useToast.js";
9
+ import { useInternalIcon as re } from "../../composables/useInternalIcon.js";
10
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as ie, defineComponent as d, mergeProps as f, normalizeProps as p, onBeforeUnmount as m, onMounted as ae, openBlock as h, ref as g, renderList as oe, resolveDynamicComponent as _, toDisplayString as v, unref as y, watch as b } from "vue";
10
11
  // src/components/BbToast/BbToastMessage.vue?vue&type=script&setup=true&lang.ts
11
- var ce = ["aria-live", "role"], le = ["aria-label"], ue = 3, y = 4e3, b = /*@__PURE__*/ u({
12
+ var se = ["aria-live", "role"], ce = ["aria-label"], le = 3, x = 4e3, S = /*@__PURE__*/ d({
12
13
  __name: "BbToastMessage",
13
14
  props: {
14
15
  toast: {},
@@ -21,141 +22,141 @@ var ce = ["aria-live", "role"], le = ["aria-label"], ue = 3, y = 4e3, b = /*@__P
21
22
  passthrough: {}
22
23
  },
23
24
  emits: ["height", "dismiss"],
24
- setup(u, { emit: b }) {
25
- let x = u, S = b, C = (e) => x.passthrough?.part?.(e, { loading: !!x.toast.loading }, void 0, x.toast.variant), { t: de } = n(), w = m(), T = m(), E = m(!1), D = m(0), fe = a(() => x.frontIndex === 0), O = a(() => x.frontIndex < ue), pe = a(() => !Number.isFinite(x.toast.duration ?? y)), me = a(() => !x.toast.hideClose), k = a(() => x.toast.variant === "destructive" || x.toast.variant === "warning"), he = a(() => k.value ? "alert" : "status"), ge = a(() => !O.value || x.toast.removed ? "off" : k.value ? "assertive" : "polite"), _e = ee(), A = a(() => x.toast.hideIcon ? void 0 : x.toast.icon ?? _e.variantIcons?.toast?.[x.toast.variant]), ve = a(() => x.toast.loading || !!A.value), j = a(() => typeof x.toast.portal == "string" ? re.get(x.toast.portal) ?? null : null), M = a(() => x.toast.portal && typeof x.toast.portal != "string" ? x.toast.portal : null), N = a(() => !!j.value || !!M.value), P = a(() => ({
26
- toast: x.toast,
27
- data: x.toast.data ?? {},
25
+ setup(d, { emit: S }) {
26
+ let C = d, w = S, ue = re("close", t), T = (e) => C.passthrough?.part?.(e, { loading: !!C.toast.loading }, void 0, C.toast.variant), { t: de } = n(), E = g(), D = g(), O = g(!1), k = g(0), fe = o(() => C.frontIndex === 0), A = o(() => C.frontIndex < le), pe = o(() => !Number.isFinite(C.toast.duration ?? x)), me = o(() => !C.toast.hideClose), j = o(() => C.toast.variant === "destructive" || C.toast.variant === "warning"), he = o(() => j.value ? "alert" : "status"), ge = o(() => !A.value || C.toast.removed ? "off" : j.value ? "assertive" : "polite"), _e = ee(), M = o(() => C.toast.hideIcon ? void 0 : C.toast.icon ?? _e.variantIcons?.toast?.[C.toast.variant]), ve = o(() => C.toast.loading || !!M.value), N = o(() => typeof C.toast.portal == "string" ? ne.get(C.toast.portal) ?? null : null), P = o(() => C.toast.portal && typeof C.toast.portal != "string" ? C.toast.portal : null), ye = o(() => !!N.value || !!P.value), F = o(() => ({
27
+ toast: C.toast,
28
+ data: C.toast.data ?? {},
28
29
  close: $
29
- })), ye = a(() => ({
30
- ...x.toast.data ?? {},
30
+ })), be = o(() => ({
31
+ ...C.toast.data ?? {},
31
32
  close: $
32
- })), F = a(() => x.position.startsWith("top") ? "top" : "bottom"), I = m(0), L = m(!1), be = a(() => ({
33
- "--front-index": x.frontIndex,
34
- "--height-before": `${x.heightBefore}px`,
35
- "--front-height": `${x.frontHeight}px`,
36
- "--toast-height": `${D.value}px`,
37
- "--z": x.total - x.frontIndex,
33
+ })), xe = o(() => C.position.startsWith("top") ? "top" : "bottom"), I = g(0), L = g(!1), Se = o(() => ({
34
+ "--front-index": C.frontIndex,
35
+ "--height-before": `${C.heightBefore}px`,
36
+ "--front-height": `${C.frontHeight}px`,
37
+ "--toast-height": `${k.value}px`,
38
+ "--z": C.total - C.frontIndex,
38
39
  "--swipe-amount": `${I.value}px`
39
40
  })), R, z, B = () => {
40
- if (!T.value) return;
41
- let e = w.value, t = e ? e.offsetHeight - e.clientHeight : 0, n = T.value.offsetHeight + t;
42
- n !== D.value && (D.value = n, S("height", x.toast.id, n));
43
- }, V = m(null), xe = async (e) => {
41
+ if (!D.value) return;
42
+ let e = E.value, t = e ? e.offsetHeight - e.clientHeight : 0, n = D.value.offsetHeight + t;
43
+ n !== k.value && (k.value = n, w("height", C.toast.id, n));
44
+ }, Ce = {
45
+ class: "bb-button--soft-disabled",
46
+ "aria-disabled": !0,
47
+ tabindex: -1
48
+ }, V = g(null), we = async (e) => {
44
49
  if (V.value !== null) return;
45
- let t = x.toast.actions?.[e];
50
+ let t = C.toast.actions?.[e];
46
51
  if (!t) return;
47
52
  V.value = e, J();
48
- let n = x.toast.updatedAt;
53
+ let n = C.toast.updatedAt;
49
54
  try {
50
- if (t.onClick && await t.onClick(), V.value = null, x.toast.updatedAt !== n) {
55
+ if (t.onClick && await t.onClick(), V.value = null, C.toast.updatedAt !== n) {
51
56
  Y();
52
57
  return;
53
58
  }
54
- S("dismiss", x.toast.id, "action");
59
+ w("dismiss", C.toast.id, "action");
55
60
  } catch {
56
- V.value = null, x.paused || q();
61
+ V.value = null, C.paused || q();
57
62
  }
58
- }, H = a(() => x.toast.duration ?? y), U, W = 0, G = 0, K = () => {
63
+ }, H = o(() => C.toast.duration ?? x), U, W = 0, G = 0, K = () => {
59
64
  U && clearTimeout(U), U = void 0;
60
65
  }, q = () => {
61
- K(), V.value === null && Number.isFinite(H.value) && (G = Date.now(), U = setTimeout(() => S("dismiss", x.toast.id, "auto"), W));
66
+ K(), V.value === null && Number.isFinite(H.value) && (G = Date.now(), U = setTimeout(() => w("dismiss", C.toast.id, "auto"), W));
62
67
  }, J = () => {
63
68
  U && (K(), W -= Date.now() - G);
64
69
  }, Y = () => {
65
- W = H.value, x.paused || q();
70
+ W = H.value, C.paused || q();
66
71
  };
67
- v(() => x.paused, (e) => {
72
+ b(() => C.paused, (e) => {
68
73
  e ? J() : q();
69
- }), v(() => [x.toast.updatedAt, H.value], () => Y());
70
- let X = null, Z = 0, Se = (e) => {
71
- pe.value || e.button !== 0 || V.value === null && (e.target.closest("button") || (X = e.pointerId, Z = e.clientY, L.value = !0, w.value?.setPointerCapture(e.pointerId)));
72
- }, Ce = (e) => {
74
+ }), b(() => [C.toast.updatedAt, H.value], () => Y());
75
+ let X = null, Z = 0, Te = (e) => {
76
+ pe.value || e.button !== 0 || V.value === null && (e.target.closest("button") || (X = e.pointerId, Z = e.clientY, L.value = !0, E.value?.setPointerCapture(e.pointerId)));
77
+ }, Ee = (e) => {
73
78
  if (!L.value || e.pointerId !== X) return;
74
79
  let t = e.clientY - Z;
75
- I.value = F.value === "bottom" ? Math.max(0, t) : Math.min(0, t);
80
+ I.value = xe.value === "bottom" ? Math.max(0, t) : Math.min(0, t);
76
81
  }, Q = (e) => {
77
- L.value && e.pointerId === X && (L.value = !1, X = null, Math.abs(I.value) > 45 ? S("dismiss", x.toast.id, "manual") : I.value = 0);
78
- }, $ = () => S("dismiss", x.toast.id, "manual");
79
- return oe(() => {
80
- B(), R = new ResizeObserver(B), T.value && R.observe(T.value), Y(), z = requestAnimationFrame(() => {
82
+ L.value && e.pointerId === X && (L.value = !1, X = null, Math.abs(I.value) > 45 ? w("dismiss", C.toast.id, "manual") : I.value = 0);
83
+ }, $ = () => w("dismiss", C.toast.id, "manual");
84
+ return ae(() => {
85
+ B(), R = new ResizeObserver(B), D.value && R.observe(D.value), Y(), z = requestAnimationFrame(() => {
81
86
  z = requestAnimationFrame(() => {
82
- E.value = !0;
87
+ O.value = !0;
83
88
  });
84
89
  });
85
- }), ae(() => {
90
+ }), m(() => {
86
91
  K(), z !== void 0 && cancelAnimationFrame(z), R?.disconnect();
87
- }), (n, ee) => (p(), c("li", d({
92
+ }), (t, n) => (h(), l("li", f({
88
93
  ref_key: "cardEl",
89
- ref: w,
94
+ ref: E,
90
95
  "aria-atomic": !0,
91
96
  "aria-live": ge.value,
92
- class: ["bb-toast__panel", [`bb-toast__panel--${u.toast.variant}`, {
97
+ class: ["bb-toast__panel", [`bb-toast__panel--${d.toast.variant}`, {
93
98
  "bb-toast__panel--front": fe.value,
94
- "bb-toast__panel--hidden": !O.value,
95
- "bb-toast__panel--mounted": E.value,
96
- "bb-toast__panel--removed": !!u.toast.removed,
99
+ "bb-toast__panel--hidden": !A.value,
100
+ "bb-toast__panel--mounted": O.value,
101
+ "bb-toast__panel--removed": !!d.toast.removed,
97
102
  "bb-toast__panel--swiping": L.value
98
103
  }]],
99
104
  role: he.value,
100
- style: be.value,
105
+ style: Se.value,
101
106
  onPointercancel: Q,
102
- onPointerdown: Se,
103
- onPointermove: Ce,
107
+ onPointerdown: Te,
108
+ onPointermove: Ee,
104
109
  onPointerup: Q
105
- }, C("panel")), [l("div", {
110
+ }, T("panel")), [u("div", {
106
111
  ref_key: "innerEl",
107
- ref: T,
112
+ ref: D,
108
113
  class: "bb-toast__inner"
109
- }, [N.value ? (p(), c("div", d({
114
+ }, [ye.value ? (h(), l("div", f({
110
115
  key: 0,
111
116
  class: "bb-toast__content bb-toast__content--portal"
112
- }, C("content")), [j.value ? (p(), o(h(j.value), f(d({ key: 0 }, P.value)), null, 16)) : (p(), o(h(M.value), f(d({ key: 1 }, ye.value)), null, 16))], 16)) : (p(), c(i, { key: 1 }, [ve.value ? (p(), c("div", d({
117
+ }, T("content")), [N.value ? (h(), s(_(N.value), p(f({ key: 0 }, F.value)), null, 16)) : (h(), s(_(P.value), p(f({ key: 1 }, be.value)), null, 16))], 16)) : (h(), l(a, { key: 1 }, [ve.value ? (h(), l("div", f({
113
118
  key: 0,
114
119
  "aria-hidden": "true",
115
120
  class: "bb-toast__icon"
116
- }, C("icon")), [u.toast.loading ? (p(), o(te, {
121
+ }, T("icon")), [d.toast.loading ? (h(), s(i, {
117
122
  key: 0,
118
123
  size: "sm"
119
- })) : A.value ? (p(), o(r, {
124
+ })) : M.value ? (h(), s(r, {
120
125
  key: 1,
121
- icon: A.value
122
- }, null, 8, ["icon"])) : s("", !0)], 16)) : s("", !0), l("div", d({ class: "bb-toast__content" }, C("content")), [
123
- l("p", d({ class: "bb-toast__title" }, C("title")), g(u.toast.title), 17),
124
- u.toast.text ? (p(), c("p", d({
126
+ icon: M.value
127
+ }, null, 8, ["icon"])) : c("", !0)], 16)) : c("", !0), u("div", f({ class: "bb-toast__content" }, T("content")), [
128
+ u("p", f({ class: "bb-toast__title" }, T("title")), v(d.toast.title), 17),
129
+ d.toast.text ? (h(), l("p", f({
125
130
  key: 0,
126
131
  class: "bb-toast__text"
127
- }, C("text")), g(u.toast.text), 17)) : s("", !0),
128
- u.toast.actions?.length ? (p(), c("div", d({
132
+ }, T("text")), v(d.toast.text), 17)) : c("", !0),
133
+ d.toast.actions?.length ? (h(), l("div", f({
129
134
  key: 1,
130
135
  class: "bb-toast__footer"
131
- }, C("footer")), [(p(!0), c(i, null, se(u.toast.actions, (t, n) => (p(), o(ne, d({
136
+ }, T("footer")), [(h(!0), l(a, null, oe(d.toast.actions, (t, n) => (h(), s(te, f({
132
137
  key: n,
133
138
  class: "bb-toast__action",
134
- disabled: V.value !== null && V.value !== n,
135
139
  loading: V.value === n,
136
- onClick: (e) => xe(n)
140
+ onClick: (e) => we(n)
137
141
  }, { ref_for: !0 }, {
138
- ..._(e)({
142
+ ...y(e)({
139
143
  size: "sm",
140
144
  variant: "primary",
141
145
  ...t
142
146
  }),
143
- ...C("action")
144
- }), null, 16, [
145
- "disabled",
146
- "loading",
147
- "onClick"
148
- ]))), 128))], 16)) : s("", !0)
149
- ], 16)], 64)), me.value ? (p(), c("button", d({
147
+ ...V.value !== null && V.value !== n ? Ce : {},
148
+ ...T("action")
149
+ }), null, 16, ["loading", "onClick"]))), 128))], 16)) : c("", !0)
150
+ ], 16)], 64)), me.value ? (h(), l("button", f({
150
151
  key: 2,
151
- "aria-label": _(de)("common.closeLabel").value,
152
+ "aria-label": y(de)("common.closeLabel").value,
152
153
  class: "bb-toast__close",
153
154
  type: "button",
154
155
  onClick: $
155
- }, C("close")), [ie(r, {
156
- icon: _(t),
156
+ }, T("close")), [ie(r, {
157
+ icon: y(ue),
157
158
  size: "100%"
158
- }, null, 8, ["icon"])], 16, le)) : s("", !0)], 512)], 16, ce));
159
+ }, null, 8, ["icon"])], 16, ce)) : c("", !0)], 512)], 16, se));
159
160
  }
160
161
  });
161
- export { b as default };
162
+ export { S as default };
@@ -48,8 +48,8 @@ type BbToastShared = {
48
48
  data?: Record<string, any>;
49
49
  /**
50
50
  * Action buttons rendered in a row below the text. While a button's
51
- * `onClick` runs it shows a spinner, sibling buttons are disabled, and the
52
- * auto-dismiss timer is held; the toast dismisses (reason `'action'`) when
51
+ * `onClick` runs it shows a spinner, sibling buttons ignore clicks (keeping
52
+ * their look), and the auto-dismiss timer is held; the toast dismisses (reason `'action'`) when
53
53
  * the callback resolves. A rejected callback keeps the toast open.
54
54
  * Not rendered for portal toasts — portal content owns the whole body.
55
55
  */
@@ -1,8 +1,9 @@
1
1
  import { slotKey as e } from "../../utilities/functions/slotKey.js";
2
- import { BbTreeContextKey as t } from "./context.js";
3
- import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, defineComponent as l, inject as u, mergeProps as d, openBlock as f, renderList as p, renderSlot as m, resolveComponent as h, unref as g, useSlots as _, withCtx as v } from "vue";
2
+ import { SlotChain as t } from "../../utilities/functions/slotContent.js";
3
+ import { BbTreeContextKey as n } from "./context.js";
4
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, defineComponent as d, inject as f, mergeProps as p, openBlock as m, renderList as h, renderSlot as g, resolveComponent as _, unref as v, useSlots as y, withCtx as b } from "vue";
4
5
  // src/components/BbTree/BbTreeLevel.vue?vue&type=script&setup=true&lang.ts
5
- var y = { class: "bb-tree__row" }, b = { class: "bb-tree__content" }, x = ["id", "inert"], S = /*@__PURE__*/ l({
6
+ var x = { class: "bb-tree__row" }, S = { class: "bb-tree__content" }, C = ["id", "inert"], w = /*@__PURE__*/ d({
6
7
  __name: "BbTreeLevel",
7
8
  props: {
8
9
  items: {},
@@ -13,33 +14,33 @@ var y = { class: "bb-tree__row" }, b = { class: "bb-tree__content" }, x = ["id",
13
14
  default: void 0
14
15
  }
15
16
  },
16
- setup(l) {
17
- let S = l, C = _(), w = u(t, null), T = (e) => !!e.children?.some((e) => !e.hidden), E = (e) => {
18
- let t = e.expandable ?? S.expandable;
19
- return typeof t == "function" ? t(e, S.depth, S.parent) : t === void 0 ? T(e) : t;
20
- }, D = (e) => typeof e == "string" || typeof e == "number", O = (e, t, n) => ({
17
+ setup(d) {
18
+ let w = d, T = y(), E = (e) => e.map((e) => T[e]), D = f(n, null), O = (e) => !!e.children?.some((e) => !e.hidden), k = (e) => {
19
+ let t = e.expandable ?? w.expandable;
20
+ return typeof t == "function" ? t(e, w.depth, w.parent) : t === void 0 ? O(e) : t;
21
+ }, A = (e) => typeof e == "string" || typeof e == "number", j = (e, t, n) => ({
21
22
  "aria-controls": n,
22
23
  "aria-expanded": t ? "true" : "false",
23
24
  onClick: (t) => {
24
- t.stopPropagation(), w?.toggleExpanded(e);
25
+ t.stopPropagation(), D?.toggleExpanded(e);
25
26
  },
26
27
  onKeydown: (t) => {
27
- t.target instanceof HTMLElement && (t.target instanceof HTMLButtonElement || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), w?.toggleExpanded(e)));
28
+ t.target instanceof HTMLElement && (t.target instanceof HTMLButtonElement || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), D?.toggleExpanded(e)));
28
29
  }
29
- }), k = /* @__PURE__ */ new Set(), A = r(() => S.items.filter((e) => !e.hidden).map((t, n) => {
30
- let r = w?.valueFor(t), i = w?.hashFor(t) ?? `${S.depth}:${n}`, a = E(t), o = (t.children ?? []).filter((e) => !e.hidden), s = !a && (t.expandable ?? S.expandable) !== void 0 ? !0 : w?.isExpanded(t) ?? !0, c = w ? `expanded_${w.id}_${i}` : `expanded_${i}`;
31
- s && k.add(i);
32
- let l = s || k.has(i), u = D(r) ? e(String(r)) : void 0, d = String(S.depth), f = u && C[u] ? u : C[d] ? d : void 0, p = u && C[`${u}:children`] ? `${u}:children` : C[`${d}:children`] ? `${d}:children` : void 0, m = {
30
+ }), M = /* @__PURE__ */ new Set(), N = i(() => w.items.filter((e) => !e.hidden).map((t, n) => {
31
+ let r = D?.valueFor(t), i = D?.hashFor(t) ?? `${w.depth}:${n}`, a = k(t), o = (t.children ?? []).filter((e) => !e.hidden), s = !a && (t.expandable ?? w.expandable) !== void 0 ? !0 : D?.isExpanded(t) ?? !0, c = D ? `expanded_${D.id}_${i}` : `expanded_${i}`;
32
+ s && M.add(i);
33
+ let l = s || M.has(i), u = A(r) ? e(String(r)) : void 0, d = String(w.depth), f = u ? [u, d] : [d], p = f.map((e) => `${e}:children`), m = {
33
34
  meta: t.meta,
34
35
  item: t,
35
- parent: S.parent,
36
+ parent: w.parent,
36
37
  index: n,
37
- depth: S.depth,
38
+ depth: w.depth,
38
39
  value: r,
39
40
  expanded: s,
40
41
  expandable: a,
41
- toggleExpanded: () => w?.toggleExpanded(t),
42
- expandProps: O(t, s, c)
42
+ toggleExpanded: () => D?.toggleExpanded(t),
43
+ expandProps: j(t, s, c)
43
44
  };
44
45
  return {
45
46
  hash: i,
@@ -51,40 +52,49 @@ var y = { class: "bb-tree__row" }, b = { class: "bb-tree__content" }, x = ["id",
51
52
  expandable: a,
52
53
  childrenId: c,
53
54
  mountChildren: l,
54
- slotName: f,
55
- childrenSlotName: p,
55
+ contentNames: f,
56
+ childrenNames: p,
56
57
  slotProps: m
57
58
  };
58
59
  }));
59
- return (e, t) => {
60
- let r = h("BbTreeLevel", !0);
61
- return f(!0), o(n, null, p(A.value, (t) => (f(), o("div", d({
62
- key: t.hash,
60
+ return (e, n) => {
61
+ let i = _("BbTreeLevel", !0);
62
+ return m(!0), s(r, null, h(N.value, (n) => (m(), s("div", p({
63
+ key: n.hash,
63
64
  class: ["bb-tree__item", {
64
- [`bb-tree__item--depth-${l.depth}`]: !0,
65
- "bb-tree__item--expanded": t.expanded,
66
- "bb-tree__item--leaf": t.leaf
65
+ [`bb-tree__item--depth-${d.depth}`]: !0,
66
+ "bb-tree__item--expanded": n.expanded,
67
+ "bb-tree__item--leaf": n.leaf
67
68
  }]
68
- }, { ref_for: !0 }, g(w)?.passthrough.part("item", { expanded: t.expanded })), [s("div", y, [s("div", b, [t.slotName ? m(e.$slots, t.slotName, d({ ref_for: !0 }, t.slotProps), void 0, void 0, 0) : m(e.$slots, "default", d({ ref_for: !0 }, t.slotProps), void 0, void 0, 1)])]), s("div", {
69
- id: t.childrenId,
69
+ }, { ref_for: !0 }, v(D)?.passthrough.part("item", { expanded: n.expanded })), [c("div", x, [c("div", S, [u(v(t), {
70
+ props: n.slotProps,
71
+ slots: [...E(n.contentNames), v(T).default]
72
+ }, null, 8, ["props", "slots"])])]), c("div", {
73
+ id: n.childrenId,
70
74
  class: "bb-tree__children",
71
- inert: !t.expanded
72
- }, [t.childrenSlotName ? m(e.$slots, t.childrenSlotName, d({ ref_for: !0 }, t.slotProps), void 0, void 0, 0) : t.mountChildren && t.children.length ? (f(), i(r, {
73
- key: 1,
74
- depth: l.depth + 1,
75
- expandable: l.expandable,
76
- items: t.children,
77
- parent: t.item
78
- }, c({ _: 2 }, [p(e.$slots, (t, n) => ({
79
- name: n,
80
- fn: v((t) => [m(e.$slots, n, d({ ref_for: !0 }, t))])
81
- }))]), 1032, [
82
- "depth",
83
- "expandable",
84
- "items",
85
- "parent"
86
- ])) : a("", !0)], 8, x)], 16))), 128);
75
+ inert: !n.expanded
76
+ }, [u(v(t), {
77
+ props: n.slotProps,
78
+ slots: E(n.childrenNames)
79
+ }, {
80
+ default: b(() => [n.mountChildren && n.children.length ? (m(), a(i, {
81
+ key: 0,
82
+ depth: d.depth + 1,
83
+ expandable: d.expandable,
84
+ items: n.children,
85
+ parent: n.item
86
+ }, l({ _: 2 }, [h(e.$slots, (t, n) => ({
87
+ name: n,
88
+ fn: b((t) => [g(e.$slots, n, p({ ref_for: !0 }, t))])
89
+ }))]), 1032, [
90
+ "depth",
91
+ "expandable",
92
+ "items",
93
+ "parent"
94
+ ])) : o("", !0)]),
95
+ _: 2
96
+ }, 1032, ["props", "slots"])], 8, C)], 16))), 128);
87
97
  };
88
98
  }
89
99
  });
90
- export { S as default };
100
+ export { w as default };
@@ -143,7 +143,7 @@ export type BbTreeNodeSlotProps<Meta> = {
143
143
  /**
144
144
  * @dynamicSlot `<value>` {BbTreeNodeSlotProps<Meta>} - One node, by its resolved `item-value` (string or number) through `slotKey`; beats `<depth>`, which beats `default`.
145
145
  * @dynamicSlot `<depth>` {BbTreeNodeSlotProps<Meta>} - Every node at one depth (`0` = root); a numeric value can share this name.
146
- * @dynamicSlot `<value>:children` {BbTreeNodeSlotProps<Meta>} - One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too.
146
+ * @dynamicSlot `<value>:children` {BbTreeNodeSlotProps<Meta>} - One node's children container, stopping the recursion there; beats `<depth>:children`. Renders for leaves too; empty, the default children.
147
147
  * @dynamicSlot `<depth>:children` {BbTreeNodeSlotProps<Meta>} - The children container of every node at one depth.
148
148
  */
149
149
  export type BbTreeSlots<Meta = any> = {
@@ -1,18 +1,19 @@
1
1
  import { useLocale as e } from "../../composables/useLocale.js";
2
2
  import t from "../BbIcon/BbIcon.vue.js";
3
3
  import n from "../../assets/svgs/clear.svg_raw.js";
4
- import { createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s } from "vue";
4
+ import { useInternalIcon as r } from "../../composables/useInternalIcon.js";
5
+ import { createElementBlock as i, createVNode as a, defineComponent as o, openBlock as s, unref as c } from "vue";
5
6
  // src/components/ClearableButton/ClearableButton.vue?vue&type=script&setup=true&lang.ts
6
- var c = ["aria-label"], l = /*@__PURE__*/ a({
7
+ var l = ["aria-label"], u = /*@__PURE__*/ o({
7
8
  __name: "ClearableButton",
8
9
  props: { label: {} },
9
- setup(a) {
10
- let l = a, { t: u } = e();
11
- return (e, a) => (o(), r("button", {
12
- "aria-label": l.label || s(u)("common.clearLabel").value,
10
+ setup(o) {
11
+ let u = o, d = r("clear", n), { t: f } = e();
12
+ return (e, n) => (s(), i("button", {
13
+ "aria-label": u.label || c(f)("common.clearLabel").value,
13
14
  class: "bb-clearable-button",
14
15
  type: "button"
15
- }, [i(t, { icon: s(n) }, null, 8, ["icon"])], 8, c));
16
+ }, [a(t, { icon: c(d) }, null, 8, ["icon"])], 8, l));
16
17
  }
17
18
  });
18
- export { l as default };
19
+ export { u as default };
@@ -2,5 +2,5 @@ import e from "./CloseButton.vue_vue_type_script_setup_true_lang.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  // src/components/CloseIcon/CloseButton.vue
5
- var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-cca244c1"]]);
5
+ var n = /*#__PURE__*/ t(e, [["__scopeId", "data-v-d28a34bd"]]);
6
6
  export { n as default };
@@ -1,17 +1,19 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
2
  import t from "../../assets/svgs/close.svg_raw.js";
3
- import { createElementBlock as n, createVNode as r, defineComponent as i, openBlock as a, unref as o } from "vue";
3
+ import { useInternalIcon as n } from "../../composables/useInternalIcon.js";
4
+ import { createElementBlock as r, createVNode as i, defineComponent as a, openBlock as o, unref as s } from "vue";
4
5
  // src/components/CloseIcon/CloseButton.vue?vue&type=script&setup=true&lang.ts
5
- var s = {
6
+ var c = {
6
7
  class: "bb-close-button",
7
8
  type: "button"
8
- }, c = /*@__PURE__*/ i({
9
+ }, l = /*@__PURE__*/ a({
9
10
  __name: "CloseButton",
10
- setup(i) {
11
- return (i, c) => (a(), n("button", s, [r(e, {
12
- icon: o(t),
11
+ setup(a) {
12
+ let l = n("close", t);
13
+ return (t, n) => (o(), r("button", c, [i(e, {
14
+ icon: s(l),
13
15
  size: "100%"
14
16
  }, null, 8, ["icon"])]));
15
17
  }
16
18
  });
17
- export { c as default };
19
+ export { l as default };
@@ -22,6 +22,7 @@ var k = /*@__PURE__*/ f({
22
22
  anchor: {},
23
23
  boundary: {},
24
24
  overflowBoundary: {},
25
+ boundaryX: {},
25
26
  dialog: { type: Boolean },
26
27
  hideArrow: { type: Boolean },
27
28
  tag: { default: "div" },
@@ -57,9 +58,20 @@ var k = /*@__PURE__*/ f({
57
58
  return [
58
59
  ie(k.offset),
59
60
  ...k.disableFlip ? [] : [ne({ padding: k.padding })],
60
- ae({
61
+ ae(e || !k.boundaryX ? {
61
62
  padding: k.padding,
62
63
  ...e ? { boundary: e } : {}
64
+ } : () => {
65
+ let { left: e, width: t } = k.boundaryX.getBoundingClientRect();
66
+ return {
67
+ padding: k.padding,
68
+ boundary: {
69
+ x: e,
70
+ y: 0,
71
+ width: t,
72
+ height: document.documentElement.clientHeight
73
+ }
74
+ };
63
75
  }),
64
76
  oe({
65
77
  padding: k.padding,
@@ -1,15 +1,17 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
2
  import t from "../../assets/svgs/error.svg_raw.js";
3
- import { createBlock as n, defineComponent as r, openBlock as i, unref as a } from "vue";
3
+ import { useInternalIcon as n } from "../../composables/useInternalIcon.js";
4
+ import { createBlock as r, defineComponent as i, openBlock as a, unref as o } from "vue";
4
5
  // src/components/ErrorIcon/ErrorIcon.vue?vue&type=script&setup=true&lang.ts
5
- var o = /*@__PURE__*/ r({
6
+ var s = /*@__PURE__*/ i({
6
7
  __name: "ErrorIcon",
7
- setup(r) {
8
- return (r, o) => (i(), n(e, {
8
+ setup(i) {
9
+ let s = n("error", t);
10
+ return (t, n) => (a(), r(e, {
9
11
  "aria-hidden": "true",
10
12
  class: "bb-error-icon",
11
- icon: a(t)
13
+ icon: o(s)
12
14
  }, null, 8, ["icon"]));
13
15
  }
14
16
  });
15
- export { o as default };
17
+ export { s as default };