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
@@ -9,29 +9,30 @@ import l from "../BbIcon/BbIcon.vue.js";
9
9
  import u from "../ErrorIcon/ErrorIcon.vue.js";
10
10
  import d from "../../assets/svgs/check_stroke.svg_raw.js";
11
11
  import { transitions as f } from "../../utilities/misc/transitions.js";
12
- import { Fragment as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as ee, mergeProps as x, nextTick as te, normalizeClass as S, normalizeStyle as C, openBlock as w, ref as ne, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useId as re, useSlots as ie, useTemplateRef as k, watch as A, withModifiers as j } from "vue";
13
- import { useVirtualizer as ae } from "@tanstack/vue-virtual";
12
+ import { useInternalIcon as ee } from "../../composables/useInternalIcon.js";
13
+ import { Fragment as te, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, mergeProps as x, nextTick as ne, normalizeClass as S, normalizeStyle as C, openBlock as w, ref as re, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useId as ie, useSlots as ae, useTemplateRef as k, watch as A, withModifiers as j } from "vue";
14
+ import { useVirtualizer as oe } from "@tanstack/vue-virtual";
14
15
  // src/components/GroupedListBox/GroupedListBox.vue?vue&type=script&setup=true&lang.ts
15
- var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
16
+ var se = { class: "bb-listbox__outer-container scrollbar-border" }, ce = {
16
17
  ref: "inner",
17
18
  class: "bb-listbox__inner-container",
18
19
  tabindex: "-1"
19
- }, ce = {
20
+ }, le = {
20
21
  class: "bb-listbox__status",
21
22
  role: "status"
22
- }, le = {
23
+ }, ue = {
23
24
  key: 0,
24
25
  class: "bb-listbox__loading"
25
- }, ue = {
26
+ }, de = {
26
27
  key: 1,
27
28
  class: "bb-listbox__empty"
28
- }, de = [
29
+ }, fe = [
29
30
  "id",
30
31
  "aria-activedescendant",
31
32
  "aria-label",
32
33
  "aria-labelledby",
33
34
  "aria-multiselectable"
34
- ], fe = ["aria-disabled", "aria-labelledby"], pe = ["id"], me = { class: "bb-listbox__group-header-label" }, he = [
35
+ ], pe = ["aria-disabled", "aria-labelledby"], me = ["id"], he = { class: "bb-listbox__group-header-label" }, ge = [
35
36
  "id",
36
37
  "aria-describedby",
37
38
  "aria-disabled",
@@ -41,13 +42,16 @@ var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
41
42
  "aria-setsize",
42
43
  "data-index",
43
44
  "onMouseenter"
44
- ], ge = {
45
+ ], _e = {
46
+ key: 1,
47
+ class: "bb-listbox__item-text bb-listbox__create"
48
+ }, ve = { class: "bb-listbox__create-query" }, ye = {
45
49
  key: 0,
46
50
  class: "bb-listbox__option-content"
47
- }, _e = ["id"], ve = ["id"], ye = {
51
+ }, be = ["id"], xe = ["id"], Se = {
48
52
  key: 1,
49
53
  class: "bb-listbox__loading bb-listbox__loading--below"
50
- }, be = ["id"], xe = { class: "bb-listbox__failed-text" }, M = /*@__PURE__*/ ee({
54
+ }, Ce = ["id"], M = /*@__PURE__*/ b({
51
55
  __name: "GroupedListBox",
52
56
  props: {
53
57
  passthrough: {},
@@ -69,15 +73,16 @@ var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
69
73
  transitionDuration: { default: f.medium }
70
74
  },
71
75
  emits: [
76
+ "retry",
72
77
  "option:selected",
73
78
  "option:unselected",
74
79
  "focused:change"
75
80
  ],
76
- setup(f, { expose: ee, emit: M }) {
77
- let N = f, P = M, Se = ie(), { t: F } = n(), I = k("inner"), Ce = k("listbox"), { touch: L } = i(), R = m(() => N.optionHeight ? N.optionHeight : s(L.value, !!N.compact, !!N.described)), z = m(() => N.headerHeight ? N.headerHeight : a(L.value, !!N.compact)), we = m(() => o(L.value)), B = (t) => e(N.groups[t].data) ? 0 : z.value, Te = m(() => {
81
+ setup(f, { expose: b, emit: M }) {
82
+ let N = f, P = M, we = ae(), F = ee("check", d), { t: I } = n(), L = k("inner"), Te = k("listbox"), { touch: R } = i(), z = p(() => N.optionHeight ? N.optionHeight : s(R.value, !!N.compact, !!N.described)), B = p(() => N.headerHeight ? N.headerHeight : a(R.value, !!N.compact)), Ee = p(() => o(R.value)), V = (t) => e(N.groups[t].data) ? 0 : B.value, De = p(() => {
78
83
  let t = 0;
79
84
  return N.groups.map((n, r) => {
80
- let i = n.id, a = t, o = n.options.length, s = X(r), c = e(n.data) ? void 0 : `${W}-group-header-${n.id}`, l = typeof n.data == "string" ? n.data : e(n.data) ? "" : JSON.stringify(n.data), u = n.options.every((e) => e.disabled), d = n.data, f = n.options;
85
+ let i = n.id, a = t, o = n.options.length, s = ke(r), c = e(n.data) ? void 0 : `${G}-group-header-${n.id}`, l = typeof n.data == "string" ? n.data : e(n.data) ? "" : JSON.stringify(n.data), u = n.options.every((e) => e.disabled), d = n.data, f = n.options;
81
86
  return t += o, {
82
87
  offset: a,
83
88
  length: o,
@@ -91,15 +96,15 @@ var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
91
96
  options: f
92
97
  };
93
98
  });
94
- }), V = m(() => c(Te.value, "index")), H = m(() => {
99
+ }), H = p(() => c(De.value, "index")), U = p(() => {
95
100
  let e = /* @__PURE__ */ new Map();
96
101
  return N.groups.flatMap((t, n) => t.options.map((r, i) => {
97
- let a = r.valueHash, o = Ee(`${t.id}-${r.valueHash}`), s = (e.get(o) ?? 0) + 1;
102
+ let a = r.valueHash, o = Oe(`${t.id}-${r.valueHash}`), s = (e.get(o) ?? 0) + 1;
98
103
  e.set(o, s);
99
104
  let c = s === 1 ? o : `${o}-${s}`;
100
105
  return {
101
106
  id: a,
102
- globalIndex: V.value[n].offset + i,
107
+ globalIndex: H.value[n].offset + i,
103
108
  groupIndex: n,
104
109
  groupId: t.id,
105
110
  indexInGroup: i,
@@ -112,55 +117,65 @@ var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
112
117
  "append:icon": r["append:icon"],
113
118
  value: r.value,
114
119
  valueHash: r.valueHash,
115
- domId: c
120
+ domId: c,
121
+ create: r.create
116
122
  };
117
123
  }));
118
- }), U = m(() => {
124
+ }), W = p(() => {
119
125
  let e = N.groups.map(() => []);
120
- for (let t of H.value) e[t.groupIndex].push(t);
126
+ for (let t of U.value) e[t.groupIndex].push(t);
121
127
  return e;
122
- }), W = re(), Ee = (e) => `${W}-listbox-option-${e}`, G = (e) => `${e}__label`, K = (e) => `${e}__description`, q = (e) => !!e && !Se.option, J = m(() => {
128
+ }), G = ie(), Oe = (e) => `${G}-listbox-option-${e}`, K = (e) => `${e}__label`, q = (e) => `${e}__description`, J = (e) => !!e && !we.option, Y = p(() => {
123
129
  if (e(Q.value)) return;
124
- let t = H.value[Q.value];
130
+ let t = U.value[Q.value];
125
131
  if (t) return t.domId;
126
- }), Y = m(() => H.value.length > 0);
127
- function X(e) {
128
- return B(e) + N.groups[e].options.length * R.value;
132
+ }), X = p(() => U.value.length > 0);
133
+ function ke(e) {
134
+ return V(e) + N.groups[e].options.length * z.value;
129
135
  }
130
- let Z = ae({
136
+ let Z = oe({
131
137
  get count() {
132
138
  return N.groups.length;
133
139
  },
134
- getScrollElement: () => I.value ?? null,
135
- estimateSize: (e) => X(e),
140
+ getScrollElement: () => L.value ?? null,
141
+ estimateSize: (e) => ke(e),
136
142
  overscan: 2
137
- }), De = m(() => Z.value.getVirtualItems()), Oe = m(() => Z.value.getTotalSize()), { focusedIndex: Q, focusNext: ke, focusPrevious: Ae, focusFirst: je, focusLast: Me, focusFirstSelected: Ne, focusLastSelected: Pe, focusByHash: Fe, focusByPointer: Ie, blurPointerFocus: Le, blur: Re, getHighlighted: ze } = r(m(() => H.value), { disabled: () => !N.open }), $ = ne(!1), Be = async () => {
138
- if (!I.value || e(Q.value)) return;
139
- let n = H.value[Q.value]?.groupIndex;
140
- t(n) && (Z.value.scrollToIndex(n, { align: "auto" }), await te());
141
- let r = I.value.querySelector(`[data-index="${Q.value}"]`);
142
- r && r.scrollIntoView({ block: "nearest" });
143
+ }), Ae = p(() => Z.value.getVirtualItems()), je = p(() => Z.value.getTotalSize()), { focusedIndex: Q, focusNext: Me, focusPrevious: Ne, focusFirst: Pe, focusLast: Fe, focusFirstSelected: Ie, focusLastSelected: Le, focusByHash: Re, focusByPointer: ze, blurPointerFocus: Be, blur: Ve, getHighlighted: He } = r(p(() => U.value), { disabled: () => !N.open }), $ = re(!1), Ue = async () => {
144
+ if (!L.value || e(Q.value)) return;
145
+ let n = () => L.value?.querySelector(`[data-index="${Q.value}"]`), r = U.value[Q.value]?.groupIndex;
146
+ !n() && t(r) && (Z.value.scrollToIndex(r, { align: "auto" }), await ne());
147
+ let i = n();
148
+ i && (i.scrollIntoView({ block: "nearest" }), We(i));
149
+ }, We = (e) => {
150
+ let t = e.closest(".bb-listbox__group")?.querySelector(".bb-listbox__group-header");
151
+ if (t && L.value) for (let n = 0; n < 3; n++) {
152
+ let n = t.getBoundingClientRect().bottom - e.getBoundingClientRect().top;
153
+ if (n <= 0) return;
154
+ L.value.scrollTop -= n;
155
+ }
143
156
  };
144
157
  A(Q, () => {
145
- $.value || Be(), $.value = !1, P("focused:change", J.value);
158
+ $.value || Ue(), $.value = !1, P("focused:change", Y.value);
146
159
  });
147
- let Ve = () => Z.value.scrollToOffset(0), He = () => {
148
- let e = H.value.find((e) => e.selected);
149
- if (!e) return Ve();
160
+ let Ge = () => Z.value.scrollToOffset(0), Ke = () => {
161
+ let e = U.value.find((e) => e.selected);
162
+ if (!e) return Ge();
150
163
  Z.value.getTotalSize();
151
164
  let t = Z.value.measurementsCache[e.groupIndex];
152
- t && Z.value.scrollToOffset(t.start + B(e.groupIndex) + e.indexInGroup * R.value);
165
+ if (!t) return;
166
+ let n = V(e.groupIndex), r = (L.value?.clientHeight ?? 0) >= n + z.value;
167
+ Z.value.scrollToOffset(t.start + (r ? 0 : n) + e.indexInGroup * z.value);
153
168
  };
154
- A(() => N.open && !!I.value, (e) => {
155
- e && He();
169
+ A(() => N.open && !!L.value, (e) => {
170
+ e && Ke();
156
171
  }, { flush: "post" });
157
- let Ue = (e) => {
158
- N.open && ($.value = !0, Ie(e));
159
- }, We = () => {
160
- Le();
161
- }, Ge = () => {
172
+ let qe = (e) => {
173
+ N.open && ($.value = !0, ze(e));
174
+ }, Je = () => {
175
+ Be();
176
+ }, Ye = () => {
162
177
  if (e(Q.value) || !N.open) return;
163
- let t = H.value[Q.value];
178
+ let t = U.value[Q.value];
164
179
  if (!t || t.disabled) return;
165
180
  let n = {
166
181
  text: t.text,
@@ -171,170 +186,184 @@ var oe = { class: "bb-listbox__outer-container scrollbar-border" }, se = {
171
186
  disabled: t.disabled
172
187
  };
173
188
  t.selected ? P("option:unselected", n) : P("option:selected", n);
174
- }, Ke = (t) => {
175
- if (t.preventDefault(), I.value && t.target instanceof HTMLElement && Ce.value) {
189
+ }, Xe = (t) => {
190
+ if (t.preventDefault(), L.value && t.target instanceof HTMLElement && Te.value) {
176
191
  let n = t.target, r = n.dataset.index;
177
192
  for (; e(r) && n.parentElement;) n = n.parentElement, r = n.dataset.index;
178
193
  if (r) {
179
- let e = H.value[+r];
180
- e && !e.disabled && (Q.value = +r, Ge());
194
+ let e = U.value[+r];
195
+ e && !e.disabled && (Q.value = +r, Ye());
181
196
  }
182
197
  }
183
198
  };
184
199
  return A(() => N.groups, (e, t) => {
185
- e.flatMap((e) => [e.id, ...e.options.map((e) => e.valueHash)]).join(",") !== t.flatMap((e) => [e.id, ...e.options.map((e) => e.valueHash)]).join(",") && (Z.value.measure(), Re());
186
- }, { flush: "post" }), A([R, z], () => {
200
+ e.flatMap((e) => [e.id, ...e.options.map((e) => e.valueHash)]).join(",") !== t.flatMap((e) => [e.id, ...e.options.map((e) => e.valueHash)]).join(",") && (Z.value.measure(), Ve());
201
+ }, { flush: "post" }), A([z, B], () => {
187
202
  Z.value.measure();
188
- }, { flush: "post" }), ee({
189
- focusNext: ke,
190
- focusPrevious: Ae,
191
- focusFirst: je,
192
- focusFirstSelected: Ne,
193
- focusLast: Me,
194
- focusLastSelected: Pe,
195
- blur: Re,
196
- confirmOption: Ge,
197
- focusByHash: Fe,
198
- getHighlighted: ze,
199
- getActiveDescendantId: () => J.value,
200
- scrollToTop: Ve,
201
- scrollToSelected: He
202
- }), (e, t) => (w(), _("span", {
203
+ }, { flush: "post" }), b({
204
+ focusNext: Me,
205
+ focusPrevious: Ne,
206
+ focusFirst: Pe,
207
+ focusFirstSelected: Ie,
208
+ focusLast: Fe,
209
+ focusLastSelected: Le,
210
+ blur: Ve,
211
+ confirmOption: Ye,
212
+ focusByHash: Re,
213
+ getHighlighted: He,
214
+ getActiveDescendantId: () => Y.value,
215
+ scrollToTop: Ge,
216
+ scrollToSelected: Ke
217
+ }), (e, t) => (w(), g("span", {
203
218
  class: S(["bb-listbox bb-listbox--grouped", {
204
219
  "bb-listbox--compact": f.compact,
205
220
  "bb-listbox--described": f.described,
206
221
  "bb-listbox--loading": f.loading,
207
222
  "bb-listbox--multiple": f.multiple,
208
- "bb-listbox--empty": !Y.value,
223
+ "bb-listbox--empty": !X.value,
209
224
  "bb-listbox--open": f.open
210
225
  }]),
211
226
  style: C({
212
227
  "--transition-duration": `${f.transitionDuration}ms`,
213
- "--option-height": `${R.value}px`,
214
- "--group-header-height": `${z.value}px`,
215
- "--option-font-size": we.value
228
+ "--option-height": `${z.value}px`,
229
+ "--group-header-height": `${B.value}px`,
230
+ "--option-font-size": Ee.value
216
231
  }),
217
- onClickCapture: Ke,
218
- onClick: t[0] ||= j(() => {}, ["stop"]),
219
- onMousedown: t[1] ||= j(() => {}, ["prevent"])
220
- }, [v("span", oe, [v("span", se, [
232
+ onClickCapture: Xe,
233
+ onClick: t[1] ||= j(() => {}, ["stop"]),
234
+ onMousedown: t[2] ||= j(() => {}, ["prevent"])
235
+ }, [_("span", se, [_("span", ce, [
221
236
  E(e.$slots, "options:prepend"),
222
- v("span", ce, [f.loading && !Y.value ? (w(), _("span", le, [E(e.$slots, "loading", {}, () => [y(D(f.loadingText || O(F)("common.loadingText").value), 1)])])) : !Y.value && !f.failedText ? (w(), _("span", ue, [E(e.$slots, "empty", {}, () => [y(D(f.emptyText || O(F)("common.emptyText").value), 1)])])) : g("", !0)]),
223
- Y.value ? (w(), _("span", x({
237
+ _("span", le, [f.loading && !X.value ? (w(), g("span", ue, [E(e.$slots, "loading", {}, () => [v(D(f.loadingText || O(I)("common.loadingText").value), 1)])])) : !X.value && !f.failedText ? (w(), g("span", de, [E(e.$slots, "empty", {}, () => [v(D(f.emptyText || O(I)("common.emptyText").value), 1)])])) : h("", !0)]),
238
+ X.value ? (w(), g("span", x({
224
239
  key: 0,
225
240
  id: f.id,
226
241
  ref: "listbox",
227
- "aria-activedescendant": J.value,
242
+ "aria-activedescendant": Y.value,
228
243
  "aria-label": f.listLabelledby ? void 0 : f.listLabel,
229
244
  "aria-labelledby": f.listLabelledby,
230
245
  "aria-multiselectable": f.multiple ? !0 : void 0,
231
246
  class: "bb-listbox__list",
232
247
  role: "listbox",
233
- style: { height: `${Oe.value}px` },
248
+ style: { height: `${je.value}px` },
234
249
  tabindex: "-1",
235
- onMouseleave: We
236
- }, f.passthrough?.list), [(w(!0), _(p, null, T(De.value, (t) => (w(), _("span", {
237
- key: V.value[t.index].id,
238
- "aria-disabled": V.value[t.index].allOptionsAreDisabled,
239
- "aria-labelledby": V.value[t.index].headerId,
250
+ onMouseleave: Je
251
+ }, f.passthrough?.list), [(w(!0), g(te, null, T(Ae.value, (t) => (w(), g("span", {
252
+ key: H.value[t.index].id,
253
+ "aria-disabled": H.value[t.index].allOptionsAreDisabled,
254
+ "aria-labelledby": H.value[t.index].headerId,
240
255
  class: "bb-listbox__group",
241
256
  role: "group",
242
- style: C({ transform: `translateY(${t.start}px)` })
243
- }, [V.value[t.index].headerId ? (w(), _("span", {
257
+ style: C({ top: `${t.start}px` })
258
+ }, [H.value[t.index].headerId ? (w(), g("span", x({
244
259
  key: 0,
245
- id: V.value[t.index].headerId,
260
+ id: H.value[t.index].headerId,
246
261
  class: "bb-listbox__group-header",
247
262
  role: "presentation"
248
- }, [E(e.$slots, "group", {
249
- disabled: V.value[t.index].allOptionsAreDisabled,
263
+ }, { ref_for: !0 }, f.passthrough?.part?.("groupHeader", { disabled: H.value[t.index].allOptionsAreDisabled || void 0 })), [E(e.$slots, "group", {
264
+ disabled: H.value[t.index].allOptionsAreDisabled,
250
265
  index: t.index,
251
- item: V.value[t.index].data,
252
- length: V.value[t.index].length,
253
- text: V.value[t.index].label
254
- }, () => [v("span", me, D(V.value[t.index].label), 1)])], 8, pe)) : g("", !0), (w(!0), _(p, null, T(V.value[t.index].options, (n, r) => (w(), _("span", x({
255
- id: U.value[t.index][r].domId,
266
+ item: H.value[t.index].data,
267
+ length: H.value[t.index].length,
268
+ text: H.value[t.index].label
269
+ }, () => [_("span", he, D(H.value[t.index].label), 1)])], 16, me)) : h("", !0), (w(!0), g(te, null, T(H.value[t.index].options, (n, r) => (w(), g("span", x({
270
+ id: W.value[t.index][r].domId,
256
271
  key: n.valueHash,
257
- "aria-describedby": q(U.value[t.index][r].description) ? K(U.value[t.index][r].domId) : void 0,
258
- "aria-disabled": U.value[t.index][r].disabled ? !0 : void 0,
259
- "aria-labelledby": q(U.value[t.index][r].description) ? G(U.value[t.index][r].domId) : void 0,
260
- "aria-posinset": U.value[t.index][r].indexInGroup + 1,
261
- "aria-selected": U.value[t.index][r].selected,
262
- "aria-setsize": V.value[t.index].length,
272
+ "aria-describedby": J(W.value[t.index][r].description) ? q(W.value[t.index][r].domId) : void 0,
273
+ "aria-disabled": W.value[t.index][r].disabled ? !0 : void 0,
274
+ "aria-labelledby": J(W.value[t.index][r].description) ? K(W.value[t.index][r].domId) : void 0,
275
+ "aria-posinset": W.value[t.index][r].indexInGroup + 1,
276
+ "aria-selected": W.value[t.index][r].selected,
277
+ "aria-setsize": H.value[t.index].length,
263
278
  class: ["bb-listbox__option", {
264
- "bb-listbox__option--focused": O(Q) === U.value[t.index][r].globalIndex,
265
- "bb-listbox__option--selected": U.value[t.index][r].selected,
266
- "bb-listbox__option--disabled": U.value[t.index][r].disabled
279
+ "bb-listbox__option--focused": O(Q) === W.value[t.index][r].globalIndex,
280
+ "bb-listbox__option--selected": W.value[t.index][r].selected,
281
+ "bb-listbox__option--disabled": W.value[t.index][r].disabled
267
282
  }],
268
- "data-index": U.value[t.index][r].globalIndex,
283
+ "data-index": W.value[t.index][r].globalIndex,
269
284
  role: "option",
270
- onMouseenter: j((e) => Ue(U.value[t.index][r].globalIndex), ["stop"])
285
+ onMouseenter: j((e) => qe(W.value[t.index][r].globalIndex), ["stop"])
271
286
  }, { ref_for: !0 }, f.passthrough?.part?.("option", {
272
- selected: U.value[t.index][r].selected,
273
- disabled: U.value[t.index][r].disabled || void 0
274
- }, U.value[t.index][r].item)), [
275
- U.value[t.index][r]["prepend:icon"] ? (w(), h(l, x({
287
+ selected: W.value[t.index][r].selected,
288
+ disabled: W.value[t.index][r].disabled || void 0
289
+ }, W.value[t.index][r].item)), [
290
+ W.value[t.index][r]["prepend:icon"] ? (w(), m(l, x({
276
291
  key: 0,
277
292
  "aria-hidden": "true",
278
293
  class: "bb-listbox__item-icon bb-listbox__option-prepend-icon",
279
- icon: U.value[t.index][r]["prepend:icon"]
294
+ icon: W.value[t.index][r]["prepend:icon"]
280
295
  }, { ref_for: !0 }, f.passthrough?.part?.("itemIcon", {
281
- selected: U.value[t.index][r].selected,
282
- disabled: U.value[t.index][r].disabled || void 0
283
- }, U.value[t.index][r].item)), null, 16, ["icon"])) : g("", !0),
284
- E(e.$slots, "option", {
285
- description: U.value[t.index][r].description,
286
- disabled: !!U.value[t.index][r].disabled,
287
- focused: O(Q) === U.value[t.index][r].globalIndex,
288
- index: U.value[t.index][r].globalIndex,
289
- item: U.value[t.index][r].item,
290
- selected: !!U.value[t.index][r].selected,
291
- text: U.value[t.index][r].text,
292
- value: U.value[t.index][r].value
293
- }, () => [U.value[t.index][r].description ? (w(), _("span", ge, [v("span", x({
294
- id: G(U.value[t.index][r].domId),
296
+ selected: W.value[t.index][r].selected,
297
+ disabled: W.value[t.index][r].disabled || void 0
298
+ }, W.value[t.index][r].item)), null, 16, ["icon"])) : h("", !0),
299
+ W.value[t.index][r].create ? (w(), g("span", _e, [
300
+ v(D(W.value[t.index][r].create.before), 1),
301
+ _("strong", ve, D(W.value[t.index][r].create.query), 1),
302
+ v(D(W.value[t.index][r].create.after), 1)
303
+ ])) : E(e.$slots, "option", {
304
+ description: W.value[t.index][r].description,
305
+ disabled: !!W.value[t.index][r].disabled,
306
+ focused: O(Q) === W.value[t.index][r].globalIndex,
307
+ index: W.value[t.index][r].globalIndex,
308
+ item: W.value[t.index][r].item,
309
+ selected: !!W.value[t.index][r].selected,
310
+ text: W.value[t.index][r].text,
311
+ value: W.value[t.index][r].value
312
+ }, () => [W.value[t.index][r].description ? (w(), g("span", ye, [_("span", x({
313
+ id: K(W.value[t.index][r].domId),
295
314
  class: "bb-listbox__item-text"
296
315
  }, { ref_for: !0 }, f.passthrough?.part?.("itemText", {
297
- selected: U.value[t.index][r].selected,
298
- disabled: U.value[t.index][r].disabled || void 0
299
- }, U.value[t.index][r].item)), D(U.value[t.index][r].text), 17, _e), v("span", x({
300
- id: K(U.value[t.index][r].domId),
316
+ selected: W.value[t.index][r].selected,
317
+ disabled: W.value[t.index][r].disabled || void 0
318
+ }, W.value[t.index][r].item)), D(W.value[t.index][r].text), 17, be), _("span", x({
319
+ id: q(W.value[t.index][r].domId),
301
320
  class: "bb-listbox__item-description"
302
321
  }, { ref_for: !0 }, f.passthrough?.part?.("itemDescription", {
303
- selected: U.value[t.index][r].selected,
304
- disabled: U.value[t.index][r].disabled || void 0
305
- }, U.value[t.index][r].item)), D(U.value[t.index][r].description), 17, ve)])) : (w(), _("span", x({
322
+ selected: W.value[t.index][r].selected,
323
+ disabled: W.value[t.index][r].disabled || void 0
324
+ }, W.value[t.index][r].item)), D(W.value[t.index][r].description), 17, xe)])) : (w(), g("span", x({
306
325
  key: 1,
307
326
  class: "bb-listbox__item-text"
308
327
  }, { ref_for: !0 }, f.passthrough?.part?.("itemText", {
309
- selected: U.value[t.index][r].selected,
310
- disabled: U.value[t.index][r].disabled || void 0
311
- }, U.value[t.index][r].item)), D(U.value[t.index][r].text), 17))]),
312
- U.value[t.index][r]["append:icon"] && !U.value[t.index][r].selected ? (w(), h(l, x({
313
- key: 1,
328
+ selected: W.value[t.index][r].selected,
329
+ disabled: W.value[t.index][r].disabled || void 0
330
+ }, W.value[t.index][r].item)), D(W.value[t.index][r].text), 17))], void 0, 2),
331
+ W.value[t.index][r]["append:icon"] && !W.value[t.index][r].selected ? (w(), m(l, x({
332
+ key: 3,
314
333
  "aria-hidden": "true",
315
334
  class: "bb-listbox__item-icon bb-listbox__option-append-icon",
316
- icon: U.value[t.index][r]["append:icon"]
335
+ icon: W.value[t.index][r]["append:icon"]
317
336
  }, { ref_for: !0 }, f.passthrough?.part?.("itemIcon", {
318
- selected: U.value[t.index][r].selected,
319
- disabled: U.value[t.index][r].disabled || void 0
320
- }, U.value[t.index][r].item)), null, 16, ["icon"])) : g("", !0),
321
- b(l, x({
337
+ selected: W.value[t.index][r].selected,
338
+ disabled: W.value[t.index][r].disabled || void 0
339
+ }, W.value[t.index][r].item)), null, 16, ["icon"])) : h("", !0),
340
+ y(l, x({
322
341
  "aria-hidden": "true",
323
- class: "bb-listbox__option-check",
324
- icon: O(d)
342
+ class: ["bb-listbox__option-check", { "bb-listbox__option-check--own": O(F) !== O(d) }],
343
+ icon: O(F)
325
344
  }, { ref_for: !0 }, f.passthrough?.part?.("check", {
326
- selected: U.value[t.index][r].selected,
327
- disabled: U.value[t.index][r].disabled || void 0
328
- }, U.value[t.index][r].item)), null, 16, ["icon"])
329
- ], 16, he))), 128))], 12, fe))), 128))], 16, de)) : g("", !0),
330
- f.loading && f.loadingBelow && Y.value ? (w(), _("span", ye, [E(e.$slots, "loading", {}, () => [y(D(f.loadingText || O(F)("common.loadingText").value), 1)])])) : g("", !0),
345
+ selected: W.value[t.index][r].selected,
346
+ disabled: W.value[t.index][r].disabled || void 0
347
+ }, W.value[t.index][r].item)), null, 16, ["class", "icon"])
348
+ ], 16, ge))), 128))], 12, pe))), 128))], 16, fe)) : h("", !0),
349
+ f.loading && f.loadingBelow && X.value ? (w(), g("span", Se, [E(e.$slots, "loading", {}, () => [v(D(f.loadingText || O(I)("common.loadingText").value), 1)])])) : h("", !0),
331
350
  E(e.$slots, "options:append")
332
- ], 512)]), f.failedText ? (w(), _("span", {
351
+ ], 512)]), f.failedText && !f.loading ? (w(), g("span", {
333
352
  key: 0,
334
- id: `${f.id}_failed`,
335
- class: S(["bb-listbox__failed", { "bb-listbox__failed--divided": Y.value }]),
353
+ class: S(["bb-listbox__failed", { "bb-listbox__failed--divided": X.value }]),
336
354
  role: "status"
337
- }, [b(u, { class: "bb-listbox__failed-icon" }), v("span", xe, [E(e.$slots, "empty", {}, () => [y(D(f.failedText), 1)])])], 10, be)) : g("", !0)], 38));
355
+ }, [
356
+ y(u, { class: "bb-listbox__failed-icon" }),
357
+ _("span", {
358
+ id: `${f.id}_failed`,
359
+ class: "bb-listbox__failed-text"
360
+ }, D(f.failedText), 9, Ce),
361
+ _("button", {
362
+ class: "bb-load-retry",
363
+ type: "button",
364
+ onClick: t[0] ||= (e) => P("retry", e)
365
+ }, D(O(I)("common.retryLabel").value), 1)
366
+ ], 2)) : h("", !0)], 38));
338
367
  }
339
368
  });
340
369
  export { M as default };
@@ -25,6 +25,7 @@ var d = /*@__PURE__*/ i({
25
25
  described: { type: Boolean }
26
26
  },
27
27
  emits: [
28
+ "retry",
28
29
  "option:selected",
29
30
  "option:unselected",
30
31
  "focused:change"
@@ -68,7 +69,8 @@ var d = /*@__PURE__*/ i({
68
69
  "transition-duration": i.transitionDuration,
69
70
  "onFocused:change": d[0] ||= (e) => c.$emit("focused:change", e),
70
71
  "onOption:selected": d[1] ||= (e) => c.$emit("option:selected", e),
71
- "onOption:unselected": d[2] ||= (e) => c.$emit("option:unselected", e)
72
+ "onOption:unselected": d[2] ||= (e) => c.$emit("option:unselected", e),
73
+ onRetry: d[3] ||= (e) => c.$emit("retry", e)
72
74
  }, r({
73
75
  "options:prepend": u(() => [l(c.$slots, "options:prepend")]),
74
76
  loading: u(() => [l(c.$slots, "loading")]),
@@ -118,9 +120,10 @@ var d = /*@__PURE__*/ i({
118
120
  options: i.options ?? [],
119
121
  passthrough: i.passthrough,
120
122
  "transition-duration": i.transitionDuration,
121
- "onFocused:change": d[3] ||= (e) => c.$emit("focused:change", e),
122
- "onOption:selected": d[4] ||= (e) => c.$emit("option:selected", e),
123
- "onOption:unselected": d[5] ||= (e) => c.$emit("option:unselected", e)
123
+ "onFocused:change": d[4] ||= (e) => c.$emit("focused:change", e),
124
+ "onOption:selected": d[5] ||= (e) => c.$emit("option:selected", e),
125
+ "onOption:unselected": d[6] ||= (e) => c.$emit("option:unselected", e),
126
+ onRetry: d[7] ||= (e) => c.$emit("retry", e)
124
127
  }, r({
125
128
  "options:prepend": u(() => [l(c.$slots, "options:prepend")]),
126
129
  loading: u(() => [l(c.$slots, "loading")]),