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
@@ -409,6 +409,7 @@ import { useUntil } from '../../composables/useUntil';
409
409
  import { useClosingInert } from '@/composables/useClosingInert';
410
410
  import { wait } from '@/utilities/functions/wait';
411
411
  import { useOpenModel } from '@/composables/useOpenModel';
412
+ import { useOwnModel } from '@/composables/useOwnModel';
412
413
  import BbBadge from '../BbBadge/BbBadge.vue';
413
414
  import BbIcon from '../BbIcon/BbIcon.vue';
414
415
  import BbOffCanvas from '../BbOffCanvas/BbOffCanvas.vue';
@@ -416,7 +417,7 @@ import ClearableButton from '../ClearableButton/ClearableButton.vue';
416
417
  import CommonPopover from '../CommonPopover/CommonPopover.vue';
417
418
  import ErrorIcon from '../ErrorIcon/ErrorIcon.vue';
418
419
  import WarningIcon from '../WarningIcon/WarningIcon.vue';
419
- import searchIcon from '@/assets/svgs/search.svg?raw';
420
+ import searchIconBuiltin from '@/assets/svgs/search.svg?raw';
420
421
  import ListBox from '../ListBox/ListBox.vue';
421
422
  import { waitFor } from '@/utilities/functions/waitFor';
422
423
  import type {
@@ -437,6 +438,7 @@ import { removedPropsFor } from '@/deprecation/removedProps';
437
438
  import { warnRemovedAttrs } from '@/utilities/functions/warnRemovedAttrs';
438
439
  import { hasVnodeListener } from '@/utilities/functions/hasVnodeListener';
439
440
  import { runRetry } from '@/utils/loadRetry';
441
+ import { useInternalIcon } from '@/composables/useInternalIcon';
440
442
 
441
443
  // The element(s) the fall-through attributes reach, as typed below.
442
444
  // @attrTargets span dialog
@@ -490,6 +492,7 @@ const props = withDefaults(
490
492
  compact: undefined,
491
493
  }
492
494
  );
495
+
493
496
  const emit =
494
497
  defineEmits<
495
498
  BbSelectPopoverEvents<SelectModelOf<OptionValueOf<Item, A>, M>>
@@ -497,6 +500,8 @@ const emit =
497
500
 
498
501
  defineSlots<BbSelectPopoverSlots<Item, Known>>();
499
502
 
503
+ const searchIcon = useInternalIcon('search', searchIconBuiltin);
504
+
500
505
  /** `all.popoverOffset`: the app's or the scope's gap, read per render. */
501
506
  const popoverOffset = useConfigSetting<number>(null, 'popoverOffset');
502
507
 
@@ -877,6 +882,16 @@ const onPopoverFocusProxyFocus = (_event: FocusEvent) => {
877
882
  */
878
883
  const onSearchInputInput = (event: Event) => {
879
884
  emit('input', event);
885
+ search(false);
886
+ };
887
+
888
+ /**
889
+ * The ONE search path, for typing and for a query the app
890
+ * writes. Typing goes through the debounce; an app write is one deliberate
891
+ * value: it drops a scheduled keystroke search and loads now (the request in
892
+ * flight is superseded and aborted, as by any newer load).
893
+ */
894
+ const search = (immediate: boolean) => {
880
895
  if (belowMinQuery.value && !sentQuery) return;
881
896
  sentQuery = searchQuery.value;
882
897
  // A user search is a first load like any other, so unlock `canLoad` — without
@@ -891,11 +906,13 @@ const onSearchInputInput = (event: Event) => {
891
906
  // A thunk: the model is read when the debounced call fires, so a pick made
892
907
  // between the keystroke and the fire is what the provider sees (E14).
893
908
  let generation = depsGeneration;
909
+ const args = (): [string, 'search', unknown] => {
910
+ generation = depsGeneration;
911
+ return [searchQuery.value, 'search', props.modelValue];
912
+ };
913
+ if (immediate) discardScheduledRequests();
894
914
  void Promise.resolve(
895
- debouncedGetter(() => {
896
- generation = depsGeneration;
897
- return [searchQuery.value, 'search', props.modelValue];
898
- })
915
+ immediate ? getter(...args()) : debouncedGetter(args)
899
916
  ).then((outcome) => settleUnderParent(generation, 'search', outcome));
900
917
  };
901
918
 
@@ -2911,7 +2928,7 @@ const settleListOnClose = () => {
2911
2928
  };
2912
2929
 
2913
2930
  /** Runs before the panel shows: the old rows must not paint for a frame. */
2914
- const refreshDirtyList = () => {
2931
+ const refreshDirtyList = (heldQuery = false) => {
2915
2932
  if (!listDirty && !listStale) return;
2916
2933
  // A new record since the last open reloads its page as a first load
2917
2934
  // (R11), even while a dropped mount load is still out; a dirty list
@@ -2921,7 +2938,8 @@ const refreshDirtyList = () => {
2921
2938
  listStale = false;
2922
2939
  markPrefilled();
2923
2940
  listMasked.value = true;
2924
- if (isSearchFirst.value) return;
2941
+ // The open's own search replaces the reload.
2942
+ if (isSearchFirst.value || heldQuery) return;
2925
2943
  // A reopen is "initial after closing": its
2926
2944
  // applied result prunes like every other non-search load.
2927
2945
  void load('', reason, props.modelValue).then((outcome) => {
@@ -2932,14 +2950,21 @@ const refreshDirtyList = () => {
2932
2950
  const open = async ({
2933
2951
  focusPopoverContent = true,
2934
2952
  }: { focusPopoverContent?: boolean } = {}) => {
2935
- if (props.disabled || props.readonly) return;
2953
+ if (props.disabled || props.readonly) return dropHeldQuery();
2936
2954
  if (shown.value) return;
2937
2955
  // Latch the surface and the `auto` search decision for this open cycle
2938
2956
  // before anything reads them.
2939
2957
  surface.value = resolveSurface();
2940
2958
  autoHidesSearch.value = resolveAutoHidesSearch();
2941
2959
  hasInteracted.value = true;
2942
- refreshDirtyList();
2960
+ // a query the app wrote for this open (`query = x;
2961
+ // open = true`, in either order) is this open's search: read before the
2962
+ // list refreshes, so ONE request goes out, for it.
2963
+ takeQueryModel();
2964
+ if (query.value && !computedAllowWriting.value) dropHeldQuery();
2965
+ // Below `min-query-length` it searches nothing: the open goes as usual.
2966
+ const heldQuery = !!searchQuery.value;
2967
+ refreshDirtyList(heldQuery);
2943
2968
  pinOutsideRows();
2944
2969
  placeOnLoad =
2945
2970
  typeof props.items === 'function' &&
@@ -2951,9 +2976,13 @@ const open = async ({
2951
2976
  // opening must not perform it — this is the only thing separating
2952
2977
  // `prefill: false` from `'interaction'`.
2953
2978
  const firstLoad =
2954
- !hasPrefilled.value && !isPrefilling.value && !isSearchFirst.value
2979
+ !heldQuery &&
2980
+ !hasPrefilled.value &&
2981
+ !isPrefilling.value &&
2982
+ !isSearchFirst.value
2955
2983
  ? prefillItems()
2956
2984
  : undefined;
2985
+ if (heldQuery) search(true);
2957
2986
  // The panel does not wait for that load: it opens on its loading
2958
2987
  // state and takes focus now. Waiting left focus on the activator for the
2959
2988
  // whole fetch, so keys typed right after the click were lost and a space
@@ -3059,7 +3088,8 @@ const close = async () => {
3059
3088
  const onOffcanvasHidden = () => {
3060
3089
  optionsContainer.value?.blur();
3061
3090
  activeDescendantId.value = undefined;
3062
- query.value = '';
3091
+ // The query was cleared when the close began (the `shown` watcher below),
3092
+ // so a query the app writes during the slide-out survives.
3063
3093
  // The sheet can close itself without `close()` (backdrop, drag, Escape).
3064
3094
  placeOnLoad = false;
3065
3095
  settleListOnClose();
@@ -3080,6 +3110,54 @@ const toggle = () => {
3080
3110
  // `v-model:open`: the same open and close the activator
3081
3111
  // makes; every close (a pick, Escape, outside, the sheet's own) writes back.
3082
3112
  useOpenModel(props, emit, { isOpen: () => shown.value, open, close });
3113
+
3114
+ /**
3115
+ * `v-model:query`. The model mirrors the field: every change of
3116
+ * `query` is emitted raw (Vue's `v-model` on the field holds it during an IME
3117
+ * composition, so the composed text comes once), and `''` when the component
3118
+ * empties it. An app write is a search the user didn't type (the one search
3119
+ * path, at once); closed, it is held for the next open; it never opens the
3120
+ * panel or moves focus, and is never echoed back.
3121
+ */
3122
+ const { model: queryModel, set: setQueryModel } = useOwnModel<'query', string>(
3123
+ props,
3124
+ 'query',
3125
+ emit,
3126
+ () => ''
3127
+ );
3128
+ watch(
3129
+ query,
3130
+ (next) => {
3131
+ if (next !== queryModel.value) setQueryModel(next);
3132
+ },
3133
+ { flush: 'sync' }
3134
+ );
3135
+ /** The app's query, when it differs: closed, held; open, searched. */
3136
+ const takeQueryModel = () => {
3137
+ if (queryModel.value !== query.value) query.value = queryModel.value;
3138
+ };
3139
+ /** A held query that can't land: dropped, and `''` written back. */
3140
+ const dropHeldQuery = () => {
3141
+ if (query.value) query.value = '';
3142
+ else if (queryModel.value) setQueryModel('');
3143
+ };
3144
+ watch(queryModel, (next) => {
3145
+ if (next === query.value) return;
3146
+ if (props.disabled || props.readonly) return dropHeldQuery();
3147
+ query.value = next;
3148
+ if (!shown.value) return;
3149
+ if (!computedAllowWriting.value) return dropHeldQuery();
3150
+ search(true);
3151
+ });
3152
+ // The query ends when the close begins, on both surfaces: the sheet's own
3153
+ // dismiss (backdrop, drag, Escape) flips `shown` without `close()`.
3154
+ watch(
3155
+ shown,
3156
+ (value) => {
3157
+ if (!value && query.value) query.value = '';
3158
+ },
3159
+ { flush: 'sync' }
3160
+ );
3083
3161
  /**
3084
3162
  * END POPOVER STATE
3085
3163
  */
@@ -3544,10 +3622,11 @@ export type BbSelectResolvedOption<Item = any> = {
3544
3622
  * `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.
3545
3623
  * @part input - The search field.
3546
3624
  * @part clear - The ✕ that empties the search field.
3547
- * @part list - The `role="listbox"` node that holds the options. Virtualised:
3548
- * its height is written inline and its rows are positioned by the list,
3549
- * which limits what a layout utility can do there. The listbox's groups and
3550
- * the chips are not parts.
3625
+ * @part list - The `role="listbox"` node holding the options. Virtualised:
3626
+ * the list writes its height and places its rows, which limits layout
3627
+ * utilities there. A group's box and the chips are not parts.
3628
+ * @part groupHeader - Every `groupBy` heading (sticky). `#group` replaces its
3629
+ * content.
3551
3630
  * @part option - One listbox option — a broadcast resolved per option. Also
3552
3631
  * takes a per-item function, called with the option's raw item.
3553
3632
  * @part itemText - An option's label — resolved with that option's states. A
@@ -3557,10 +3636,9 @@ export type BbSelectResolvedOption<Item = any> = {
3557
3636
  * @part itemDescription - An option's second line (its description) —
3558
3637
  * resolved with that option's states. A custom `#option` slot replaces it.
3559
3638
  * Also takes a per-item function.
3560
- * @part check - The tick on the chosen option, at the row's end — mounted on
3561
- * every option and drawn on the chosen ones; a custom `#option` slot keeps
3562
- * it. `pt:check="hidden"` removes it and leaves a glyph your slot draws
3563
- * alone. Also takes a per-item function.
3639
+ * @part check - The tick at a chosen option's end (on every option, drawn on
3640
+ * the chosen). A custom `#option` slot keeps it; `pt:check="hidden"`
3641
+ * removes it, sparing your slot's glyph. Also takes a per-item function.
3564
3642
  * @part header - The flyout's header band.
3565
3643
  * @part footer - The flyout's footer band.
3566
3644
  */
@@ -3571,6 +3649,7 @@ export type BbSelectPopoverPtPart =
3571
3649
  | 'input'
3572
3650
  | 'clear'
3573
3651
  | 'list'
3652
+ | 'groupHeader'
3574
3653
  | 'option'
3575
3654
  | 'itemText'
3576
3655
  | 'itemIcon'
@@ -3586,6 +3665,7 @@ export type BbSelectPopoverSurfacePtPart =
3586
3665
  | 'input'
3587
3666
  | 'clear'
3588
3667
  | 'list'
3668
+ | 'groupHeader'
3589
3669
  | 'header'
3590
3670
  | 'footer';
3591
3671
  /** The option parts — broadcasts resolved per option; their base key also takes a per-item function. Spelled flat (T20). */
@@ -3601,7 +3681,7 @@ export type BbSelectPopoverOptionPtPart =
3601
3681
  * @state selected - Per node, on `option`, its `item-*` parts and `check`: a
3602
3682
  * chosen option.
3603
3683
  * @state disabled - Per node, on `option`, its `item-*` parts and `check`: an
3604
- * option that is disabled.
3684
+ * option that is disabled; on `groupHeader`: every option of its group is.
3605
3685
  * @state open - Component-wide: the options surface is showing.
3606
3686
  */
3607
3687
  export type BbSelectPopoverPtState = 'open' | 'selected' | 'disabled';
@@ -3612,7 +3692,8 @@ export type BbSelectPopoverPtState = 'open' | 'selected' | 'disabled';
3612
3692
  export type BbSelectPopoverPtKey =
3613
3693
  | BbSelectPopoverPtPart
3614
3694
  | `${BbSelectPopoverPtPart}:open`
3615
- | `${BbSelectPopoverOptionPtPart}:${'selected' | 'disabled'}`;
3695
+ | `${BbSelectPopoverOptionPtPart}:${'selected' | 'disabled'}`
3696
+ | 'groupHeader:disabled';
3616
3697
  /** The runtime lists the resolver is wired with — kept next to the types so the two cannot drift. */
3617
3698
  export const BB_SELECT_POPOVER_PT = {
3618
3699
  parts: [
@@ -3622,6 +3703,7 @@ export const BB_SELECT_POPOVER_PT = {
3622
3703
  'input',
3623
3704
  'clear',
3624
3705
  'list',
3706
+ 'groupHeader',
3625
3707
  'option',
3626
3708
  'itemText',
3627
3709
  'itemIcon',
@@ -3640,6 +3722,7 @@ export const BB_SELECT_POPOVER_PT = {
3640
3722
  itemIcon: ['selected', 'disabled'],
3641
3723
  itemDescription: ['selected', 'disabled'],
3642
3724
  check: ['selected', 'disabled'],
3725
+ groupHeader: ['disabled'],
3643
3726
  },
3644
3727
  } as const satisfies {
3645
3728
  parts: readonly BbSelectPopoverPtPart[];
@@ -3690,6 +3773,12 @@ export type BbSelectPopoverProps<
3690
3773
  * Bound, the app opens and closes it; unbound, the initial state.
3691
3774
  */
3692
3775
  open?: boolean;
3776
+ /**
3777
+ * The search field's text (`v-model:query`): raw per keystroke, `''`
3778
+ * when the component empties it; a write searches at once (guide §
3779
+ * Reading and restoring the search).
3780
+ */
3781
+ query?: string;
3693
3782
  /**
3694
3783
  * Passthrough, object form: the same keys as the `pt:*` attributes
3695
3784
  * without the prefix. See the `pt:<part>` row.
@@ -4019,6 +4108,8 @@ export type BbSelectPopoverEvents<V = any> = {
4019
4108
  (e: 'hide'): void;
4020
4109
  /** The panel opened or closed (`v-model:open`). */
4021
4110
  (e: 'update:open', value: boolean): void;
4111
+ /** `v-model:query`: the search field's text. */
4112
+ (e: 'update:query', value: string): void;
4022
4113
  /** Emitted once the options surface has finished closing. */
4023
4114
  (e: 'hidden'): void;
4024
4115
  /**
@@ -4664,6 +4755,18 @@ export type BbSelectPopoverSlots<
4664
4755
  transition: stroke-dashoffset var(--bb-transition-medium)
4665
4756
  var(--bb-ease);
4666
4757
  }
4758
+
4759
+ /* An app's own check glyph (any set, stroked or filled)
4760
+ has no draw-in: it simply appears on the selected row. */
4761
+ &--own {
4762
+ visibility: hidden;
4763
+
4764
+ path {
4765
+ stroke-dasharray: none;
4766
+ stroke-dashoffset: 0;
4767
+ transition: none;
4768
+ }
4769
+ }
4667
4770
  }
4668
4771
 
4669
4772
  &--selected {
@@ -4678,6 +4781,10 @@ export type BbSelectPopoverSlots<
4678
4781
  stroke-dashoffset: 0;
4679
4782
  }
4680
4783
  }
4784
+
4785
+ .bb-listbox__option-check--own {
4786
+ visibility: visible;
4787
+ }
4681
4788
  }
4682
4789
  }
4683
4790
 
@@ -321,10 +321,19 @@
321
321
  }}</span>
322
322
  <!-- One up arrow (ascending, AG Grid convention); the desc state
323
323
  rotates it 180° (the glyph is its own mirror), so the flip
324
- between directions animates. -->
324
+ between directions animates. An app's own `sortDesc` glyph
325
+ replaces the rotation. -->
325
326
  <BbIcon
326
327
  class="bb-table__sort-icon"
327
- :icon="arrowUpSvg"
328
+ :class="{
329
+ 'bb-table__sort-icon--own-desc':
330
+ header.sortOrder === 'desc' && !!sortDescIcon,
331
+ }"
332
+ :icon="
333
+ header.sortOrder === 'desc' && sortDescIcon
334
+ ? sortDescIcon
335
+ : arrowUpIcon
336
+ "
328
337
  size="1em"
329
338
  v-bind="
330
339
  passthrough.part('sortIcon', sortStates(header.sortOrder))
@@ -655,7 +664,7 @@
655
664
  "
656
665
  >
657
666
  import BbIcon from '../BbIcon/BbIcon.vue';
658
- import moveSvg from '@/assets/svgs/move.svg?raw';
667
+ import moveSvgBuiltin from '@/assets/svgs/move.svg?raw';
659
668
  import arrowUpSvg from '@/assets/svgs/arrow_up.svg?raw';
660
669
  import type { FallthroughAttrs } from '@/types/fallthrough';
661
670
  import { useConfigDefaults } from '@/composables/useConfigDefaults';
@@ -812,6 +821,7 @@ import {
812
821
  } from './gridWidgets';
813
822
  import BbBaseButton from '../BbBaseButton/BbBaseButton.vue';
814
823
  import { runRetry } from '@/utils/loadRetry';
824
+ import { useInternalIcon } from '@/composables/useInternalIcon';
815
825
 
816
826
  /** A row's value through `item-value`: the whole row when it is unset. */
817
827
  type RowValue = TableValueOf<Item, A>;
@@ -821,17 +831,14 @@ const selectAll = defineModel<boolean>('selectAll', {
821
831
  required: false,
822
832
  default: false,
823
833
  });
824
-
825
834
  const sort = defineModel<BbTableSortEntry[]>('sort', {
826
835
  required: false,
827
836
  default: () => [],
828
837
  });
829
-
830
838
  const order = defineModel<string[]>('order', {
831
839
  required: false,
832
840
  default: () => [],
833
841
  });
834
-
835
842
  // Highlight: documented on `BbTableProps.highlighted` (a JSDoc block here
836
843
  // would be appended to the prop's description in the manifest).
837
844
  // Typed by `item-value` on the emit side; the prop stays `any` through
@@ -841,7 +848,6 @@ const highlighted = defineModel<RowValue | null>('highlighted', {
841
848
  // Unset (not `null`): bound or not is read off it.
842
849
  default: undefined as never,
843
850
  });
844
-
845
851
  // The element(s) the fall-through attributes reach, as typed below.
846
852
  // @attrTargets div fieldset
847
853
  const props = withDefaults(
@@ -876,7 +882,6 @@ const props = withDefaults(
876
882
  );
877
883
  const emit =
878
884
  defineEmits<BbTableEvents<Item, RowValue, SelectModelOf<RowValue, M>>>();
879
-
880
885
  const slots = defineSlots<
881
886
  BbTableSlots<Item, RowValue> &
882
887
  Partial<
@@ -898,6 +903,12 @@ const slots = defineSlots<
898
903
  Record<InferredEdgeSlots, (props: BbTableEdgeCellSlotProps<Item>) => any>
899
904
  >
900
905
  >();
906
+ const moveSvg = useInternalIcon('move', moveSvgBuiltin);
907
+ const arrowUpIcon = useInternalIcon('sortAsc', arrowUpSvg);
908
+ // No built-in descending glyph: unset, the ascending one rotates.
909
+ const sortDescIcon = useInternalIcon('sortDesc', '');
910
+ // No built-in either: the row draws its own cropped grip when unset.
911
+ const dragHandleIcon = useInternalIcon('dragHandle', '');
901
912
 
902
913
  // `defineModel` would type the prop from the model too; the prop keeps
903
914
  // `BbTableProps`' `any[]` (a model of wider values still binds) and
@@ -1465,6 +1476,7 @@ const rowReorderContext = computed<RowReorderRowContext | null>(() => {
1465
1476
  describedBy: rowReorderInstructionsId.value,
1466
1477
  nameFor: (label: string) => t('table.moveRow', label).value.trim(),
1467
1478
  onKeydown: rowReorder.onKeydown,
1479
+ icon: dragHandleIcon.value,
1468
1480
  };
1469
1481
  });
1470
1482
 
@@ -10245,7 +10257,7 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
10245
10257
  opacity: 1;
10246
10258
  }
10247
10259
 
10248
- &--desc .bb-table__sort-icon {
10260
+ &--desc .bb-table__sort-icon:not(.bb-table__sort-icon--own-desc) {
10249
10261
  transform: rotate(180deg);
10250
10262
  }
10251
10263
  }
@@ -10511,6 +10523,27 @@ export type BbTableSlots<Item = any, V = any> = BbTableColumnSlots<Item, V> & {
10511
10523
  pointer-events: none;
10512
10524
  }
10513
10525
 
10526
+ /* An app's `dragHandle` glyph: the built-in grip's box, never wider. A
10527
+ 24-grid grip (lucide / tabler `grip-vertical`) at 15/14em (set on the
10528
+ icon) draws its
10529
+ dots ~2.5px across like ours; its side bearings overflow, unpainted. */
10530
+ &__row-handle-icon--own {
10531
+ display: block;
10532
+ height: 1em;
10533
+ position: relative;
10534
+ width: 0.56em;
10535
+
10536
+ /* Centred on the box, overflowing it evenly (grid centring would keep
10537
+ an oversized item at the start). */
10538
+ > svg {
10539
+ /* stylelint-disable-next-line property-disallowed-list -- geometry: centring with a physical translate, the same in both directions */
10540
+ left: 50%;
10541
+ position: absolute;
10542
+ top: 50%;
10543
+ translate: -50% -50%;
10544
+ }
10545
+ }
10546
+
10514
10547
  &--row-dragging {
10515
10548
  -webkit-user-select: none;
10516
10549
  user-select: none;
@@ -343,7 +343,7 @@ import {
343
343
  import { isEmpty } from '@/utilities/functions/empty';
344
344
  import { isNotEmpty } from '@/utilities/functions/isNotEmpty';
345
345
  import { transitions } from '@/utilities/misc/transitions';
346
- import clockIcon from '@/assets/svgs/clock.svg?raw';
346
+ import clockIconBuiltin from '@/assets/svgs/clock.svg?raw';
347
347
  import BbIcon from '../BbIcon/BbIcon.vue';
348
348
  import BbOffCanvas from '../BbOffCanvas/BbOffCanvas.vue';
349
349
  import { BB_OFF_CANVAS_PT } from '../BbOffCanvas/types';
@@ -365,12 +365,13 @@ import {
365
365
  type BbTimePickerInputSlots,
366
366
  type TimePickerInputError,
367
367
  } from './types';
368
-
368
+ import { useInternalIcon } from '@/composables/useInternalIcon';
369
369
  defineOptions({
370
370
  // An app's own variants as declared `pt:<part>:<name>` props.
371
371
  mixins: [variantPt(BB_TIME_PICKER_INPUT_PT)],
372
372
  inheritAttrs: false,
373
373
  });
374
+
374
375
  const declaredProps = withDefaults(
375
376
  defineProps<
376
377
  BbTimePickerInputBaseProps &
@@ -402,6 +403,9 @@ const declaredProps = withDefaults(
402
403
  const declaredEmit = defineEmits<BbTimePickerInputEvents<R>>();
403
404
 
404
405
  defineSlots<BbTimePickerInputSlots>();
406
+
407
+ const clockIcon = useInternalIcon('clock', clockIconBuiltin);
408
+
405
409
  // `R` types the v-model for the caller; inside, the value is either shape.
406
410
  const anyRangeProps = declaredProps as unknown as ShapeErasedProps<
407
411
  BbTimePickerInputProps,
@@ -21,14 +21,16 @@
21
21
  import type { FallthroughAttrs } from '@/types/fallthrough';
22
22
  import { useLocale } from '@/composables/useLocale';
23
23
  import BbIcon from '../BbIcon/BbIcon.vue';
24
- import clearIcon from '@/assets/svgs/clear.svg?raw';
24
+ import clearIconBuiltin from '@/assets/svgs/clear.svg?raw';
25
25
  import type { ClearableButtonProps } from './types';
26
-
26
+ import { useInternalIcon } from '@/composables/useInternalIcon';
27
27
  const props = defineProps<
28
28
  ClearableButtonProps &
29
29
  /* @vue-ignore */ FallthroughAttrs<'button', ClearableButtonProps>
30
30
  >();
31
31
 
32
+ const clearIcon = useInternalIcon('clear', clearIconBuiltin);
33
+
32
34
  const { t } = useLocale();
33
35
  </script>
34
36
 
@@ -14,12 +14,13 @@
14
14
  <script setup lang="ts">
15
15
  import BbIcon from '../BbIcon/BbIcon.vue';
16
16
  import type { FallthroughAttrs } from '@/types/fallthrough';
17
- import errorIcon from '@/assets/svgs/error.svg?raw';
17
+ import errorIconBuiltin from '@/assets/svgs/error.svg?raw';
18
18
  import type { ErrorIconProps, ErrorIconEvents, ErrorIconSlots } from './types';
19
- export type { ErrorIconProps, ErrorIconEvents, ErrorIconSlots };
20
-
19
+ import { useInternalIcon } from '@/composables/useInternalIcon';
21
20
  // Type only (`Record<never, never>` has no runtime props to resolve).
22
21
  defineProps</* @vue-ignore */ FallthroughAttrs<'svg', ErrorIconProps>>();
22
+ const errorIcon = useInternalIcon('error', errorIconBuiltin);
23
+ export type { ErrorIconProps, ErrorIconEvents, ErrorIconSlots };
23
24
  </script>
24
25
 
25
26
  <style lang="postcss">
@@ -236,6 +236,9 @@
236
236
  <BbIcon
237
237
  aria-hidden="true"
238
238
  class="bb-listbox__option-check"
239
+ :class="{
240
+ 'bb-listbox__option-check--own': checkIcon !== checkIconBuiltin,
241
+ }"
239
242
  :icon="checkIcon"
240
243
  v-bind="
241
244
  passthrough?.part?.(
@@ -313,9 +316,9 @@ import {
313
316
  } from '@/utilities/misc/listboxMetrics';
314
317
  import BbIcon from '../BbIcon/BbIcon.vue';
315
318
  import ErrorIcon from '../ErrorIcon/ErrorIcon.vue';
316
- import checkIcon from '@/assets/svgs/check_stroke.svg?raw';
319
+ import checkIconBuiltin from '@/assets/svgs/check_stroke.svg?raw';
317
320
  import { transitions } from '@/utilities/misc/transitions';
318
-
321
+ import { useInternalIcon } from '@/composables/useInternalIcon';
319
322
  const props = withDefaults(defineProps<FlatListBoxProps<Item>>(), {
320
323
  transitionDuration: transitions.medium,
321
324
  });
@@ -324,6 +327,8 @@ const emit = defineEmits<FlatListBoxEvents>();
324
327
 
325
328
  const slots = defineSlots<FlatListBoxSlots<Item>>();
326
329
 
330
+ const checkIcon = useInternalIcon('check', checkIconBuiltin);
331
+
327
332
  const { t } = useLocale();
328
333
 
329
334
  const innerRef = useTemplateRef('inner');
@@ -86,6 +86,13 @@
86
86
  :id="groupMetaIndexedByIndex[row.index].headerId"
87
87
  class="bb-listbox__group-header"
88
88
  role="presentation"
89
+ v-bind="
90
+ passthrough?.part?.('groupHeader', {
91
+ disabled:
92
+ groupMetaIndexedByIndex[row.index].allOptionsAreDisabled ||
93
+ undefined,
94
+ })
95
+ "
89
96
  >
90
97
  <slot
91
98
  :disabled="
@@ -278,6 +285,10 @@
278
285
  <BbIcon
279
286
  aria-hidden="true"
280
287
  class="bb-listbox__option-check"
288
+ :class="{
289
+ 'bb-listbox__option-check--own':
290
+ checkIcon !== checkIconBuiltin,
291
+ }"
281
292
  :icon="checkIcon"
282
293
  v-bind="
283
294
  passthrough?.part?.(
@@ -358,9 +369,9 @@ import {
358
369
  import { indexBy } from '@/utilities/functions/indexBy';
359
370
  import BbIcon from '../BbIcon/BbIcon.vue';
360
371
  import ErrorIcon from '../ErrorIcon/ErrorIcon.vue';
361
- import checkIcon from '@/assets/svgs/check_stroke.svg?raw';
372
+ import checkIconBuiltin from '@/assets/svgs/check_stroke.svg?raw';
362
373
  import { transitions } from '@/utilities/misc/transitions';
363
-
374
+ import { useInternalIcon } from '@/composables/useInternalIcon';
364
375
  const props = withDefaults(defineProps<GroupedListBoxProps>(), {
365
376
  transitionDuration: transitions.medium,
366
377
  });
@@ -369,6 +380,8 @@ const emit = defineEmits<GroupedListBoxEvents>();
369
380
 
370
381
  const slots = defineSlots<GroupedListBoxSlots<Item>>();
371
382
 
383
+ const checkIcon = useInternalIcon('check', checkIconBuiltin);
384
+
372
385
  const { t } = useLocale();
373
386
 
374
387
  const innerRef = useTemplateRef('inner');
@@ -806,7 +819,13 @@ export type GroupedListBoxProps = {
806
819
  * node with its own `selected` / `disabled`. Internal.
807
820
  */
808
821
  passthrough?: PtBindings<
809
- 'list' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check',
822
+ | 'list'
823
+ | 'groupHeader'
824
+ | 'option'
825
+ | 'itemText'
826
+ | 'itemIcon'
827
+ | 'itemDescription'
828
+ | 'check',
810
829
  'selected' | 'disabled'
811
830
  >;
812
831
 
@@ -154,7 +154,13 @@ export type ListBoxProps<Item> = {
154
154
  * node with its own `selected` / `disabled`. Internal.
155
155
  */
156
156
  passthrough?: PtBindings<
157
- 'list' | 'option' | 'itemText' | 'itemIcon' | 'itemDescription' | 'check',
157
+ | 'list'
158
+ | 'groupHeader'
159
+ | 'option'
160
+ | 'itemText'
161
+ | 'itemIcon'
162
+ | 'itemDescription'
163
+ | 'check',
158
164
  'selected' | 'disabled'
159
165
  >;
160
166
 
@@ -14,16 +14,17 @@
14
14
  <script setup lang="ts">
15
15
  import BbIcon from '../BbIcon/BbIcon.vue';
16
16
  import type { FallthroughAttrs } from '@/types/fallthrough';
17
- import alertIcon from '@/assets/svgs/alert.svg?raw';
17
+ import alertIconBuiltin from '@/assets/svgs/alert.svg?raw';
18
18
  import type {
19
19
  WarningIconProps,
20
20
  WarningIconEvents,
21
21
  WarningIconSlots,
22
22
  } from './types';
23
- export type { WarningIconProps, WarningIconEvents, WarningIconSlots };
24
-
23
+ import { useInternalIcon } from '@/composables/useInternalIcon';
25
24
  // Type only (`Record<never, never>` has no runtime props to resolve).
26
25
  defineProps</* @vue-ignore */ FallthroughAttrs<'svg', WarningIconProps>>();
26
+ const alertIcon = useInternalIcon('warning', alertIconBuiltin);
27
+ export type { WarningIconProps, WarningIconEvents, WarningIconSlots };
27
28
  </script>
28
29
 
29
30
  <style lang="postcss">
@@ -1,3 +1,3 @@
1
1
  // src/assets/svgs/close.svg?raw
2
- var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M23 23L1 1M23 1L1 23\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"3\" />\n</svg>\n";
2
+ var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\">\n <path d=\"M18 6L6 18M6 6l12 12\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.636\" />\n</svg>\n";
3
3
  export { e as default };
@@ -1,8 +1,8 @@
1
1
  import { FallthroughAttrs } from '../../types/fallthrough.js';
2
2
  import { BbAccordionProps, BbAccordionEvents, BbAccordionSlots } from './types.js';
3
- export type { BbAccordionProps, BbAccordionEvents, BbAccordionSlots };
4
3
  type __VLS_Props = BbAccordionProps & FallthroughAttrs<'div', BbAccordionProps>;
5
4
  type __VLS_Slots = BbAccordionSlots;
5
+ export type { BbAccordionProps, BbAccordionEvents, BbAccordionSlots };
6
6
  type __VLS_ModelProps = {
7
7
  /**
8
8
  * Open / closed, or with `value` the key a group of accordions shares: open