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
@@ -26,124 +26,133 @@ var x = ["id"], S = ["id"], C = /*@__PURE__*/ l({
26
26
  passthrough: {},
27
27
  options: {}
28
28
  },
29
- setup(l) {
30
- let C = l, w = i(() => !!C.hasWarnings && !C.hasErrors), { t: T } = e(), E = i(() => ({
31
- root: `${C.block}__list`,
32
- loading: `${C.block}__loading`,
33
- empty: `${C.block}__empty`,
34
- option: `${C.block}__item`,
35
- label: `${C.block}__label`,
36
- description: `${C.block}__item-description`
37
- })), D = i(() => C.listLayout ?? "horizontal"), O = h(null), k = h(), A = h(), j = i(() => k.value ? {
38
- "--row-h": `${k.value}px`,
39
- ...Object.fromEntries(Object.entries(A.value ?? {}).filter(([, e]) => e).map(([e, t]) => [`--row-${e}`, `${t}px`]))
40
- } : void 0), M, N = () => Array.from(O.value?.children ?? []).filter((e) => e.classList.contains(E.value.option)), P = () => {
41
- let e = N(), t = e.map((e) => e.offsetHeight);
29
+ emits: ["retry"],
30
+ setup(l, { emit: C }) {
31
+ let w = l, T = C, E = i(() => !!w.hasWarnings && !w.hasErrors), { t: D } = e(), O = i(() => ({
32
+ root: `${w.block}__list`,
33
+ loading: `${w.block}__loading`,
34
+ empty: `${w.block}__empty`,
35
+ option: `${w.block}__item`,
36
+ label: `${w.block}__label`,
37
+ description: `${w.block}__item-description`
38
+ })), k = i(() => w.listLayout ?? "horizontal"), A = h(null), j = h(), M = h(), N = i(() => j.value ? {
39
+ "--row-h": `${j.value}px`,
40
+ ...Object.fromEntries(Object.entries(M.value ?? {}).filter(([, e]) => e).map(([e, t]) => [`--row-${e}`, `${t}px`]))
41
+ } : void 0), P, F = () => Array.from(A.value?.children ?? []).filter((e) => e.classList.contains(O.value.option)), I = () => {
42
+ let e = F(), t = e.map((e) => e.offsetHeight);
42
43
  if (!t.length) {
43
- k.value = A.value = void 0;
44
+ j.value = M.value = void 0;
44
45
  return;
45
46
  }
46
- k.value = Math.min(...t);
47
- let n = getComputedStyle(e[t.indexOf(k.value)]), r = (e) => parseFloat(e) || 0, [i, a] = [r(n.borderLeftWidth), r(n.borderRightWidth)], o = n.direction === "rtl";
48
- A.value = {
47
+ j.value = Math.min(...t);
48
+ let n = getComputedStyle(e[t.indexOf(j.value)]), r = (e) => parseFloat(e) || 0, [i, a] = [r(n.borderLeftWidth), r(n.borderRightWidth)], o = n.direction === "rtl";
49
+ M.value = {
49
50
  bs: r(n.borderTopWidth),
50
51
  be: r(n.borderBottomWidth),
51
52
  is: o ? a : i,
52
53
  ie: o ? i : a
53
54
  };
54
- }, F = () => {
55
- if (M?.disconnect(), typeof ResizeObserver < "u") {
56
- M ??= new ResizeObserver(P);
57
- for (let e of N()) M.observe(e);
58
- P();
55
+ }, L = () => {
56
+ if (P?.disconnect(), typeof ResizeObserver < "u") {
57
+ P ??= new ResizeObserver(I);
58
+ for (let e of F()) P.observe(e);
59
+ I();
59
60
  }
60
61
  };
61
- p(F), b(() => C.options, F, { flush: "post" }), f(() => M?.disconnect());
62
- let I = [
62
+ p(L), b(() => w.options, L, { flush: "post" }), f(() => P?.disconnect());
63
+ let R = [
63
64
  "auto",
64
65
  "horizontal",
65
66
  "vertical",
66
67
  "label-fill",
67
68
  "input-fill"
68
- ], L = (e) => /^[\S]+\s[\S]+$/.test(e), R = i(() => {
69
- let e = C.itemLayout ?? "auto";
70
- return I.includes(e) ? e : L(e) ? "ratio" : "auto";
71
- }), z = (e) => R.value !== "vertical" && n.includes(e) ? e : void 0, B = i(() => z(C.itemLabelAlign)), V = i(() => z(C.itemInputAlign)), H = i(() => {
72
- if (R.value !== "ratio") return;
73
- let [e, t] = C.itemLayout.split(/\s+/).map((e) => e.length);
69
+ ], z = (e) => /^[\S]+\s[\S]+$/.test(e), B = i(() => {
70
+ let e = w.itemLayout ?? "auto";
71
+ return R.includes(e) ? e : z(e) ? "ratio" : "auto";
72
+ }), V = (e) => B.value !== "vertical" && n.includes(e) ? e : void 0, H = i(() => V(w.itemLabelAlign)), U = i(() => V(w.itemInputAlign)), W = i(() => {
73
+ if (B.value !== "ratio") return;
74
+ let [e, t] = w.itemLayout.split(/\s+/).map((e) => e.length);
74
75
  return { gridTemplateColumns: `minmax(0, ${e}fr) minmax(0, ${t}fr)` };
75
- }), U = t().id, W = (e) => `${U.value}-option-${e}__text`, G = (e) => `${U.value}-option-${e}__description`, K = h(null), q = h(!1), J = (e, t) => {
76
- K.value = t, q.value = e.target instanceof Element && e.target.matches(":focus-visible");
77
- }, Y = (e) => {
78
- K.value === e && (K.value = null, q.value = !1);
79
- }, X = (e, t) => {
76
+ }), G = t().id, K = (e) => `${G.value}-option-${e}__text`, q = (e) => `${G.value}-option-${e}__description`, J = h(null), Y = h(!1), X = (e, t) => {
77
+ J.value = t, Y.value = e.target instanceof Element && e.target.matches(":focus-visible");
78
+ }, Z = (e) => {
79
+ J.value === e && (J.value = null, Y.value = !1);
80
+ }, Q = (e, t) => {
80
81
  let n = {
81
- onFocusin: (e) => J(e, t),
82
- onFocusout: () => Y(t)
83
- }, r = C.passthrough?.part?.("item", Z(e, t), e.item);
82
+ onFocusin: (e) => X(e, t),
83
+ onFocusout: () => Z(t)
84
+ }, r = w.passthrough?.part?.("item", $(e, t), e.item);
84
85
  return r ? u(n, r) : n;
85
- }, Z = (e, t) => {
86
- let n = K.value === t;
86
+ }, $ = (e, t) => {
87
+ let n = J.value === t;
87
88
  return {
88
89
  selected: !!e.selected,
89
90
  checked: !!e.selected,
90
91
  disabled: e.disabled || void 0,
91
92
  focused: n,
92
- focusVisible: n && q.value
93
+ focusVisible: n && Y.value
93
94
  };
94
95
  };
95
96
  return (e, t) => (m(), o("span", u({
96
97
  ref_key: "listEl",
97
- ref: O,
98
- class: [E.value.root, {
99
- [`${E.value.root}--errors`]: l.hasErrors,
100
- [`${E.value.root}--warnings`]: w.value,
101
- [`${E.value.root}--${D.value}`]: !0,
102
- [`${E.value.root}--block`]: l.listBlock,
103
- [`${E.value.root}--strip`]: !!l.variant,
104
- [`${E.value.root}--${l.variant}`]: !!l.variant,
105
- [`${E.value.root}--no-transition`]: !!l.variant && !l.indicatorReady
98
+ ref: A,
99
+ class: [O.value.root, {
100
+ [`${O.value.root}--errors`]: l.hasErrors,
101
+ [`${O.value.root}--warnings`]: E.value,
102
+ [`${O.value.root}--${k.value}`]: !0,
103
+ [`${O.value.root}--block`]: l.listBlock,
104
+ [`${O.value.root}--strip`]: !!l.variant,
105
+ [`${O.value.root}--${l.variant}`]: !!l.variant,
106
+ [`${O.value.root}--no-transition`]: !!l.variant && !l.indicatorReady
106
107
  }],
107
- style: j.value
108
+ style: N.value
108
109
  }, l.passthrough?.list), [
109
110
  _(e.$slots, "prepend"),
110
111
  !l.options.length && l.loading ? (m(), o("span", {
111
112
  key: 0,
112
- class: d(E.value.loading)
113
- }, [_(e.$slots, "loading", {}, () => [c(v(l.loadingText || y(T)("common.loadingText").value), 1)])], 2)) : l.options.length ? a("", !0) : (m(), o("span", {
113
+ class: d(O.value.loading)
114
+ }, [_(e.$slots, "loading", {}, () => [c(v(l.loadingText || y(D)("common.loadingText").value), 1)])], 2)) : !l.options.length && l.error != null ? (m(), o("span", {
114
115
  key: 1,
115
- class: d(E.value.empty)
116
- }, [_(e.$slots, "empty", { error: l.error ?? null }, () => [c(v(l.error == null ? l.emptyText || y(T)("common.emptyText").value : l.failedText || y(T)("common.failedText").value), 1)])], 2)),
116
+ class: d([O.value.empty, `${O.value.empty}--failed`]),
117
+ role: "status"
118
+ }, [s("span", null, v(l.failedText || y(D)("common.failedText").value), 1), s("button", {
119
+ class: "bb-load-retry",
120
+ type: "button",
121
+ onClick: t[0] ||= (e) => T("retry", e)
122
+ }, v(y(D)("common.retryLabel").value), 1)], 2)) : l.options.length ? a("", !0) : (m(), o("span", {
123
+ key: 2,
124
+ class: d(O.value.empty)
125
+ }, [_(e.$slots, "empty", {}, () => [c(v(l.emptyText || y(D)("common.emptyText").value), 1)])], 2)),
117
126
  (m(!0), o(r, null, g(l.options, (t, n) => (m(), o("label", u({
118
127
  key: t?.valueHash || n,
119
- class: [`${E.value.option}`, {
120
- [`${E.value.option}--selected`]: t.selected,
121
- [`${E.value.option}--description`]: t.description,
122
- [`${E.value.option}--disabled`]: t.disabled,
123
- [`${E.value.option}--focused`]: K.value === n,
124
- [`${E.value.option}--focus-visible`]: K.value === n && q.value,
125
- [`${E.value.option}--${R.value}`]: !0,
126
- [`${E.value.option}--reverse`]: l.itemReverse,
127
- [`${E.value.option}--aligned`]: !!(B.value || V.value),
128
- [`${E.value.option}--label-align-${B.value}`]: !!B.value,
129
- [`${E.value.option}--input-align-${V.value}`]: !!V.value
128
+ class: [`${O.value.option}`, {
129
+ [`${O.value.option}--selected`]: t.selected,
130
+ [`${O.value.option}--description`]: t.description,
131
+ [`${O.value.option}--disabled`]: t.disabled,
132
+ [`${O.value.option}--focused`]: J.value === n,
133
+ [`${O.value.option}--focus-visible`]: J.value === n && Y.value,
134
+ [`${O.value.option}--${B.value}`]: !0,
135
+ [`${O.value.option}--reverse`]: l.itemReverse,
136
+ [`${O.value.option}--aligned`]: !!(H.value || U.value),
137
+ [`${O.value.option}--label-align-${H.value}`]: !!H.value,
138
+ [`${O.value.option}--input-align-${U.value}`]: !!U.value
130
139
  }],
131
- style: H.value
132
- }, { ref_for: !0 }, X(t, n)), [
140
+ style: W.value
141
+ }, { ref_for: !0 }, Q(t, n)), [
133
142
  _(e.$slots, "input", {
134
- descriptionId: t.description ? G(n) : void 0,
143
+ descriptionId: t.description ? q(n) : void 0,
135
144
  index: n,
136
- labelId: W(n),
145
+ labelId: K(n),
137
146
  option: t,
138
- rowStates: Z(t, n)
147
+ rowStates: $(t, n)
139
148
  }),
140
149
  s("span", u({
141
- id: W(n),
150
+ id: K(n),
142
151
  class: {
143
- [E.value.label]: !0,
152
+ [O.value.label]: !0,
144
153
  "bb-sr-only": l.hideLabel
145
154
  }
146
- }, { ref_for: !0 }, l.passthrough?.part?.("label", Z(t, n), t.item)), [_(e.$slots, "label", {
155
+ }, { ref_for: !0 }, l.passthrough?.part?.("label", $(t, n), t.item)), [_(e.$slots, "label", {
147
156
  checked: !!t.selected,
148
157
  description: t.description,
149
158
  item: t.item,
@@ -151,12 +160,12 @@ var x = ["id"], S = ["id"], C = /*@__PURE__*/ l({
151
160
  }, () => [c(v(t.text), 1)])], 16, x),
152
161
  t.description ? (m(), o("span", u({
153
162
  key: 0,
154
- id: G(n),
163
+ id: q(n),
155
164
  class: {
156
- [E.value.description]: !0,
165
+ [O.value.description]: !0,
157
166
  "bb-sr-only": l.hideLabel
158
167
  }
159
- }, { ref_for: !0 }, l.passthrough?.part?.("itemDescription", Z(t, n), t.item)), v(t.description), 17, S)) : a("", !0)
168
+ }, { ref_for: !0 }, l.passthrough?.part?.("itemDescription", $(t, n), t.item)), v(t.description), 17, S)) : a("", !0)
160
169
  ], 16))), 128)),
161
170
  _(e.$slots, "append")
162
171
  ], 16));
@@ -1,15 +1,17 @@
1
1
  import e from "../BbIcon/BbIcon.vue.js";
2
2
  import t from "../../assets/svgs/alert.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/WarningIcon/WarningIcon.vue?vue&type=script&setup=true&lang.ts
5
- var o = /*@__PURE__*/ r({
6
+ var s = /*@__PURE__*/ i({
6
7
  __name: "WarningIcon",
7
- setup(r) {
8
- return (r, o) => (i(), n(e, {
8
+ setup(i) {
9
+ let s = n("warning", t);
10
+ return (t, n) => (a(), r(e, {
9
11
  "aria-hidden": "true",
10
12
  class: "bb-warning-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 };
@@ -0,0 +1,25 @@
1
+ import { useConfig as e } from "./useConfig.js";
2
+ import { appComponents as t } from "../utils/configScope.js";
3
+ import { LIBRARY_COMPONENT_NAMES as n } from "../types/internalIcons.js";
4
+ import { computed as r, getCurrentInstance as i, shallowRef as a } from "vue";
5
+ // src/composables/useInternalIcon.ts
6
+ var o = a(null), s = (e) => {
7
+ let t = [], r = e;
8
+ for (; r;) {
9
+ let e = r.type, i = e.__name ?? e.name;
10
+ if (!i || !n.has(i)) break;
11
+ t.push(i), r = r.vnode.ctx ?? null;
12
+ }
13
+ return t;
14
+ }, c = (n, a) => {
15
+ let c = s(i()), l = e();
16
+ return r(() => {
17
+ let e = t.value;
18
+ for (let t = c.length - 1; t >= 0; t--) {
19
+ let r = e[c[t]]?.icons?.[n];
20
+ if (r) return r;
21
+ }
22
+ return (o.value ?? l.iconDefaults)?.[n] ?? a;
23
+ });
24
+ };
25
+ export { c as useInternalIcon };
@@ -22,66 +22,68 @@ var m = ([e, t, n], r) => e === void 0 ? {
22
22
  f(_, (e, t) => {
23
23
  Array.isArray(e) && Array.isArray(t) && v.value === t && (v.value = e);
24
24
  });
25
- let y = c(0), b = 0, x = null, S = null, C = c(0), w = l(null), T = 0, E = null, D = (e) => {
26
- e.counted && (e.counted = !1, y.value--), E === e && (E = null);
27
- }, O = () => {
28
- let e = E;
29
- e && (D(e), e.controller.abort());
25
+ let y = c(0), b = 0, x = null, S = null, C = null, w = c(0), T = l(null), E = 0, D = null, O = (e) => {
26
+ e.counted && (e.counted = !1, y.value--), D === e && (D = null);
27
+ }, k = () => {
28
+ let e = D;
29
+ e && (O(e), e.controller.abort());
30
30
  };
31
- s(O, !0);
32
- let k = t(), A = `bb-items:${d()}`, j = c(""), M = !1, N = null, P = k.enabled && !e && g.marker ? r(o()) : void 0;
33
- if (P) {
34
- let e = k.get(P);
35
- Array.isArray(e) ? (v.value = e, N = e, M = !0) : process.env.NODE_ENV !== "production" && console.warn(`[bitboss-ui] The server transferred an \`items\` provider's rows as "${P}", but the SSR-state adapter on the client has no such entry. The client requests them again, and this component will not match the server HTML.`), process.env.NODE_ENV !== "production" && P !== A && i(P, A);
31
+ s(k, !0);
32
+ let A = t(), j = `bb-items:${d()}`, M = c(""), N = !1, P = null, F = A.enabled && !e && g.marker ? r(o()) : void 0;
33
+ if (F) {
34
+ let e = A.get(F);
35
+ Array.isArray(e) ? (v.value = e, P = e, N = !0) : process.env.NODE_ENV !== "production" && console.warn(`[bitboss-ui] The server transferred an \`items\` provider's rows as "${F}", but the SSR-state adapter on the client has no such entry. The client requests them again, and this component will not match the server HTML.`), process.env.NODE_ENV !== "production" && F !== j && i(F, j);
36
36
  }
37
- let F = (t) => {
38
- k.enabled && e && (h(t) ? (k.set(A, t), j.value = A) : (process.env.NODE_ENV !== "production" && console.warn("[bitboss-ui] An `items` provider resolved rows that cannot be serialized into the SSR payload (a row carries a function or a symbol — a class instance or an ORM model, most likely). The server-rendered options were dropped so hydration still matches; the client will fetch them again. Return plain objects to keep the server-side resolution."), v.value = []));
39
- }, I = async (...t) => {
40
- if (Array.isArray(_.value)) return ++b, O(), v.value = _.value, w.value = null, "applied";
37
+ let I = (t) => {
38
+ A.enabled && e && (h(t) ? (A.set(j, t), M.value = j) : (process.env.NODE_ENV !== "production" && console.warn("[bitboss-ui] An `items` provider resolved rows that cannot be serialized into the SSR payload (a row carries a function or a symbol — a class instance or an ORM model, most likely). The server-rendered options were dropped so hydration still matches; the client will fetch them again. Return plain objects to keep the server-side resolution."), v.value = []));
39
+ }, L = async (...t) => {
40
+ if (Array.isArray(_.value)) return ++b, k(), v.value = _.value, T.value = null, C = null, "applied";
41
41
  if (typeof _.value != "function") return "skipped";
42
- if (N) {
43
- let e = N;
44
- return N = null, ++b, O(), v.value = e, "applied";
42
+ if (P) {
43
+ let e = P;
44
+ return P = null, ++b, k(), v.value = e, "applied";
45
45
  }
46
46
  let n = ++b;
47
- O();
47
+ k();
48
48
  let r = {
49
49
  controller: new AbortController(),
50
50
  counted: !0
51
51
  };
52
- E = r, x = t, y.value++;
52
+ D = r, x = t, y.value++;
53
53
  let i = () => r.controller.signal.aborted || n !== b;
54
54
  try {
55
55
  let e = await _.value(m(t, r.controller.signal));
56
- return i() ? "superseded" : (v.value = e, w.value = null, S = t, C.value++, F(e), "applied");
56
+ return i() ? "superseded" : (v.value = e, T.value = null, C = null, S = t, w.value++, I(e), "applied");
57
57
  } catch (n) {
58
58
  if (i()) return "superseded";
59
59
  v.value = [];
60
60
  let r = n ?? /* @__PURE__ */ Error("The items provider rejected without a reason");
61
- return e || (w.value = r), S = t, C.value++, console.error(r), "failed";
61
+ return e || (T.value = r), C = t, S = t, w.value++, console.error(r), "failed";
62
62
  } finally {
63
- D(r);
63
+ O(r);
64
64
  }
65
- }, L = p((e, t) => e === T ? I(...t()) : void 0, g.debounce || 0), R = (e) => Array.isArray(_.value) ? I(...e()) : L(T, e), { isHydrated: z } = n();
65
+ }, R = p((e, t) => e === E ? L(...t()) : void 0, g.debounce || 0), z = (e) => Array.isArray(_.value) ? L(...e()) : R(E, e), { isHydrated: B } = n();
66
66
  return {
67
- getter: I,
68
- debouncedGetter: R,
67
+ getter: L,
68
+ debouncedGetter: z,
69
69
  items: v,
70
70
  clientReproducible: a(() => Array.isArray(_.value)),
71
- hydratedFromSsr: M,
72
- loading: a(() => z.value ? y.value > 0 : !1),
73
- error: w,
71
+ hydratedFromSsr: N,
72
+ loading: a(() => B.value ? y.value > 0 : !1),
73
+ error: T,
74
74
  inFlight: () => y.value > 0,
75
+ failedArgs: () => C,
76
+ retry: () => C ? L(...C) : Promise.resolve("skipped"),
75
77
  startedArgs: () => x,
76
78
  settledArgs: () => S,
77
- settledCount: C,
79
+ settledCount: w,
78
80
  discard: () => {
79
- T++, ++b, O();
81
+ E++, ++b, k();
80
82
  },
81
83
  discardScheduled: () => {
82
- T++;
84
+ E++;
83
85
  },
84
- ssrMarker: j
86
+ ssrMarker: M
85
87
  };
86
88
  };
87
89
  export { g as useItemsGetter };
@@ -0,0 +1,20 @@
1
+ import { useOwnModel as e } from "./useOwnModel.js";
2
+ import { nextTick as t, onMounted as n, watch as r } from "vue";
3
+ // src/composables/useOpenModel.ts
4
+ function i(t, n) {
5
+ return e(t, "open", n, () => !1);
6
+ }
7
+ function a(e, a, o) {
8
+ let { model: s, set: c } = i(e, a), l = async (e) => {
9
+ if (e !== o.isOpen()) {
10
+ if (!e) return void o.close();
11
+ await o.open(), await t(), s.value && !o.isOpen() && c(!1);
12
+ }
13
+ };
14
+ r(o.isOpen, (e) => {
15
+ s.value !== e && c(e);
16
+ }), r(s, (e) => void l(e)), n(() => {
17
+ s.value && l(!0);
18
+ });
19
+ }
20
+ export { a as useOpenModel, i as useOpenProp };