bitboss-ui 3.0.0-beta.73 → 3.0.0-beta.75

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 (345) hide show
  1. package/README.md +4 -2
  2. package/bin/bitboss-ui-mcp.mjs +101 -3
  3. package/bin/bitboss-ui.mjs +6 -1
  4. package/bin/cli.mjs +31 -5
  5. package/dist/ai/BbAvatar.md +86 -58
  6. package/dist/ai/BbBadge.md +5 -5
  7. package/dist/ai/BbBreadcrumbs.md +2 -2
  8. package/dist/ai/BbButton.md +2 -2
  9. package/dist/ai/BbCalendar.md +9 -5
  10. package/dist/ai/BbCheckboxGroup.md +5 -4
  11. package/dist/ai/BbColorInput.md +12 -0
  12. package/dist/ai/BbColorPalette.md +19 -15
  13. package/dist/ai/BbConfirmPortal.md +1 -1
  14. package/dist/ai/BbDatePicker.md +16 -3
  15. package/dist/ai/BbDatePickerInput.md +17 -1
  16. package/dist/ai/BbDialog.md +16 -4
  17. package/dist/ai/BbDropdown.md +175 -67
  18. package/dist/ai/BbDropdownButton.md +27 -8
  19. package/dist/ai/BbForm.md +4 -1
  20. package/dist/ai/BbHoverCardPortal.md +1 -1
  21. package/dist/ai/BbNumberInput.md +8 -4
  22. package/dist/ai/BbPopoverPortal.md +1 -1
  23. package/dist/ai/BbRadioGroup.md +4 -4
  24. package/dist/ai/BbSelect.md +79 -67
  25. package/dist/ai/BbSelectPopover.md +24 -5
  26. package/dist/ai/BbSwitchGroup.md +5 -4
  27. package/dist/ai/BbTable.md +59 -34
  28. package/dist/ai/BbTimePicker.md +16 -3
  29. package/dist/ai/BbTimePickerInput.md +15 -1
  30. package/dist/ai/BbToast.md +3 -2
  31. package/dist/ai/BbToastPortal.md +1 -1
  32. package/dist/ai/BbTree.md +5 -1
  33. package/dist/ai/CommonPopover.md +1 -0
  34. package/dist/ai/FlatListBox.md +1 -0
  35. package/dist/ai/GroupedListBox.md +1 -0
  36. package/dist/ai/ListBox.md +1 -0
  37. package/dist/ai/OptionsContainer.md +4 -4
  38. package/dist/ai/changelog.json +215 -6
  39. package/dist/ai/components.json +77 -43
  40. package/dist/ai/composables/useToast.md +2 -2
  41. package/dist/ai/design-tokens.json +60 -0
  42. package/dist/ai/guides/agent-contract.md +8 -4
  43. package/dist/ai/guides/design-tokens.md +33 -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/inertia-helpers.md +613 -53
  47. package/dist/ai/guides/migration/adoption-checklist.md +5 -5
  48. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  49. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  50. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  51. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  52. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  53. package/dist/ai/guides/migration/v2-to-v3.md +46 -5
  54. package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
  55. package/dist/ai/guides/passthrough.md +3 -3
  56. package/dist/ai/guides/preset-components.md +15 -2
  57. package/dist/ai/guides/reporting.md +49 -0
  58. package/dist/ai/helpers/inertia/manifest.json +33 -38
  59. package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
  60. package/dist/ai/helpers/inertia/useQuery.ts +24 -6
  61. package/dist/ai/helpers/inertia/utils.ts +552 -3
  62. package/dist/ai/index.md +2 -1
  63. package/dist/ai/manifest/common.json +1 -0
  64. package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
  65. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  66. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  67. package/dist/ai/manifest/components/BbCalendar.json +2 -2
  68. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  69. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  70. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  71. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  72. package/dist/ai/manifest/components/BbColorPalette.json +7 -4
  73. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  74. package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
  75. package/dist/ai/manifest/components/BbDatePicker.json +6 -3
  76. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  77. package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
  78. package/dist/ai/manifest/components/BbDropdown.json +23 -17
  79. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  80. package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
  81. package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
  82. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  83. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  84. package/dist/ai/manifest/components/BbForm.json +1 -1
  85. package/dist/ai/manifest/components/BbHoverCard.json +1 -1
  86. package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
  87. package/dist/ai/manifest/components/BbNumberInput.json +1 -1
  88. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  89. package/dist/ai/manifest/components/BbPopover.json +1 -1
  90. package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
  91. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  92. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  93. package/dist/ai/manifest/components/BbSelect.json +10 -7
  94. package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
  95. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  96. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  97. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  98. package/dist/ai/manifest/components/BbTable.json +6 -6
  99. package/dist/ai/manifest/components/BbTable.tree.json +16 -6
  100. package/dist/ai/manifest/components/BbTimePicker.json +7 -4
  101. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  102. package/dist/ai/manifest/components/BbToastPortal.json +1 -1
  103. package/dist/ai/manifest/components/BbTree.json +1 -1
  104. package/dist/ai/manifest/components/CommonPopover.json +2 -1
  105. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  106. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  107. package/dist/ai/manifest/components/ListBox.json +2 -1
  108. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  109. package/dist/ai/manifest/index.json +2 -2
  110. package/dist/ai/manifest/meta.json +36 -3
  111. package/dist/ai/manifest/types.advanced.json +81 -80
  112. package/dist/ai/manifest/types.api.json +64 -65
  113. package/dist/ai/manifest/types.wrapper.json +155 -118
  114. package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
  115. package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
  116. package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
  117. package/dist/ai/source/BbAlert.md +16 -4
  118. package/dist/ai/source/BbAvatar.md +121 -9
  119. package/dist/ai/source/BbBadge.md +12 -5
  120. package/dist/ai/source/BbBreadcrumbs.md +56 -55
  121. package/dist/ai/source/BbButton.md +41 -25
  122. package/dist/ai/source/BbCalendar.md +22 -12
  123. package/dist/ai/source/BbCarousel.md +31 -28
  124. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  125. package/dist/ai/source/BbColorInput.md +19 -0
  126. package/dist/ai/source/BbColorPalette.md +59 -12
  127. package/dist/ai/source/BbConfirm.md +7 -0
  128. package/dist/ai/source/BbConfirmPortal.md +9 -4
  129. package/dist/ai/source/BbDatePicker.md +71 -22
  130. package/dist/ai/source/BbDatePickerInput.md +72 -9
  131. package/dist/ai/source/BbDialog.md +45 -2
  132. package/dist/ai/source/BbDropdown.md +263 -63
  133. package/dist/ai/source/BbDropdownButton.md +27 -2
  134. package/dist/ai/source/BbDropdownGroup.md +121 -59
  135. package/dist/ai/source/BbForm.md +73 -6
  136. package/dist/ai/source/BbGallery.md +76 -55
  137. package/dist/ai/source/BbHost.md +12 -0
  138. package/dist/ai/source/BbHoverCard.md +7 -0
  139. package/dist/ai/source/BbHoverCardPortal.md +9 -5
  140. package/dist/ai/source/BbNumberInput.md +22 -16
  141. package/dist/ai/source/BbOffCanvas.md +48 -2
  142. package/dist/ai/source/BbPopover.md +7 -0
  143. package/dist/ai/source/BbPopoverPortal.md +9 -5
  144. package/dist/ai/source/BbRadio.md +4 -3
  145. package/dist/ai/source/BbRadioGroup.md +19 -10
  146. package/dist/ai/source/BbSelect.md +35 -20
  147. package/dist/ai/source/BbSelectPopover.md +116 -8
  148. package/dist/ai/source/BbSwitchGroup.md +11 -4
  149. package/dist/ai/source/BbTable.md +126 -32
  150. package/dist/ai/source/BbTag.md +10 -3
  151. package/dist/ai/source/BbTimePicker.md +69 -15
  152. package/dist/ai/source/BbTimePickerInput.md +45 -7
  153. package/dist/ai/source/BbToast.md +16 -2
  154. package/dist/ai/source/BbToastPortal.md +18 -6
  155. package/dist/ai/source/BbTree.md +1 -1
  156. package/dist/ai/source/CommonFieldInput.md +11 -5
  157. package/dist/ai/source/CommonPopover.md +28 -2
  158. package/dist/ai/source/FlatListBox.md +26 -5
  159. package/dist/ai/source/GroupedListBox.md +63 -11
  160. package/dist/ai/source/ListBox.md +4 -0
  161. package/dist/ai/source/OptionsContainer.md +29 -11
  162. package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
  163. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  164. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  165. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  166. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  167. package/dist/components/BbAvatar/types.d.ts +24 -5
  168. package/dist/components/BbAvatar/types.js +5 -1
  169. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  170. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  171. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  172. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  173. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  174. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
  175. package/dist/components/BbCalendar/types.d.ts +2 -2
  176. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  177. package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
  178. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  179. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  180. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  181. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  182. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  183. package/dist/components/BbColorInput/types.d.ts +7 -0
  184. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  185. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +239 -223
  186. package/dist/components/BbColorPalette/types.d.ts +8 -1
  187. package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
  188. package/dist/components/BbConfirm/types.d.ts +5 -0
  189. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
  190. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
  191. package/dist/components/BbDatePicker/types.d.ts +9 -2
  192. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  193. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
  194. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  195. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
  196. package/dist/components/BbDialog/leaveGhost.js +38 -0
  197. package/dist/components/BbDialog/overlayActions.js +34 -20
  198. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  199. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  200. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +419 -368
  201. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
  202. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  203. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  204. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +133 -119
  205. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  206. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  207. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  208. package/dist/components/BbDropdown/types.d.ts +73 -58
  209. package/dist/components/BbDropdown/types.js +1 -0
  210. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  211. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  212. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  213. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  214. package/dist/components/BbDropdownButton/types.js +2 -0
  215. package/dist/components/BbForm/BbForm.vue.d.ts +2 -21
  216. package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
  217. package/dist/components/BbForm/types.d.ts +31 -0
  218. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  219. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  220. package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
  221. package/dist/components/BbHoverCard/types.d.ts +5 -0
  222. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
  223. package/dist/components/BbNumberInput/numberDisplay.js +102 -106
  224. package/dist/components/BbNumberInput/types.d.ts +4 -3
  225. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
  226. package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
  227. package/dist/components/BbPopover/types.d.ts +5 -0
  228. package/dist/components/BbRadio/types.d.ts +4 -3
  229. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
  230. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  231. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  232. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  233. package/dist/components/BbSelect/types.d.ts +23 -20
  234. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  235. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  236. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  237. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  238. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  239. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  240. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1182 -1165
  241. package/dist/components/BbTable/BbTableDataRow.js +96 -96
  242. package/dist/components/BbTable/types.d.ts +11 -10
  243. package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
  244. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
  245. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
  246. package/dist/components/BbTimePicker/types.d.ts +9 -2
  247. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  248. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
  249. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  250. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  251. package/dist/components/BbToast/BbToastPortal.vue.d.ts +2 -4
  252. package/dist/components/BbToast/types.d.ts +7 -2
  253. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  254. package/dist/components/BbTree/types.d.ts +1 -1
  255. package/dist/components/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
  256. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
  257. package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
  258. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  259. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  260. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  261. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  262. package/dist/composables/formSubmitLock.js +2 -1
  263. package/dist/composables/overlayRegistry.js +52 -42
  264. package/dist/composables/useActiveInactiveState.js +8 -4
  265. package/dist/composables/useBbDialog.js +5 -5
  266. package/dist/composables/useItemsGetter.js +34 -32
  267. package/dist/composables/useOpenModel.js +20 -0
  268. package/dist/composables/useOwnModel.js +16 -0
  269. package/dist/composables/useSegmentedFields.js +31 -20
  270. package/dist/deprecation/ai-deprecations.json.js +1 -1
  271. package/dist/i18n/currencyDigits.js +58 -0
  272. package/dist/i18n/locales/ar.json +2 -0
  273. package/dist/i18n/locales/cs.json +2 -0
  274. package/dist/i18n/locales/da.json +2 -0
  275. package/dist/i18n/locales/de-CH.json +2 -0
  276. package/dist/i18n/locales/de.json +2 -0
  277. package/dist/i18n/locales/el.json +2 -0
  278. package/dist/i18n/locales/en-GB.json +2 -0
  279. package/dist/i18n/locales/en.json +2 -0
  280. package/dist/i18n/locales/es-MX.json +2 -0
  281. package/dist/i18n/locales/es.json +2 -0
  282. package/dist/i18n/locales/fa.json +2 -0
  283. package/dist/i18n/locales/fi.json +2 -0
  284. package/dist/i18n/locales/fr.json +2 -0
  285. package/dist/i18n/locales/he.json +2 -0
  286. package/dist/i18n/locales/hu.json +2 -0
  287. package/dist/i18n/locales/it.json +2 -0
  288. package/dist/i18n/locales/ja.json +2 -0
  289. package/dist/i18n/locales/ko.json +2 -0
  290. package/dist/i18n/locales/nb.json +2 -0
  291. package/dist/i18n/locales/nl.json +2 -0
  292. package/dist/i18n/locales/pl.json +2 -0
  293. package/dist/i18n/locales/pt-BR.json +2 -0
  294. package/dist/i18n/locales/pt-PT.json +2 -0
  295. package/dist/i18n/locales/ro.json +2 -0
  296. package/dist/i18n/locales/ru.json +2 -0
  297. package/dist/i18n/locales/sv.json +2 -0
  298. package/dist/i18n/locales/tr.json +2 -0
  299. package/dist/i18n/locales/uk.json +2 -0
  300. package/dist/i18n/locales/zh-CN.json +2 -0
  301. package/dist/i18n/locales/zh-HK.json +2 -0
  302. package/dist/i18n/locales/zh-TW.json +2 -0
  303. package/dist/i18n/regionDates.js +250 -0
  304. package/dist/i18n/regionHints.js +30 -41
  305. package/dist/icon-scan.js +68 -61
  306. package/dist/index.d.ts +35 -31
  307. package/dist/llms-full.txt +1428 -400
  308. package/dist/llms-medium.txt +8 -4
  309. package/dist/llms.txt +4 -2
  310. package/dist/locale-blueprint.json +2 -0
  311. package/dist/styles.css +2 -2
  312. package/dist/types/ActionButton.d.ts +2 -1
  313. package/dist/types/CommonProps.d.ts +8 -0
  314. package/dist/types/Option.d.ts +10 -0
  315. package/dist/types/ptComponentMap.d.ts +3 -3
  316. package/dist/utilities/functions/hash.js +97 -64
  317. package/dist/utilities/functions/isEqual.js +33 -25
  318. package/dist/utilities/functions/slotContent.js +19 -0
  319. package/dist/utils/loadRetry.js +8 -0
  320. package/dist/utils/versionCheck.js +1 -1
  321. package/dist/vite-plugin.d.ts +2 -1
  322. package/dist/vite.js +11 -4
  323. package/llms.txt +4 -2
  324. package/package.json +3 -2
  325. package/scripts/README.md +3 -1
  326. package/scripts/lib/adoption-checklist.json +6 -5
  327. package/scripts/lib/agent-manifest.mjs +33 -6
  328. package/scripts/lib/agent-setup.mjs +90 -24
  329. package/scripts/lib/cldr-pins.ts +182 -0
  330. package/scripts/lib/engines-include.d.mts +5 -0
  331. package/scripts/lib/engines-include.mjs +40 -0
  332. package/scripts/lib/eslint-plugin.mjs +8 -2
  333. package/scripts/lib/hidden-label-placeholder.mjs +25 -5
  334. package/scripts/lib/idiom-scan.mjs +30 -3
  335. package/scripts/lib/legacy-agent-files.json +152 -0
  336. package/scripts/lib/mcp-config.mjs +74 -7
  337. package/scripts/lib/portal-names.mjs +78 -8
  338. package/scripts/lib/release-results.mjs +5 -2
  339. package/scripts/lib/report.mjs +340 -0
  340. package/scripts/lib/run-beat.mjs +14 -0
  341. package/scripts/lib/run-records.mjs +313 -0
  342. package/scripts/lib/selector-log.mjs +98 -0
  343. package/scripts/lib/ticket-beat.mjs +30 -0
  344. package/scripts/lib/validate-bb-markup.mjs +37 -2
  345. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -2,46 +2,47 @@ import { parseSize as e } from "../../utilities/functions/parseSize.js";
2
2
  import { escapeStackDepth as t, insertEscapeEntry as ee, isTopEscapeEntry as te, pushEscapeEntry as ne, removeEscapeEntry as re } from "../../utils/overlayEscapeStack.js";
3
3
  import { useId as ie } from "../../composables/useId.js";
4
4
  import { useLocale as ae } from "../../composables/useLocale.js";
5
- import { useLogger as n } from "../../composables/useLogger.js";
6
- import { useMobile as oe } from "../../composables/useMobile.js";
7
- import { useBreakpoint as se } from "../../composables/useBreakpoint.js";
8
- import { useUntil as ce } from "../../composables/useUntil.js";
9
- import { removedPropsFor as le } from "../../deprecation/removedProps.js";
10
- import { warnRemovedAttrs as ue } from "../../utilities/functions/warnRemovedAttrs.js";
11
- import { wait as de } from "../../utilities/functions/wait.js";
12
- import { animationsSettled as fe } from "../../utilities/functions/animationsSettled.js";
13
- import { useConfigDefaults as pe, useSizeMap as me } from "../../composables/useConfigDefaults.js";
14
- import { PANEL_SIZES as he } from "../../types/SizeScale.js";
15
- import { BB_DIALOG_PT as ge } from "./types.js";
16
- import { usePassthrough as _e } from "../../composables/usePassthrough.js";
17
- import { firstFocusableMatch as ve } from "../../utils/focusVisibility.js";
18
- import { withoutPt as ye } from "../../utils/passthrough.js";
19
- import { BB_OFF_CANVAS_PT as be } from "../BbOffCanvas/types.js";
20
- import xe from "../CloseIcon/CloseButton.vue.js";
21
- import Se from "../BbOffCanvas/BbOffCanvas.vue.js";
22
- import { provideHostCloseLabel as Ce } from "../BbOffCanvas/hostCloseLabel.js";
5
+ import { useLogger as oe } from "../../composables/useLogger.js";
6
+ import { useMobile as se } from "../../composables/useMobile.js";
7
+ import { useBreakpoint as ce } from "../../composables/useBreakpoint.js";
8
+ import { useUntil as le } from "../../composables/useUntil.js";
9
+ import { removedPropsFor as ue } from "../../deprecation/removedProps.js";
10
+ import { warnRemovedAttrs as de } from "../../utilities/functions/warnRemovedAttrs.js";
11
+ import { wait as n } from "../../utilities/functions/wait.js";
12
+ import { leaveAsGhost as fe, surfaceGone as pe, surfaceShown as me } from "./leaveGhost.js";
13
+ import { animationsSettled as he } from "../../utilities/functions/animationsSettled.js";
14
+ import { useConfigDefaults as ge, useSizeMap as _e } from "../../composables/useConfigDefaults.js";
15
+ import { PANEL_SIZES as ve } from "../../types/SizeScale.js";
16
+ import { BB_DIALOG_PT as ye } from "./types.js";
17
+ import { usePassthrough as be } from "../../composables/usePassthrough.js";
18
+ import { firstFocusableMatch as xe } from "../../utils/focusVisibility.js";
19
+ import { withoutPt as Se } from "../../utils/passthrough.js";
20
+ import { BB_OFF_CANVAS_PT as Ce } from "../BbOffCanvas/types.js";
21
+ import we from "../CloseIcon/CloseButton.vue.js";
22
+ import Te from "../BbOffCanvas/BbOffCanvas.vue.js";
23
+ import { provideHostCloseLabel as Ee } from "../BbOffCanvas/hostCloseLabel.js";
23
24
  import { transitions as r } from "../../utilities/misc/transitions.js";
24
- import { pageText as we } from "../../utilities/misc/pageText.js";
25
- import { overlaySurfaceIsolation as Te } from "../../utils/overlaySurfaceIsolation.js";
26
- import { useDialogStack as Ee } from "./useDialogStack.js";
27
- import { registerTopLayerHost as De } from "../../composables/useTopLayer.js";
28
- import { useBodyScrollLock as Oe } from "../../composables/useBodyScrollLock.js";
29
- import { useRefusedCloseAnnouncement as ke } from "../../composables/useRefusedCloseAnnouncement.js";
30
- import { provideOverlaySubmitGuard as Ae } from "../../composables/formSubmitLock.js";
31
- import { ownCompleteListener as je, useOverlayActions as Me } from "./overlayActions.js";
32
- import { provideOverlayStandIn as Ne, rootElementOf as Pe, routeNativeCommand as Fe, useOverlayHost as Ie } from "../../composables/overlayRegistry.js";
33
- import { provideStandInClose as Le, useOverlayNavigation as Re } from "../../composables/useOverlayNavigation.js";
34
- import { Fragment as ze, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as Be, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineComponent as We, getCurrentInstance as Ge, mergeModels as c, mergeProps as l, nextTick as u, onBeforeUnmount as Ke, onDeactivated as qe, onMounted as Je, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, toHandlers as Ye, unref as h, useAttrs as Xe, useModel as g, useSlots as Ze, watch as _, withCtx as v, withModifiers as Qe } from "vue";
25
+ import { pageText as De } from "../../utilities/misc/pageText.js";
26
+ import { overlaySurfaceIsolation as Oe } from "../../utils/overlaySurfaceIsolation.js";
27
+ import { useDialogStack as ke } from "./useDialogStack.js";
28
+ import { registerTopLayerHost as Ae } from "../../composables/useTopLayer.js";
29
+ import { useBodyScrollLock as je } from "../../composables/useBodyScrollLock.js";
30
+ import { useRefusedCloseAnnouncement as Me } from "../../composables/useRefusedCloseAnnouncement.js";
31
+ import { provideOverlaySubmitGuard as Ne } from "../../composables/formSubmitLock.js";
32
+ import { ownCompleteListener as Pe, useOverlayActions as Fe } from "./overlayActions.js";
33
+ import { provideOverlayStandIn as Ie, rootElementOf as Le, routeNativeCommand as Re, useOverlayHost as ze } from "../../composables/overlayRegistry.js";
34
+ import { provideStandInClose as Be, useOverlayNavigation as Ve } from "../../composables/useOverlayNavigation.js";
35
+ import { Fragment as He, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as Ue, createSlots as We, createTextVNode as Ge, createVNode as Ke, defineComponent as qe, getCurrentInstance as Je, mergeModels as c, mergeProps as l, nextTick as Ye, onBeforeUnmount as Xe, onDeactivated as Ze, onMounted as Qe, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, toHandlers as $e, unref as m, useAttrs as et, useModel as tt, useSlots as nt, watch as h, withCtx as g, withModifiers as rt } from "vue";
35
36
  // src/components/BbDialog/BbDialog.vue?vue&type=script&setup=true&lang.ts
36
- var $e = [
37
+ var it = [
37
38
  "id",
38
39
  "aria-describedby",
39
40
  "aria-labelledby",
40
41
  "inert"
41
- ], et = { class: "bb-dialog__body-content" }, tt = {
42
+ ], at = { class: "bb-dialog__body-content" }, ot = {
42
43
  "aria-live": "polite",
43
44
  class: "bb-sr-only"
44
- }, nt = 4, y = /*@__PURE__*/ We({
45
+ }, st = 4, _ = /*@__PURE__*/ qe({
45
46
  inheritAttrs: !1,
46
47
  __name: "BbDialog",
47
48
  props: /*@__PURE__*/ c({
@@ -128,179 +129,194 @@ var $e = [
128
129
  "shown",
129
130
  "hidden"
130
131
  ], ["update:modelValue", "update:snap"]),
131
- setup(r, { emit: We }) {
132
- let c = g(r, "modelValue"), y = g(r, "snap"), b = r, x = We, S = Ze();
133
- process.env.NODE_ENV !== "production" && ue("BbDialog", le("BbDialog"));
134
- let { t: C } = ae(), { isMobile: w } = oe(), { resolve: rt } = se(), T = pe("BbDialog", b, {
132
+ setup(r, { emit: qe }) {
133
+ let c = tt(r, "modelValue"), _ = tt(r, "snap"), v = r, y = qe, b = nt();
134
+ process.env.NODE_ENV !== "production" && de("BbDialog", ue("BbDialog"));
135
+ let { t: x } = ae(), { isMobile: S } = se(), { resolve: ct } = ce(), C = ge("BbDialog", v, {
135
136
  adaptive: !0,
136
137
  fullscreen: !1
137
- }), it = me("BbDialog", he), E = () => T.adaptive && w.value ? "canvas" : "dialog", D = f(E());
138
- Ce(() => D.value === "canvas" ? C("dialog.closeLabel").value : null);
139
- let at = Ge(), O = Ie("dialog", {
140
- id: () => b.id,
138
+ }), lt = _e("BbDialog", ve), w = () => C.adaptive && S.value ? "canvas" : "dialog", T = d(w());
139
+ Ee(() => T.value === "canvas" ? x("dialog.closeLabel").value : null);
140
+ let ut = Je(), E = ze("dialog", {
141
+ id: () => v.id,
141
142
  model: c,
142
- element: () => Pe(at),
143
- defaultData: () => b.defaultData,
144
- onComplete: () => je(at)
143
+ element: () => Le(ut),
144
+ defaultData: () => v.defaultData,
145
+ onComplete: () => Pe(ut)
145
146
  });
146
- Ne();
147
- let ot = Le();
148
- b.navigation && O.onDemand && process.env.NODE_ENV !== "production" && n().warn("BbDialog: `navigation` is ignored on a dialog opened on demand: it has no place in the page URL. For a URL dialog, render the wrapper in the page and open it by id."), Re({
147
+ Ie();
148
+ let dt = Be();
149
+ v.navigation && E.onDemand && process.env.NODE_ENV !== "production" && oe().warn("BbDialog: `navigation` is ignored on a dialog opened on demand: it has no place in the page URL. For a URL dialog, render the wrapper in the page and open it by id."), Ve({
149
150
  component: "BbDialog",
150
- enabled: () => !!b.navigation && !O.onDemand,
151
- key: () => b.queryKey,
152
- replace: () => !!b.replace,
153
- id: () => b.id,
151
+ enabled: () => !!v.navigation && !E.onDemand,
152
+ key: () => v.queryKey,
153
+ replace: () => !!v.replace,
154
+ id: () => v.id,
154
155
  model: c,
155
156
  requestClose: () => {
156
- if (D.value === "dialog") return Yt("escape");
157
- let e = ot();
157
+ if (T.value === "dialog") return en("escape");
158
+ let e = dt();
158
159
  return e === null ? (Q("escape"), !0) : e;
159
160
  }
160
161
  });
161
- let k = () => {
162
- O.afterHidden(), x("hidden");
162
+ let ft = () => {
163
+ E.afterHidden(), y("hidden");
163
164
  };
164
- _([() => T.adaptive, w], () => {
165
- c.value || (D.value = E());
165
+ h([() => C.adaptive, S], () => {
166
+ c.value || (T.value = w());
166
167
  });
167
- let A = Xe(), j = _e({
168
+ let D = et(), O = be({
168
169
  component: "BbDialog",
169
- attrs: A,
170
- props: b,
171
- parts: ge.parts,
172
- states: ge.states,
170
+ attrs: D,
171
+ props: v,
172
+ parts: ye.parts,
173
+ states: ye.states,
173
174
  active: {
174
175
  open: () => c.value,
175
- fullscreen: () => R.value
176
+ fullscreen: () => F.value
176
177
  }
177
- }), st = i(() => l({
178
+ }), pt = i(() => l({
178
179
  class: "bb-dialog__close",
179
180
  onClick: $
180
- }, j.close)), ct = i(() => ({
181
- id: O.domId.value || b.id,
182
- description: b.description,
183
- preventClose: b.preventClose ?? (O.completing.value ? !0 : void 0),
184
- eager: b.eager,
185
- focusTarget: b.focusTarget,
186
- fullscreen: T.fullscreen,
187
- hideClose: b.hideClose,
188
- persistent: b.persistent,
189
- stack: b.stack,
190
- title: b.title,
191
- transitionDuration: b.transitionDuration,
181
+ }, O.close)), mt = i(() => ({
182
+ id: E.domId.value || v.id,
183
+ description: v.description,
184
+ preventClose: v.preventClose ?? (E.completing.value ? !0 : void 0),
185
+ eager: v.eager,
186
+ focusTarget: v.focusTarget,
187
+ fullscreen: C.fullscreen,
188
+ hideClose: v.hideClose,
189
+ persistent: v.persistent,
190
+ stack: v.stack,
191
+ title: v.title,
192
+ transitionDuration: v.transitionDuration,
192
193
  side: "bottom",
193
194
  draggable: !0,
194
195
  size: "auto",
195
- snapPoints: b.snapPoints,
196
- snap: y.value,
197
- ok: z.resolved.value.ok ?? void 0,
198
- cancel: z.resolved.value.cancel ?? void 0,
199
- actions: z.resolved.value.actions,
196
+ snapPoints: v.snapPoints,
197
+ snap: _.value,
198
+ ok: I.resolved.value.ok ?? void 0,
199
+ cancel: I.resolved.value.cancel ?? void 0,
200
+ actions: I.resolved.value.actions,
200
201
  "onUpdate:snap": (e) => {
201
- y.value = e;
202
+ _.value = e;
202
203
  },
203
- ...ye(b.offCanvasProps)
204
- })), lt = i(() => {
205
- let { class: e, ...t } = A;
206
- return l(ct.value, t);
207
- }), M = f(null), N = `title_${ie().id.value}`, ut = `desc_${ie().id.value}`, P = () => !!b.description || !!S.description, F = () => !!b.title || !!S.title, dt = () => F() || P(), ft = ce(() => c.value || b.eager, { initialValue: c.value || b.eager }), I = i(() => !!b.eager || c.value || q.value), L = f(0);
208
- _(c, (e, t) => {
209
- e && !t && !b.eager && L.value++;
204
+ ...Se(v.offCanvasProps)
205
+ })), ht = i(() => {
206
+ let { class: e, ...t } = D;
207
+ return l(mt.value, t);
208
+ }), k = d(null), A = `title_${ie().id.value}`, gt = `desc_${ie().id.value}`, j = () => !!v.description || !!b.description, M = () => !!v.title || !!b.title, _t = () => M() || j(), vt = le(() => c.value || v.eager, { initialValue: c.value || v.eager }), N = i(() => !!v.eager || c.value || G.value), P = d(0);
209
+ h(c, (e, t) => {
210
+ e && !t && !v.eager && P.value++;
210
211
  }, { flush: "sync" });
211
- let R = i(() => T.fullscreen === !0 || T.fullscreen === "mobile" && w.value), pt = () => typeof document < "u", mt = Ae(), ht = mt.saving, z = Me({
212
+ let F = i(() => C.fullscreen === !0 || C.fullscreen === "mobile" && S.value), yt = () => typeof document < "u", bt = Ne(), xt = bt.saving, I = Fe({
212
213
  component: "BbDialog",
213
- props: () => b,
214
- surface: mt,
215
- complete: O.complete,
216
- data: () => O.data.value,
214
+ props: () => v,
215
+ surface: bt,
216
+ complete: E.complete,
217
+ data: () => E.data.value,
217
218
  close: () => $(),
219
+ closeLocked: () => L.value,
218
220
  block: "bb-dialog"
219
- }), gt = () => z.render(), _t = i(() => b.preventClose ?? (ht() || O.completing.value)), vt = i(() => _t.value || !!b.persistent), B = f(!1), V = f(null), yt = () => {
220
- V.value = null;
221
- }, bt = (e) => {
222
- V.value = {
221
+ }), St = () => I.render(), L = i(() => v.preventClose ?? (xt() || E.completing.value)), Ct = i(() => L.value || !!v.persistent), R = d(!1), z = d(null), wt = () => {
222
+ z.value = null;
223
+ }, Tt = (e) => {
224
+ z.value = {
223
225
  startX: e.clientX,
224
226
  startY: e.clientY,
225
227
  startedOnBackdrop: e.target === e.currentTarget
226
228
  };
227
- }, xt = (e) => {
228
- let t = V.value;
229
- yt(), t && !t.startedOnBackdrop || t && (Math.abs(e.clientX - t.startX) > nt || Math.abs(e.clientY - t.startY) > nt) || Jt(e, "backdrop");
230
- }, H, St = ke(() => C("dialog.closeRefused").value), U = (e) => {
231
- St.announce(), clearTimeout(H), B.value = !0, H = setTimeout(() => {
232
- B.value = !1;
229
+ }, Et = (e) => {
230
+ let t = z.value;
231
+ wt(), t && !t.startedOnBackdrop || t && (Math.abs(e.clientX - t.startX) > st || Math.abs(e.clientY - t.startY) > st) || $t(e, "backdrop");
232
+ }, B, Dt = Me(() => x("dialog.closeRefused").value), V = (e) => {
233
+ Dt.announce(), clearTimeout(B), R.value = !0, B = setTimeout(() => {
234
+ R.value = !1;
233
235
  }, e);
234
- }, W = Symbol("bb-dialog-escape"), Ct = t(), G = !1, wt = () => {
235
- let e = { element: () => M.value };
236
- G ? ee(W, Ct, e) : ne(W, e), pt() && document.addEventListener("keydown", Dt, { capture: !0 });
237
- }, Tt = () => {
238
- re(W), pt() && document.removeEventListener("keydown", Dt, { capture: !0 });
239
- }, Et = () => {
240
- b.focusTarget && ve(M.value, b.focusTarget)?.focus();
241
- }, Dt = (e) => {
242
- if (e.key === "Escape" && !X.value && te(W) && (e.stopImmediatePropagation(), vt.value)) return e.preventDefault(), U(200), !1;
243
- }, K = f(0), q = f(!1);
244
- Oe(q);
245
- let J = Symbol("bb-dialog"), { stacks: Ot, openOrder: kt, closing: At, enter: jt, leave: Mt, registerOpen: Nt, deregisterOpen: Pt, setClosing: Y } = Ee(), Ft = () => {
246
- Nt(J), b.stack && jt(b.stack, J);
247
- }, It = () => {
248
- Pt(J), b.stack && Mt(b.stack, J);
249
- }, X = i(() => {
250
- if (!b.stack) return !1;
251
- let e = Ot.value[b.stack];
252
- return !e || !e.includes(J) ? !1 : e[e.length - 1] !== J;
253
- }), Lt = i(() => kt.value.indexOf(J)), Rt = (e, t) => _([t, () => At.value.length > 0], ([t, ee]) => {
236
+ }, H = Symbol("bb-dialog-escape"), Ot = t(), U = !1, kt = () => {
237
+ let e = { element: () => k.value };
238
+ U ? ee(H, Ot, e) : ne(H, e), yt() && document.addEventListener("keydown", Mt, { capture: !0 });
239
+ }, At = () => {
240
+ re(H), yt() && document.removeEventListener("keydown", Mt, { capture: !0 });
241
+ }, jt = () => {
242
+ v.focusTarget && xe(k.value, v.focusTarget)?.focus();
243
+ }, Mt = (e) => {
244
+ if (e.key === "Escape" && !J.value && te(H) && (e.stopImmediatePropagation(), Ct.value)) return e.preventDefault(), V(200), !1;
245
+ }, W = d(0), G = d(!1);
246
+ je(G);
247
+ let K = Symbol("bb-dialog"), { stacks: Nt, openOrder: Pt, closing: Ft, enter: It, leave: Lt, registerOpen: Rt, deregisterOpen: zt, setClosing: q } = ke(), Bt = () => {
248
+ Rt(K), v.stack && It(v.stack, K);
249
+ }, Vt = () => {
250
+ zt(K), v.stack && Lt(v.stack, K);
251
+ }, J = i(() => {
252
+ if (!v.stack) return !1;
253
+ let e = Nt.value[v.stack];
254
+ return !e || !e.includes(K) ? !1 : e[e.length - 1] !== K;
255
+ }), Ht = i(() => Pt.value.indexOf(K)), Ut = (e, t) => h([t, () => Ft.value.length > 0], ([t, ee]) => {
254
256
  t !== -1 && (e.value = ee && e.value || t > 0);
255
- }, { immediate: !0 }), zt = f(!1);
256
- Rt(zt, Lt);
257
- let Bt = i(() => (Lt.value !== -1 || q.value) && zt.value), Vt = i(() => b.stack ? Ot.value[b.stack]?.indexOf(J) ?? -1 : -1), Ht = f(!1);
258
- Rt(Ht, Vt);
259
- let Ut = i(() => (Vt.value !== -1 || q.value) && Ht.value), Wt = f(), Z = null, Gt = async (e) => {
257
+ }, { immediate: !0 }), Wt = d(!1);
258
+ Ut(Wt, Ht);
259
+ let Gt = i(() => (Ht.value !== -1 || G.value) && Wt.value), Kt = i(() => v.stack ? Nt.value[v.stack]?.indexOf(K) ?? -1 : -1), qt = d(!1);
260
+ Ut(qt, Kt);
261
+ let Jt = i(() => (Kt.value !== -1 || G.value) && qt.value), Yt = d(), Y = null, X = null, Z = null, Xt = async (e) => {
260
262
  if (e) {
261
- x("show"), K.value++, Wt.value = we(), wt(), await u(), q.value = !0, M.value && !M.value.open && M.value.showModal(), Ft(), Y(J, !1), M.value && (Z = De(M.value)), Et();
262
- let e = K.value;
263
- await de(b.transitionDuration), await fe(M.value), e === K.value && c.value && x("shown");
263
+ y("show"), W.value++, Yt.value = De(), kt(), await Ye(), G.value = !0, k.value && !k.value.open && (Z = document.activeElement, k.value.showModal()), X = null, me(K), Bt(), q(K, !1), k.value && (Y = Ae(k.value)), jt();
264
+ let e = W.value;
265
+ await n(v.transitionDuration), await he(k.value), e === W.value && c.value && y("shown");
264
266
  } else {
265
- x("hide", O.closingResult()), Y(J, !0), It();
266
- let e = K.value;
267
- if (await de(b.transitionDuration), e !== K.value) return;
268
- Tt(), M.value?.close(), Z?.(), Z = null, q.value = !1, Y(J, !1), k();
267
+ y("hide", E.closingResult()), X = performance.now(), q(K, !0), Vt();
268
+ let e = W.value;
269
+ if (await n(v.transitionDuration), e !== W.value) return;
270
+ At(), k.value?.close(), pe(K), Y?.(), Y = null, G.value = !1, q(K, !1), ft();
269
271
  }
270
- }, Kt = () => {
271
- process.env.NODE_ENV !== "production" && S.header && !b.title && A["aria-labelledby"] == null && u(() => {
272
- M.value && !document.getElementById(N) && n().warn(`BbDialog: the #header slot does not contain an element with id="${N}", so aria-labelledby points at nothing and the dialog announces as unnamed. Bind the slot's \`titleId\` to your heading: <template #header="{ titleId }"><h2 :id="titleId">…</h2></template>.`);
272
+ }, Zt = () => {
273
+ process.env.NODE_ENV !== "production" && b.header && !v.title && D["aria-labelledby"] == null && Ye(() => {
274
+ k.value && !document.getElementById(A) && oe().warn(`BbDialog: the #header slot does not contain an element with id="${A}", so aria-labelledby points at nothing and the dialog announces as unnamed. Bind the slot's \`titleId\` to your heading: <template #header="{ titleId }"><h2 :id="titleId">…</h2></template>.`);
273
275
  });
274
276
  };
275
- _(c, (e) => {
276
- e && (D.value = E()), D.value === "dialog" && Gt(e);
277
- }), Je(() => {
278
- c.value && D.value === "dialog" && (G = !0, Gt(!0), G = !1);
279
- }), _(ft, (e) => {
280
- e && Kt();
277
+ h(c, (e) => {
278
+ e && (T.value = w()), T.value === "dialog" && Xt(e);
279
+ }), Qe(() => {
280
+ c.value && T.value === "dialog" && (U = !0, Xt(!0), U = !1);
281
+ }), h(vt, (e) => {
282
+ e && Zt();
281
283
  }, {
282
284
  immediate: !0,
283
285
  flush: "post"
284
- }), Ke(() => {
285
- M.value?.open && M.value.close(), clearTimeout(H), Tt(), It(), Y(J, !1), Z?.(), Z = null;
286
+ }), Xe(() => {
287
+ fe(k.value, {
288
+ id: K,
289
+ openClass: "bb-dialog--open",
290
+ duration: v.transitionDuration,
291
+ closingSince: X,
292
+ opener: Z
293
+ }), k.value?.open && k.value.close(), clearTimeout(B), At(), Vt(), q(K, !1), Y?.(), Y = null;
286
294
  });
287
- let qt = i(() => R.value ? "100%" : e(rt(b.size), it.value)), Jt = (e, t = "escape") => {
288
- if (e.preventDefault(), !Yt(t)) return !1;
289
- }, Yt = (e) => vt.value ? (U(300), !1) : (Q(e), !0), Q = (e) => {
290
- O.record(e), c.value = !1;
295
+ let Qt = i(() => F.value ? "100%" : e(ct(v.size), lt.value)), $t = (e, t = "escape") => {
296
+ if (e.preventDefault(), !en(t)) return !1;
297
+ }, en = (e) => Ct.value ? (V(300), !1) : (Q(e), !0), Q = (e) => {
298
+ E.record(e), c.value = !1;
291
299
  }, $ = () => {
292
- _t.value ? U(300) : Q("close");
293
- }, Xt = (e) => Fe(e, {
294
- show: O.show,
300
+ L.value ? V(300) : Q("close");
301
+ }, tn = (e) => Re(e, {
302
+ show: E.show,
295
303
  close: $,
296
304
  open: () => c.value
297
305
  });
298
- return qe(() => Q("unmounted")), (e, t) => D.value === "canvas" ? (d(), a(Se, l({
306
+ return Ze(() => {
307
+ G.value && fe(k.value, {
308
+ id: K,
309
+ openClass: "bb-dialog--open",
310
+ duration: v.transitionDuration,
311
+ closingSince: X,
312
+ opener: Z
313
+ }), Q("unmounted");
314
+ }), (e, t) => T.value === "canvas" ? (u(), a(Te, l({
299
315
  key: 0,
300
316
  modelValue: c.value,
301
317
  "onUpdate:modelValue": t[0] ||= (e) => c.value = e,
302
318
  class: "bb-dialog__sheet",
303
- pt: h(j).forward({
319
+ pt: m(O).forward({
304
320
  root: "root",
305
321
  header: "header",
306
322
  title: "title",
@@ -309,134 +325,134 @@ var $e = [
309
325
  footer: "footer",
310
326
  close: "close",
311
327
  sheet: "root"
312
- }, h(be).states, () => r.offCanvasProps?.pt)
313
- }, lt.value, {
314
- onHidden: k,
315
- onHide: t[1] ||= (e) => x("hide", h(O).closingResult()),
316
- onShow: t[2] ||= (e) => x("show"),
317
- onShown: t[3] ||= (e) => x("shown")
318
- }), Ve({ _: 2 }, [
328
+ }, m(Ce).states, () => r.offCanvasProps?.pt)
329
+ }, ht.value, {
330
+ onHidden: ft,
331
+ onHide: t[1] ||= (e) => y("hide", m(E).closingResult()),
332
+ onShow: t[2] ||= (e) => y("show"),
333
+ onShown: t[3] ||= (e) => y("shown")
334
+ }), We({ _: 2 }, [
319
335
  e.$slots.default ? {
320
336
  name: "default",
321
- fn: v((t) => [p(e.$slots, "default", l(t, {
322
- complete: h(O).complete,
323
- data: h(O).data.value,
324
- reset: h(O).reset
337
+ fn: g((t) => [f(e.$slots, "default", l(t, {
338
+ complete: m(E).complete,
339
+ data: m(E).data.value,
340
+ reset: m(E).reset
325
341
  }))]),
326
342
  key: "0"
327
343
  } : void 0,
328
344
  e.$slots.header ? {
329
345
  name: "header",
330
- fn: v((t) => [p(e.$slots, "header", l(t, {
331
- complete: h(O).complete,
332
- data: h(O).data.value,
333
- reset: h(O).reset
346
+ fn: g((t) => [f(e.$slots, "header", l(t, {
347
+ complete: m(E).complete,
348
+ data: m(E).data.value,
349
+ reset: m(E).reset
334
350
  }))]),
335
351
  key: "1"
336
352
  } : void 0,
337
353
  e.$slots.title ? {
338
354
  name: "title",
339
- fn: v((t) => [p(e.$slots, "title", l(t, { data: h(O).data.value }))]),
355
+ fn: g((t) => [f(e.$slots, "title", l(t, { data: m(E).data.value }))]),
340
356
  key: "2"
341
357
  } : void 0,
342
358
  e.$slots.description ? {
343
359
  name: "description",
344
- fn: v((t) => [p(e.$slots, "description", l(t, { data: h(O).data.value }))]),
360
+ fn: g((t) => [f(e.$slots, "description", l(t, { data: m(E).data.value }))]),
345
361
  key: "3"
346
362
  } : void 0,
347
363
  e.$slots.footer ? {
348
364
  name: "footer",
349
- fn: v((t) => [p(e.$slots, "footer", l(t, {
350
- complete: h(O).complete,
351
- data: h(O).data.value,
352
- reset: h(O).reset
365
+ fn: g((t) => [f(e.$slots, "footer", l(t, {
366
+ complete: m(E).complete,
367
+ data: m(E).data.value,
368
+ reset: m(E).reset
353
369
  }))]),
354
370
  key: "4"
355
371
  } : void 0
356
- ]), 1040, ["modelValue", "pt"])) : (d(), s("dialog", l({
372
+ ]), 1040, ["modelValue", "pt"])) : (u(), s("dialog", l({
357
373
  key: 1,
358
- id: h(O).domId.value || void 0,
374
+ id: m(E).domId.value || void 0,
359
375
  ref_key: "dialog",
360
- ref: M,
361
- "aria-describedby": I.value && P() ? ut : void 0,
362
- "aria-labelledby": I.value && (F() || e.$slots.header) ? N : void 0,
376
+ ref: k,
377
+ "aria-describedby": N.value && j() ? gt : void 0,
378
+ "aria-labelledby": N.value && (M() || e.$slots.header) ? A : void 0,
363
379
  class: ["bb-dialog", {
364
380
  "bb-dialog--open": c.value,
365
- "bb-dialog--visible": q.value,
366
- "bb-dialog--fullscreen": R.value,
367
- "bb-dialog--mobile": h(w),
368
- "bb-dialog--deny-close": B.value,
369
- "bb-dialog--covered": X.value,
370
- "bb-dialog--above": Bt.value,
371
- "bb-dialog--covering": Ut.value
381
+ "bb-dialog--visible": G.value,
382
+ "bb-dialog--fullscreen": F.value,
383
+ "bb-dialog--mobile": m(S),
384
+ "bb-dialog--deny-close": R.value,
385
+ "bb-dialog--covered": J.value,
386
+ "bb-dialog--above": Gt.value,
387
+ "bb-dialog--covering": Jt.value
372
388
  }],
373
- inert: !c.value && !q.value || X.value,
389
+ inert: !c.value && !G.value || J.value,
374
390
  style: {
375
- "--max-width": qt.value,
376
- ...Wt.value,
377
- "--transition-duration": `${b.transitionDuration}ms`
391
+ "--max-width": Qt.value,
392
+ ...Yt.value,
393
+ "--transition-duration": `${v.transitionDuration}ms`
378
394
  }
379
- }, Ye(h(Te), !0), {
380
- onCancel: Qe(Jt, ["self"]),
381
- onCommand: Xt,
382
- onClick: Qe(xt, ["self"]),
383
- onPointercancel: yt,
384
- onPointerdown: bt
385
- }, h(j).rootAttrs), [I.value ? (d(), s(ze, { key: 0 }, [
386
- dt() || e.$slots.header ? (d(), s("div", l({
387
- key: `body-1-${L.value}`,
395
+ }, $e(m(Oe), !0), {
396
+ onCancel: rt($t, ["self"]),
397
+ onCommand: tn,
398
+ onClick: rt(Et, ["self"]),
399
+ onPointercancel: wt,
400
+ onPointerdown: Tt
401
+ }, m(O).rootAttrs), [N.value ? (u(), s(He, { key: 0 }, [
402
+ _t() || e.$slots.header ? (u(), s("div", l({
403
+ key: `body-1-${P.value}`,
388
404
  class: "bb-dialog__header"
389
- }, h(j).header), [p(e.$slots, "header", {
405
+ }, m(O).header), [f(e.$slots, "header", {
390
406
  close: $,
391
- complete: h(O).complete,
392
- data: h(O).data.value,
393
- reset: h(O).reset,
407
+ complete: m(E).complete,
408
+ data: m(E).data.value,
409
+ reset: m(E).reset,
394
410
  title: r.title,
395
- titleId: N
411
+ titleId: A
396
412
  }, () => [
397
- F() ? (d(), s("span", l({
413
+ M() ? (u(), s("span", l({
398
414
  key: 0,
399
- id: N,
415
+ id: A,
400
416
  class: "bb-dialog__title"
401
- }, h(j).title), [p(e.$slots, "title", {
402
- data: h(O).data.value,
417
+ }, m(O).title), [f(e.$slots, "title", {
418
+ data: m(E).data.value,
403
419
  text: r.title
404
- }, () => [He(m(r.title), 1)])], 16)) : o("", !0),
405
- P() ? (d(), s("p", l({
420
+ }, () => [Ge(p(r.title), 1)])], 16)) : o("", !0),
421
+ j() ? (u(), s("p", l({
406
422
  key: 1,
407
- id: ut,
423
+ id: gt,
408
424
  class: "bb-dialog__description"
409
- }, h(j).description), [p(e.$slots, "description", {
410
- data: h(O).data.value,
425
+ }, m(O).description), [f(e.$slots, "description", {
426
+ data: m(E).data.value,
411
427
  text: r.description
412
- }, () => [He(m(r.description), 1)])], 16)) : o("", !0),
413
- r.hideClose ? o("", !0) : (d(), a(xe, l({
428
+ }, () => [Ge(p(r.description), 1)])], 16)) : o("", !0),
429
+ r.hideClose ? o("", !0) : (u(), a(we, l({
414
430
  key: 2,
415
- "aria-label": h(C)("dialog.closeLabel").value
416
- }, st.value), null, 16, ["aria-label"]))
431
+ "aria-label": m(x)("dialog.closeLabel").value
432
+ }, pt.value), null, 16, ["aria-label"]))
417
433
  ])], 16)) : o("", !0),
418
- (d(), s("div", l({
419
- key: `body-2-${L.value}`,
434
+ (u(), s("div", l({
435
+ key: `body-2-${P.value}`,
420
436
  class: "bb-dialog__content scrollbar-border"
421
- }, h(j).content), [Be("div", et, [!dt() && !e.$slots.header && !r.hideClose ? (d(), a(xe, l({
437
+ }, m(O).content), [Ue("div", at, [!_t() && !e.$slots.header && !r.hideClose ? (u(), a(we, l({
422
438
  key: 0,
423
- "aria-label": h(C)("dialog.closeLabel").value
424
- }, st.value), null, 16, ["aria-label"])) : o("", !0), p(e.$slots, "default", {
439
+ "aria-label": m(x)("dialog.closeLabel").value
440
+ }, pt.value), null, 16, ["aria-label"])) : o("", !0), f(e.$slots, "default", {
425
441
  close: $,
426
- complete: h(O).complete,
427
- data: h(O).data.value,
428
- reset: h(O).reset
442
+ complete: m(E).complete,
443
+ data: m(E).data.value,
444
+ reset: m(E).reset
429
445
  })])], 16)),
430
- (d(), s("div", l({
431
- key: `body-3-${L.value}`,
446
+ (u(), s("div", l({
447
+ key: `body-3-${P.value}`,
432
448
  class: "bb-dialog__footer"
433
- }, h(j).footer), [p(e.$slots, "footer", {
449
+ }, m(O).footer), [f(e.$slots, "footer", {
434
450
  close: $,
435
- complete: h(O).complete,
436
- data: h(O).data.value,
437
- reset: h(O).reset
438
- }, () => [Ue(gt)])], 16))
439
- ], 64)) : o("", !0), Be("span", tt, m(h(St).text.value), 1)], 16, $e));
451
+ complete: m(E).complete,
452
+ data: m(E).data.value,
453
+ reset: m(E).reset
454
+ }, () => [Ke(St)])], 16))
455
+ ], 64)) : o("", !0), Ue("span", ot, p(m(Dt).text.value), 1)], 16, it));
440
456
  }
441
457
  });
442
- export { y as default };
458
+ export { _ as default };