bitboss-ui 3.0.0-beta.74 → 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 (249) hide show
  1. package/dist/ai/BbAvatar.md +86 -58
  2. package/dist/ai/BbBadge.md +1 -1
  3. package/dist/ai/BbBreadcrumbs.md +2 -2
  4. package/dist/ai/BbButton.md +2 -2
  5. package/dist/ai/BbCalendar.md +5 -2
  6. package/dist/ai/BbCheckboxGroup.md +5 -4
  7. package/dist/ai/BbColorInput.md +12 -0
  8. package/dist/ai/BbColorPalette.md +11 -6
  9. package/dist/ai/BbDatePicker.md +12 -0
  10. package/dist/ai/BbDatePickerInput.md +17 -1
  11. package/dist/ai/BbDialog.md +3 -1
  12. package/dist/ai/BbDropdown.md +155 -60
  13. package/dist/ai/BbDropdownButton.md +25 -6
  14. package/dist/ai/BbNumberInput.md +3 -1
  15. package/dist/ai/BbRadioGroup.md +4 -4
  16. package/dist/ai/BbSelect.md +79 -67
  17. package/dist/ai/BbSelectPopover.md +24 -5
  18. package/dist/ai/BbSwitchGroup.md +5 -4
  19. package/dist/ai/BbTable.md +17 -16
  20. package/dist/ai/BbTimePicker.md +12 -0
  21. package/dist/ai/BbTimePickerInput.md +15 -1
  22. package/dist/ai/BbToast.md +3 -2
  23. package/dist/ai/BbTree.md +5 -1
  24. package/dist/ai/CommonPopover.md +1 -0
  25. package/dist/ai/FlatListBox.md +1 -0
  26. package/dist/ai/GroupedListBox.md +1 -0
  27. package/dist/ai/ListBox.md +1 -0
  28. package/dist/ai/OptionsContainer.md +4 -4
  29. package/dist/ai/changelog.json +163 -6
  30. package/dist/ai/components.json +32 -34
  31. package/dist/ai/composables/useToast.md +2 -2
  32. package/dist/ai/design-tokens.json +60 -0
  33. package/dist/ai/guides/agent-contract.md +8 -4
  34. package/dist/ai/guides/design-tokens.md +13 -0
  35. package/dist/ai/guides/fetch-items-playbook.md +7 -11
  36. package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
  37. package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
  38. package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
  39. package/dist/ai/guides/migration/components/bb-table.md +2 -1
  40. package/dist/ai/guides/migration/components/bb-toast.md +2 -2
  41. package/dist/ai/guides/migration/v2-to-v3.md +22 -5
  42. package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
  43. package/dist/ai/guides/passthrough.md +3 -3
  44. package/dist/ai/helpers/inertia/manifest.json +1 -1
  45. package/dist/ai/index.md +1 -1
  46. package/dist/ai/manifest/common.json +1 -0
  47. package/dist/ai/manifest/components/BbAvatar.json +5 -2
  48. package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
  49. package/dist/ai/manifest/components/BbCarousel.json +0 -3
  50. package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
  51. package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
  52. package/dist/ai/manifest/components/BbColorInput.json +5 -2
  53. package/dist/ai/manifest/components/BbColorPalette.json +5 -2
  54. package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
  55. package/dist/ai/manifest/components/BbDatePicker.json +3 -0
  56. package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
  57. package/dist/ai/manifest/components/BbDialog.tree.json +2 -0
  58. package/dist/ai/manifest/components/BbDropdown.json +20 -14
  59. package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
  60. package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
  61. package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
  62. package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
  63. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  64. package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
  65. package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
  66. package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
  67. package/dist/ai/manifest/components/BbSelect.json +10 -7
  68. package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
  69. package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
  70. package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
  71. package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
  72. package/dist/ai/manifest/components/BbTable.json +6 -6
  73. package/dist/ai/manifest/components/BbTable.tree.json +4 -0
  74. package/dist/ai/manifest/components/BbTimePicker.json +5 -2
  75. package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
  76. package/dist/ai/manifest/components/BbTree.json +1 -1
  77. package/dist/ai/manifest/components/CommonPopover.json +1 -0
  78. package/dist/ai/manifest/components/FlatListBox.json +2 -1
  79. package/dist/ai/manifest/components/GroupedListBox.json +2 -1
  80. package/dist/ai/manifest/components/ListBox.json +2 -1
  81. package/dist/ai/manifest/components/OptionsContainer.json +6 -4
  82. package/dist/ai/manifest/index.json +2 -2
  83. package/dist/ai/manifest/meta.json +0 -3
  84. package/dist/ai/manifest/types.advanced.json +6 -6
  85. package/dist/ai/manifest/types.api.json +1 -3
  86. package/dist/ai/source/BbAvatar.md +119 -9
  87. package/dist/ai/source/BbBadge.md +12 -5
  88. package/dist/ai/source/BbBreadcrumbs.md +52 -54
  89. package/dist/ai/source/BbButton.md +41 -25
  90. package/dist/ai/source/BbCarousel.md +31 -28
  91. package/dist/ai/source/BbCheckboxGroup.md +15 -9
  92. package/dist/ai/source/BbColorInput.md +19 -0
  93. package/dist/ai/source/BbColorPalette.md +18 -0
  94. package/dist/ai/source/BbDatePicker.md +18 -0
  95. package/dist/ai/source/BbDatePickerInput.md +40 -1
  96. package/dist/ai/source/BbDialog.md +14 -1
  97. package/dist/ai/source/BbDropdown.md +211 -39
  98. package/dist/ai/source/BbDropdownButton.md +27 -2
  99. package/dist/ai/source/BbDropdownGroup.md +104 -38
  100. package/dist/ai/source/BbGallery.md +76 -55
  101. package/dist/ai/source/BbHost.md +12 -0
  102. package/dist/ai/source/BbNumberInput.md +17 -10
  103. package/dist/ai/source/BbOffCanvas.md +14 -1
  104. package/dist/ai/source/BbRadioGroup.md +12 -5
  105. package/dist/ai/source/BbSelect.md +35 -20
  106. package/dist/ai/source/BbSelectPopover.md +116 -8
  107. package/dist/ai/source/BbSwitchGroup.md +11 -4
  108. package/dist/ai/source/BbTable.md +72 -26
  109. package/dist/ai/source/BbTimePicker.md +19 -0
  110. package/dist/ai/source/BbTimePickerInput.md +15 -0
  111. package/dist/ai/source/BbToast.md +2 -2
  112. package/dist/ai/source/BbToastPortal.md +2 -2
  113. package/dist/ai/source/BbTree.md +1 -1
  114. package/dist/ai/source/CommonPopover.md +24 -1
  115. package/dist/ai/source/FlatListBox.md +26 -5
  116. package/dist/ai/source/GroupedListBox.md +63 -11
  117. package/dist/ai/source/ListBox.md +4 -0
  118. package/dist/ai/source/OptionsContainer.md +29 -11
  119. package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
  120. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -43
  121. package/dist/components/BbAvatar/avatarIdentity.js +25 -0
  122. package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
  123. package/dist/components/BbAvatar/types.d.ts +24 -5
  124. package/dist/components/BbAvatar/types.js +5 -1
  125. package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
  126. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +80 -79
  127. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
  128. package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
  129. package/dist/components/BbCalendar/useDayGrid.js +120 -123
  130. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
  131. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
  132. package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
  133. package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
  134. package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
  135. package/dist/components/BbColorInput/types.d.ts +7 -0
  136. package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
  137. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +213 -202
  138. package/dist/components/BbColorPalette/types.d.ts +7 -0
  139. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
  140. package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
  141. package/dist/components/BbDatePicker/types.d.ts +7 -0
  142. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
  143. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -510
  144. package/dist/components/BbDatePickerInput/types.d.ts +7 -0
  145. package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
  146. package/dist/components/BbDialog/leaveGhost.js +22 -17
  147. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +92 -87
  148. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
  149. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
  150. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
  151. package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
  152. package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
  153. package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
  154. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +73 -45
  155. package/dist/components/BbDropdown/normalizeGroups.js +6 -2
  156. package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
  157. package/dist/components/BbDropdown/types.d.ts +65 -41
  158. package/dist/components/BbDropdown/types.js +1 -0
  159. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
  160. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
  161. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
  162. package/dist/components/BbDropdownButton/types.d.ts +13 -2
  163. package/dist/components/BbDropdownButton/types.js +2 -0
  164. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
  165. package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
  166. package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
  167. package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
  168. package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
  169. package/dist/components/BbRadioGroup/types.d.ts +4 -7
  170. package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
  171. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
  172. package/dist/components/BbSelect/types.d.ts +23 -20
  173. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
  174. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
  175. package/dist/components/BbSelectPopover/types.d.ts +10 -4
  176. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
  177. package/dist/components/BbSwitchGroup/types.d.ts +3 -6
  178. package/dist/components/BbTable/BbTable.vue.d.ts +1 -3
  179. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
  180. package/dist/components/BbTable/types.d.ts +11 -10
  181. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
  182. package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
  183. package/dist/components/BbTimePicker/types.d.ts +7 -0
  184. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
  185. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
  186. package/dist/components/BbTimePickerInput/types.d.ts +7 -0
  187. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
  188. package/dist/components/BbToast/types.d.ts +2 -2
  189. package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
  190. package/dist/components/BbTree/types.d.ts +1 -1
  191. package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
  192. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
  193. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
  194. package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
  195. package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
  196. package/dist/composables/useItemsGetter.js +34 -32
  197. package/dist/composables/useOpenModel.js +20 -0
  198. package/dist/deprecation/ai-deprecations.json.js +1 -1
  199. package/dist/i18n/locales/ar.json +2 -0
  200. package/dist/i18n/locales/cs.json +2 -0
  201. package/dist/i18n/locales/da.json +2 -0
  202. package/dist/i18n/locales/de-CH.json +2 -0
  203. package/dist/i18n/locales/de.json +2 -0
  204. package/dist/i18n/locales/el.json +2 -0
  205. package/dist/i18n/locales/en-GB.json +2 -0
  206. package/dist/i18n/locales/en.json +2 -0
  207. package/dist/i18n/locales/es-MX.json +2 -0
  208. package/dist/i18n/locales/es.json +2 -0
  209. package/dist/i18n/locales/fa.json +2 -0
  210. package/dist/i18n/locales/fi.json +2 -0
  211. package/dist/i18n/locales/fr.json +2 -0
  212. package/dist/i18n/locales/he.json +2 -0
  213. package/dist/i18n/locales/hu.json +2 -0
  214. package/dist/i18n/locales/it.json +2 -0
  215. package/dist/i18n/locales/ja.json +2 -0
  216. package/dist/i18n/locales/ko.json +2 -0
  217. package/dist/i18n/locales/nb.json +2 -0
  218. package/dist/i18n/locales/nl.json +2 -0
  219. package/dist/i18n/locales/pl.json +2 -0
  220. package/dist/i18n/locales/pt-BR.json +2 -0
  221. package/dist/i18n/locales/pt-PT.json +2 -0
  222. package/dist/i18n/locales/ro.json +2 -0
  223. package/dist/i18n/locales/ru.json +2 -0
  224. package/dist/i18n/locales/sv.json +2 -0
  225. package/dist/i18n/locales/tr.json +2 -0
  226. package/dist/i18n/locales/uk.json +2 -0
  227. package/dist/i18n/locales/zh-CN.json +2 -0
  228. package/dist/i18n/locales/zh-HK.json +2 -0
  229. package/dist/i18n/locales/zh-TW.json +2 -0
  230. package/dist/icon-scan.js +68 -61
  231. package/dist/index.d.ts +2 -2
  232. package/dist/llms-full.txt +573 -276
  233. package/dist/llms-medium.txt +8 -4
  234. package/dist/llms.txt +1 -1
  235. package/dist/locale-blueprint.json +2 -0
  236. package/dist/styles.css +2 -2
  237. package/dist/types/ActionButton.d.ts +2 -3
  238. package/dist/types/Option.d.ts +10 -0
  239. package/dist/types/ptComponentMap.d.ts +3 -3
  240. package/dist/utilities/functions/slotContent.js +19 -0
  241. package/dist/utils/loadRetry.js +8 -0
  242. package/dist/utils/versionCheck.js +1 -1
  243. package/dist/vite.js +4 -1
  244. package/llms.txt +1 -1
  245. package/package.json +3 -1
  246. package/scripts/README.md +2 -0
  247. package/scripts/lib/agent-setup.mjs +44 -26
  248. package/scripts/lib/validate-bb-markup.mjs +20 -0
  249. package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
@@ -181,9 +181,9 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
181
181
  slotKey?: string;
182
182
  };
183
183
  /**
184
- * An optionally titled, optionally selectable section of the menu. Shares base
185
- * props with {@link InternalItem} but does **not** extend BbBaseButton — it is a section
186
- * descriptor, not an individually rendered button.
184
+ * An optionally titled, optionally selectable group of the menu's rows. Shares
185
+ * base props with {@link InternalItem} but does **not** extend BbBaseButton — it
186
+ * is a group descriptor, not an individually rendered button.
187
187
  */
188
188
  /**
189
189
  * Async/array items getter for a pipeline group, returning the raw items
@@ -214,8 +214,13 @@ export type InternalItem = Omit<BbBaseButtonProps, 'block' | 'tag' | 'type' | 't
214
214
  * not fit it (its query-only member needs `searchable: true`).
215
215
  */
216
216
  export type DropdownGroupItemsGetter = PlainGetter | SearchGetter;
217
- /** A group without a search box: no `query` arrives. */
218
- type PlainGetter = (context: BbDropdownGroupItemsContext) => any[] | Promise<any[]>;
217
+ /**
218
+ * A group without a search box: no `query` arrives (`undefined`, so the two
219
+ * getters' contexts reject each other both ways, whatever the check order).
220
+ */
221
+ type PlainGetter = (context: BbDropdownGroupItemsContext & {
222
+ query?: undefined;
223
+ }) => any[] | Promise<any[]>;
219
224
  /** A `searchable` group: `query` always arrives, `''` until typed. */
220
225
  type SearchGetter = (context: BbDropdownGroupItemsContext & {
221
226
  query: string;
@@ -358,12 +363,19 @@ export type InternalGroup = DropdownEntryBase & {
358
363
  /** Placeholder for this group's search field. Defaults to the localized label. */
359
364
  searchPlaceholder?: string;
360
365
  /**
361
- * Sorts the group's rows under titled sections, inside the one group (one
366
+ * Characters to type before the search runs (`BbSelect`'s rule): below
367
+ * it the query counts as empty. Requires `searchable`.
368
+ *
369
+ * @defaultValue `0`
370
+ */
371
+ minQueryLength?: number;
372
+ /**
373
+ * Sorts the group's rows under headings, inside the one group (one
362
374
  * `v-model`, one search field): a field path read off each row (a fetched
363
- * row: its raw item) or a getter returning the section title. Rows with a
364
- * nullish title are listed without a heading. Sections keep the order in
365
- * which their first row appears, like `BbSelect`'s `groupBy`; a search hides
366
- * a section with no matching row.
375
+ * row: its raw item) or a getter returning the heading. Rows with a
376
+ * nullish value are listed first, without a heading. Headings keep the
377
+ * order in which their first row appears, like `BbSelect`'s `groupBy`; a
378
+ * search hides a heading with no matching row.
367
379
  */
368
380
  groupBy?: string | ((row: any) => string | null | undefined);
369
381
  /**
@@ -397,7 +409,7 @@ export type InternalGroup = DropdownEntryBase & {
397
409
  stash?: boolean;
398
410
  /**
399
411
  * The group's label — rendered as its heading above the items, exposed as the
400
- * section title in the adaptive sheet, and surfaced on `useBbDropdown`
412
+ * group's title in the adaptive sheet, and surfaced on `useBbDropdown`
401
413
  * (handy for chip prefixes / filter summaries).
402
414
  */
403
415
  label?: string;
@@ -467,7 +479,7 @@ type GroupRows = Array<InternalItem | InternalItem[]> | any[];
467
479
  export declare const groupItemsAsArray: (items: InternalGroup["items"] | undefined) => Array<InternalItem | InternalItem[]>;
468
480
  /**
469
481
  * A string or number row: its own text and value (`'Google'` reads "Google"
470
- * and picks `'Google'`), loose, in a section, in a group's `items` or in a
482
+ * and picks `'Google'`), loose, in a divider run, in a group's `items` or in a
471
483
  * submenu's `items`. It declares `searchable` like every entry, so a group
472
484
  * literal beside it still picks its plain or searchable getter.
473
485
  */
@@ -480,7 +492,7 @@ export type ItemEntry = Item | PrimitiveRow;
480
492
  * Items accepted by the dropdown. Entries can be:
481
493
  * - a single {@link InternalItem};
482
494
  * - an array of items — rendered as an anonymous divider-separated group;
483
- * - a {@link InternalGroup} object — a titled / selectable section.
495
+ * - a {@link InternalGroup} object — a titled / selectable group.
484
496
  *
485
497
  * The shapes can be mixed, e.g. `[item, [item, item], { id, label, items }]`.
486
498
  */
@@ -545,7 +557,9 @@ export type NormalizedGroup = {
545
557
  searchable?: boolean;
546
558
  /** Placeholder for this group's search field. */
547
559
  searchPlaceholder?: string;
548
- /** Section title per row (see {@link InternalGroup.groupBy}). */
560
+ /** Characters to type before the search runs (see {@link InternalGroup.minQueryLength}). */
561
+ minQueryLength?: number;
562
+ /** Heading per row (see {@link InternalGroup.groupBy}). */
549
563
  groupBy?: InternalGroup['groupBy'];
550
564
  selectable: boolean;
551
565
  /** Selected row keys (`rowKey`; injected by `BbDropdown`; empty for non-selectable groups). */
@@ -581,6 +595,8 @@ export type MappedItem = InternalItem & {
581
595
  * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
582
596
  * @part header - The menu's header band.
583
597
  * @part footer - The menu's footer band.
598
+ * @part box - Every searchable group's search box (field and magnifier),
599
+ * as `box` on a field; desktop and phone.
584
600
  * @part input - A searchable group's search field — a broadcast: it lands on
585
601
  * every searchable group's field, desktop and phone alike. Its magnifier
586
602
  * glyph is chrome.
@@ -603,9 +619,9 @@ export type MappedItem = InternalItem & {
603
619
  * @part submenu - Every submenu's flyout box (desktop only). Also takes a
604
620
  * per-item function, called with the entry that opens it.
605
621
  */
606
- export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'input' | 'list' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
622
+ export type BbDropdownPtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list' | 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'submenu';
607
623
  /** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
608
- export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'input' | 'list';
624
+ export type BbDropdownSurfacePtPart = 'root' | 'panel' | 'sheet' | 'header' | 'footer' | 'box' | 'input' | 'list';
609
625
  /** The entry parts — broadcasts resolved per entry; their base key also takes a per-item function. Spelled flat (T20). */
610
626
  export type BbDropdownItemPtPart = 'item' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check';
611
627
  /**
@@ -637,7 +653,7 @@ export type BbDropdownEntryPtState = 'activeLink' | 'exactActiveLink' | 'selecte
637
653
  export type BbDropdownPtKey = BbDropdownPtPart | `${BbDropdownPtPart}:open` | `${BbDropdownItemPtPart}:${BbDropdownEntryPtState}`;
638
654
  /** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
639
655
  export declare const BB_DROPDOWN_PT: {
640
- readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "input", "list", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
656
+ readonly parts: readonly ["root", "panel", "sheet", "header", "footer", "box", "input", "list", "item", "itemText", "itemIcon", "itemDescription", "check", "submenu"];
641
657
  readonly states: readonly ["activeLink", "exactActiveLink", "selected", "disabled", "open"];
642
658
  /** On every part: what the resolver's `active` map turns on. */
643
659
  readonly wide: readonly ["open"];
@@ -709,11 +725,13 @@ export type BbDropdownProps = BbDropdownPtProps & {
709
725
  * @defaultValue the activator element
710
726
  */
711
727
  anchor?: ElementOrComponentRef | VirtualAnchor;
728
+ /** Whether the menu is open (`v-model`): `true` opens it from code at its activator or `anchor`. Unbound: the initial state. */
729
+ modelValue?: boolean;
712
730
  /**
713
- * Keeps the panel inside this element beside its trigger (sideways for a
714
- * menu above or below); away from it the panel may pass the edge, and only
715
- * the viewport flips it. An element, a component ref or a CSS selector (a
716
- * `useTemplateRef`, not `$refs.x`: not reactive).
731
+ * Keeps the panel inside this element beside its trigger (sideways under a
732
+ * menu); away from it only the viewport flips it. An element, component ref
733
+ * or CSS selector (a `useTemplateRef`, not `$refs.x`). Default in a
734
+ * `BbTable`: the table's left and right edges.
717
735
  */
718
736
  boundary?: ElementOrComponentRef | string;
719
737
  /**
@@ -741,7 +759,7 @@ export type BbDropdownProps = BbDropdownPtProps & {
741
759
  /**
742
760
  * The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a
743
761
  * flat array for one group, nested arrays for divider-separated groups, or
744
- * `InternalGroup` objects for titled / selectable sections. A row's own
762
+ * `InternalGroup` objects for titled / selectable groups. A row's own
745
763
  * `items` opens a submenu.
746
764
  *
747
765
  * @defaultValue `[]`
@@ -753,23 +771,11 @@ export type BbDropdownProps = BbDropdownPtProps & {
753
771
  * trigger always stays.
754
772
  */
755
773
  keepActivator?: boolean;
756
- /**
757
- * Default placeholder text shown while a pipeline group's async items load.
758
- * A group's own `loadingText` overrides this; both fall back to the localized
759
- * `common.loadingText` (`'Loading...'`).
760
- */
774
+ /** A pipeline group's loading row; its own `loadingText` wins. Default: `common.loadingText`. */
761
775
  loadingText?: string;
762
- /**
763
- * Default placeholder text shown when a pipeline group resolves to no items.
764
- * A group's own `emptyText` overrides this; both fall back to the localized
765
- * `common.emptyText` (`'No data to display'`).
766
- */
776
+ /** A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`. */
767
777
  emptyText?: string;
768
- /**
769
- * Default placeholder text shown when a pipeline group's latest load FAILED
770
- * (its `items` getter threw). A group's own `failedText` overrides this; both
771
- * fall back to the localized `common.failedText` (`"Couldn't load items"`).
772
- */
778
+ /** A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`. */
773
779
  failedText?: string;
774
780
  /**
775
781
  * Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on
@@ -829,6 +835,8 @@ export type BbDropdownProps = BbDropdownPtProps & {
829
835
  width?: number | string;
830
836
  };
831
837
  export type BbDropdownEvents = {
838
+ /** The menu opened or closed (`v-model`): `true` on open, `false` on close. */
839
+ (e: 'update:modelValue', value: boolean): void;
832
840
  /** Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open. */
833
841
  (e: 'show'): void;
834
842
  /** Emitted once the menu is open and its open transition has finished. */
@@ -898,6 +906,19 @@ export type BbDropdownSlotGroup = {
898
906
  /** Whether the group's rows are choices. */
899
907
  selectable: boolean;
900
908
  };
909
+ /** A `groupBy` heading's slot scope (`BbSelect`'s `#group`). */
910
+ export type BbDropdownGroupSlotProps = {
911
+ /** The heading text. */
912
+ text: string;
913
+ /** The raw `groupBy` value. */
914
+ item: unknown;
915
+ /** The heading's position. */
916
+ index: number;
917
+ /** Its row count. */
918
+ length: number;
919
+ /** Every row disabled. */
920
+ disabled: boolean;
921
+ };
901
922
  /** Props exposed by the `item:prepend` and `item:append` slots, and named item slots. */
902
923
  export type BbDropdownItemSlotProps = {
903
924
  /** The item's muted description line, when set. */
@@ -977,9 +998,10 @@ export type BbDropdownPlaceholderSlotProps = {
977
998
  * @dynamicSlot `<groupId>:item` {BbDropdownItemSlotProps} - The content of every row of that group, and no other; a row's own `#<value>` still wins.
978
999
  * @dynamicSlot `<groupId>:item:prepend` {BbDropdownItemSlotProps} - The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.
979
1000
  * @dynamicSlot `<groupId>:item:append` {BbDropdownItemSlotProps} - The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.
980
- * @dynamicSlot `<groupId>` {BbDropdownItemSlotProps} - That group's title line (the group is passed as `item`, `groupTitle` is `true`).
1001
+ * @dynamicSlot `<groupId>:label` {BbDropdownItemSlotProps} - That group's title content (`item` is the group, `groupTitle` is `true`).
981
1002
  * @dynamicSlot `<groupId>:prepend` {BbDropdownItemSlotProps} - The leading region of that group's title line.
982
1003
  * @dynamicSlot `<groupId>:append` {BbDropdownItemSlotProps} - The trailing region of that group's title line.
1004
+ * @dynamicSlot `<groupId>:group` {BbDropdownGroupSlotProps} - That group's `groupBy` headings; beats `group`.
983
1005
  */
984
1006
  export type BbDropdownSlots = {
985
1007
  /**
@@ -1009,13 +1031,13 @@ export type BbDropdownSlots = {
1009
1031
  header?: (props: BbDropdownEdgeSlotProps) => any;
1010
1032
  /**
1011
1033
  * The leading region of every row (and group title line), replacing its
1012
- * `prepend:icon`. A row's own or its group's named slot wins over it.
1034
+ * `prepend:icon` wherever it renders. A named slot wins.
1013
1035
  */
1014
1036
  'item:prepend'?: (props: BbDropdownItemSlotProps) => any;
1015
1037
  /**
1016
1038
  * The trailing region of every row (and group title line), replacing its
1017
- * `append:icon`. A named slot wins over it; the submenu chevron and the
1018
- * check on a selected row take its place.
1039
+ * `append:icon` wherever it renders. A named slot wins; the submenu
1040
+ * chevron and the check on a selected row take its place.
1019
1041
  */
1020
1042
  'item:append'?: (props: BbDropdownItemSlotProps) => any;
1021
1043
  /**
@@ -1023,6 +1045,8 @@ export type BbDropdownSlots = {
1023
1045
  * action buttons.
1024
1046
  */
1025
1047
  footer?: (props: BbDropdownEdgeSlotProps) => any;
1048
+ /** Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it. */
1049
+ group?: (props: BbDropdownGroupSlotProps) => unknown;
1026
1050
  } & Record<string, (props: BbDropdownItemSlotProps) => any>;
1027
1051
  /**
1028
1052
  * `v-model` value of `<BbDropdownGroup>`: the selected rows' values — a
@@ -7,6 +7,7 @@ var t = (e) => Array.isArray(e) ? e : [], n = (e) => e.selectable == null ? e.mu
7
7
  "sheet",
8
8
  "header",
9
9
  "footer",
10
+ "box",
10
11
  "input",
11
12
  "list",
12
13
  "item",
@@ -9,6 +9,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
9
9
  show: () => any;
10
10
  shown: () => any;
11
11
  hidden: () => any;
12
+ "update:open": (value: boolean) => any;
12
13
  "item:unselected": (value: any) => any;
13
14
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
15
  "onItem:selected"?: ((value: any) => any) | undefined;
@@ -16,6 +17,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
16
17
  onShow?: (() => any) | undefined;
17
18
  onShown?: (() => any) | undefined;
18
19
  onHidden?: (() => any) | undefined;
20
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
19
21
  "onItem:unselected"?: ((value: any) => any) | undefined;
20
22
  }>, {
21
23
  block: boolean;
@@ -7,16 +7,17 @@ import { BB_DROPDOWN_PT as a } from "../BbDropdown/types.js";
7
7
  import { BUTTON_VARIANTS as o } from "../../types/ButtonVariant.js";
8
8
  import { DROPDOWN_ITEM_VARIANTS as s } from "../../types/DropdownItemVariant.js";
9
9
  import { useLocale as c } from "../../composables/useLocale.js";
10
- import { removedPropsFor as l } from "../../deprecation/removedProps.js";
11
- import { warnRemovedAttrs as u } from "../../utilities/functions/warnRemovedAttrs.js";
10
+ import { useOpenProp as l } from "../../composables/useOpenModel.js";
11
+ import { removedPropsFor as u } from "../../deprecation/removedProps.js";
12
+ import { warnRemovedAttrs as d } from "../../utilities/functions/warnRemovedAttrs.js";
12
13
  import "../../assets/svgs/chevron_down.svg_raw.js";
13
- import { BB_DROPDOWN_BUTTON_PT as d } from "./types.js";
14
- import { registeredVariantNames as f, usePassthrough as p, variantPt as m } from "../../composables/usePassthrough.js";
15
- import { useConfigDefaults as h } from "../../composables/useConfigDefaults.js";
16
- import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createSlots as b, createVNode as x, defineComponent as S, guardReactiveProps as C, mergeProps as w, normalizeProps as T, onMounted as E, openBlock as D, ref as O, renderList as k, renderSlot as A, unref as j, useAttrs as M, useSlots as N, useTemplateRef as ee, withCtx as P } from "vue";
14
+ import { BB_DROPDOWN_BUTTON_PT as f } from "./types.js";
15
+ import { registeredVariantNames as p, usePassthrough as m, variantPt as h } from "../../composables/usePassthrough.js";
16
+ import { useConfigDefaults as g } from "../../composables/useConfigDefaults.js";
17
+ import { computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createSlots as x, createVNode as S, defineComponent as C, guardReactiveProps as w, mergeProps as T, normalizeProps as E, onMounted as D, openBlock as O, ref as k, renderList as A, renderSlot as j, unref as M, useAttrs as ee, useSlots as te, useTemplateRef as N, withCtx as P } from "vue";
17
18
  // src/components/BbDropdownButton/BbDropdownButton.vue?vue&type=script&setup=true&lang.ts
18
- var F = /*@__PURE__*/ S({
19
- mixins: [m(d)],
19
+ var F = /*@__PURE__*/ C({
20
+ mixins: [h(f)],
20
21
  inheritAttrs: !1,
21
22
  __name: "BbDropdownButton",
22
23
  props: {
@@ -116,12 +117,24 @@ var F = /*@__PURE__*/ S({
116
117
  "pt:footer:disabled": {},
117
118
  "pt:footer:open": {},
118
119
  "pt:footer:loading": {},
120
+ "pt:box": {},
121
+ "pt:box:activeLink": {},
122
+ "pt:box:exactActiveLink": {},
123
+ "pt:box:disabled": {},
124
+ "pt:box:open": {},
125
+ "pt:box:loading": {},
119
126
  "pt:input": {},
120
127
  "pt:input:activeLink": {},
121
128
  "pt:input:exactActiveLink": {},
122
129
  "pt:input:disabled": {},
123
130
  "pt:input:open": {},
124
131
  "pt:input:loading": {},
132
+ "pt:list": {},
133
+ "pt:list:activeLink": {},
134
+ "pt:list:exactActiveLink": {},
135
+ "pt:list:disabled": {},
136
+ "pt:list:open": {},
137
+ "pt:list:loading": {},
125
138
  "pt:item": {},
126
139
  "pt:item:activeLink": {},
127
140
  "pt:item:exactActiveLink": {},
@@ -174,6 +187,7 @@ var F = /*@__PURE__*/ S({
174
187
  "pt:submenu:open": {},
175
188
  "pt:submenu:loading": {},
176
189
  pt: {},
190
+ open: { type: Boolean },
177
191
  adaptive: {
178
192
  type: Boolean,
179
193
  default: void 0
@@ -259,12 +273,13 @@ var F = /*@__PURE__*/ S({
259
273
  "show",
260
274
  "shown",
261
275
  "hide",
276
+ "update:open",
262
277
  "hidden",
263
278
  "item:selected",
264
279
  "item:unselected"
265
280
  ],
266
- setup(m, { emit: S }) {
267
- let F = m, I = S, L = N(), R = h("BbDropdownButton", F, { block: !1 }), z = h("BbButton", F, {
281
+ setup(h, { emit: C }) {
282
+ let F = h, I = C, L = te(), R = g("BbDropdownButton", F, { block: !1 }), z = g("BbButton", F, {
268
283
  size: "md",
269
284
  variant: "primary"
270
285
  }), B = /* @__PURE__ */ new Set([
@@ -273,8 +288,8 @@ var F = /*@__PURE__*/ S({
273
288
  "dropdown",
274
289
  "prepend:icon",
275
290
  "append:icon"
276
- ]), V = () => Object.keys(L).filter((e) => !B.has(e)), H = () => F.items ?? [], U = () => r(H()) || !!L.dropdown, W = O(!1), G = O(!1);
277
- E(() => G.value = !0);
291
+ ]), V = () => Object.keys(L).filter((e) => !B.has(e)), H = () => F.items ?? [], U = () => r(H()) || !!L.dropdown, W = k(!1), G = k(!1);
292
+ D(() => G.value = !0);
278
293
  let K = () => U() && (!G.value || W.value), q = /* @__PURE__ */ new Set([
279
294
  "adaptive",
280
295
  "closeOnSelect",
@@ -291,121 +306,125 @@ var F = /*@__PURE__*/ S({
291
306
  "toggle:icon",
292
307
  "block",
293
308
  "pt"
294
- ]), J = () => Object.fromEntries(Object.entries(F).filter(([e, t]) => t !== void 0 && !q.has(e) && !e.startsWith("pt:"))), Y = /^(on[A-Z].*|aria-.*|name|value|autofocus|title|formaction|formenctype|formmethod|formnovalidate|formtarget)$/, X = () => {
309
+ ]), J = () => Object.fromEntries(Object.entries(F).filter(([e, t]) => t !== void 0 && !q.has(e) && !e.startsWith("pt:"))), ne = /^(on[A-Z].*|aria-.*|name|value|autofocus|title|formaction|formenctype|formmethod|formnovalidate|formtarget)$/, Y = () => {
295
310
  let e = {}, t = {};
296
- for (let [n, r] of Object.entries(Q.rootAttrs)) (Y.test(n) ? e : t)[n] = r;
311
+ for (let [n, r] of Object.entries(Z.rootAttrs)) (ne.test(n) ? e : t)[n] = r;
297
312
  return {
298
313
  main: e,
299
314
  root: t
300
315
  };
301
- }, Z = t(F), Q = p({
316
+ }, X = t(F), Z = m({
302
317
  component: "BbDropdownButton",
303
- attrs: M(),
318
+ attrs: ee(),
304
319
  props: F,
305
- parts: d.parts,
306
- states: d.states,
320
+ parts: f.parts,
321
+ states: f.states,
307
322
  active: {
308
323
  loading: () => !!F.loading,
309
324
  disabled: () => !!F.disabled,
310
325
  open: () => $.value,
311
- activeLink: () => Z.value.activeLink,
312
- exactActiveLink: () => Z.value.exactActiveLink
326
+ activeLink: () => X.value.activeLink,
327
+ exactActiveLink: () => X.value.exactActiveLink
313
328
  },
314
329
  variant: [{
315
- ...d.variant[0],
330
+ ...f.variant[0],
316
331
  current: () => z.variant
317
- }, d.variant[1]]
318
- }), te = [...i.states, ...f(o, "buttonVariants")], ne = [...a.states, ...f(s, "dropdownItemVariants")], re = ["activeLink", "exactActiveLink"], ie = () => Q.forward({ toggle: "root" }, ["disabled", ...f(o, "buttonVariants")]), ae = () => ({
319
- ...Q.forward([
332
+ }, f.variant[1]]
333
+ }), re = [...i.states, ...p(o, "buttonVariants")], ie = [...a.states, ...p(s, "dropdownItemVariants")], ae = ["activeLink", "exactActiveLink"], oe = () => Z.forward({ toggle: "root" }, ["disabled", ...p(o, "buttonVariants")]), se = () => ({
334
+ ...Z.forward([
320
335
  "panel",
321
336
  "sheet",
322
337
  "header",
323
338
  "footer",
339
+ "box",
324
340
  "input",
341
+ "list",
325
342
  "submenu"
326
- ], a.states.filter((e) => e !== "disabled" && !re.includes(e))),
327
- ...Q.forward([
343
+ ], a.states.filter((e) => e !== "disabled" && !ae.includes(e))),
344
+ ...Z.forward([
328
345
  "item",
329
346
  "itemText",
330
347
  "itemIcon",
331
348
  "itemDescription",
332
349
  "check"
333
- ], ne)
350
+ ], ie)
334
351
  });
335
- process.env.NODE_ENV !== "production" && u("BbDropdownButton", l("BbDropdownButton"));
336
- let oe = g(() => F["toggle:icon"] ?? "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M6 9l6 6l6 -6\" />\n</svg>\n"), { t: se } = c(), ce = ee("root-el"), $ = O(!1), le = () => {
352
+ process.env.NODE_ENV !== "production" && d("BbDropdownButton", u("BbDropdownButton"));
353
+ let Q = _(() => F["toggle:icon"] ?? "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-chevron-down\">\n <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n <path d=\"M6 9l6 6l6 -6\" />\n</svg>\n"), { t: ce } = c(), le = N("root-el"), $ = k(!1), ue = () => {
337
354
  $.value = !0, I("show");
338
- }, ue = () => {
355
+ }, de = () => {
339
356
  $.value = !1, I("hide");
340
- }, de = g(() => se("dropdownButton.open").value);
341
- return (t, r) => (D(), y("span", w({
357
+ }, fe = _(() => ce("dropdownButton.open").value), { model: pe, set: me } = l(F, I);
358
+ return (t, r) => (O(), b("span", T({
342
359
  ref: "root-el",
343
- class: ["bb-dropdown-button", { "bb-dropdown-button--block": j(R).block }]
344
- }, X().root), [x(e, w({
360
+ class: ["bb-dropdown-button", { "bb-dropdown-button--block": M(R).block }]
361
+ }, Y().root), [S(e, T({
345
362
  ...J(),
346
- ...X().main
363
+ ...Y().main
347
364
  }, {
348
365
  class: "bb-dropdown-button__main",
349
366
  group: K(),
350
- pt: j(Q).forward({
367
+ pt: M(Z).forward({
351
368
  main: "root",
352
369
  icon: "icon",
353
370
  spinner: "spinner",
354
371
  text: "text"
355
- }, te)
356
- }), b({ _: 2 }, [
372
+ }, re)
373
+ }), x({ _: 2 }, [
357
374
  L.default ? {
358
375
  name: "default",
359
- fn: P(() => [A(t.$slots, "default")]),
376
+ fn: P(() => [j(t.$slots, "default")]),
360
377
  key: "0"
361
378
  } : void 0,
362
379
  L["prepend:icon"] ? {
363
380
  name: "prepend:icon",
364
- fn: P((e) => [A(t.$slots, "prepend:icon", T(C(e)))]),
381
+ fn: P((e) => [j(t.$slots, "prepend:icon", E(w(e)))]),
365
382
  key: "1"
366
383
  } : void 0,
367
384
  L["append:icon"] ? {
368
385
  name: "append:icon",
369
- fn: P((e) => [A(t.$slots, "append:icon", T(C(e)))]),
386
+ fn: P((e) => [j(t.$slots, "append:icon", E(w(e)))]),
370
387
  key: "2"
371
388
  } : void 0
372
- ]), 1040, ["group", "pt"]), U() ? (D(), _(n, {
389
+ ]), 1040, ["group", "pt"]), U() ? (O(), v(n, {
373
390
  key: 0,
374
- id: m.id,
375
- adaptive: m.adaptive,
376
- anchor: ce.value,
377
- "close-on-select": m.closeOnSelect,
378
- compact: m.compact,
379
- disabled: m.disabled,
380
- eager: m.eager,
391
+ id: h.id,
392
+ adaptive: h.adaptive,
393
+ anchor: le.value,
394
+ "close-on-select": h.closeOnSelect,
395
+ compact: h.compact,
396
+ disabled: h.disabled,
397
+ eager: h.eager,
381
398
  items: H(),
382
- "off-canvas-props": m.offCanvasProps,
383
- offset: m.offset,
384
- padding: m.padding,
385
- placement: m.placement,
386
- pt: ae(),
387
- "transition-duration": m.transitionDuration,
388
- width: m.width,
399
+ "model-value": M(pe),
400
+ "off-canvas-props": h.offCanvasProps,
401
+ offset: h.offset,
402
+ padding: h.padding,
403
+ placement: h.placement,
404
+ pt: se(),
405
+ "transition-duration": h.transitionDuration,
406
+ width: h.width,
389
407
  onHidden: r[2] ||= (e) => I("hidden"),
390
- onHide: ue,
408
+ onHide: de,
391
409
  "onItem:selected": r[3] ||= (e) => I("item:selected", e),
392
410
  "onItem:unselected": r[4] ||= (e) => I("item:unselected", e),
393
- onShow: le,
394
- onShown: r[5] ||= (e) => I("shown")
395
- }, b({
396
- activator: P(({ props: t, loading: n }) => [x(e, w({
411
+ onShow: ue,
412
+ onShown: r[5] ||= (e) => I("shown"),
413
+ "onUpdate:modelValue": M(me)
414
+ }, x({
415
+ activator: P(({ props: t, loading: n }) => [S(e, T({
397
416
  class: "bb-dropdown-button__toggle",
398
417
  "disable-auto-loading": "",
399
- disabled: m.disabled,
418
+ disabled: h.disabled,
400
419
  group: "",
401
420
  "icon-only": "",
402
421
  "interactive-while-loading": "",
403
422
  loading: n,
404
- "prepend:icon": oe.value,
405
- pt: ie(),
406
- size: j(z).size,
407
- text: de.value,
408
- variant: j(z).variant
423
+ "prepend:icon": Q.value,
424
+ pt: oe(),
425
+ size: M(z).size,
426
+ text: fe.value,
427
+ variant: M(z).variant
409
428
  }, t, {
410
429
  onVnodeMounted: r[0] ||= (e) => W.value = !0,
411
430
  onVnodeUnmounted: r[1] ||= (e) => W.value = !1
@@ -418,11 +437,11 @@ var F = /*@__PURE__*/ S({
418
437
  "text",
419
438
  "variant"
420
439
  ])]),
421
- default: P(() => [A(t.$slots, "dropdown")]),
440
+ default: P(() => [j(t.$slots, "dropdown")]),
422
441
  _: 2
423
- }, [k(V(), (e) => ({
442
+ }, [A(V(), (e) => ({
424
443
  name: e,
425
- fn: P((n) => [A(t.$slots, e, T(C(n)))])
444
+ fn: P((n) => [j(t.$slots, e, E(w(n)))])
426
445
  }))]), 1032, [
427
446
  "id",
428
447
  "adaptive",
@@ -432,14 +451,16 @@ var F = /*@__PURE__*/ S({
432
451
  "disabled",
433
452
  "eager",
434
453
  "items",
454
+ "model-value",
435
455
  "off-canvas-props",
436
456
  "offset",
437
457
  "padding",
438
458
  "placement",
439
459
  "pt",
440
460
  "transition-duration",
441
- "width"
442
- ])) : v("", !0)], 16));
461
+ "width",
462
+ "onUpdate:modelValue"
463
+ ])) : y("", !0)], 16));
443
464
  }
444
465
  });
445
466
  export { F as default };
@@ -385,6 +385,30 @@ export interface BbDropdownButtonPtKeys {
385
385
  * The band around your `#footer` slot: at the bottom of the menu on desktop, the sheet's footer on a phone — handed to the `BbDropdown`. While `loading`: `loading` is on — the main button shows its spinner.
386
386
  */
387
387
  'pt:footer:loading'?: PtValue;
388
+ /**
389
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`.
390
+ */
391
+ 'pt:box'?: PtValue;
392
+ /**
393
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. While `activeLink`: component-wide while the main button is a link to the current page or one of its ancestors (its `activeClass` is on); also per node, on the entry parts: a menu entry whose link is. The weakest state.
394
+ */
395
+ 'pt:box:activeLink'?: PtValue;
396
+ /**
397
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. While `exactActiveLink`: component-wide while the main button is a link to the current page itself (its `exactActiveClass` is on); also per node, on the entry parts.
398
+ */
399
+ 'pt:box:exactActiveLink'?: PtValue;
400
+ /**
401
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. While `disabled`: component-wide while the control is `disabled`; also per node, on the entry parts: a menu entry that is disabled.
402
+ */
403
+ 'pt:box:disabled'?: PtValue;
404
+ /**
405
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. While `open`: the menu is open.
406
+ */
407
+ 'pt:box:open'?: PtValue;
408
+ /**
409
+ * A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`. While `loading`: `loading` is on — the main button shows its spinner.
410
+ */
411
+ 'pt:box:loading'?: PtValue;
388
412
  /**
389
413
  * A searchable group's search field in the menu — a broadcast, every searchable group's field — handed to the `BbDropdown` as its own `pt:input`.
390
414
  */
@@ -409,6 +433,30 @@ export interface BbDropdownButtonPtKeys {
409
433
  * A searchable group's search field in the menu — a broadcast, every searchable group's field — handed to the `BbDropdown` as its own `pt:input`. While `loading`: `loading` is on — the main button shows its spinner.
410
434
  */
411
435
  'pt:input:loading'?: PtValue;
436
+ /**
437
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`.
438
+ */
439
+ 'pt:list'?: PtValue;
440
+ /**
441
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. While `activeLink`: component-wide while the main button is a link to the current page or one of its ancestors (its `activeClass` is on); also per node, on the entry parts: a menu entry whose link is. The weakest state.
442
+ */
443
+ 'pt:list:activeLink'?: PtValue;
444
+ /**
445
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. While `exactActiveLink`: component-wide while the main button is a link to the current page itself (its `exactActiveClass` is on); also per node, on the entry parts.
446
+ */
447
+ 'pt:list:exactActiveLink'?: PtValue;
448
+ /**
449
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. While `disabled`: component-wide while the control is `disabled`; also per node, on the entry parts: a menu entry that is disabled.
450
+ */
451
+ 'pt:list:disabled'?: PtValue;
452
+ /**
453
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. While `open`: the menu is open.
454
+ */
455
+ 'pt:list:open'?: PtValue;
456
+ /**
457
+ * The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`. While `loading`: `loading` is on — the main button shows its spinner.
458
+ */
459
+ 'pt:list:loading'?: PtValue;
412
460
  /**
413
461
  * One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.
414
462
  */