bitboss-ui 3.0.0-beta.74 → 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.
- package/README.md +5 -5
- package/bin/cli.mjs +16 -10
- package/dist/ai/BbAlert.md +1 -1
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +3 -3
- package/dist/ai/BbButton.md +4 -4
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +13 -1
- package/dist/ai/BbColorPalette.md +12 -7
- package/dist/ai/BbConfirm.md +1 -1
- package/dist/ai/BbDatePicker.md +13 -1
- package/dist/ai/BbDatePickerInput.md +18 -2
- package/dist/ai/BbDialog.md +6 -3
- package/dist/ai/BbDropdown.md +174 -77
- package/dist/ai/BbDropdownButton.md +37 -16
- package/dist/ai/BbGallery.md +3 -2
- package/dist/ai/BbIcon.md +10 -10
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbOffCanvas.md +3 -2
- package/dist/ai/BbPopover.md +1 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +227 -105
- package/dist/ai/BbSelectPopover.md +139 -14
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +18 -17
- package/dist/ai/BbTimePicker.md +13 -1
- package/dist/ai/BbTimePickerInput.md +16 -2
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbTree.md +5 -1
- package/dist/ai/CommonPopover.md +1 -0
- package/dist/ai/FlatListBox.md +1 -0
- package/dist/ai/GroupedListBox.md +3 -2
- package/dist/ai/ListBox.md +4 -2
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +310 -7
- package/dist/ai/components.json +33 -35
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +9 -5
- package/dist/ai/guides/calendars-and-digits.md +1 -1
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/icons-policy.md +32 -11
- package/dist/ai/guides/installation-and-plugin-setup.md +24 -23
- package/dist/ai/guides/migration/adoption-checklist.md +1 -1
- package/dist/ai/guides/migration/components/bb-color-palette.md +11 -11
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +1 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -0
- package/dist/ai/guides/migration/components/bb-icon.md +4 -4
- package/dist/ai/guides/migration/components/bb-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +70 -24
- package/dist/ai/guides/migration/v3-beta-css-classes.md +18 -3
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +58 -58
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +1 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCarousel.json +0 -3
- package/dist/ai/manifest/components/BbCheckboxGroup.json +2 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbColorInput.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.json +5 -2
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbDatePicker.json +3 -0
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +3 -1
- package/dist/ai/manifest/components/BbDropdown.json +36 -28
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +21 -11
- package/dist/ai/manifest/components/BbDropdownButton.json +24 -16
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +4 -0
- package/dist/ai/manifest/components/BbGallery.tree.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +3 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +47 -40
- package/dist/ai/manifest/components/BbSelect.tree.json +2 -1
- package/dist/ai/manifest/components/BbSelectPopover.json +14 -7
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +9 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +2 -2
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbTable.json +6 -6
- package/dist/ai/manifest/components/BbTable.tree.json +9 -1
- package/dist/ai/manifest/components/BbTimePicker.json +5 -2
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +1 -0
- package/dist/ai/manifest/components/FlatListBox.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +3 -2
- package/dist/ai/manifest/components/GroupedListBox.tree.json +1 -0
- package/dist/ai/manifest/components/ListBox.json +3 -2
- package/dist/ai/manifest/components/ListBox.tree.json +1 -1
- package/dist/ai/manifest/components/OptionsContainer.json +6 -4
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/manifest/meta.json +0 -3
- package/dist/ai/manifest/types.advanced.json +6 -6
- package/dist/ai/manifest/types.api.json +1 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/onboarding.md +1 -1
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/nuxt/onboarding.md +1 -1
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/source/BbAccordion.md +4 -5
- package/dist/ai/source/BbAvatar.md +128 -11
- package/dist/ai/source/BbBadge.md +18 -7
- package/dist/ai/source/BbBreadcrumbs.md +57 -56
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +8 -6
- package/dist/ai/source/BbCarousel.md +41 -34
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +23 -2
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +47 -3
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +296 -99
- package/dist/ai/source/BbDropdownButton.md +61 -19
- package/dist/ai/source/BbDropdownGroup.md +189 -98
- package/dist/ai/source/BbGallery.md +82 -60
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbNumberInput.md +17 -10
- package/dist/ai/source/BbOffCanvas.md +14 -1
- package/dist/ai/source/BbPagination.md +12 -28
- package/dist/ai/source/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbRating.md +4 -4
- package/dist/ai/source/BbSelect.md +151 -112
- package/dist/ai/source/BbSelectPopover.md +244 -29
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +114 -35
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +21 -2
- package/dist/ai/source/BbToast.md +2 -2
- package/dist/ai/source/BbToastPortal.md +2 -2
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/ClearableButton.md +4 -2
- package/dist/ai/source/CommonPopover.md +24 -1
- package/dist/ai/source/ErrorIcon.md +4 -3
- package/dist/ai/source/FlatListBox.md +33 -7
- package/dist/ai/source/GroupedListBox.md +85 -14
- package/dist/ai/source/ListBox.md +11 -1
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/ai/source/WarningIcon.md +4 -3
- package/dist/assets/svgs/close.svg_raw.js +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +1 -1
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +35 -34
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +62 -43
- package/dist/components/BbAvatar/avatarIdentity.js +25 -0
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +5 -1
- package/dist/components/BbAvatar/types.d.ts +24 -5
- package/dist/components/BbAvatar/types.js +5 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +24 -23
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +66 -64
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +141 -146
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +240 -239
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +503 -502
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +126 -122
- package/dist/components/BbCheckboxGroup/types.d.ts +7 -11
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +2 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +148 -141
- package/dist/components/BbColorInput/types.d.ts +7 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +208 -196
- package/dist/components/BbColorPalette/types.d.ts +7 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +3 -1
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +84 -73
- package/dist/components/BbDatePicker/types.d.ts +7 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +4 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +496 -510
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +219 -211
- package/dist/components/BbDialog/leaveGhost.js +22 -17
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +106 -100
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +416 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +404 -354
- package/dist/components/BbDropdown/DropdownFailures.vue.js +4 -0
- package/dist/components/BbDropdown/DropdownFailures.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +117 -102
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +67 -38
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +44 -20
- package/dist/components/BbDropdown/types.d.ts +109 -87
- package/dist/components/BbDropdown/types.js +3 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +101 -65
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +153 -57
- package/dist/components/BbDropdownButton/types.d.ts +23 -10
- package/dist/components/BbDropdownButton/types.js +4 -0
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +1 -1
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +335 -312
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -1
- package/dist/components/BbIcon/iconCache.js +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +9 -5
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +152 -144
- package/dist/components/BbPagination/BbPagination.vue.d.ts +2 -2
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +138 -136
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -4
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +100 -99
- package/dist/components/BbSelect/BbSelect.vue.d.ts +32 -20
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +217 -196
- package/dist/components/BbSelect/ptKeys.generated.d.ts +128 -96
- package/dist/components/BbSelect/types.d.ts +110 -111
- package/dist/components/BbSelect/types.js +1 -27
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +8 -3
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +728 -653
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +22 -10
- package/dist/components/BbSelectPopover/types.d.ts +32 -17
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +159 -155
- package/dist/components/BbSwitchGroup/types.d.ts +3 -6
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1171 -1152
- package/dist/components/BbTable/BbTableDataRow.js +97 -90
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTabs/BbTabs.vue.d.ts +3 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +145 -134
- package/dist/components/BbTimePicker/types.d.ts +7 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +4 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +290 -280
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +79 -78
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +56 -46
- package/dist/components/BbTree/types.d.ts +1 -1
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +9 -8
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +9 -7
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +122 -102
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +182 -153
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +7 -4
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +86 -77
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +8 -6
- package/dist/composables/useInternalIcon.js +25 -0
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/locales/ar.json +2 -0
- package/dist/i18n/locales/cs.json +2 -0
- package/dist/i18n/locales/da.json +2 -0
- package/dist/i18n/locales/de-CH.json +2 -0
- package/dist/i18n/locales/de.json +2 -0
- package/dist/i18n/locales/el.json +2 -0
- package/dist/i18n/locales/en-GB.json +2 -0
- package/dist/i18n/locales/en.json +2 -0
- package/dist/i18n/locales/es-MX.json +2 -0
- package/dist/i18n/locales/es.json +2 -0
- package/dist/i18n/locales/fa.json +2 -0
- package/dist/i18n/locales/fi.json +2 -0
- package/dist/i18n/locales/fr.json +2 -0
- package/dist/i18n/locales/he.json +2 -0
- package/dist/i18n/locales/hu.json +2 -0
- package/dist/i18n/locales/it.json +2 -0
- package/dist/i18n/locales/ja.json +2 -0
- package/dist/i18n/locales/ko.json +2 -0
- package/dist/i18n/locales/nb.json +2 -0
- package/dist/i18n/locales/nl.json +2 -0
- package/dist/i18n/locales/pl.json +2 -0
- package/dist/i18n/locales/pt-BR.json +2 -0
- package/dist/i18n/locales/pt-PT.json +2 -0
- package/dist/i18n/locales/ro.json +2 -0
- package/dist/i18n/locales/ru.json +2 -0
- package/dist/i18n/locales/sv.json +2 -0
- package/dist/i18n/locales/tr.json +2 -0
- package/dist/i18n/locales/uk.json +2 -0
- package/dist/i18n/locales/zh-CN.json +2 -0
- package/dist/i18n/locales/zh-HK.json +2 -0
- package/dist/i18n/locales/zh-TW.json +2 -0
- package/dist/icon-scan.d.ts +1 -1
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +1038 -451
- package/dist/llms-medium.txt +33 -28
- package/dist/llms.txt +2 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/nuxt.js +1 -1
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Config.d.ts +8 -1
- package/dist/types/ConfigDefaults.d.ts +10 -2
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/internalIcons.d.ts +89 -0
- package/dist/types/internalIcons.js +158 -0
- package/dist/types/ptComponentMap.d.ts +5 -5
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/configDefaults.js +75 -64
- package/dist/utils/iconsOption.js +48 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +10 -16
- package/dist/vite.js +323 -307
- package/llms.txt +2 -2
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/adoption-checklist.json +1 -1
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/update-install.mjs +48 -0
- package/scripts/lib/validate-bb-markup.mjs +93 -12
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
- 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
|
|
25
|
-
*
|
|
26
|
-
* `panel`.
|
|
27
|
-
* @part clear - The ✕
|
|
28
|
-
*
|
|
29
|
-
* @part activator - The button
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
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:
|
|
41
|
-
*
|
|
42
|
-
* @part footer - The band around your `#footer` slot:
|
|
43
|
-
*
|
|
44
|
-
* @part badge - Each selected value's `BbBadge` root with `multiple
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
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"];
|
|
@@ -119,6 +116,17 @@ type BbSelectPtProps = /* @vue-ignore */ PtCompoundProps<typeof BB_SELECT_PT, Pt
|
|
|
119
116
|
export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSelectKnownItems> = BbSelectPtProps & {
|
|
120
117
|
[K in `pt:${BbSelectOptionPtPart}`]?: PtValue | ((ctx: PtItemCtx<PtNoInfer<T>, BbSelectPtState, never, BbSelectSlotRow<PtNoInfer<T>, PtNoInfer<Known>>>) => PtItemResult);
|
|
121
118
|
} & {
|
|
119
|
+
/**
|
|
120
|
+
* Whether the panel is open (`v-model:open`; `v-model` stays the value).
|
|
121
|
+
* Bound, the app opens and closes it; unbound, the initial state.
|
|
122
|
+
*/
|
|
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;
|
|
122
130
|
/**
|
|
123
131
|
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
124
132
|
* without the prefix. See the `pt:<part>` row.
|
|
@@ -127,10 +135,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
127
135
|
[K in `${BbSelectVariantPtPart}:${InputVariantBuiltIn | keyof SelectVariantRegistry}`]?: PtValue;
|
|
128
136
|
};
|
|
129
137
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* 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`.
|
|
134
140
|
* @defaultValue `all.adaptive` (`true`)
|
|
135
141
|
*/
|
|
136
142
|
adaptive?: boolean;
|
|
@@ -141,16 +147,16 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
141
147
|
*/
|
|
142
148
|
description?: string;
|
|
143
149
|
/**
|
|
144
|
-
* Props for the phone sheet (the `BbOffCanvas`
|
|
145
|
-
*
|
|
146
|
-
*
|
|
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).
|
|
147
153
|
*/
|
|
148
154
|
offCanvasProps?: Partial<BbOffCanvasProps>;
|
|
149
155
|
/**
|
|
150
156
|
* Hides the panel's search field: `true` everywhere, `'mobile'` /
|
|
151
|
-
* `'desktop'` on that platform
|
|
152
|
-
*
|
|
153
|
-
*
|
|
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.
|
|
154
160
|
*
|
|
155
161
|
* @defaultValue `'auto'`
|
|
156
162
|
*/
|
|
@@ -170,13 +176,13 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
170
176
|
*/
|
|
171
177
|
autofocus?: InputHTMLAttributes['autofocus'];
|
|
172
178
|
/**
|
|
173
|
-
*
|
|
174
|
-
*
|
|
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.
|
|
175
181
|
*/
|
|
176
182
|
clearable?: boolean;
|
|
177
183
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
184
|
+
* Shows the picks as one comma-separated string; no close button to
|
|
185
|
+
* deselect one there.
|
|
180
186
|
*/
|
|
181
187
|
comma?: boolean;
|
|
182
188
|
/**
|
|
@@ -187,10 +193,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
187
193
|
*/
|
|
188
194
|
compact?: boolean;
|
|
189
195
|
/**
|
|
190
|
-
* The field box's look
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
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`.
|
|
194
200
|
*
|
|
195
201
|
* @defaultValue `'outline'`
|
|
196
202
|
*/
|
|
@@ -226,10 +232,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
226
232
|
*/
|
|
227
233
|
disabled?: boolean;
|
|
228
234
|
/**
|
|
229
|
-
* After
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
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
|
|
238
|
+
* never prunes.
|
|
233
239
|
*/
|
|
234
240
|
enforceCoherence?: boolean;
|
|
235
241
|
/**
|
|
@@ -239,11 +245,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
239
245
|
*/
|
|
240
246
|
errors?: string | string[];
|
|
241
247
|
/**
|
|
242
|
-
* What typing filters on: empty =
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* "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".
|
|
247
252
|
*
|
|
248
253
|
* @defaultValue `[]`
|
|
249
254
|
*/
|
|
@@ -285,22 +290,20 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
285
290
|
*/
|
|
286
291
|
id?: HTMLAttributes['id'];
|
|
287
292
|
/**
|
|
288
|
-
* The options: an array, or a provider called with a
|
|
289
|
-
* `BbSelectItemsContext` (`query`, `reason`, `modelValue`, `signal`)
|
|
290
|
-
*
|
|
291
|
-
* by
|
|
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 `[]`.
|
|
292
297
|
*/
|
|
293
298
|
items: T[] | ((context: BbSelectItemsContext) => T[] | Promise<T[]>);
|
|
294
299
|
/**
|
|
295
|
-
*
|
|
296
|
-
*
|
|
297
|
-
* 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.
|
|
298
302
|
*/
|
|
299
303
|
headerHeight?: number;
|
|
300
304
|
/**
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* every viewport.
|
|
305
|
+
* Option height (px): 28 (24 compact; 44 / 36 on mobile viewports). An
|
|
306
|
+
* explicit value wins on every viewport.
|
|
304
307
|
*
|
|
305
308
|
* @defaultValue `28`
|
|
306
309
|
*/
|
|
@@ -315,10 +318,10 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
315
318
|
*/
|
|
316
319
|
itemText?: ItemAccessor<T, string>;
|
|
317
320
|
/**
|
|
318
|
-
*
|
|
319
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
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.
|
|
322
325
|
*/
|
|
323
326
|
itemProps?: BbSelectItemProps<T>;
|
|
324
327
|
/**
|
|
@@ -333,9 +336,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
333
336
|
/**
|
|
334
337
|
* `{ value, label }` rows naming the value the app already holds, whatever
|
|
335
338
|
* the options' shape: no request until the first open (`prefill: true`
|
|
336
|
-
* still loads). Not options
|
|
337
|
-
*
|
|
338
|
-
* 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.
|
|
339
341
|
*/
|
|
340
342
|
knownItems?: [Known] extends [undefined] ? BbSelectKnownItems : Known;
|
|
341
343
|
/**
|
|
@@ -366,16 +368,16 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
366
368
|
*/
|
|
367
369
|
max?: number;
|
|
368
370
|
/**
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
+
* Labels shown before collapsing to a count summary. Unset, they collapse
|
|
372
|
+
* only when they overflow the field.
|
|
371
373
|
*
|
|
372
374
|
* @defaultValue `Infinity`
|
|
373
375
|
*/
|
|
374
376
|
maxSelectedLabels?: number;
|
|
375
377
|
/**
|
|
376
378
|
* Characters to type (trimmed) before the query searches. Below it the
|
|
377
|
-
* query counts as empty: no `'search'` call, no filtering
|
|
378
|
-
*
|
|
379
|
+
* query counts as empty: no `'search'` call, no filtering; the panel says
|
|
380
|
+
* how many to type. Slots still get the typed `query`.
|
|
379
381
|
*
|
|
380
382
|
* @defaultValue `0`
|
|
381
383
|
*/
|
|
@@ -403,8 +405,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
403
405
|
*/
|
|
404
406
|
emptyText?: string;
|
|
405
407
|
/**
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
+
* The empty state's text while the latest load FAILED (the provider
|
|
409
|
+
* threw): `emptyText`'s twin for that case.
|
|
408
410
|
*
|
|
409
411
|
* @defaultValue the localized `common.failedText` ("Couldn't load items")
|
|
410
412
|
*/
|
|
@@ -420,9 +422,8 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
420
422
|
placeholder?: InputHTMLAttributes['placeholder'];
|
|
421
423
|
/**
|
|
422
424
|
* When the options first load: `'interaction'` on first open, `true` on
|
|
423
|
-
* mount, `false`
|
|
424
|
-
*
|
|
425
|
-
* once.
|
|
425
|
+
* mount, `false` once the user types (on open with `disable-writing`). An
|
|
426
|
+
* array `items` or a seeded model loads at once.
|
|
426
427
|
*
|
|
427
428
|
* @defaultValue `'interaction'`
|
|
428
429
|
*/
|
|
@@ -459,15 +460,13 @@ export type BbSelectProps<T, Known extends BbSelectKnownItems | undefined = BbSe
|
|
|
459
460
|
*/
|
|
460
461
|
selectable?: boolean | ((item: T) => boolean);
|
|
461
462
|
/**
|
|
462
|
-
*
|
|
463
|
-
* is greater than `maxSelectedLabels`.
|
|
463
|
+
* The text shown when the selected labels outnumber `maxSelectedLabels`.
|
|
464
464
|
*/
|
|
465
465
|
selectedLabelsFn?: (count: number) => string;
|
|
466
466
|
/**
|
|
467
|
-
* Keeps
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
* `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).
|
|
471
470
|
*/
|
|
472
471
|
stash?: boolean;
|
|
473
472
|
/**
|
|
@@ -485,6 +484,10 @@ export type BbSelectEvents<V = any> = {
|
|
|
485
484
|
(e: 'shown'): void;
|
|
486
485
|
/** Emitted as soon as the options surface starts to close. */
|
|
487
486
|
(e: 'hide'): void;
|
|
487
|
+
/** The panel opened or closed (`v-model:open`). */
|
|
488
|
+
(e: 'update:open', value: boolean): void;
|
|
489
|
+
/** `v-model:query`: the search field's text. */
|
|
490
|
+
(e: 'update:query', value: string): void;
|
|
488
491
|
/** Emitted once the options surface has finished closing. */
|
|
489
492
|
(e: 'hidden'): void;
|
|
490
493
|
/** Emitted when the activator loses focus. Forwards the original DOM `FocusEvent`. */
|
|
@@ -503,9 +506,9 @@ export type BbSelectEvents<V = any> = {
|
|
|
503
506
|
(e: 'input', event: Event): void;
|
|
504
507
|
(e: 'update:modelValue', value: V): void;
|
|
505
508
|
/**
|
|
506
|
-
*
|
|
507
|
-
* the
|
|
508
|
-
*
|
|
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.
|
|
509
512
|
*/
|
|
510
513
|
(e: 'option:add', text: string): void;
|
|
511
514
|
};
|
|
@@ -602,13 +605,13 @@ export type BbSelectPanelSlotProps = {
|
|
|
602
605
|
};
|
|
603
606
|
export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = undefined> = {
|
|
604
607
|
/**
|
|
605
|
-
*
|
|
606
|
-
*
|
|
608
|
+
* Pinned atop the options panel, above the search field, on the popover
|
|
609
|
+
* and the phone sheet alike.
|
|
607
610
|
*/
|
|
608
611
|
header?: (props: BbSelectPanelSlotProps) => any;
|
|
609
612
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
613
|
+
* Pinned under the options list, on the popover and the phone sheet
|
|
614
|
+
* alike.
|
|
612
615
|
*/
|
|
613
616
|
footer?: (props: BbSelectPanelSlotProps) => any;
|
|
614
617
|
/**
|
|
@@ -631,8 +634,8 @@ export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = unde
|
|
|
631
634
|
*/
|
|
632
635
|
label?: (props: BbSelectLabelSlotProps) => any;
|
|
633
636
|
/**
|
|
634
|
-
* Replaces the description text
|
|
635
|
-
* renders the
|
|
637
|
+
* Replaces the description text; alone (no `description` prop) it still
|
|
638
|
+
* renders the region, wired into `aria-describedby`.
|
|
636
639
|
*/
|
|
637
640
|
description?: (props: BbSelectDescriptionSlotProps) => any;
|
|
638
641
|
/**
|
|
@@ -642,35 +645,31 @@ export type BbSelectSlots<T, Known extends BbSelectKnownItems | undefined = unde
|
|
|
642
645
|
query: string;
|
|
643
646
|
}) => any;
|
|
644
647
|
/**
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
* 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.
|
|
649
651
|
*/
|
|
650
652
|
empty?: (props: {
|
|
651
653
|
query: string;
|
|
652
654
|
focus: () => void;
|
|
653
655
|
close: () => Promise<void>;
|
|
654
|
-
error: unknown;
|
|
655
656
|
}) => any;
|
|
656
657
|
/**
|
|
657
|
-
*
|
|
658
|
-
*
|
|
659
|
-
* `
|
|
660
|
-
* 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`.
|
|
661
661
|
*/
|
|
662
662
|
option?: (props: BbSelectOptionSlotProps<T, Known>) => any;
|
|
663
663
|
/**
|
|
664
|
-
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
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.
|
|
667
667
|
*/
|
|
668
668
|
group?: (props: BbSelectGroupSlotProps<T>) => any;
|
|
669
669
|
/**
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
* `known
|
|
673
|
-
* (`known: true`) until the list brings the real one.
|
|
670
|
+
* Each selection's badge with `multiple` (not in `comma` mode, nor the
|
|
671
|
+
* "+N" summary). With `known-items`, `item` is the known `{ value, label }`
|
|
672
|
+
* row (`known: true`) until the list brings the real one.
|
|
674
673
|
*/
|
|
675
674
|
chip?: (props: BbSelectChipSlotProps<T, Known>) => any;
|
|
676
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,15 +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
|
} & {
|
|
28
|
+
open?: boolean;
|
|
29
|
+
query?: string;
|
|
27
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;
|
|
28
31
|
activator?: import('../../index.js').ElementOrComponentRef;
|
|
29
32
|
adaptive?: boolean;
|
|
@@ -77,7 +80,7 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
|
|
|
77
80
|
itemValue?: ItemKeyInput<Item, A> | ItemGetter<Item, any>;
|
|
78
81
|
itemText?: ItemKeyInput<Item, Tx> | ItemGetter<Item, string>;
|
|
79
82
|
multiple?: MultipleInput<M>;
|
|
80
|
-
} & Omit<import('vue').DialogHTMLAttributes & import('vue').HTMLAttributes, `pt:${string}&${string}` | "anchor" | "readonly" | "disabled" | "loading" | "pt" | "onClick" | "dependencies" | "compact" | "autocomplete" | "adaptive" | "transitionDuration" | "modelValue" | "clearable" | "
|
|
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"> & {
|
|
81
84
|
"aria-describedby"?: string | string[] | undefined;
|
|
82
85
|
"aria-invalid"?: boolean | undefined;
|
|
83
86
|
}) & {
|
|
@@ -93,6 +96,8 @@ declare const __VLS_export: <const Item = any, Known extends BbSelectKnownItems
|
|
|
93
96
|
onShow?: (() => any) | undefined;
|
|
94
97
|
onShown?: (() => any) | undefined;
|
|
95
98
|
onHidden?: (() => any) | undefined;
|
|
99
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
100
|
+
"onUpdate:query"?: ((value: string) => any) | undefined;
|
|
96
101
|
"onOption:add"?: ((text: string) => any) | undefined;
|
|
97
102
|
}> & (typeof globalThis extends {
|
|
98
103
|
__VLS_PROPS_FALLBACK: infer P;
|