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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/README.md +5 -5
  2. package/bin/cli.mjs +16 -10
  3. package/dist/ai/BbAlert.md +1 -1
  4. package/dist/ai/BbBreadcrumbs.md +1 -1
  5. package/dist/ai/BbButton.md +2 -2
  6. package/dist/ai/BbColorInput.md +1 -1
  7. package/dist/ai/BbColorPalette.md +1 -1
  8. package/dist/ai/BbConfirm.md +1 -1
  9. package/dist/ai/BbDatePicker.md +1 -1
  10. package/dist/ai/BbDatePickerInput.md +1 -1
  11. package/dist/ai/BbDialog.md +3 -2
  12. package/dist/ai/BbDropdown.md +23 -21
  13. package/dist/ai/BbDropdownButton.md +13 -11
  14. package/dist/ai/BbGallery.md +3 -2
  15. package/dist/ai/BbIcon.md +10 -10
  16. package/dist/ai/BbOffCanvas.md +3 -2
  17. package/dist/ai/BbPopover.md +1 -1
  18. package/dist/ai/BbSelect.md +153 -43
  19. package/dist/ai/BbSelectPopover.md +115 -9
  20. package/dist/ai/BbTable.md +1 -1
  21. package/dist/ai/BbTimePicker.md +1 -1
  22. package/dist/ai/BbTimePickerInput.md +1 -1
  23. package/dist/ai/GroupedListBox.md +2 -2
  24. package/dist/ai/ListBox.md +3 -2
  25. package/dist/ai/changelog.json +153 -7
  26. package/dist/ai/components.json +12 -12
  27. package/dist/ai/guides/agent-contract.md +1 -1
  28. package/dist/ai/guides/calendars-and-digits.md +1 -1
  29. package/dist/ai/guides/eslint-rules.md +1 -1
  30. package/dist/ai/guides/icons-policy.md +32 -11
  31. package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
  32. package/dist/ai/guides/migration/adoption-checklist.md +1 -1
  33. package/dist/ai/guides/migration/components/bb-icon.md +4 -4
  34. package/dist/ai/guides/migration/v2-to-v3.md +48 -19
  35. package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
  36. package/dist/ai/guides/passthrough.md +58 -58
  37. package/dist/ai/helpers/inertia/manifest.json +1 -1
  38. package/dist/ai/manifest/components/BbDialog.tree.json +1 -1
  39. package/dist/ai/manifest/components/BbDropdown.json +19 -17
  40. package/dist/ai/manifest/components/BbDropdown.tree.json +9 -9
  41. package/dist/ai/manifest/components/BbDropdownButton.json +12 -10
  42. package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
  43. package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
  44. package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
  45. package/dist/ai/manifest/components/BbSelect.json +44 -40
  46. package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
  47. package/dist/ai/manifest/components/BbSelectPopover.json +10 -6
  48. package/dist/ai/manifest/components/BbSelectPopover.tree.json +4 -1
  49. package/dist/ai/manifest/components/BbTable.tree.json +5 -1
  50. package/dist/ai/manifest/components/GroupedListBox.json +1 -1
  51. package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
  52. package/dist/ai/manifest/components/ListBox.json +1 -1
  53. package/dist/ai/manifest/components/ListBox.tree.json +1 -1
  54. package/dist/ai/manifest/index.json +2 -2
  55. package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
  56. package/dist/ai/recipes/inertia/onboarding.md +1 -1
  57. package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
  58. package/dist/ai/recipes/nuxt/onboarding.md +1 -1
  59. package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
  60. package/dist/ai/recipes/vue/onboarding.md +2 -2
  61. package/dist/ai/source/BbAccordion.md +4 -5
  62. package/dist/ai/source/BbAvatar.md +9 -2
  63. package/dist/ai/source/BbBadge.md +6 -2
  64. package/dist/ai/source/BbBreadcrumbs.md +5 -2
  65. package/dist/ai/source/BbCalendar.md +8 -6
  66. package/dist/ai/source/BbCarousel.md +10 -6
  67. package/dist/ai/source/BbColorPalette.md +5 -2
  68. package/dist/ai/source/BbDatePickerInput.md +7 -2
  69. package/dist/ai/source/BbDropdown.md +91 -66
  70. package/dist/ai/source/BbDropdownButton.md +36 -19
  71. package/dist/ai/source/BbDropdownGroup.md +91 -66
  72. package/dist/ai/source/BbGallery.md +6 -5
  73. package/dist/ai/source/BbPagination.md +12 -28
  74. package/dist/ai/source/BbRating.md +4 -4
  75. package/dist/ai/source/BbSelect.md +130 -106
  76. package/dist/ai/source/BbSelectPopover.md +128 -21
  77. package/dist/ai/source/BbTable.md +42 -9
  78. package/dist/ai/source/BbTimePickerInput.md +6 -2
  79. package/dist/ai/source/ClearableButton.md +4 -2
  80. package/dist/ai/source/ErrorIcon.md +4 -3
  81. package/dist/ai/source/FlatListBox.md +7 -2
  82. package/dist/ai/source/GroupedListBox.md +22 -3
  83. package/dist/ai/source/ListBox.md +7 -1
  84. package/dist/ai/source/WarningIcon.md +4 -3
  85. package/dist/assets/svgs/close.svg_raw.js +1 -1
  86. package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
  87. package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
  88. package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +48 -47
  89. package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -59
  90. package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +128 -127
  91. package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
  92. package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
  93. package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +500 -499
  94. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
  95. package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +175 -174
  96. package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +1 -1
  97. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +2 -2
  98. package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +263 -262
  99. package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +81 -80
  100. package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +4 -0
  101. package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +318 -312
  102. package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +47 -46
  103. package/dist/components/BbDropdown/ptKeys.generated.d.ts +36 -20
  104. package/dist/components/BbDropdown/types.d.ts +51 -53
  105. package/dist/components/BbDropdown/types.js +2 -0
  106. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +1 -1
  107. package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +74 -59
  108. package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +111 -63
  109. package/dist/components/BbDropdownButton/types.d.ts +12 -10
  110. package/dist/components/BbDropdownButton/types.js +2 -0
  111. package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
  112. package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +204 -203
  113. package/dist/components/BbIcon/iconCache.js +1 -1
  114. package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
  115. package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
  116. package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
  117. package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
  118. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
  119. package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
  120. package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
  121. package/dist/components/BbSelect/BbSelect.vue.d.ts +30 -20
  122. package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +201 -184
  123. package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
  124. package/dist/components/BbSelect/types.d.ts +101 -105
  125. package/dist/components/BbSelect/types.js +1 -27
  126. package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +6 -3
  127. package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +617 -585
  128. package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
  129. package/dist/components/BbSelectPopover/types.d.ts +22 -13
  130. package/dist/components/BbSelectPopover/types.js +3 -1
  131. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
  132. package/dist/components/BbTable/BbTable.vue.d.ts +1 -1
  133. package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1092 -1090
  134. package/dist/components/BbTable/BbTableDataRow.js +97 -90
  135. package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
  136. package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +2 -2
  137. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +2 -2
  138. package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +225 -224
  139. package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +76 -75
  140. package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
  141. package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
  142. package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
  143. package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  144. package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +69 -68
  145. package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +166 -165
  146. package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
  147. package/dist/composables/useInternalIcon.js +25 -0
  148. package/dist/icon-scan.d.ts +1 -1
  149. package/dist/llms-full.txt +477 -187
  150. package/dist/llms-medium.txt +25 -24
  151. package/dist/llms.txt +1 -1
  152. package/dist/nuxt.js +1 -1
  153. package/dist/styles.css +2 -2
  154. package/dist/types/Config.d.ts +8 -1
  155. package/dist/types/ConfigDefaults.d.ts +10 -2
  156. package/dist/types/internalIcons.d.ts +89 -0
  157. package/dist/types/internalIcons.js +158 -0
  158. package/dist/types/ptComponentMap.d.ts +4 -4
  159. package/dist/utils/configDefaults.js +75 -64
  160. package/dist/utils/iconsOption.js +48 -0
  161. package/dist/utils/versionCheck.js +1 -1
  162. package/dist/vite-plugin.d.ts +10 -16
  163. package/dist/vite.js +319 -306
  164. package/llms.txt +1 -1
  165. package/package.json +1 -1
  166. package/scripts/lib/adoption-checklist.json +1 -1
  167. package/scripts/lib/update-install.mjs +48 -0
  168. package/scripts/lib/validate-bb-markup.mjs +73 -12
  169. package/dist/assets/svgs/caret_down.svg_raw.js +0 -3
@@ -21,37 +21,34 @@ import { BbSelectPtKeys } from './ptKeys.generated.js';
21
21
  *
22
22
  * @describedBy BbSelectPopoverPtPart
23
23
  * @describedBy TextControlPtPart
24
- * @part root - The field's outer container: the label, the box and the lines
25
- * under it; a `class` on the component lands here. (The options surface is
26
- * `panel`.)
27
- * @part clear - The ✕ in the field that empties the selection (`clearable`) —
28
- * one node, never a chip's own ✕.
29
- * @part activator - The button you act on to open the options — the field's
30
- * control (not a text field: `data-test` fits here, `autocomplete` does
31
- * not). The chevron is chrome. It is `activator`, not the family's `input`:
32
- * the field itself is a button (the date / time inputs' trigger is the same
33
- * word).
34
- * @part input - The search field inside the options surface, when it shows
35
- * one (see `disable-writing`) — handed to the `BbSelectPopover` as its own
36
- * `pt:input`. Its ✕ is chrome.
24
+ * @part root - The field's outer container (label, box, the lines under
25
+ * it); a `class` on the component lands here. The options surface is
26
+ * `panel`.
27
+ * @part clear - The field's ✕ that empties the selection (`clearable`): one
28
+ * node, never a chip's ✕.
29
+ * @part activator - The button that opens the options: the field's control,
30
+ * not a text field (`data-test` fits, `autocomplete` does not). The chevron
31
+ * is chrome. `activator`, not the family's `input`: the field is a button,
32
+ * as the date / time inputs' trigger.
33
+ * @part input - The options surface's search field, when shown (see
34
+ * `disable-writing`): the `BbSelectPopover`'s `pt:input`. Its ✕ is chrome.
37
35
  * @part panel - The options surface — the popover's painted bubble on
38
36
  * desktop, the sheet itself on a phone.
39
37
  * @part sheet - The bottom sheet the options open in on a phone only.
40
- * @part header - The band around your `#header` slot: at the top of the
41
- * flyout on desktop, the sheet's header on a phone.
42
- * @part footer - The band around your `#footer` slot: at the bottom of the
43
- * flyout on desktop, the sheet's footer on a phone.
44
- * @part badge - Each selected value's `BbBadge` root with `multiple` — a
45
- * broadcast resolved per value, on the field's chips and on the phone
46
- * sheet's. The badge's own ✕ is chrome, never `clear`. In the field, not
47
- * rendered when the `#chip` slot replaces it, nor in `comma` mode; the
48
- * sheet's chips are always badges.
38
+ * @part header - The band around your `#header` slot: atop the flyout, the
39
+ * sheet's header on a phone.
40
+ * @part footer - The band around your `#footer` slot: under the flyout's
41
+ * list, the sheet's footer on a phone.
42
+ * @part badge - Each selected value's `BbBadge` root with `multiple`, per
43
+ * value, in the field and on the phone sheet. Its ✕ is chrome, never
44
+ * `clear`. The field has none under `#chip` or `comma`; the sheet's chips
45
+ * are always badges.
49
46
  * @part comma - Each selected value with `multiple` and `comma` — a broadcast
50
47
  * resolved per value.
51
48
  */
52
- export type BbSelectPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'clear' | 'panel' | 'sheet' | 'header' | 'footer' | 'list' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'badge' | 'comma';
49
+ export type BbSelectPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'clear' | 'panel' | 'sheet' | 'header' | 'footer' | 'list' | 'groupHeader' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'badge' | 'comma';
53
50
  /** The field and surface parts — they take a `PtValue` only. */
54
- export type BbSelectFieldPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'clear' | 'panel' | 'sheet' | 'header' | 'footer' | 'list';
51
+ export type BbSelectFieldPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'clear' | 'panel' | 'sheet' | 'header' | 'footer' | 'list' | 'groupHeader';
55
52
  /**
56
53
  * The option parts and the selection parts — broadcasts resolved per option
57
54
  * or per selected value; their base key also takes a per-item function.
@@ -64,14 +61,14 @@ export type BbSelectOptionPtPart = 'option' | 'itemText' | 'itemIcon' | 'itemDes
64
61
  * chosen option.
65
62
  * @state disabled - Component-wide while the select is `disabled`; also per
66
63
  * node, on `option`, its `item-*` parts and `check`: an option that is
67
- * disabled.
64
+ * disabled; on `groupHeader`: all its group's options are.
68
65
  * @state open - Component-wide: the options surface is showing.
69
66
  */
70
67
  export type BbSelectPtState = FormControlPtState | 'open' | 'selected';
71
68
  /** The states every part takes: the field's and `open` (the resolver's `active` map). */
72
69
  export type BbSelectWidePtState = FormControlPtState | 'open';
73
70
  /** Every part but `clear`, which is gone while the select is `disabled` or `readonly`. Spelled flat (T20). */
74
- export type BbSelectKeptPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'panel' | 'sheet' | 'header' | 'footer' | 'list' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'badge' | 'comma';
71
+ export type BbSelectKeptPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'input' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'panel' | 'sheet' | 'header' | 'footer' | 'list' | 'groupHeader' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check' | 'badge' | 'comma';
75
72
  /** An option's parts: the only ones the popover resolves `selected` on. */
76
73
  export type BbSelectRowPtPart = 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check';
77
74
  /**
@@ -86,7 +83,7 @@ export type BbSelectPtKey = BbSelectPtPart | `${BbSelectKeptPtPart}:${BbSelectWi
86
83
  */
87
84
  export type BbSelectVariantPtPart = 'root' | 'label' | 'description' | 'message' | 'hint' | 'box' | 'activator' | 'icon' | 'spinner' | 'prefix' | 'suffix' | 'clear';
88
85
  export declare const BB_SELECT_PT: {
89
- readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "activator", "input", "icon", "spinner", "prefix", "suffix", "clear", "panel", "sheet", "header", "footer", "list", "option", "itemText", "itemIcon", "itemDescription", "check", "badge", "comma"];
86
+ readonly parts: readonly ["root", "label", "description", "message", "hint", "box", "activator", "input", "icon", "spinner", "prefix", "suffix", "clear", "panel", "sheet", "header", "footer", "list", "groupHeader", "option", "itemText", "itemIcon", "itemDescription", "check", "badge", "comma"];
90
87
  readonly states: readonly ["hasValue", "selected", "readonly", "disabled", "warnings", "errors", "open", "loading"];
91
88
  /** On every part: what the resolver's `active` map turns on. */
92
89
  readonly wide: readonly ["hasValue", "readonly", "disabled", "warnings", "errors", "open", "loading"];
@@ -124,6 +121,12 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
124
121
  * Bound, the app opens and closes it; unbound, the initial state.
125
122
  */
126
123
  open?: boolean;
124
+ /**
125
+ * The search field's text (`v-model:query`): raw per keystroke, `''`
126
+ * when the component empties it; a write searches at once (guide §
127
+ * Reading and restoring the search).
128
+ */
129
+ query?: string;
127
130
  /**
128
131
  * Passthrough, object form: the same keys as the `pt:*` attributes
129
132
  * without the prefix. See the `pt:<part>` row.
@@ -132,10 +135,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
132
135
  [K in `${BbSelectVariantPtPart}:${InputVariantBuiltIn | keyof SelectVariantRegistry}`]?: PtValue;
133
136
  };
134
137
  /**
135
- * When `true`, the options panel opens as a bottom off-canvas sheet on mobile
136
- * viewports instead of a floating popover; on desktop it stays a popover.
137
- *
138
- * When unset, falls back to the global `all.adaptive`.
138
+ * `true`: on mobile viewports the options open in a bottom sheet, not a
139
+ * popover (desktop keeps the popover). Unset: the global `all.adaptive`.
139
140
  * @defaultValue `all.adaptive` (`true`)
140
141
  */
141
142
  adaptive?: boolean;
@@ -146,16 +147,16 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
146
147
  */
147
148
  description?: string;
148
149
  /**
149
- * Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on
150
- * mobile), spread over its defaults. A `pt` inside it styles only the sheet
151
- * (passthrough guide § Inside the sheet).
150
+ * Props for the phone sheet (the `BbOffCanvas` `adaptive` renders), over
151
+ * its defaults. A `pt` inside styles only the sheet (passthrough guide §
152
+ * Inside the sheet).
152
153
  */
153
154
  offCanvasProps?: Partial<BbOffCanvasProps>;
154
155
  /**
155
156
  * Hides the panel's search field: `true` everywhere, `'mobile'` /
156
- * `'desktop'` on that platform only. `'auto'` hides it, per open, for an
157
- * array `items` shorter than the plugin's `autoDisableWritingThreshold`
158
- * (6); never for a provider or with an `option:add` listener.
157
+ * `'desktop'` on that platform. `'auto'`, per open: for an array `items`
158
+ * shorter than the plugin's `autoDisableWritingThreshold` (6), never for a
159
+ * provider or with an `option:add` listener.
159
160
  *
160
161
  * @defaultValue `'auto'`
161
162
  */
@@ -175,13 +176,13 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
175
176
  */
176
177
  autofocus?: InputHTMLAttributes['autofocus'];
177
178
  /**
178
- * Displays a clear button when the input has a value and is being interacted with.
179
- * A single select also clears when the picked option is clicked again.
179
+ * A clear button while the field has a value and is interacted with; a
180
+ * single select also clears when its pick is clicked again.
180
181
  */
181
182
  clearable?: boolean;
182
183
  /**
183
- * Sets the display model for selected values to a list of comma separated string.
184
- * In this mode the user cannot deselect an option by pressing the close button.
184
+ * Shows the picks as one comma-separated string; no close button to
185
+ * deselect one there.
185
186
  */
186
187
  comma?: boolean;
187
188
  /**
@@ -192,10 +193,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
192
193
  */
193
194
  compact?: boolean;
194
195
  /**
195
- * The field box's look, with `BbButton`'s names and tokens. Colours only,
196
- * so a form never reflows; `'ghost'` has no border in any state, `'none'`
197
- * no look at all (you own hover, focus and the states). Register more with
198
- * the plugin's `components.BbSelect.variants`.
196
+ * The field box's look: `BbButton`'s names and tokens, colours only (a
197
+ * form never reflows). `'ghost'` has no border in any state; `'none'` no
198
+ * look at all (you own hover, focus, states). More via the plugin's
199
+ * `components.BbSelect.variants`.
199
200
  *
200
201
  * @defaultValue `'outline'`
201
202
  */
@@ -231,9 +232,9 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
231
232
  */
232
233
  disabled?: boolean;
233
234
  /**
234
- * After each successful non-search load, removes the picks the fetched rows
235
- * lack (a single model resets to `null`). A `stash` does not count; a
236
- * `known-items` value stays until a parent change; a search or a failed load
235
+ * After each successful non-search load, drops the picks the fetched rows
236
+ * lack (a single model goes `null`). A `stash` does not count; a
237
+ * `known-items` value stays until a parent change; a search or failed load
237
238
  * never prunes.
238
239
  */
239
240
  enforceCoherence?: boolean;
@@ -244,11 +245,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
244
245
  */
245
246
  errors?: string | string[];
246
247
  /**
247
- * What typing filters on: empty = the display text and description; item
248
- * paths = those fields (`['name', 'email']`); `false` = no filtering.
249
- * Ranked, case and accents ignored (guide § Search). Use `false` when the
250
- * provider matched the query on the server, or its email matches show as
251
- * "No results".
248
+ * What typing filters on: empty = display text and description; item paths
249
+ * = those fields (`['name', 'email']`); `false` = none. Ranked, case- and
250
+ * accent-blind (guide § Search). `false` when the provider matched on the
251
+ * server, or its email matches show "No results".
252
252
  *
253
253
  * @defaultValue `[]`
254
254
  */
@@ -290,22 +290,20 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
290
290
  */
291
291
  id?: HTMLAttributes['id'];
292
292
  /**
293
- * The options: an array, or a provider called with a
294
- * `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`),
295
- * sync or async. Branch on `reason !== 'search'` to resolve the selection
296
- * by id. A provider fails by THROWING, never by returning `[]`.
293
+ * The options: an array, or a provider (sync or async) called with a
294
+ * `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`).
295
+ * Branch on `reason !== 'search'` to resolve the selection by id. It fails
296
+ * by THROWING, never by returning `[]`.
297
297
  */
298
298
  items: T[] | ((context: BbSelectItemsContext) => T[] | Promise<T[]>);
299
299
  /**
300
- * Height of group headers in the listbox (px). Defaults to 32px (24px
301
- * compact; 36px / 32px on mobile viewports). Only applies when `groupBy`
302
- * is set. An explicit value wins on every viewport.
300
+ * Group header height (px), with `groupBy`: 32 (24 compact; 36 / 32 on
301
+ * mobile viewports). An explicit value wins on every viewport.
303
302
  */
304
303
  headerHeight?: number;
305
304
  /**
306
- * Height of the options in the listbox (px). Defaults to 28px (24px
307
- * compact; 44px / 36px on mobile viewports). An explicit value wins on
308
- * every viewport.
305
+ * Option height (px): 28 (24 compact; 44 / 36 on mobile viewports). An
306
+ * explicit value wins on every viewport.
309
307
  *
310
308
  * @defaultValue `28`
311
309
  */
@@ -320,10 +318,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
320
318
  */
321
319
  itemText?: ItemAccessor<T, string>;
322
320
  /**
323
- * ADDITIONAL row fields, never the text or value: `description` (a muted
324
- * line under the label), `prepend:icon`, `append:icon`. An object of paths
325
- * or getters per field, or a function of the item. Nothing is read
326
- * implicitly; none shows in the trigger or the chips.
321
+ * EXTRA row fields, never text or value: `description` (a muted line under
322
+ * the label), `prepend:icon`, `append:icon`. Paths or getters per field, or
323
+ * a function of the item. Nothing is read implicitly; none shows in the
324
+ * trigger or chips.
327
325
  */
328
326
  itemProps?: BbSelectItemProps<T>;
329
327
  /**
@@ -338,9 +336,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
338
336
  /**
339
337
  * `{ value, label }` rows naming the value the app already holds, whatever
340
338
  * the options' shape: no request until the first open (`prefill: true`
341
- * still loads). Not options; the options' accessors never run on them;
342
- * slots get the row as `item`, with `known: true`, until the list brings
343
- * its own.
339
+ * still loads). Not options, so no accessor runs on them; slots get the row
340
+ * as `item`, `known: true`, until the list brings its own.
344
341
  */
345
342
  knownItems?: [Known] extends [undefined] ? BbSelectKnownItems : Known;
346
343
  /**
@@ -371,16 +368,16 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
371
368
  */
372
369
  max?: number;
373
370
  /**
374
- * Maximum number of labels shown before collapsing to a count summary.
375
- * Unset, the labels collapse only when they overflow the field.
371
+ * Labels shown before collapsing to a count summary. Unset, they collapse
372
+ * only when they overflow the field.
376
373
  *
377
374
  * @defaultValue `Infinity`
378
375
  */
379
376
  maxSelectedLabels?: number;
380
377
  /**
381
378
  * Characters to type (trimmed) before the query searches. Below it the
382
- * query counts as empty: no `'search'` call, no filtering, and the panel
383
- * says how many characters to type. Slots still get the typed `query`.
379
+ * query counts as empty: no `'search'` call, no filtering; the panel says
380
+ * how many to type. Slots still get the typed `query`.
384
381
  *
385
382
  * @defaultValue `0`
386
383
  */
@@ -408,8 +405,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
408
405
  */
409
406
  emptyText?: string;
410
407
  /**
411
- * String displayed in the empty state while the latest load FAILED (the
412
- * provider threw): the twin of `emptyText` for that case.
408
+ * The empty state's text while the latest load FAILED (the provider
409
+ * threw): `emptyText`'s twin for that case.
413
410
  *
414
411
  * @defaultValue the localized `common.failedText` ("Couldn't load items")
415
412
  */
@@ -425,9 +422,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
425
422
  placeholder?: InputHTMLAttributes['placeholder'];
426
423
  /**
427
424
  * When the options first load: `'interaction'` on first open, `true` on
428
- * mount, `false` only once the user types (on open with
429
- * `disable-writing`). An array `items` or a seeded model always loads at
430
- * once.
425
+ * mount, `false` once the user types (on open with `disable-writing`). An
426
+ * array `items` or a seeded model loads at once.
431
427
  *
432
428
  * @defaultValue `'interaction'`
433
429
  */
@@ -464,14 +460,13 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
464
460
  */
465
461
  selectable?: boolean | ((item: T) => boolean);
466
462
  /**
467
- * Function that returns a string to be displayed when the number of selected labels
468
- * is greater than `maxSelectedLabels`.
463
+ * The text shown when the selected labels outnumber `maxSelectedLabels`.
469
464
  */
470
465
  selectedLabelsFn?: (count: number) => string;
471
466
  /**
472
- * Keeps picks named (their chips keep their text) when a later search or a
473
- * failed load no longer returns them. It follows the model; it does not
474
- * keep a pick valid (`enforce-coherence` still prunes it).
467
+ * Keeps picks named (chips keep their text) when a later search or failed
468
+ * load stops returning them. It follows the model; it does not keep a pick
469
+ * valid (`enforce-coherence` still prunes it).
475
470
  */
476
471
  stash?: boolean;
477
472
  /**
@@ -491,6 +486,8 @@ export type BbSelectEvents<V = any> = {
491
486
  (e: 'hide'): void;
492
487
  /** The panel opened or closed (`v-model:open`). */
493
488
  (e: 'update:open', value: boolean): void;
489
+ /** `v-model:query`: the search field's text. */
490
+ (e: 'update:query', value: string): void;
494
491
  /** Emitted once the options surface has finished closing. */
495
492
  (e: 'hidden'): void;
496
493
  /** Emitted when the activator loses focus. Forwards the original DOM `FocusEvent`. */
@@ -509,9 +506,9 @@ export type BbSelectEvents<V = any> = {
509
506
  (e: 'input', event: Event): void;
510
507
  (e: 'update:modelValue', value: V): void;
511
508
  /**
512
- * Emitted with the typed text when the user confirms a value that is not in
513
- * the list (Enter in the search field). Binding it keeps the search field
514
- * writable, which makes the select creatable.
509
+ * The typed text, when the user confirms a value not in the list (Enter in
510
+ * the search field). Binding it keeps the field writable: the select is
511
+ * creatable.
515
512
  */
516
513
  (e: 'option:add', text: string): void;
517
514
  };
@@ -608,13 +605,13 @@ export type BbSelectPanelSlotProps = {
608
605
  };
609
606
  export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = undefined> = {
610
607
  /**
611
- * Content pinned to the top of the options panel, above the search field.
612
- * Rendered in both the desktop popover and the adaptive sheet.
608
+ * Pinned atop the options panel, above the search field, on the popover
609
+ * and the phone sheet alike.
613
610
  */
614
611
  header?: (props: BbSelectPanelSlotProps) => any;
615
612
  /**
616
- * Content pinned to the bottom of the options panel, below the options list.
617
- * Rendered in both the desktop popover and the adaptive sheet.
613
+ * Pinned under the options list, on the popover and the phone sheet
614
+ * alike.
618
615
  */
619
616
  footer?: (props: BbSelectPanelSlotProps) => any;
620
617
  /**
@@ -637,8 +634,8 @@ export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = unde
637
634
  */
638
635
  label?: (props: BbSelectLabelSlotProps) => any;
639
636
  /**
640
- * Replaces the description text. Provided alone (no `description` prop) it still
641
- * renders the description region and wires it into `aria-describedby`.
637
+ * Replaces the description text; alone (no `description` prop) it still
638
+ * renders the region, wired into `aria-describedby`.
642
639
  */
643
640
  description?: (props: BbSelectDescriptionSlotProps) => any;
644
641
  /**
@@ -648,10 +645,9 @@ export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = unde
648
645
  query: string;
649
646
  }) => any;
650
647
  /**
651
- * Content shown when no options match the query or the list is empty.
652
- * Empty only: a failed load shows the failure row (`failed-text`, then
653
- * "Try again"). `close()` closes the panel, for an action that does not
654
- * move focus out of it.
648
+ * Shown when no option matches the query or the list is empty; a failed
649
+ * load shows the failure row instead (`failed-text`, "Try again").
650
+ * `close()` closes the panel, for an action that keeps focus in it.
655
651
  */
656
652
  empty?: (props: {
657
653
  query: string;
@@ -659,21 +655,21 @@ export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = unde
659
655
  close: () => Promise<void>;
660
656
  }) => any;
661
657
  /**
662
- * Each option row's content. With `known-items` bound, a row the list has
663
- * not brought yet is the known `{ value, label }` row (`known: true`):
664
- * check `known` before reading an option field off `item`.
658
+ * Each option row's content. With `known-items`, a row the list has not
659
+ * brought yet is the known `{ value, label }` row (`known: true`): check
660
+ * `known` before reading an option field off `item`.
665
661
  */
666
662
  option?: (props: BbSelectOptionSlotProps<T, Known>) => any;
667
663
  /**
668
- * Replaces the default group header rendered above grouped options.
669
- * Not called for rows with no group (`group-by` gives `null`/`undefined`,
670
- * known rows): they are listed without a header.
664
+ * Each group heading's content (`pt:group-header` styles its box). Not
665
+ * called for rows with no group (`group-by` gives `null`/`undefined`, known
666
+ * rows): they are listed without one.
671
667
  */
672
668
  group?: (props: BbSelectGroupSlotProps<T>) => any;
673
669
  /**
674
670
  * Each selection's badge with `multiple` (not in `comma` mode, nor the
675
- * "+N" summary). With `known-items` bound, `item` is the known
676
- * `{ value, label }` row (`known: true`) until the list brings the real one.
671
+ * "+N" summary). With `known-items`, `item` is the known `{ value, label }`
672
+ * row (`known: true`) until the list brings the real one.
677
673
  */
678
674
  chip?: (props: BbSelectChipSlotProps<T, Known>) => any;
679
675
  /**
@@ -1,33 +1,7 @@
1
1
  import { INPUT_VARIANTS as e } from "../../types/InputVariant.js";
2
2
  // src/components/BbSelect/types.ts
3
3
  var t = {
4
- parts: [
5
- "root",
6
- "label",
7
- "description",
8
- "message",
9
- "hint",
10
- "box",
11
- "activator",
12
- "input",
13
- "icon",
14
- "spinner",
15
- "prefix",
16
- "suffix",
17
- "clear",
18
- "panel",
19
- "sheet",
20
- "header",
21
- "footer",
22
- "list",
23
- "option",
24
- "itemText",
25
- "itemIcon",
26
- "itemDescription",
27
- "check",
28
- "badge",
29
- "comma"
30
- ],
4
+ parts: /* @__PURE__ */ "root.label.description.message.hint.box.activator.input.icon.spinner.prefix.suffix.clear.panel.sheet.header.footer.list.groupHeader.option.itemText.itemIcon.itemDescription.check.badge.comma".split("."),
31
5
  states: [
32
6
  "hasValue",
33
7
  "selected",
@@ -6,7 +6,7 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
6
6
  [x: `pt:${string}&${string}`]: unknown;
7
7
  } & {
8
8
  pt?: import('../../types/passthrough.js').PtCompoundOf<"", {
9
- readonly parts: readonly ["root", "panel", "sheet", "input", "clear", "list", "option", "itemText", "itemIcon", "itemDescription", "check", "header", "footer"];
9
+ readonly parts: readonly ["root", "panel", "sheet", "input", "clear", "list", "groupHeader", "option", "itemText", "itemIcon", "itemDescription", "check", "header", "footer"];
10
10
  readonly states: readonly ["selected", "disabled", "open"];
11
11
  readonly wide: readonly ["open"];
12
12
  readonly node: {
@@ -15,16 +15,18 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
15
15
  readonly itemIcon: readonly ["selected", "disabled"];
16
16
  readonly itemDescription: readonly ["selected", "disabled"];
17
17
  readonly check: readonly ["selected", "disabled"];
18
+ readonly groupHeader: readonly ["disabled"];
18
19
  };
19
20
  }> | undefined;
20
21
  } & import('./ptKeys.generated.js').BbSelectPopoverPtKeys & {
21
22
  "pt:itemDescription"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
23
+ "pt:check"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
22
24
  "pt:itemText"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
23
25
  "pt:itemIcon"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
24
- "pt:check"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
25
26
  "pt:option"?: import('../../types/passthrough.js').PtValue | ((ctx: import('../../types/passthrough.js').PtItemCtx<import('../../types/passthrough.js').PtNoInfer<Item>, import('./types.js').BbSelectPopoverPtState, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>>) => import('../../types/passthrough.js').PtItemResult) | undefined;
26
27
  } & {
27
28
  open?: boolean;
29
+ query?: string;
28
30
  pt?: import('../../types/passthrough.js').PtScopedItemMap<import('./types.js').BbSelectPopoverPtKey, import('./types.js').BbSelectPopoverOptionPtPart, import('./types.js').BbSelectPopoverPtState, import('../../types/passthrough.js').PtNoInfer<Item>, never, import('./types.js').BbSelectSlotRow<import('../../types/passthrough.js').PtNoInfer<Item>, import('../../types/passthrough.js').PtNoInfer<Known>>> | undefined;
29
31
  activator?: import('../../index.js').ElementOrComponentRef;
30
32
  adaptive?: boolean;
@@ -78,7 +80,7 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
78
80
  itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
79
81
  itemText?: ItemKeyInput<Item, Tx> | ItemGetter<Item, string>;
80
82
  multiple?: MultipleInput<M>;
81
- } & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "loading" | "pt" | "onClick" | "dependencies" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "hasErrors" | "hasWarnings" | "id" | "depsDebounceTime" | "enforceCoherence" | "items" | "itemText" | "itemValue" | "itemProps" | "loadingText" | "max" | "multiple" | "modelValueDebounceTime" | "emptyText" | "failedText" | "selectable" | "offCanvasProps" | "activator" | "boundary" | "disableFlip" | "offset" | "padding" | "placement" | "disableWriting" | "queryDebounceTime" | "width" | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "knownItems" | "minQueryLength" | "prefill" | "stash" | keyof import('./ptKeys.generated.js').BbSelectPopoverPtKeys | "ariaDescribedby" | "ariaInvalid" | "searchInputAriaLabel" | "onFocus" | "onBlur" | "onChange" | "onInput" | "aria-describedby" | "aria-invalid"> & {
83
+ } & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "open" | "loading" | "pt" | "onClick" | "dependencies" | "query" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "offCanvasProps" | "hasErrors" | "hasWarnings" | "id" | "activator" | "boundary" | "disableFlip" | "offset" | "padding" | "placement" | "multiple" | "max" | "selectable" | "disableWriting" | "itemText" | "enforceCoherence" | "items" | "loadingText" | "emptyText" | "failedText" | "queryDebounceTime" | "width" | "depsDebounceTime" | "filterBy" | "groupBy" | "headerHeight" | "itemHeight" | "itemProps" | "itemValue" | "knownItems" | "minQueryLength" | "modelValueDebounceTime" | "prefill" | "stash" | keyof import('./ptKeys.generated.js').BbSelectPopoverPtKeys | "ariaDescribedby" | "ariaInvalid" | "searchInputAriaLabel" | "onFocus" | "onBlur" | "onChange" | "onInput" | "aria-describedby" | "aria-invalid"> & {
82
84
  "aria-describedby"?: string | string[] | undefined;
83
85
  "aria-invalid"?: boolean | undefined;
84
86
  }) & {
@@ -95,6 +97,7 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
95
97
  onShown?: (() => any) | undefined;
96
98
  onHidden?: (() => any) | undefined;
97
99
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
100
+ "onUpdate:query"?: ((value: string) => any) | undefined;
98
101
  "onOption:add"?: ((text: string) => any) | undefined;
99
102
  }> & (typeof globalThis extends {
100
103
  __VLS_PROPS_FALLBACK: infer P;