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
@@ -47,6 +47,11 @@ export declare const BB_COLOR_PALETTE_PT: {
47
47
  */
48
48
  type BbColorPalettePtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_COLOR_PALETTE_PT> & BbColorPalettePtKeys;
49
49
  export type BbColorPaletteProps = BbColorPalettePtProps & {
50
+ /**
51
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
52
+ * Bound, the app opens and closes it; unbound, the initial state.
53
+ */
54
+ open?: boolean;
50
55
  /**
51
56
  * Passthrough, object form: the same keys as the `pt:*` attributes
52
57
  * without the prefix. See the `pt:<part>` row.
@@ -130,7 +135,7 @@ export type BbColorPaletteProps = BbColorPalettePtProps & {
130
135
  * v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when
131
136
  * `alpha` is enabled), or `null` when empty.
132
137
  */
133
- modelValue: string | null;
138
+ modelValue?: string | null;
134
139
  /**
135
140
  * Space the floating container will maintain from the activator.
136
141
  *
@@ -172,6 +177,8 @@ export type BbColorPaletteEvents = {
172
177
  (e: 'shown'): void;
173
178
  /** Emitted as soon as the palette starts to close. */
174
179
  (e: 'hide'): void;
180
+ /** The panel opened or closed (`v-model:open`). */
181
+ (e: 'update:open', value: boolean): void;
175
182
  /** Emitted once the palette has finished closing. */
176
183
  (e: 'hidden'): void;
177
184
  /** Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`. */
@@ -1,11 +1,9 @@
1
- import { BbConfirmPortalSlotProps } from './types.js';
1
+ import { BbConfirmPortalSlots } from './types.js';
2
2
  type __VLS_Props = {
3
3
  /** The name a confirm passes as `portal: '<name>'` to render this content. */
4
4
  name: string;
5
5
  };
6
- type __VLS_Slots = {
7
- default?: (scope: BbConfirmPortalSlotProps) => any;
8
- };
6
+ type __VLS_Slots = BbConfirmPortalSlots;
9
7
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
9
  declare const _default: typeof __VLS_export;
@@ -70,4 +70,9 @@ export type BbConfirmPortalSlotProps<P = any> = {
70
70
  /** Resolves the confirm with `false` (through `cancel.onClick` when set). */
71
71
  cancel: () => void;
72
72
  };
73
+ /** BbConfirmPortal's slots; index it for one slot's type: `BbConfirmPortalSlots<MyData>['default']`. */
74
+ export type BbConfirmPortalSlots<P = any> = {
75
+ /** The confirm's body. */
76
+ default?: (scope: BbConfirmPortalSlotProps<P>) => unknown;
77
+ };
73
78
  export {};
@@ -20,10 +20,11 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
20
20
  };
21
21
  }> | undefined;
22
22
  } & import('./ptKeys.generated.js').BbDatePickerPtKeys & {
23
+ open?: boolean;
23
24
  pt?: { [K in import('./types.js').BbDatePickerPtKey]?: import('../../types/passthrough.js').PtValue; };
24
25
  activator?: import('../../index.js').ElementOrComponentRef;
25
26
  anchor?: import('../../index.js').ElementOrComponentRef;
26
- modelValue: string | string[] | null;
27
+ modelValue?: string | string[] | null;
27
28
  time?: string | string[] | null;
28
29
  activeSegment?: import('./types.js').BbDatePickerSegment;
29
30
  type?: import('../../types/DatePickerType.js').DatePickerType;
@@ -52,12 +53,13 @@ declare const __VLS_export: <R extends boolean = false, M extends boolean = fals
52
53
  disableFlip?: boolean;
53
54
  eager?: boolean;
54
55
  label?: string;
55
- } & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
56
+ } & BbDatePickerModelProps<R, M> & Omit<import('vue').DialogHTMLAttributes, "label" | `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "step" | "type" | "pt" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "max" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "eager" | "offset" | "padding" | "placement" | keyof import('./ptKeys.generated.js').BbDatePickerPtKeys | "activeSegment" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof BbDatePickerModelProps<R, M>> & {}) & {
56
57
  "onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, M>) => any) | undefined;
57
58
  onHide?: (() => any) | undefined;
58
59
  onShow?: (() => any) | undefined;
59
60
  onShown?: (() => any) | undefined;
60
61
  onHidden?: (() => any) | undefined;
62
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
61
63
  "onUpdate:activeSegment"?: ((value: import('../../index.js').BbCalendarSegment) => any) | undefined;
62
64
  "onTime-pick"?: ((payload: {
63
65
  unit: import('../CommonTimeSelector/types.js').TimeUnit;
@@ -5,27 +5,30 @@ import { useConfig as r } from "../../composables/useConfig.js";
5
5
  import { useConfigDefaults as i, useConfigSetting as a } from "../../composables/useConfigDefaults.js";
6
6
  import { extractDomContainer as o } from "../../utilities/functions/extractDomContainer.js";
7
7
  import { useId as s } from "../../composables/useId.js";
8
- import { useLocale as c } from "../../composables/useLocale.js";
9
- import { useEscapeStackEntry as l } from "../../composables/useEscapeStackEntry.js";
10
- import { useMobile as u } from "../../composables/useMobile.js";
11
- import { transitions as d } from "../../utilities/misc/transitions.js";
12
- import ee from "../BbCalendar/BbCalendar.vue.js";
13
- import { isLabelType as te } from "../../types/DatePickerType.js";
14
- import { isoWeekOf as ne } from "../../utilities/functions/isoWeek.js";
15
- import { formatDateOf as f, spokenDateOptionsOf as re, spokenTimeOf as ie, timeFieldsOf as ae, useDayjsLocale as oe } from "../BbCalendar/useDayjsLocale.js";
16
- import { toInnerValue as se } from "../../utilities/functions/convertDateValue.js";
17
- import { calendarSystemOf as ce, formatCalendarDate as le, localeOf as ue } from "../../utilities/calendar/index.js";
18
- import { checkCalendarProps as de, provideCalendarHost as fe } from "../BbCalendar/calendarHost.js";
19
- import { BB_CALENDAR_PT as pe } from "../BbCalendar/types.js";
20
- import me from "../BbOffCanvas/BbOffCanvas.vue.js";
21
- import { BB_OFF_CANVAS_PT as he } from "../BbOffCanvas/types.js";
22
- import ge from "../CommonPopover/CommonPopover.vue.js";
23
- import { BB_DATE_PICKER_PT as p, DATE_PICKER_CALENDAR_PARTS as _e } from "./types.js";
24
- import { usePassthrough as ve } from "../../composables/usePassthrough.js";
25
- import { firstFocusableMatch as ye } from "../../utils/focusVisibility.js";
26
- import { withoutPt as be } from "../../utils/passthrough.js";
27
- import { Fragment as xe, computed as m, createBlock as h, createCommentVNode as Se, createElementBlock as Ce, createElementVNode as g, createSlots as we, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as Te, normalizeProps as x, onBeforeUnmount as Ee, onDeactivated as De, openBlock as S, ref as C, renderList as Oe, renderSlot as w, toDisplayString as ke, unref as T, useAttrs as Ae, useSlots as je, watch as E, withCtx as D } from "vue";
28
- import { createReusableTemplate as Me } from "@vueuse/core";
8
+ import { useOwnModel as c } from "../../composables/useOwnModel.js";
9
+ import { useOpenModel as l } from "../../composables/useOpenModel.js";
10
+ import { useLocale as u } from "../../composables/useLocale.js";
11
+ import { useEscapeStackEntry as d } from "../../composables/useEscapeStackEntry.js";
12
+ import { useMobile as ee } from "../../composables/useMobile.js";
13
+ import { transitions as f } from "../../utilities/misc/transitions.js";
14
+ import te from "../BbCalendar/BbCalendar.vue.js";
15
+ import { isLabelType as ne } from "../../types/DatePickerType.js";
16
+ import { isoWeekOf as re } from "../../utilities/functions/isoWeek.js";
17
+ import { formatDateOf as ie, spokenClockOf as ae, spokenDateOptionsOf as oe, spokenTimeOf as se, useDayjsLocale as ce } from "../BbCalendar/useDayjsLocale.js";
18
+ import { useHydrated as le } from "../../composables/useHydrated.js";
19
+ import { toInnerValue as ue } from "../../utilities/functions/convertDateValue.js";
20
+ import { calendarSystemOf as de, formatCalendarDate as fe, localeOf as pe } from "../../utilities/calendar/index.js";
21
+ import { checkCalendarProps as me, provideCalendarHost as he } from "../BbCalendar/calendarHost.js";
22
+ import { BB_CALENDAR_PT as ge } from "../BbCalendar/types.js";
23
+ import _e from "../BbOffCanvas/BbOffCanvas.vue.js";
24
+ import { BB_OFF_CANVAS_PT as ve } from "../BbOffCanvas/types.js";
25
+ import ye from "../CommonPopover/CommonPopover.vue.js";
26
+ import { BB_DATE_PICKER_PT as p, DATE_PICKER_CALENDAR_PARTS as be } from "./types.js";
27
+ import { usePassthrough as xe } from "../../composables/usePassthrough.js";
28
+ import { firstFocusableMatch as Se } from "../../utils/focusVisibility.js";
29
+ import { withoutPt as Ce } from "../../utils/passthrough.js";
30
+ import { Fragment as we, computed as m, createBlock as h, createCommentVNode as Te, createElementBlock as Ee, createElementVNode as g, createSlots as De, createVNode as _, defineComponent as v, guardReactiveProps as y, mergeProps as b, nextTick as Oe, normalizeProps as x, onBeforeUnmount as ke, onDeactivated as Ae, openBlock as S, ref as C, renderList as je, renderSlot as w, toDisplayString as Me, unref as T, useAttrs as Ne, useSlots as Pe, watch as E, withCtx as D } from "vue";
31
+ import { createReusableTemplate as Fe } from "@vueuse/core";
29
32
  import { formatDigits as O } from "virtual:bitboss-ui/calendars";
30
33
  // src/components/BbDatePicker/BbDatePicker.vue?vue&type=script&setup=true&lang.ts
31
34
  var k = /*@__PURE__*/ v({
@@ -112,6 +115,7 @@ var k = /*@__PURE__*/ v({
112
115
  "pt:item:selected": {},
113
116
  "pt:item:disabled": {},
114
117
  "pt:item:open": {},
118
+ open: { type: Boolean },
115
119
  pt: {},
116
120
  activator: {},
117
121
  anchor: {},
@@ -139,7 +143,7 @@ var k = /*@__PURE__*/ v({
139
143
  default: void 0
140
144
  },
141
145
  offCanvasProps: {},
142
- transitionDuration: { default: d.medium },
146
+ transitionDuration: { default: f.medium },
143
147
  placement: {},
144
148
  offset: { default: void 0 },
145
149
  padding: {},
@@ -152,6 +156,7 @@ var k = /*@__PURE__*/ v({
152
156
  "show",
153
157
  "shown",
154
158
  "hide",
159
+ "update:open",
155
160
  "hidden",
156
161
  "update:modelValue",
157
162
  "update:time",
@@ -159,161 +164,173 @@ var k = /*@__PURE__*/ v({
159
164
  "grid-pick",
160
165
  "time-pick"
161
166
  ],
162
- setup(d, { emit: v }) {
163
- let k = d, Ne = v, Pe = je(), Fe = a(null, "popoverOffset"), A = k, j = Ne;
167
+ setup(f, { emit: v }) {
168
+ let k = f, Ie = v, Le = Pe(), Re = a(null, "popoverOffset"), A = k, j = Ie, { model: M, set: ze } = c(A, "modelValue", (e, t) => j(e, t), () => A.multiple ? [] : null), Be = m(() => M.value);
164
169
  process.env.NODE_ENV !== "production" && n("BbDatePicker", t("BbDatePicker"));
165
- let Ie = /^\d{4}-\d{2}-\d{2}(:append)?$/, Le = () => Object.keys(Pe).filter((e) => Ie.test(e)), M = ve({
170
+ let Ve = /^\d{4}-\d{2}-\d{2}(:append)?$/, He = () => Object.keys(Le).filter((e) => Ve.test(e)), N = xe({
166
171
  component: "BbDatePicker",
167
172
  props: A,
168
173
  parts: p.parts,
169
174
  states: p.states,
170
175
  active: {
171
- open: () => H.value,
176
+ open: () => U.value,
172
177
  disabled: () => !!A.disabled
173
178
  },
174
- attrs: Ae()
175
- }), N = r(), Re = m(() => {
176
- let e = A.type === "datetime", t = !!A.floating || te(A.type), n = A.time, r = ue(N.locale), i = le ? ce(r.calendar) : void 0, a = (a, o) => {
177
- let s = se(a, {
179
+ attrs: Ne()
180
+ }), P = r(), { isHydrated: Ue } = le(), We = m(() => {
181
+ let e = A.type === "datetime", t = !!A.floating || ne(A.type), n = A.time, r = pe(P.locale), i = fe ? de(r.calendar) : void 0, a = (a, o) => {
182
+ let s = Ue.value, c = ue(a, {
178
183
  floating: t,
179
184
  utc: A.utc,
180
185
  type: A.type,
181
186
  calendar: i
182
187
  });
183
- if (!s.isValid()) return a;
188
+ if (!c.isValid()) return a;
184
189
  if (A.type === "week") {
185
- let { week: e, year: t } = ne(s), n = r.numberingSystem, i = (e) => O ? O(e, n) : String(e);
186
- return F("datePicker.weekValue", i(e), i(t)).value;
190
+ let { week: e, year: t } = re(c), n = r.numberingSystem, i = (e) => O ? O(e, n) : String(e);
191
+ return I("datePicker.weekValue", i(e), i(t)).value;
187
192
  }
188
- let c = f(s, N.locale, re(A.type));
189
- if (!e) return c;
190
- let l = t ? Array.isArray(n) ? n[o] : o === 0 ? n : null : null, u = t ? l ? ie(l, N.locale, !!A.ampm, !!A.seconds) : "" : f(s, N.locale, ae(!!A.ampm, !!A.seconds));
191
- return u ? `${c} ${u}` : c;
192
- }, o = A.modelValue;
193
+ let l = ie(c, P.locale, oe(A.type));
194
+ if (!e) return l;
195
+ let u = t ? Array.isArray(n) ? n[o] : o === 0 ? n : null : null, d = t ? u ? se(u, P.locale, !!A.ampm, !!A.seconds, s) : "" : ae(c, P.locale, !!A.ampm, !!A.seconds, s);
196
+ return d ? `${l} ${d}` : l;
197
+ }, o = M.value;
193
198
  return Array.isArray(o) ? o.filter(Boolean).map(a).join(A.multiple ? ", " : " – ") : o ? a(o, 0) : "";
194
199
  });
195
- oe();
196
- let P = m(() => A.type === "datetime");
197
- de("BbDatePicker", A);
198
- let { t: F } = c(), { isMobile: I } = u(), L = `bdp-${s().id.value}`, [ze, R] = Me(), z = `${L}-panel`, B = C(), V = C(), Be = m(() => A.activator != null), Ve = (e) => {
199
- B.value = o(e) ?? void 0;
200
- }, He = (e) => {
200
+ ce();
201
+ let F = m(() => A.type === "datetime");
202
+ me("BbDatePicker", A);
203
+ let { t: I } = u(), { isMobile: L } = ee(), R = `bdp-${s().id.value}`, [Ge, z] = Fe(), B = `${R}-panel`, V = C(), H = C(), Ke = m(() => A.activator != null), qe = (e) => {
201
204
  V.value = o(e) ?? void 0;
205
+ }, Je = (e) => {
206
+ H.value = o(e) ?? void 0;
202
207
  };
203
208
  E(() => A.activator, (e) => {
204
- B.value = o(e) ?? void 0;
209
+ V.value = o(e) ?? void 0;
205
210
  }, { immediate: !0 }), E(() => A.anchor, (e) => {
206
- V.value = e == null ? void 0 : o(e) ?? void 0;
211
+ H.value = e == null ? void 0 : o(e) ?? void 0;
207
212
  }, { immediate: !0 });
208
- let Ue = m(() => V.value ?? B.value), H = C(!1), U = null;
209
- fe({
213
+ let Ye = m(() => H.value ?? V.value), U = C(!1), W = null;
214
+ he({
210
215
  name: "BbDatePicker",
211
- open: H
216
+ open: U
217
+ });
218
+ let G = (e) => {
219
+ A.disabled || A.readonly || (e.stopPropagation(), U.value = !U.value);
220
+ };
221
+ l(A, j, {
222
+ isOpen: () => U.value,
223
+ open: () => {
224
+ A.disabled || A.readonly || (U.value = !0);
225
+ },
226
+ close: () => U.value = !1
212
227
  });
213
- let W = (e) => {
214
- A.disabled || A.readonly || (e.stopPropagation(), H.value = !H.value);
215
- }, G = (e) => {
216
- e.target instanceof HTMLDialogElement && (H.value = !1);
228
+ let K = (e) => {
229
+ let t = e.target;
230
+ t instanceof Node && ((document.getElementById(B)?.closest(".bb-common-popover"))?.contains(t) || V.value?.contains(t) || (U.value = !1));
217
231
  };
218
- E(H, async (e) => {
219
- e ? (U = document.activeElement instanceof HTMLElement ? document.activeElement : null, Q.value || document.addEventListener("click", G, { passive: !0 }), await Te(), ye(document.getElementById(z), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", G), U?.focus(), U = null);
232
+ E(U, async (e) => {
233
+ e ? (W = document.activeElement instanceof HTMLElement ? document.activeElement : null, Q.value || document.addEventListener("click", K, {
234
+ passive: !0,
235
+ capture: !0
236
+ }), await Oe(), Se(document.getElementById(B), "[tabindex=\"0\"]")?.focus()) : (document.removeEventListener("click", K, { capture: !0 }), W?.focus(), W = null);
220
237
  });
221
- let K = null, q = C();
222
- E(B, (e) => {
223
- if (K?.(), K = null, !e) return;
238
+ let q = null, J = C();
239
+ E(V, (e) => {
240
+ if (q?.(), q = null, !e) return;
224
241
  let t = !e.id;
225
- t && (e.id = `${L}_activator`), q.value = e.id, e.addEventListener("click", W), K = () => {
226
- e.removeEventListener("click", W), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), t && e.removeAttribute("id"), q.value = void 0;
242
+ t && (e.id = `${R}_activator`), J.value = e.id, e.addEventListener("click", G), q = () => {
243
+ e.removeEventListener("click", G), e.removeAttribute("aria-haspopup"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-labelledby"), e.removeAttribute("aria-controls"), t && e.removeAttribute("id"), J.value = void 0;
227
244
  };
228
245
  }, { immediate: !0 });
229
- let J = m(() => A.label ?? F("datePicker.openPicker").value), Y = `${L}_label`, X = m(() => q.value ? `${Y} ${q.value}` : Y);
230
- E([B, H], ([e, t]) => {
231
- e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${Y} ${e.id}`), t ? e.setAttribute("aria-controls", z) : e.removeAttribute("aria-controls"));
232
- }, { immediate: !0 }), Ee(() => {
233
- K?.(), document.removeEventListener("click", G);
246
+ let Y = m(() => A.label ?? I("datePicker.openPicker").value), X = `${R}_label`, Z = m(() => J.value ? `${X} ${J.value}` : X);
247
+ E([V, U], ([e, t]) => {
248
+ e && (e.setAttribute("aria-haspopup", "dialog"), e.setAttribute("aria-expanded", t ? "true" : "false"), e.setAttribute("aria-labelledby", `${X} ${e.id}`), t ? e.setAttribute("aria-controls", B) : e.removeAttribute("aria-controls"));
249
+ }, { immediate: !0 }), ke(() => {
250
+ q?.(), document.removeEventListener("click", K, { capture: !0 });
234
251
  });
235
- let Z = i("BbDatePicker", A, { adaptive: !0 }), We = () => Z.adaptive && I.value ? "canvas" : "popover", Ge = C(We()), Q = m(() => Ge.value === "canvas");
252
+ let Xe = i("BbDatePicker", A, { adaptive: !0 }), Ze = () => Xe.adaptive && L.value ? "canvas" : "popover", Qe = C(Ze()), Q = m(() => Qe.value === "canvas");
236
253
  E([
237
- () => Z.adaptive,
238
- I,
239
- H
254
+ () => Xe.adaptive,
255
+ L,
256
+ U
240
257
  ], () => {
241
- H.value || (Ge.value = We());
242
- }), l(() => H.value && !Q.value, () => H.value = !1);
243
- let Ke = m(() => ({
258
+ U.value || (Qe.value = Ze());
259
+ }), d(() => U.value && !Q.value, () => U.value = !1);
260
+ let $e = m(() => ({
244
261
  side: "bottom",
245
262
  size: "auto",
246
263
  draggable: !0,
247
264
  transitionDuration: A.transitionDuration,
248
265
  hideClose: !0,
249
- ...A.offCanvasProps?.title ? {} : { "aria-labelledby": X.value },
250
- ...be(A.offCanvasProps)
251
- })), qe = () => {
252
- B.value?.focus(), j("hidden");
253
- }, Je = (e) => A.multiple || P.value ? !1 : A.range ? Array.isArray(e) && e.length === 2 : !!e, Ye = (e) => {
254
- j("update:modelValue", e), Je(e) && (H.value = !1);
266
+ ...A.offCanvasProps?.title ? {} : { "aria-labelledby": Z.value },
267
+ ...Ce(A.offCanvasProps)
268
+ })), et = () => {
269
+ V.value?.focus(), j("hidden");
270
+ }, tt = (e) => A.multiple || F.value ? !1 : A.range ? Array.isArray(e) && e.length === 2 : !!e, nt = (e) => {
271
+ ze(e), tt(e) && (U.value = !1);
255
272
  }, $ = m(() => b({
256
- id: z,
273
+ id: B,
257
274
  class: ["bb-date-picker__panel", {
258
- "bb-date-picker__panel--datetime": P.value,
275
+ "bb-date-picker__panel--datetime": F.value,
259
276
  "bb-date-picker__panel--sheet": Q.value
260
277
  }]
261
- }, Q.value ? {} : M.panel ?? {})), Xe = ({ availableHeight: e }) => (A.numberOfMonths ?? 1) > 1 && e ? b($.value, { style: {
278
+ }, Q.value ? {} : N.panel ?? {})), rt = ({ availableHeight: e }) => (A.numberOfMonths ?? 1) > 1 && e ? b($.value, { style: {
262
279
  maxHeight: `${e}px`,
263
280
  overflowY: "auto"
264
281
  } }) : $.value;
265
- return De(() => {
266
- H.value = !1;
267
- }), (t, n) => (S(), Ce(xe, null, [
268
- Be.value ? Se("", !0) : w(t.$slots, "activator", x(y({
282
+ return Ae(() => {
283
+ U.value = !1;
284
+ }), (t, n) => (S(), Ee(we, null, [
285
+ Ke.value ? Te("", !0) : w(t.$slots, "activator", x(y({
269
286
  props: {
270
- ref: Ve,
287
+ ref: qe,
271
288
  "aria-haspopup": "dialog",
272
- "aria-expanded": H.value ? "true" : "false",
273
- "aria-labelledby": X.value
289
+ "aria-expanded": U.value ? "true" : "false",
290
+ "aria-labelledby": Z.value
274
291
  },
275
- anchorProps: { ref: He },
276
- open: H.value,
277
- value: d.modelValue,
278
- text: Re.value,
279
- disabled: !!d.disabled
292
+ anchorProps: { ref: Je },
293
+ open: U.value,
294
+ value: T(M),
295
+ text: We.value,
296
+ disabled: !!f.disabled
280
297
  })), void 0, void 0, 0),
281
298
  g("span", {
282
- id: Y,
299
+ id: X,
283
300
  hidden: ""
284
- }, ke(J.value), 1),
285
- _(T(ze), null, {
286
- default: D(() => [_(ee, {
287
- "active-segment": d.activeSegment,
288
- ampm: d.ampm,
289
- clearable: d.clearable,
290
- disabled: d.disabled,
291
- "first-day-of-week": d.firstDayOfWeek,
292
- floating: d.floating,
293
- max: d.max,
294
- min: d.min,
295
- "model-value": d.modelValue,
296
- multiple: d.multiple,
297
- "number-of-months": Q.value ? 1 : d.numberOfMonths,
298
- pt: T(M).forward(T(_e), T(pe).states),
299
- range: d.range,
300
- readonly: d.readonly,
301
- seconds: d.seconds,
302
- selectable: d.selectable,
303
- step: d.step,
304
- time: d.time,
305
- type: d.type,
306
- utc: d.utc,
301
+ }, Me(Y.value), 1),
302
+ _(T(Ge), null, {
303
+ default: D(() => [_(te, {
304
+ "active-segment": f.activeSegment,
305
+ ampm: f.ampm,
306
+ clearable: f.clearable,
307
+ disabled: f.disabled,
308
+ "first-day-of-week": f.firstDayOfWeek,
309
+ floating: f.floating,
310
+ max: f.max,
311
+ min: f.min,
312
+ "model-value": Be.value,
313
+ multiple: f.multiple,
314
+ "number-of-months": Q.value ? 1 : f.numberOfMonths,
315
+ pt: T(N).forward(T(be), T(ge).states),
316
+ range: f.range,
317
+ readonly: f.readonly,
318
+ seconds: f.seconds,
319
+ selectable: f.selectable,
320
+ step: f.step,
321
+ time: f.time,
322
+ type: f.type,
323
+ utc: f.utc,
307
324
  onGridPick: n[0] ||= (e) => T(j)("grid-pick", e),
308
325
  onTimePick: n[1] ||= (e) => T(j)("time-pick", e),
309
326
  "onUpdate:activeSegment": n[2] ||= (e) => T(j)("update:activeSegment", e),
310
- "onUpdate:modelValue": Ye,
327
+ "onUpdate:modelValue": nt,
311
328
  "onUpdate:time": n[3] ||= (e) => T(j)("update:time", e)
312
- }, we({
329
+ }, De({
313
330
  day: D((e) => [w(t.$slots, "day", x(y(e)))]),
314
331
  "day:append": D((e) => [w(t.$slots, "day:append", x(y(e)))]),
315
332
  _: 2
316
- }, [Oe(Le(), (e) => ({
333
+ }, [je(He(), (e) => ({
317
334
  name: e,
318
335
  fn: D((n) => [w(t.$slots, e, x(y(n)))])
319
336
  }))]), 1032, [
@@ -340,46 +357,46 @@ var k = /*@__PURE__*/ v({
340
357
  ])]),
341
358
  _: 3
342
359
  }),
343
- Q.value ? (S(), h(me, b({
360
+ Q.value ? (S(), h(_e, b({
344
361
  key: 1,
345
- modelValue: H.value,
346
- "onUpdate:modelValue": n[4] ||= (e) => H.value = e,
362
+ modelValue: U.value,
363
+ "onUpdate:modelValue": n[4] ||= (e) => U.value = e,
347
364
  class: "bb-date-picker__sheet",
348
- pt: T(M).forward({
365
+ pt: T(N).forward({
349
366
  panel: "root",
350
367
  sheet: "root"
351
- }, T(he).states, () => d.offCanvasProps?.pt)
352
- }, b(Ke.value, T(e)(T(M).forwardAttrs)), {
353
- onHidden: qe,
368
+ }, T(ve).states, () => f.offCanvasProps?.pt)
369
+ }, b($e.value, T(e)(T(N).forwardAttrs)), {
370
+ onHidden: et,
354
371
  onHide: n[5] ||= (e) => T(j)("hide"),
355
372
  onShow: n[6] ||= (e) => T(j)("show"),
356
373
  onShown: n[7] ||= (e) => T(j)("shown")
357
374
  }), {
358
- default: D(() => [g("div", x(y($.value)), [_(T(R))], 16)]),
375
+ default: D(() => [g("div", x(y($.value)), [_(T(z))], 16)]),
359
376
  _: 1
360
- }, 16, ["modelValue", "pt"])) : (S(), h(ge, b({
377
+ }, 16, ["modelValue", "pt"])) : (S(), h(ye, b({
361
378
  key: 2,
362
- modelValue: H.value,
363
- "onUpdate:modelValue": n[8] ||= (e) => H.value = e,
364
- anchor: Ue.value,
365
- "aria-label": J.value,
366
- boundary: d.boundary,
367
- "bubble-attrs": Xe,
379
+ modelValue: U.value,
380
+ "onUpdate:modelValue": n[8] ||= (e) => U.value = e,
381
+ anchor: Ye.value,
382
+ "aria-label": Y.value,
383
+ boundary: f.boundary,
384
+ "bubble-attrs": rt,
368
385
  class: "bb-date-picker",
369
386
  dialog: "",
370
- "disable-flip": d.disableFlip,
371
- eager: d.eager,
387
+ "disable-flip": f.disableFlip,
388
+ eager: f.eager,
372
389
  "hide-arrow": "",
373
- offset: d.offset ?? T(Fe)() ?? 4,
374
- padding: d.padding,
375
- placement: d.placement,
376
- "transition-duration": d.transitionDuration,
390
+ offset: f.offset ?? T(Re)() ?? 4,
391
+ padding: f.padding,
392
+ placement: f.placement,
393
+ "transition-duration": f.transitionDuration,
377
394
  onHidden: n[9] ||= (e) => T(j)("hidden"),
378
395
  onHide: n[10] ||= (e) => T(j)("hide"),
379
396
  onShow: n[11] ||= (e) => T(j)("show"),
380
397
  onShown: n[12] ||= (e) => T(j)("shown")
381
- }, T(M).rootAttrs), {
382
- default: D(() => [_(T(R))]),
398
+ }, T(N).rootAttrs), {
399
+ default: D(() => [_(T(z))]),
383
400
  _: 1
384
401
  }, 16, [
385
402
  "modelValue",
@@ -80,6 +80,11 @@ export declare const DATE_PICKER_CALENDAR_PARTS: ReadonlyArray<Exclude<BbCalenda
80
80
  */
81
81
  type BbDatePickerPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_DATE_PICKER_PT> & BbDatePickerPtKeys;
82
82
  export type BbDatePickerBaseProps = BbDatePickerPtProps & {
83
+ /**
84
+ * Whether the panel is open (`v-model:open`; `v-model` stays the value).
85
+ * Bound, the app opens and closes it; unbound, the initial state.
86
+ */
87
+ open?: boolean;
83
88
  /**
84
89
  * Passthrough, object form: the same keys as the `pt:*` attributes
85
90
  * without the prefix. See the `pt:<part>` row.
@@ -106,7 +111,7 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
106
111
  * `year`), otherwise a zoned
107
112
  * ISO instant (carrying the time under `datetime`).
108
113
  */
109
- modelValue: string | string[] | null;
114
+ modelValue?: string | string[] | null;
110
115
  /**
111
116
  * Companion time model (`v-model:time`), 24-hour `HH:mm` / `HH:mm:ss`.
112
117
  * With `floating` it is the only carrier of the time; otherwise it mirrors
@@ -249,7 +254,7 @@ export type BbDatePickerBaseProps = BbDatePickerPtProps & {
249
254
  export type BbDatePickerModelProps<R extends boolean = boolean, M extends boolean = boolean> = {
250
255
  range?: R;
251
256
  multiple?: M;
252
- modelValue: PtNoInfer<BbDateModel<R, M>>;
257
+ modelValue?: PtNoInfer<BbDateModel<R, M>>;
253
258
  time?: PtNoInfer<BbTimeModel<R>>;
254
259
  };
255
260
  export type BbDatePickerProps<R extends boolean = boolean, M extends boolean = boolean> = BbDatePickerBaseProps & BbDatePickerModelProps<R, M>;
@@ -260,6 +265,8 @@ export type BbDatePickerEvents<R extends boolean = boolean, M extends boolean =
260
265
  (e: 'shown'): void;
261
266
  /** Emitted as soon as the calendar surface starts to close. */
262
267
  (e: 'hide'): void;
268
+ /** The panel opened or closed (`v-model:open`). */
269
+ (e: 'update:open', value: boolean): void;
263
270
  /** Emitted once the calendar surface has finished closing. */
264
271
  (e: 'hidden'): void;
265
272
  /** Emitted when the selected date value changes (single/range/null). */
@@ -29,6 +29,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
29
29
  };
30
30
  }> | undefined;
31
31
  } & import('../../types/passthrough.js').PtVariantAttrs<import('../../types/passthrough.js').TextControlPtPart | "activator", keyof import('../../index.js').DatePickerInputVariantRegistry> & import('./ptKeys.generated.js').BbDatePickerInputPtKeys & {
32
+ open?: boolean;
32
33
  pt?: { [K in import('./types.js').BbDatePickerInputPtKey]?: import('../../types/passthrough.js').PtValue; } & { [K in `${import('../../types/passthrough.js').TextControlPtPart | "activator"}:${import('../../types/InputVariant.js').InputVariantBuiltIn | keyof import('../../index.js').DatePickerInputVariantRegistry}`]?: import('../../types/passthrough.js').PtValue; };
33
34
  adaptive?: boolean;
34
35
  description?: string;
@@ -78,7 +79,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
78
79
  time?: string | string[] | null;
79
80
  transitionDuration?: number;
80
81
  utc?: boolean;
81
- } & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
82
+ } & import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> & BbDatePickerInputModelProps<R> & Omit<import('vue').HTMLAttributes, "label" | "reverse" | `pt:${string}&${string}` | "placeholder" | "readonly" | "disabled" | "warnings" | "errors" | "open" | "loading" | "description" | "hint" | "step" | "type" | "pt" | "onError" | "variant" | "prepend:icon" | "append:icon" | "compact" | "layout" | "labelMode" | "autocomplete" | "adaptive" | "floating" | "transitionDuration" | "clearable" | "autofocus" | "labelAlign" | "inputAlign" | "hasErrors" | "hasWarnings" | "hideLabel" | "id" | "labelPosition" | "name" | "persistentHint" | "required" | "max" | "selectable" | "offCanvasProps" | "numberOfMonths" | "seconds" | "ampm" | "min" | "firstDayOfWeek" | "utc" | keyof import('./ptKeys.generated.js').BbDatePickerInputPtKeys | "disableWriting" | "disableCalendar" | keyof import('../../composables/useFormBinding.js').FormFieldProps<string | string[] | null> | "onFocus" | keyof BbDatePickerInputModelProps<R>> & {} & ControlAttrs<"input", "form" | "spellcheck" | "autocapitalize" | "autocorrect" | "enterkeyhint">) & {
82
83
  onActive?: (() => any) | undefined;
83
84
  "onUpdate:modelValue"?: ((value: import('../../index.js').BbDateValue<R, false>) => any) | undefined;
84
85
  onInactive?: (() => any) | undefined;
@@ -88,6 +89,7 @@ declare const __VLS_export: <R extends boolean = false>(__VLS_props: NonNullable
88
89
  onShow?: (() => any) | undefined;
89
90
  onShown?: (() => any) | undefined;
90
91
  onHidden?: (() => any) | undefined;
92
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
91
93
  "onUpdate:time"?: ((value: import('../../index.js').BbTimeValue<R>) => any) | undefined;
92
94
  }> & (typeof globalThis extends {
93
95
  __VLS_PROPS_FALLBACK: infer P;