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
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
{"name":"name","common":true},
|
|
41
41
|
{"name":"numberOfMonths","type":"number","default":"1","description":"How many months the calendar popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap."},
|
|
42
42
|
{"name":"offCanvasProps","common":true},
|
|
43
|
+
{"name":"open","common":true},
|
|
43
44
|
{"name":"persistentHint","common":true},
|
|
44
45
|
{"name":"placeholder","common":true},
|
|
45
46
|
{"name":"prepend:icon","common":true},
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
{"name":"show","signature":"(): void","description":"Emitted as soon as the calendar surface starts to open (the popover, or the sheet on a phone)."},
|
|
72
73
|
{"name":"shown","signature":"(): void","description":"Emitted once the calendar surface is open and its open transition has finished."},
|
|
73
74
|
{"name":"update:modelValue","signature":"(value: string | string[] | null): void","description":"Emitted whenever the selected date value changes. Payload is `null` for cleared values, a single string for single-date mode, or a two-element array for range mode."},
|
|
75
|
+
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."},
|
|
74
76
|
{"name":"update:time","signature":"(value: string | string[] | null): void","description":"Companion time model (`v-model:time`), emitted alongside every value change while `type=\"datetime\"` is on. Always 24-hour `HH:mm` (or `HH:mm:ss` with `seconds`); `null` when cleared, an array in range mode."}
|
|
75
77
|
],
|
|
76
78
|
"slots": [
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
"exposed": [],
|
|
91
93
|
"models": [
|
|
92
94
|
{"name":"modelValue","type":"string | string[] | null | undefined"},
|
|
95
|
+
{"name":"open","type":"boolean | undefined"},
|
|
93
96
|
{"name":"time","type":"string | string[] | null | undefined"}
|
|
94
97
|
],
|
|
95
98
|
"pt": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{"to":"BbOffCanvas","mapping":"{ root: 'root', header: 'header', title: 'title', description: 'description', content: 'content', footer: 'footer', close: 'close', sheet: 'root', }"}
|
|
14
14
|
],
|
|
15
15
|
"nodes": [
|
|
16
|
-
{"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]},
|
|
16
|
+
{"name":"CloseButton","kind":"internal","cssProps":[{"name":"--size","documented":true,"readBy":["bb-close-button"]},{"name":"--p","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-size","documented":true,"readBy":["bb-close-button"]},{"name":"--icon-inset","documented":true},{"name":"--ring-t","documented":false,"readBy":["bb-close-button"]}],"children":[{"name":"BbIcon","kind":"public"}]},
|
|
17
17
|
{"name":"BbOffCanvas","kind":"public"}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"__content",
|
|
38
38
|
"__description",
|
|
39
39
|
"__empty",
|
|
40
|
+
"__empty--failed",
|
|
40
41
|
"__footer",
|
|
41
42
|
"__header",
|
|
42
43
|
"__item",
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
{"class":"bb-dialog-escape"},
|
|
116
117
|
{"class":"bb-dialog__body-content","tag":"div"},
|
|
117
118
|
{"class":"bb-dialog__empty"},
|
|
119
|
+
{"class":"bb-dialog__empty--failed"},
|
|
118
120
|
{"class":"bb-dialog__item"},
|
|
119
121
|
{"class":"bb-dialog__item--aligned"},
|
|
120
122
|
{"class":"bb-dialog__item--description"},
|
|
@@ -8,46 +8,49 @@
|
|
|
8
8
|
"source": "ai/source/BbDropdown.md",
|
|
9
9
|
"props": [
|
|
10
10
|
{"name":"activator","type":"ElementOrComponentRef","description":"An external activator (element or component ref): the slot isn't rendered; the listeners and ARIA (`aria-haspopup` / `aria-expanded` / `aria-controls`) go on it, so don't add your own."},
|
|
11
|
-
{"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"On mobile (below `config.mobileMaxWidth`),
|
|
11
|
+
{"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"On mobile (below `config.mobileMaxWidth`), the menu is a bottom sheet drilling into submenus a level at a time, not hover flyouts; slots and selection unchanged. Unset: the global `all.adaptive`."},
|
|
12
12
|
{"name":"anchor","type":"ElementOrComponentRef | VirtualAnchor","default":"the activator element","description":"What the panel positions against instead of the activator (e.g. a wrapper around it): an element, a component ref or a virtual box. It also sets a percentage `width`. Ignored with `placement=\"cursor\"`."},
|
|
13
|
-
{"name":"boundary","type":"string | ElementOrComponentRef","description":"Keeps the panel inside this element beside its trigger (sideways
|
|
14
|
-
{"name":"closeOnSelect","type":"boolean","default":"unset (close after a single-choice change)","description":"Whether a selection closes the menu. Unset: a
|
|
15
|
-
{"name":"compact","type":"boolean","default":"undefined","description":"Compact density, the `BbSelect` ladder: flyout rows
|
|
13
|
+
{"name":"boundary","type":"string | ElementOrComponentRef","description":"Keeps the panel inside this element beside its trigger (sideways under a menu); away from it only the viewport flips it. An element, component ref or CSS selector (a `useTemplateRef`, not `$refs.x`). In a `BbTable`: its left and right edges."},
|
|
14
|
+
{"name":"closeOnSelect","type":"boolean","default":"unset (close after a single-choice change)","description":"Whether a selection closes the menu. Unset: a single-choice group's change closes it (an untick too, any depth), a `multiple` group stays open. `true`: every change closes it; `false`: none."},
|
|
15
|
+
{"name":"compact","type":"boolean","default":"undefined","description":"Compact density, the `BbSelect` ladder: flyout rows 28 → 24px, sheet rows 44 → 36px (still a touch target). The label size stays."},
|
|
16
16
|
{"name":"disabled","type":"boolean","default":"false","description":"Disables the component"},
|
|
17
|
-
{"name":"eager","type":"boolean","default":"false","description":"Renders the
|
|
18
|
-
{"name":"emptyText","type":"string","description":"
|
|
17
|
+
{"name":"eager","type":"boolean","default":"false","description":"Renders the panel (the phone sheet's too) at mount, not on the first open, and keeps its rows after a close; otherwise rows mount on each open and go after the close."},
|
|
18
|
+
{"name":"emptyText","type":"string","description":"A pipeline group's no-items row; its own `emptyText` wins. Default: `common.emptyText`."},
|
|
19
19
|
{"name":"enforceCoherence","type":"boolean","default":"false","description":"Default for pipeline groups: drop selections that are no longer present in a group's current items (e.g. after a `dependencies` re-fetch) from the selection and `v-model`. A group's own `enforceCoherence` overrides this."},
|
|
20
|
-
{"name":"failedText","type":"string","description":"
|
|
20
|
+
{"name":"failedText","type":"string","description":"A pipeline group's failed-load row (its getter threw); its own `failedText` wins. Default: `common.failedText`."},
|
|
21
21
|
{"name":"id","type":"string","description":"Names this dropdown: the activator's id (unless it already has one), the menu's `menu_<id>`, and the key `useBbDropdown(id)` and a companion `BbDropdownGroup` pair by. Generated when omitted."},
|
|
22
|
-
{"name":"items","type":"(BbDropdownItem | PrimitiveRow)[]","required":true,"default":"[]","description":"The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a flat array for one group, nested arrays for divider-separated groups, or `InternalGroup` objects for titled / selectable
|
|
22
|
+
{"name":"items","type":"(BbDropdownItem | PrimitiveRow)[]","required":true,"default":"[]","description":"The menu rows, each a `BbBaseButton` (`button`, `a` or `router-link`): a flat array for one group, nested arrays for divider-separated groups, or `InternalGroup` objects for titled / selectable groups. A row's own `items` opens a submenu."},
|
|
23
23
|
{"name":"keepActivator","type":"boolean","default":"false","description":"Keeps the trigger when no row is visible (by default it is hidden): inert, no popup ARIA, `empty` in the activator slot. A `contextMenu` trigger always stays."},
|
|
24
|
-
{"name":"loadingText","type":"string","description":"
|
|
24
|
+
{"name":"loadingText","type":"string","description":"A pipeline group's loading row; its own `loadingText` wins. Default: `common.loadingText`."},
|
|
25
|
+
{"name":"modelValue","type":"boolean","default":"undefined","description":"Whether the menu is open (`v-model`): `true` opens it from code at its activator or `anchor`. Unbound: the initial state."},
|
|
25
26
|
{"name":"offCanvasProps","common":true},
|
|
26
27
|
{"name":"offset","common":true},
|
|
27
28
|
{"name":"padding","common":true},
|
|
28
29
|
{"name":"placement","type":"\"cursor\" | Placement","default":"\"bottom\"","values":["start","end","top","bottom","left","right","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end","start-start","start-end","end-start","end-end","cursor"],"description":"Position relative to the activator; `'cursor'` anchors at the mouse/touch point. No arrow (tooltips only)."},
|
|
29
|
-
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"header\", \"footer\", \"input\", \"list\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly item: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemText: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemIcon: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemDescription: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly check: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; }; readonly variant: { readonly names: readonly [\"default\", \"destructive\"]; readonly option: \"dropdownItemVariants\"; readonly parts: readonly [\"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"submenu:open\"?: PtValue | undefined; \"item:activeLink\"?: PtValue | undefined; \"item:exactActiveLink\"?: PtValue | undefined; \"itemDescription:activeLink\"?: PtValue | undefined; \"itemDescription:exactActiveLink\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:activeLink\"?: PtValue | undefined; \"itemText:exactActiveLink\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:activeLink\"?: PtValue | undefined; \"itemIcon:exactActiveLink\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:activeLink\"?: PtValue | undefined; \"check:exactActiveLink\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"item:default\"?: PtValue | undefined; \"item:destructive\"?: PtValue | undefined; \"itemDescription:default\"?: PtValue | undefined; \"itemDescription:destructive\"?: PtValue | undefined; \"itemText:default\"?: PtValue | undefined; \"itemText:destructive\"?: PtValue | undefined; \"itemIcon:default\"?: PtValue | undefined; \"itemIcon:destructive\"?: PtValue | undefined; \"check:default\"?: PtValue | undefined; \"check:destructive\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
30
|
+
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"header\", \"footer\", \"box\", \"input\", \"list\", \"groupLabel\", \"groupHeader\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly item: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemText: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemIcon: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly itemDescription: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; readonly check: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\"]; }; readonly variant: { readonly names: readonly [\"default\", \"destructive\"]; readonly option: \"dropdownItemVariants\"; readonly parts: readonly [\"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\"]; }; }> & { footer?: PtValue | undefined; header?: PtValue | undefined; input?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; box?: PtValue | undefined; sheet?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; groupLabel?: PtValue | undefined; groupHeader?: PtValue | undefined; \"list:open\"?: PtValue | undefined; \"itemDescription:open\"?: PtValue | undefined; \"itemText:open\"?: PtValue | undefined; \"groupLabel:open\"?: PtValue | undefined; \"groupHeader:open\"?: PtValue | undefined; \"itemIcon:open\"?: PtValue | undefined; \"check:open\"?: PtValue | undefined; \"submenu:open\"?: PtValue | undefined; \"item:activeLink\"?: PtValue | undefined; \"item:exactActiveLink\"?: PtValue | undefined; \"itemDescription:activeLink\"?: PtValue | undefined; \"itemDescription:exactActiveLink\"?: PtValue | undefined; \"itemDescription:selected\"?: PtValue | undefined; \"itemText:disabled\"?: PtValue | undefined; \"itemText:activeLink\"?: PtValue | undefined; \"itemText:exactActiveLink\"?: PtValue | undefined; \"itemText:selected\"?: PtValue | undefined; \"itemIcon:disabled\"?: PtValue | undefined; \"itemIcon:activeLink\"?: PtValue | undefined; \"itemIcon:exactActiveLink\"?: PtValue | undefined; \"itemIcon:selected\"?: PtValue | undefined; \"check:disabled\"?: PtValue | undefined; \"check:activeLink\"?: PtValue | undefined; \"check:exactActiveLink\"?: PtValue | undefined; \"check:selected\"?: PtValue | undefined; \"item:default\"?: PtValue | undefined; \"item:destructive\"?: PtValue | undefined; \"itemDescription:default\"?: PtValue | undefined; \"itemDescription:destructive\"?: PtValue | undefined; \"itemText:default\"?: PtValue | undefined; \"itemText:destructive\"?: PtValue | undefined; \"itemIcon:default\"?: PtValue | undefined; \"itemIcon:destructive\"?: PtValue | undefined; \"check:default\"?: PtValue | undefined; \"check:destructive\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownPtState, \"default\" | \"destructive\", { readonly item: InternalItem; }> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
30
31
|
{"name":"queryDebounceTime","type":"number","default":"300","description":"Debounce (ms) applied to the async re-fetch a `searchable` group fires as the user types. Applies to every searchable group in the menu."},
|
|
31
|
-
{"name":"transitionDuration","type":"number","default":"150","description":"The open / close transition
|
|
32
|
-
{"name":"trigger","type":"DropdownTrigger | DropdownTrigger[]","default":"\"click\"","description":"
|
|
32
|
+
{"name":"transitionDuration","type":"number","default":"150","description":"The open / close transition (ms). Menus take the fast 150, not the popovers' 250: a menu is picked from and gone, quicker than a panel you read or edit."},
|
|
33
|
+
{"name":"trigger","type":"DropdownTrigger | DropdownTrigger[]","default":"\"click\"","description":"What opens the menu, one or an array: `'click'` (left-click / tap) or `'contextMenu'` (right-click; long-press on mobile)."},
|
|
33
34
|
{"name":"width","type":"string | number","default":"\"auto\"","description":"Width of the dropdown in pixels, percentage, or 'auto' to fit content."}
|
|
34
35
|
],
|
|
35
36
|
"events": [
|
|
36
37
|
{"name":"hidden","signature":"(): void","description":"Emitted once the menu has finished closing."},
|
|
37
38
|
{"name":"hide","signature":"(): void","description":"Emitted as soon as the menu starts to close."},
|
|
38
|
-
{"name":"item:selected","signature":"(value: any): void","description":"The user selected a row in a selectable group, at the click
|
|
39
|
+
{"name":"item:selected","signature":"(value: any): void","description":"The user selected a row in a selectable group, at the click, even when a controlled companion's app then refuses it. Payload: the row's value (`item-value` for pipeline groups, else `value`)."},
|
|
39
40
|
{"name":"item:unselected","signature":"(value: any): void","description":"The user unselected a row (a multiple toggle, a `clearable` re-click, a chip ×, or the old value a single pick replaces). Payload is the item's resolved value, matching `item:selected`."},
|
|
40
41
|
{"name":"show","signature":"(): void","description":"Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open."},
|
|
41
|
-
{"name":"shown","signature":"(): void","description":"Emitted once the menu is open and its open transition has finished."}
|
|
42
|
+
{"name":"shown","signature":"(): void","description":"Emitted once the menu is open and its open transition has finished."},
|
|
43
|
+
{"name":"update:modelValue","signature":"(value: boolean): void","description":"The menu opened or closed (`v-model`): `true` on open, `false` on close."}
|
|
42
44
|
],
|
|
43
45
|
"slots": [
|
|
44
46
|
{"name":"activator","type":"BbDropdownActivatorSlotProps","fields":["disabled?: boolean","empty: boolean","loading: boolean","open: boolean","placement: Placement | \"cursor\"","props: BbDropdownActivatorProps"],"description":"The element that triggers the dropdown to open. Spread `props` onto your trigger element."},
|
|
45
47
|
{"name":"default","type":"any","description":"Hosts `<BbDropdownGroup>` companions. They register their group with the dropdown and render nothing themselves."},
|
|
46
|
-
{"name":"empty","type":"BbDropdownPlaceholderSlotProps","fields":["groupId?: string","query: string","text: string"],"description":"Replaces the
|
|
48
|
+
{"name":"empty","type":"BbDropdownPlaceholderSlotProps","fields":["groupId?: string","query: string","text: string"],"description":"Replaces the placeholder row of a pipeline group that resolved to no items, once per empty group. A failed load is not empty: it keeps its own row (error icon, `failedText`)."},
|
|
47
49
|
{"name":"footer","type":"BbDropdownEdgeSlotProps","fields":["disabled?: boolean","open: boolean","placement: Placement | \"cursor\""],"description":"Pinned below the rows, outside their scroll, with a divider — for action buttons."},
|
|
50
|
+
{"name":"group","type":"BbDropdownGroupSlotProps","fields":["text: string","item: unknown","index: number","length: number","disabled: boolean"],"description":"Every group's `groupBy` headings (`BbSelect`'s `#group` scope); `#<groupId>:group` beats it."},
|
|
48
51
|
{"name":"header","type":"BbDropdownEdgeSlotProps","fields":["disabled?: boolean","open: boolean","placement: Placement | \"cursor\""],"description":"Pinned above the rows, outside their scroll, with a divider — for a title or a filter field."},
|
|
49
|
-
{"name":"item:append","type":"BbDropdownItemSlotProps","fields":["description?: string","disabled?: boolean","group: BbDropdownSlotGroup","groupTitle: boolean","level: number","index: number","item: InternalItem","loading: boolean","open: boolean","placement: Placement | \"cursor\"","selected: boolean","label: string","activeLink?: boolean","exactActiveLink?: boolean"],"description":"The trailing region of every row (and group
|
|
50
|
-
{"name":"item:prepend","type":"BbDropdownItemSlotProps","fields":["description?: string","disabled?: boolean","group: BbDropdownSlotGroup","groupTitle: boolean","level: number","index: number","item: InternalItem","loading: boolean","open: boolean","placement: Placement | \"cursor\"","selected: boolean","label: string","activeLink?: boolean","exactActiveLink?: boolean"],"description":"The leading region of every row (and group title line), replacing its `prepend:icon
|
|
52
|
+
{"name":"item:append","type":"BbDropdownItemSlotProps","fields":["description?: string","disabled?: boolean","group: BbDropdownSlotGroup","groupTitle: boolean","level: number","index: number","item: InternalItem","loading: boolean","open: boolean","placement: Placement | \"cursor\"","selected: boolean","label: string","activeLink?: boolean","exactActiveLink?: boolean"],"description":"The trailing region of every row (and group label), replacing its `append:icon` wherever it renders. A named slot wins; a submenu chevron or a selected row's check takes its place."},
|
|
53
|
+
{"name":"item:prepend","type":"BbDropdownItemSlotProps","fields":["description?: string","disabled?: boolean","group: BbDropdownSlotGroup","groupTitle: boolean","level: number","index: number","item: InternalItem","loading: boolean","open: boolean","placement: Placement | \"cursor\"","selected: boolean","label: string","activeLink?: boolean","exactActiveLink?: boolean"],"description":"The leading region of every row (and group title line), replacing its `prepend:icon` wherever it renders. A named slot wins."},
|
|
51
54
|
{"name":"loading","type":"BbDropdownPlaceholderSlotProps","fields":["groupId?: string","query: string","text: string"],"description":"Replaces the default loading placeholder row shown in a pipeline group while its async items load. Rendered once per loading group."},
|
|
52
55
|
{"name":"<value>","type":"BbDropdownItemSlotProps","description":"One row's content (label and description), by its value; in a fetched group, by its resolved `itemValue`.","dynamic":true},
|
|
53
56
|
{"name":"<value>:prepend","type":"BbDropdownItemSlotProps","description":"One row's leading region; replaces its `prepend:icon`.","dynamic":true},
|
|
@@ -55,30 +58,36 @@
|
|
|
55
58
|
{"name":"<groupId>:item","type":"BbDropdownItemSlotProps","description":"The content of every row of that group, and no other; a row's own `#<value>` still wins.","dynamic":true},
|
|
56
59
|
{"name":"<groupId>:item:prepend","type":"BbDropdownItemSlotProps","description":"The leading region of every row of that group — e.g. an avatar per record, drawn from `item.meta`, while other rows keep their `prepend:icon`.","dynamic":true},
|
|
57
60
|
{"name":"<groupId>:item:append","type":"BbDropdownItemSlotProps","description":"The trailing region of every row of that group; replaces their `append:icon`. The check takes its place on the selected row.","dynamic":true},
|
|
58
|
-
{"name":"<groupId
|
|
61
|
+
{"name":"<groupId>:label","type":"BbDropdownItemSlotProps","description":"That group's title content (`item` is the group, `groupTitle` is `true`).","dynamic":true},
|
|
59
62
|
{"name":"<groupId>:prepend","type":"BbDropdownItemSlotProps","description":"The leading region of that group's title line.","dynamic":true},
|
|
60
|
-
{"name":"<groupId>:append","type":"BbDropdownItemSlotProps","description":"The trailing region of that group's title line.","dynamic":true}
|
|
63
|
+
{"name":"<groupId>:append","type":"BbDropdownItemSlotProps","description":"The trailing region of that group's title line.","dynamic":true},
|
|
64
|
+
{"name":"<groupId>:group","type":"BbDropdownGroupSlotProps","description":"That group's `groupBy` headings; beats `group`.","dynamic":true}
|
|
61
65
|
],
|
|
62
66
|
"exposed": [],
|
|
63
|
-
"models": [
|
|
67
|
+
"models": [
|
|
68
|
+
{"name":"modelValue","type":"boolean | undefined"}
|
|
69
|
+
],
|
|
64
70
|
"pt": {
|
|
65
71
|
"parts": [
|
|
66
|
-
{"name":"root","description":"The floating element
|
|
72
|
+
{"name":"root","description":"The floating element, an invisible positioning wrapper; a `class` on the component lands here. No node on the phone sheet (style `panel` there).","states":["open"]},
|
|
67
73
|
{"name":"panel","description":"The menu surface you see — the bordered flyout box on desktop, the sheet itself on a phone.","states":["open"]},
|
|
68
|
-
{"name":"sheet","description":"The bottom sheet
|
|
74
|
+
{"name":"sheet","description":"The phone's bottom sheet (the `BbOffCanvas` root), never the desktop surface; applied after `panel`, so it wins a conflict.","states":["open"]},
|
|
69
75
|
{"name":"header","description":"The menu's header band.","states":["open"]},
|
|
70
76
|
{"name":"footer","description":"The menu's footer band.","states":["open"]},
|
|
71
|
-
{"name":"
|
|
72
|
-
{"name":"
|
|
77
|
+
{"name":"box","description":"Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone.","states":["open"]},
|
|
78
|
+
{"name":"input","description":"Every searchable group's search field, desktop and phone alike. Its magnifier glyph is chrome.","states":["open"]},
|
|
79
|
+
{"name":"list","description":"The top-level entries' container between the bands (a flex column, 1px gap; on a phone, the sheet's). A submenu's list is not reached.","states":["open"]},
|
|
80
|
+
{"name":"groupLabel","description":"Every group's label row (its `label` and icons; the row an `onClick` group activates). `#<id>:label` replaces its content.","states":["open"]},
|
|
81
|
+
{"name":"groupHeader","description":"Every `groupBy` heading (sticky). `#group` / `#<id>:group` replace its content.","states":["open"]},
|
|
73
82
|
{"name":"item","description":"One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.","rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
74
83
|
{"name":"itemText","description":"An entry's label (its `label`) — resolved with that entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
75
84
|
{"name":"itemIcon","description":"An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
76
|
-
{"name":"itemDescription","description":"An entry's muted second line (its `description`)
|
|
85
|
+
{"name":"itemDescription","description":"An entry's muted second line (its `description`), with the entry's states. A per-entry `#<value>` slot replaces it. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
77
86
|
{"name":"check","description":"A checked entry's tick, outside the row slots: `pt:check=\"hidden\"` spares your own glyph. Also takes a per-item function.","rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
78
87
|
{"name":"submenu","description":"Every submenu's flyout box (desktop only). Also takes a per-item function, called with the entry that opens it.","states":["open"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"}
|
|
79
88
|
],
|
|
80
89
|
"states": [
|
|
81
|
-
{"name":"activeLink","description":"Per node, on the entry parts: an entry whose link (`to` / `href`)
|
|
90
|
+
{"name":"activeLink","description":"Per node, on the entry parts: an entry whose link (`to` / `href`) is the current page or an ancestor (its `activeClass` is on). The weakest state."},
|
|
82
91
|
{"name":"exactActiveLink","description":"Per node, on the entry parts: an entry whose link points at the current page itself — its `exactActiveClass` is on."},
|
|
83
92
|
{"name":"selected","description":"Per node, on the entry parts: a selectable group's checked entry."},
|
|
84
93
|
{"name":"disabled","description":"Per node, on the entry parts: an entry that is disabled."},
|
|
@@ -93,8 +102,7 @@
|
|
|
93
102
|
],
|
|
94
103
|
"config": "adaptive*, compact*, variants",
|
|
95
104
|
"types": [
|
|
96
|
-
{"name":"BbDropdownItem","usedAs":["prop items"],"definition":"type BbDropdownItem = InternalItem | InternalGroup | (ItemEntry[] & { searchable?: never; });","members":{"InternalItem":["disabled?: boolean","except?: string[]","rel?: string","target?: string","activeClass?: string","ariaCurrentValue?: \"page\" | \"step\" | \"location\" | \"date\" | \"time\" | \"true\" | \"false\"","data?: object","exactActiveClass?: string","headers?: object","href?: string | { url: string; method: \"get\" | \"post\" | \"put\" | \"patch\" | \"delete\"; }","download?: string | boolean","external?: boolean","method?: \"get\" | \"post\" | \"put\" | \"patch\" | \"delete\"","onBefore?: (() => void)","onCancel?: (() => void)","onCancelToken?: ((cancelToken: unknown) => void)","onFinish?: (() => void)","only?: string[]","onProgress?: ((progress: { percentage: number | undefined; }) => void)","onStart?: (() => void)","onSuccess?: (() => void)","preserveScroll?: boolean | ((props: Record<string, unknown>) => boolean)","preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null","queryStringArrayFormat?: \"brackets\" | \"indices\"","replace?: boolean","to?: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric","async?: boolean","cacheFor?: string | number | (string | number)[]","cacheTags?: string | string[]","component?: string","instant?: boolean","onError?: ((errors: Record<string, string>) => void)","onPrefetched?: (() => void)","onPrefetching?: (() => void)","pageProps?: Record<string, unknown> | ((currentProps: Record<string, unknown>, sharedProps: Record<string, unknown>) => Record<string, unknown>) | null","prefetch?: string | boolean | string[]","preserveUrl?: boolean","viewTransition?: boolean","items?: ItemEntry[]","onClick?: ((...args: any[]) => any)","append:icon?: string","hidden?: boolean","meta?: any","prepend:icon?: string","variant?: keyof DropdownItemVariantRegistry","label: string","value?: unknown","description?: string"],"InternalGroup":["append:icon?: string","hidden?: boolean","meta?: any","onClick?: ((...args: any[]) => any)","prepend:icon?: string","variant?: keyof DropdownItemVariantRegistry","id?: string","dependencies?: unknown[]","depsDebounceTime?: number","enforceCoherence?: boolean","filterBy?: false | string[]","group?: true","itemText?: string | ((item: any) => string)","itemProps?: BbDropdownItemProps<any>","itemValue?: string | ((item: any) => any)","loadingText?: string","max?: number","maxHeight?: string | number","multiple?: boolean","clearable?: boolean","emptyText?: string","failedText?: string","prefill?: boolean | \"interaction\"","searchPlaceholder?: string","groupBy?: string | ((row: any) => string | null | undefined)","selectable?: boolean | ((item: any) => boolean)","stash?: boolean","label?: string","hideLabel?: boolean","searchable?: boolean","items: SearchGetter | GroupRows | PlainGetter"]}},
|
|
97
|
-
{"name":"BbDropdownItemSlotProps","usedAs":["slot item:append","slot item:prepend","slot <value>","slot <value>:prepend","slot <value>:append","slot <groupId>:item","slot <groupId>:item:prepend","slot <groupId>:item:append","slot <groupId>","slot <groupId>:prepend","slot <groupId>:append"],"fields":["description?: string","disabled?: boolean","group: BbDropdownSlotGroup","groupTitle: boolean","level: number","index: number","item: InternalItem","loading: boolean","open: boolean","placement: Placement | \"cursor\"","selected: boolean","label: string","activeLink?: boolean","exactActiveLink?: boolean"]},
|
|
105
|
+
{"name":"BbDropdownItem","usedAs":["prop items"],"definition":"type BbDropdownItem = InternalItem | InternalGroup | (ItemEntry[] & { searchable?: never; });","members":{"InternalItem":["disabled?: boolean","except?: string[]","rel?: string","target?: string","activeClass?: string","ariaCurrentValue?: \"page\" | \"step\" | \"location\" | \"date\" | \"time\" | \"true\" | \"false\"","data?: object","exactActiveClass?: string","headers?: object","href?: string | { url: string; method: \"get\" | \"post\" | \"put\" | \"patch\" | \"delete\"; }","download?: string | boolean","external?: boolean","method?: \"get\" | \"post\" | \"put\" | \"patch\" | \"delete\"","onBefore?: (() => void)","onCancel?: (() => void)","onCancelToken?: ((cancelToken: unknown) => void)","onFinish?: (() => void)","only?: string[]","onProgress?: ((progress: { percentage: number | undefined; }) => void)","onStart?: (() => void)","onSuccess?: (() => void)","preserveScroll?: boolean | ((props: Record<string, unknown>) => boolean)","preserveState?: boolean | ((props: Record<string, unknown>) => boolean) | null","queryStringArrayFormat?: \"brackets\" | \"indices\"","replace?: boolean","to?: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric","async?: boolean","cacheFor?: string | number | (string | number)[]","cacheTags?: string | string[]","component?: string","instant?: boolean","onError?: ((errors: Record<string, string>) => void)","onPrefetched?: (() => void)","onPrefetching?: (() => void)","pageProps?: Record<string, unknown> | ((currentProps: Record<string, unknown>, sharedProps: Record<string, unknown>) => Record<string, unknown>) | null","prefetch?: string | boolean | string[]","preserveUrl?: boolean","viewTransition?: boolean","items?: ItemEntry[]","onClick?: ((...args: any[]) => any)","append:icon?: string","hidden?: boolean","meta?: any","prepend:icon?: string","variant?: keyof DropdownItemVariantRegistry","label: string","value?: unknown","description?: string"],"InternalGroup":["append:icon?: string","hidden?: boolean","meta?: any","onClick?: ((...args: any[]) => any)","prepend:icon?: string","variant?: keyof DropdownItemVariantRegistry","id?: string","dependencies?: unknown[]","depsDebounceTime?: number","enforceCoherence?: boolean","filterBy?: false | string[]","group?: true","itemText?: string | ((item: any) => string)","itemProps?: BbDropdownItemProps<any>","itemValue?: string | ((item: any) => any)","loadingText?: string","max?: number","maxHeight?: string | number","multiple?: boolean","clearable?: boolean","emptyText?: string","failedText?: string","prefill?: boolean | \"interaction\"","searchPlaceholder?: string","minQueryLength?: number","groupBy?: string | ((row: any) => string | null | undefined)","selectable?: boolean | ((item: any) => boolean)","stash?: boolean","label?: string","hideLabel?: boolean","searchable?: boolean","items: SearchGetter | GroupRows | PlainGetter"]}},
|
|
98
106
|
{"name":"BbOffCanvasProps","usedAs":["prop offCanvasProps"]},
|
|
99
107
|
{"name":"ElementOrComponentRef","usedAs":["prop activator","prop anchor","prop boundary"],"definition":"type ElementOrComponentRef = Element | ComponentPublicInstance | Pick<ComponentPublicInstance, '$el'> | { el: Element | null; } | { $el?: unknown; } | null;"},
|
|
100
108
|
{"name":"Placement","usedAs":["prop placement"],"values":["start","end","top","bottom","left","right","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end","start-start","start-end","end-start","end-end"]}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
{"name":"loading","new":null,"surface":"method","hint":"read `loading` from the activator slot scope (`#activator=\"{ loading }\"`) instead of a template ref","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"manual"}},
|
|
8
8
|
{"name":"items[].key","new":"items[].value","surface":"item","hint":"a row's identity: its `v-model` value (any type, compared by hash) and its `#<value>` slots; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"rename"}},
|
|
9
9
|
{"name":"items[].text","new":"items[].label","surface":"item","hint":"a row's text; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"rename"}},
|
|
10
|
-
{"name":"items[group].key","new":"items[group].id","surface":"item","hint":"a group's identity, the same word as `<BbDropdownGroup id>`; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"rename"}}
|
|
10
|
+
{"name":"items[group].key","new":"items[group].id","surface":"item","hint":"a group's identity, the same word as `<BbDropdownGroup id>`; `check --fix` renames it","since":"3.0.0-beta.49","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"rename"}},
|
|
11
|
+
{"name":"<groupId>","new":"<groupId>:label","surface":"slot","hint":"`#<groupId>:label`; `:prepend` / `:append` are unchanged","since":"3.0.0-beta.75","migration":"ai/guides/migration/components/bb-dropdown.md","silent":true,"fix":{"kind":"rename"}}
|
|
11
12
|
]
|
|
12
13
|
}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"nodes": [
|
|
12
12
|
{"name":"CommonPopover","kind":"internal"},
|
|
13
13
|
{"name":"BbDropdownList","kind":"internal","children":[{"name":"BbBadge","kind":"public"},{"name":"BbIcon","kind":"public"},{"name":"ErrorIcon","kind":"internal","cssProps":[{"name":"--accent","documented":false,"readBy":["bb-error-icon"]}],"children":[{"name":"BbIcon","kind":"public"}]},{"name":"CommonPopover","kind":"internal","repeated":true},{"name":"BbDropdownList","kind":"internal","repeated":true}]},
|
|
14
|
-
{"name":"
|
|
14
|
+
{"name":"DropdownFailures","kind":"internal","children":[{"name":"ErrorIcon","kind":"internal","repeated":true}]},
|
|
15
|
+
{"name":"AdaptiveDropdown","kind":"internal","forwards":[{"to":"BbOffCanvas","mapping":"{ header: 'header', footer: 'footer', panel: 'root', sheet: 'root' }"}],"children":[{"name":"BbOffCanvas","kind":"public"},{"name":"BbSmoothHeight","kind":"public"},{"name":"BbButton","kind":"public"},{"name":"BbDropdownList","kind":"internal","repeated":true},{"name":"DropdownFailures","kind":"internal","repeated":true}]},
|
|
15
16
|
{"name":"DropdownPipelineResolver","kind":"internal"}
|
|
16
17
|
]
|
|
17
18
|
},
|
|
@@ -26,15 +27,19 @@
|
|
|
26
27
|
"__adaptive-body",
|
|
27
28
|
"__adaptive-menu",
|
|
28
29
|
"__divider",
|
|
30
|
+
"__failed",
|
|
31
|
+
"__failed-text",
|
|
29
32
|
"__footer",
|
|
33
|
+
"__group-header",
|
|
30
34
|
"__group-items",
|
|
31
35
|
"__group-items--capped",
|
|
32
36
|
"__group-items--loading",
|
|
37
|
+
"__group-label",
|
|
38
|
+
"__group-label--variant-*",
|
|
39
|
+
"__group-label--variant-destructive",
|
|
33
40
|
"__group-loading",
|
|
34
41
|
"__group-search",
|
|
35
|
-
"__group-
|
|
36
|
-
"__group-title--variant-*",
|
|
37
|
-
"__group-title--variant-destructive",
|
|
42
|
+
"__group-section",
|
|
38
43
|
"__header",
|
|
39
44
|
"__item",
|
|
40
45
|
"__item--description",
|
|
@@ -59,8 +64,6 @@
|
|
|
59
64
|
"__placeholder-icon",
|
|
60
65
|
"__search-icon",
|
|
61
66
|
"__search-input",
|
|
62
|
-
"__section",
|
|
63
|
-
"__section-title",
|
|
64
67
|
"__sheet",
|
|
65
68
|
"__sheet-chip",
|
|
66
69
|
"__sheet-chips",
|
|
@@ -104,6 +107,9 @@
|
|
|
104
107
|
],
|
|
105
108
|
"bb-dropdown-sheet-level": [
|
|
106
109
|
""
|
|
110
|
+
],
|
|
111
|
+
"bb-load-retry": [
|
|
112
|
+
""
|
|
107
113
|
]
|
|
108
114
|
},
|
|
109
115
|
"locals": [
|
|
@@ -133,6 +139,8 @@
|
|
|
133
139
|
{"class":"bb-dropdown__header","tag":"div","part":"header"},
|
|
134
140
|
{"class":"bb-dropdown__footer","tag":"div","part":"footer"},
|
|
135
141
|
{"class":"bb-dropdown__list","tag":"span","part":"list","reads":["--fs","--max-h","--menu-inset","--sheet-option-fs","--w"]},
|
|
142
|
+
{"class":"bb-dropdown__group-label","tag":"div","part":"groupLabel","reads":["--dialog-title-fs","--py","--sheet-option-fs"]},
|
|
143
|
+
{"class":"bb-dropdown__group-header","tag":"div","part":"groupHeader","reads":["--bg","--dialog-title-fs","--menu-inset","--py","--sheet-option-fs"]},
|
|
136
144
|
{"class":"bb-dropdown__item","tag":"BbBaseButton","part":"item","reads":["--check-w","--icon-size","--sheet-row-h"]},
|
|
137
145
|
{"class":"bb-dropdown__item-text","tag":"span","part":"itemText"},
|
|
138
146
|
{"class":"bb-dropdown__item-icon","tag":"BbIcon","part":"itemIcon"},
|
|
@@ -160,13 +168,15 @@
|
|
|
160
168
|
{"class":"bb-dropdown__adaptive-body","tag":"BbSmoothHeight"},
|
|
161
169
|
{"class":"bb-dropdown__adaptive-menu","tag":"div"},
|
|
162
170
|
{"class":"bb-dropdown__divider","tag":"hr","reads":["--menu-inset"]},
|
|
171
|
+
{"class":"bb-dropdown__failed","tag":"div","reads":["--menu-inset"]},
|
|
172
|
+
{"class":"bb-dropdown__failed-text","tag":"span"},
|
|
163
173
|
{"class":"bb-dropdown__group-items","tag":"div"},
|
|
164
174
|
{"class":"bb-dropdown__group-items--capped","tag":"div"},
|
|
165
175
|
{"class":"bb-dropdown__group-items--loading","tag":"div"},
|
|
176
|
+
{"class":"bb-dropdown__group-label--variant-destructive"},
|
|
166
177
|
{"class":"bb-dropdown__group-loading","tag":"div"},
|
|
167
178
|
{"class":"bb-dropdown__group-search","tag":"div","reads":["--bg","--menu-inset"]},
|
|
168
|
-
{"class":"bb-dropdown__group-
|
|
169
|
-
{"class":"bb-dropdown__group-title--variant-destructive"},
|
|
179
|
+
{"class":"bb-dropdown__group-section"},
|
|
170
180
|
{"class":"bb-dropdown__item--description","reads":["--sheet-row-h"]},
|
|
171
181
|
{"class":"bb-dropdown__item--has-submenu"},
|
|
172
182
|
{"class":"bb-dropdown__item--variant-destructive"},
|
|
@@ -181,14 +191,14 @@
|
|
|
181
191
|
{"class":"bb-dropdown__placeholder-icon","tag":"ErrorIcon"},
|
|
182
192
|
{"class":"bb-dropdown__search-icon","tag":"BbIcon"},
|
|
183
193
|
{"class":"bb-dropdown__search-input","tag":"input"},
|
|
184
|
-
{"class":"bb-dropdown__section"},
|
|
185
|
-
{"class":"bb-dropdown__section-title","tag":"div"},
|
|
186
194
|
{"class":"bb-dropdown__sheet-chip","tag":"BbBadge"},
|
|
187
195
|
{"class":"bb-dropdown__sheet-chips","tag":"div"},
|
|
188
|
-
{"class":"bb-dropdown__sheet-selection","tag":"div"}
|
|
196
|
+
{"class":"bb-dropdown__sheet-selection","tag":"div"},
|
|
197
|
+
{"class":"bb-load-retry","tag":"button"}
|
|
189
198
|
],
|
|
190
199
|
"unaligned": {
|
|
191
200
|
"parts": [
|
|
201
|
+
"box",
|
|
192
202
|
"input",
|
|
193
203
|
"check",
|
|
194
204
|
"submenu"
|