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

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