bitboss-ui 3.0.0-beta.74 → 3.0.0-beta.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +1 -1
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +5 -2
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +11 -6
- package/dist/ai/BbDatePicker.md +12 -0
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +3 -1
- package/dist/ai/BbDropdown.md +155 -60
- package/dist/ai/BbDropdownButton.md +25 -6
- package/dist/ai/BbNumberInput.md +3 -1
- package/dist/ai/BbRadioGroup.md +4 -4
- package/dist/ai/BbSelect.md +79 -67
- package/dist/ai/BbSelectPopover.md +24 -5
- package/dist/ai/BbSwitchGroup.md +5 -4
- package/dist/ai/BbTable.md +17 -16
- package/dist/ai/BbTimePicker.md +12 -0
- package/dist/ai/BbTimePickerInput.md +15 -1
- 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 +1 -0
- package/dist/ai/ListBox.md +1 -0
- package/dist/ai/OptionsContainer.md +4 -4
- package/dist/ai/changelog.json +163 -6
- package/dist/ai/components.json +32 -34
- package/dist/ai/composables/useToast.md +2 -2
- package/dist/ai/design-tokens.json +60 -0
- package/dist/ai/guides/agent-contract.md +8 -4
- package/dist/ai/guides/design-tokens.md +13 -0
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- 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-table.md +2 -1
- package/dist/ai/guides/migration/components/bb-toast.md +2 -2
- package/dist/ai/guides/migration/v2-to-v3.md +22 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +1 -0
- package/dist/ai/guides/passthrough.md +3 -3
- 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 +2 -0
- package/dist/ai/manifest/components/BbDropdown.json +20 -14
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +13 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +13 -7
- package/dist/ai/manifest/components/BbDropdownButton.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +2 -0
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- 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 +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +6 -3
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -1
- 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 +4 -0
- 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 +2 -1
- package/dist/ai/manifest/components/ListBox.json +2 -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/source/BbAvatar.md +119 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +52 -54
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCarousel.md +31 -28
- package/dist/ai/source/BbCheckboxGroup.md +15 -9
- package/dist/ai/source/BbColorInput.md +19 -0
- package/dist/ai/source/BbColorPalette.md +18 -0
- package/dist/ai/source/BbDatePicker.md +18 -0
- package/dist/ai/source/BbDatePickerInput.md +40 -1
- package/dist/ai/source/BbDialog.md +14 -1
- package/dist/ai/source/BbDropdown.md +211 -39
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +104 -38
- package/dist/ai/source/BbGallery.md +76 -55
- 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/BbRadioGroup.md +12 -5
- package/dist/ai/source/BbSelect.md +35 -20
- package/dist/ai/source/BbSelectPopover.md +116 -8
- package/dist/ai/source/BbSwitchGroup.md +11 -4
- package/dist/ai/source/BbTable.md +72 -26
- package/dist/ai/source/BbTimePicker.md +19 -0
- package/dist/ai/source/BbTimePickerInput.md +15 -0
- 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/CommonPopover.md +24 -1
- package/dist/ai/source/FlatListBox.md +26 -5
- package/dist/ai/source/GroupedListBox.md +63 -11
- package/dist/ai/source/ListBox.md +4 -0
- package/dist/ai/source/OptionsContainer.md +29 -11
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +61 -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 +80 -79
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +152 -158
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +100 -85
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +7 -7
- 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 +213 -202
- 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 +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +495 -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 +92 -87
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +3 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +412 -369
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +382 -338
- 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 +73 -45
- package/dist/components/BbDropdown/normalizeGroups.js +6 -2
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbDropdown/types.d.ts +65 -41
- package/dist/components/BbDropdown/types.js +1 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -72
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbDropdownButton/types.d.ts +13 -2
- package/dist/components/BbDropdownButton/types.js +2 -0
- package/dist/components/BbGallery/BbGallery.vue_vue_type_script_setup_true_lang.js +318 -296
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +7 -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/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -104
- package/dist/components/BbRadioGroup/types.d.ts +4 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +3 -1
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +167 -163
- package/dist/components/BbSelect/types.d.ts +23 -20
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +3 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +680 -637
- package/dist/components/BbSelectPopover/types.d.ts +10 -4
- 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 +1 -3
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1086 -1069
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +3 -1
- 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 +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +268 -259
- package/dist/components/BbTimePickerInput/types.d.ts +7 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +12 -12
- 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/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +13 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +115 -96
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +194 -166
- 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/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.js +68 -61
- package/dist/index.d.ts +2 -2
- package/dist/llms-full.txt +573 -276
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +1 -1
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -3
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/slotContent.js +19 -0
- package/dist/utils/loadRetry.js +8 -0
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite.js +4 -1
- package/llms.txt +1 -1
- package/package.json +3 -1
- package/scripts/README.md +2 -0
- package/scripts/lib/agent-setup.mjs +44 -26
- package/scripts/lib/validate-bb-markup.mjs +20 -0
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
{"name":"modelValue","type":"string | null","description":"v-model: the current color as a `#RRGGBB` hex string (or `#RRGGBBAA` when `alpha` is enabled), or `null` when empty."},
|
|
21
21
|
{"name":"offCanvasProps","common":true},
|
|
22
22
|
{"name":"offset","common":true},
|
|
23
|
+
{"name":"open","common":true},
|
|
23
24
|
{"name":"padding","type":"number","default":"6","description":"Minimum empty space to keep from the edge of the page"},
|
|
24
25
|
{"name":"placement","type":"Placement","description":"Position of the overlay in respect to the related activator."},
|
|
25
26
|
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"swatch\"]; readonly states: readonly [\"selected\", \"open\"]; readonly wide: readonly [\"open\"]; readonly node: { readonly swatch: readonly [\"selected\"]; }; }> & { root?: PtValue | undefined; panel?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; sheet?: PtValue | undefined; swatch?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"swatch:open\"?: PtValue | undefined; \"swatch:selected\"?: PtValue | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
@@ -32,14 +33,16 @@
|
|
|
32
33
|
{"name":"hide","signature":"(): void","description":"Emitted as soon as the palette starts to close."},
|
|
33
34
|
{"name":"show","signature":"(): void","description":"Emitted as soon as the palette (the popover, or the sheet on a phone) starts to open."},
|
|
34
35
|
{"name":"shown","signature":"(): void","description":"Emitted once the palette is open and its open transition has finished."},
|
|
35
|
-
{"name":"update:modelValue","signature":"(value: string): void","description":"Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`."}
|
|
36
|
+
{"name":"update:modelValue","signature":"(value: string): void","description":"Emitted when a color is picked. Payload is a concrete `#RRGGBB` (or `#RRGGBBAA` when alpha is enabled) — the palette always emits a color, never `null`."},
|
|
37
|
+
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."}
|
|
36
38
|
],
|
|
37
39
|
"slots": [
|
|
38
40
|
{"name":"activator","type":"BbColorPaletteActivatorSlotProps","fields":["anchorProps: BbColorPaletteAnchorProps","disabled: boolean","open: boolean","props: BbColorPaletteActivatorProps","value: string | null"],"description":"Custom activator element. Apply `v-bind=\"props\"` to the element you want to use as the trigger — this wires up the ref callback that lets BbColorPalette track the element."}
|
|
39
41
|
],
|
|
40
42
|
"exposed": [],
|
|
41
43
|
"models": [
|
|
42
|
-
{"name":"modelValue","type":"string | null | undefined"}
|
|
44
|
+
{"name":"modelValue","type":"string | null | undefined"},
|
|
45
|
+
{"name":"open","type":"boolean | undefined"}
|
|
43
46
|
],
|
|
44
47
|
"pt": {
|
|
45
48
|
"parts": [
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
{"name":"showArrow","new":null,"since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},
|
|
8
8
|
{"name":"pt:root:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},
|
|
9
9
|
{"name":"pt:panel:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}},
|
|
10
|
-
{"name":"pt:sheet:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}}
|
|
11
|
-
{"name":"update:open","new":null,"surface":"event","since":"3.0.0-alpha.1","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"manual"}}
|
|
10
|
+
{"name":"pt:sheet:selected","new":null,"surface":"pt","hint":"it never applied anything: `selected` is a state of `swatch` only (`pt:swatch:selected`)","since":"3.0.0-beta.31","migration":"ai/guides/migration/components/bb-color-palette.md","silent":true,"fix":{"kind":"remove"}}
|
|
12
11
|
]
|
|
13
12
|
}
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
{"name":"numberOfMonths","type":"number","default":"1","description":"How many months the popover shows side by side (day grids only); the phone sheet always shows one. Too narrow for them all, the months wrap."},
|
|
28
28
|
{"name":"offCanvasProps","common":true},
|
|
29
29
|
{"name":"offset","type":"number","default":"4","description":"Space the popover keeps from the activator."},
|
|
30
|
+
{"name":"open","common":true},
|
|
30
31
|
{"name":"padding","type":"number","description":"Minimum empty space to keep from the edge of the page."},
|
|
31
32
|
{"name":"placement","type":"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"],"description":"Position of the popover relative to the activator/anchor."},
|
|
32
33
|
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"panel\", \"sheet\", \"header\", \"arrow\", \"month\", \"year\", \"cellColumnHeader\", \"week\", \"weekNumber\", \"day\", \"dayButton\", \"monthItem\", \"yearItem\", \"item\"]; readonly states: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"disabled\", \"active\", \"open\", \"highlighted\"]; readonly wide: readonly [\"disabled\", \"open\"]; readonly node: { readonly week: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\"]; readonly weekNumber: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\"]; readonly day: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly dayButton: readonly [\"outside\", \"today\", \"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly monthItem: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly yearItem: readonly [\"inRange\", \"selected\", \"rangeStart\", \"rangeEnd\", \"highlighted\"]; readonly month: readonly [\"active\"]; readonly year: readonly [\"active\"]; readonly item: readonly [\"selected\"]; }; }> & { header?: PtValue | undefined; root?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; item?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; arrow?: PtValue | undefined; month?: PtValue | undefined; year?: PtValue | undefined; cellColumnHeader?: PtValue | undefined; week?: PtValue | undefined; weekNumber?: PtValue | undefined; day?: PtValue | undefined; dayButton?: PtValue | undefined; monthItem?: PtValue | undefined; yearItem?: PtValue | undefined; \"arrow:disabled\"?: PtValue | undefined; \"month:disabled\"?: PtValue | undefined; \"year:disabled\"?: PtValue | undefined; \"cellColumnHeader:disabled\"?: PtValue | undefined; \"week:disabled\"?: PtValue | undefined; \"weekNumber:disabled\"?: PtValue | undefined; \"day:disabled\"?: PtValue | undefined; \"dayButton:disabled\"?: PtValue | undefined; \"monthItem:disabled\"?: PtValue | undefined; \"yearItem:disabled\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"month:active\"?: PtValue | undefined; \"year:active\"?: PtValue | undefined; \"week:inRange\"?: PtValue | undefined; \"week:selected\"?: PtValue | undefined; \"week:rangeStart\"?: PtValue | undefined; \"week:rangeEnd\"?: PtValue | undefined; \"weekNumber:inRange\"?: PtValue | undefined; \"weekNumber:selected\"?: PtValue | undefined; \"weekNumber:rangeStart\"?: PtValue | undefined; \"weekNumber:rangeEnd\"?: PtValue | undefined; \"day:outside\"?: PtValue | undefined; \"day:today\"?: PtValue | undefined; \"day:inRange\"?: PtValue | undefined; \"day:selected\"?: PtValue | undefined; \"day:rangeStart\"?: PtValue | undefined; \"day:rangeEnd\"?: PtValue | undefined; \"day:highlighted\"?: PtValue | undefined; \"dayButton:outside\"?: PtValue | undefined; \"dayButton:today\"?: PtValue | undefined; \"dayButton:inRange\"?: PtValue | undefined; \"dayButton:selected\"?: PtValue | undefined; \"dayButton:rangeStart\"?: PtValue | undefined; \"dayButton:rangeEnd\"?: PtValue | undefined; \"dayButton:highlighted\"?: PtValue | undefined; \"monthItem:inRange\"?: PtValue | undefined; \"monthItem:selected\"?: PtValue | undefined; \"monthItem:rangeStart\"?: PtValue | undefined; \"monthItem:rangeEnd\"?: PtValue | undefined; \"monthItem:highlighted\"?: PtValue | undefined; \"yearItem:inRange\"?: PtValue | undefined; \"yearItem:selected\"?: PtValue | undefined; \"yearItem:rangeStart\"?: PtValue | undefined; \"yearItem:rangeEnd\"?: PtValue | undefined; \"yearItem:highlighted\"?: PtValue | undefined; sheet?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"arrow:open\"?: PtValue | undefined; \"month:open\"?: PtValue | undefined; \"year:open\"?: PtValue | undefined; \"cellColumnHeader:open\"?: PtValue | undefined; \"week:open\"?: PtValue | undefined; \"weekNumber:open\"?: PtValue | undefined; \"day:open\"?: PtValue | undefined; \"dayButton:open\"?: PtValue | undefined; \"monthItem:open\"?: PtValue | undefined; \"yearItem:open\"?: PtValue | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
{"name":"time-pick","signature":"(payload: { unit: TimeUnit; value: string; }): void","description":"Relay of the raw time-rail pick. An embedding host binds this to run its own value engine; clean consumers ignore it and use `update:time`."},
|
|
50
51
|
{"name":"update:activeSegment","signature":"(value: BbCalendarSegment): void","description":"The active range end changed (range + `type=\"datetime\"` only)."},
|
|
51
52
|
{"name":"update:modelValue","signature":"(value: string | string[] | null): void","description":"Emitted when the selected date value changes (single/range/null)."},
|
|
53
|
+
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."},
|
|
52
54
|
{"name":"update:time","signature":"(value: string | string[] | null): void","description":"Companion time model, alongside every change while `type=\"datetime\"`."}
|
|
53
55
|
],
|
|
54
56
|
"slots": [
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
"models": [
|
|
63
65
|
{"name":"activeSegment","type":"BbCalendarSegment | undefined"},
|
|
64
66
|
{"name":"modelValue","type":"string | string[] | null | undefined"},
|
|
67
|
+
{"name":"open","type":"boolean | undefined"},
|
|
65
68
|
{"name":"time","type":"string | string[] | null | undefined"}
|
|
66
69
|
],
|
|
67
70
|
"pt": {
|
|
@@ -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": {
|
|
@@ -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"},
|
|
@@ -10,23 +10,24 @@
|
|
|
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
11
|
{"name":"adaptive","type":"boolean","default":"`all.adaptive` (`true`)","description":"On mobile (below `config.mobileMaxWidth`), renders the menu as a bottom sheet that drills into submenus one level at a time instead of hover flyouts; slots and selection are 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
|
|
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`). Default in a `BbTable`: the table's left and right edges."},
|
|
14
14
|
{"name":"closeOnSelect","type":"boolean","default":"unset (close after a single-choice change)","description":"Whether a selection closes the menu. Unset: a change in a single-choice group closes it (an untick too, at any depth); a `multiple` group stays open. `true`: every selection change closes it. `false`: none does."},
|
|
15
15
|
{"name":"compact","type":"boolean","default":"undefined","description":"Compact density, the `BbSelect` ladder: flyout rows 28px → 24px, sheet rows 44px → 36px (a sheet row stays a touch target). The label size does not change."},
|
|
16
16
|
{"name":"disabled","type":"boolean","default":"false","description":"Disables the component"},
|
|
17
17
|
{"name":"eager","type":"boolean","default":"false","description":"Renders the menu panel at mount instead of on the first open (the phone sheet's too), and keeps its rows after a close. Without it the rows mount on each open and go once the menu has closed."},
|
|
18
|
-
{"name":"emptyText","type":"string","description":"
|
|
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\", \"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; \"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
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
32
|
{"name":"transitionDuration","type":"number","default":"150","description":"The open / close transition in milliseconds. Menus take the fast one (150), not the popovers' medium 250: a menu is picked from and gone, so it answers faster than a panel you read or edit in."},
|
|
32
33
|
{"name":"trigger","type":"DropdownTrigger | DropdownTrigger[]","default":"\"click\"","description":"Interaction(s) that open the dropdown. Accepts a single trigger or an array to combine them.\n- `'click'` — left-click / tap (default)\n- `'contextMenu'` — right-click on desktop, long-press on mobile"},
|
|
@@ -38,16 +39,18 @@
|
|
|
38
39
|
{"name":"item:selected","signature":"(value: any): void","description":"The user selected a row in a selectable group, at the click — also when a controlled companion's app then refuses the value. The payload is the row's value (its `item-value` for pipeline groups, else its `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
48
|
{"name":"empty","type":"BbDropdownPlaceholderSlotProps","fields":["groupId?: string","query: string","text: string"],"description":"Replaces the default \"no data\" placeholder row shown in a pipeline group that resolved to no items. Rendered once per empty group. A failed load is not empty: it keeps its own row (the error icon and `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 title line), replacing its `append:icon
|
|
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 title line), replacing its `append:icon` wherever it renders. A named slot wins; the submenu chevron and the check on a selected row take 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,12 +58,15 @@
|
|
|
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
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 what you see with `panel`.","states":["open"]},
|
|
@@ -68,6 +74,7 @@
|
|
|
68
74
|
{"name":"sheet","description":"The bottom sheet the menu becomes on a phone (the `BbOffCanvas` root) — never the desktop surface. Applied after `panel`, so it wins a conflict there.","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"]},
|
|
77
|
+
{"name":"box","description":"Every searchable group's search box (field and magnifier), as `box` on a field; desktop and phone.","states":["open"]},
|
|
71
78
|
{"name":"input","description":"A searchable group's search field — a broadcast: it lands on every searchable group's field, desktop and phone alike. Its magnifier glyph is chrome.","states":["open"]},
|
|
72
79
|
{"name":"list","description":"The top-level items container between the bands — the node that lays the entries out (a flex column with a 1px gap; on a phone, the sheet's items container). A submenu's list is not reached. Groups, headings and dividers are not parts.","states":["open"]},
|
|
73
80
|
{"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"},
|
|
@@ -93,8 +100,7 @@
|
|
|
93
100
|
],
|
|
94
101
|
"config": "adaptive*, compact*, variants",
|
|
95
102
|
"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"]},
|
|
103
|
+
{"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
104
|
{"name":"BbOffCanvasProps","usedAs":["prop offCanvasProps"]},
|
|
99
105
|
{"name":"ElementOrComponentRef","usedAs":["prop activator","prop anchor","prop boundary"],"definition":"type ElementOrComponentRef = Element | ComponentPublicInstance | Pick<ComponentPublicInstance, '$el'> | { el: Element | null; } | { $el?: unknown; } | null;"},
|
|
100
106
|
{"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,6 +27,8 @@
|
|
|
26
27
|
"__adaptive-body",
|
|
27
28
|
"__adaptive-menu",
|
|
28
29
|
"__divider",
|
|
30
|
+
"__failed",
|
|
31
|
+
"__failed-text",
|
|
29
32
|
"__footer",
|
|
30
33
|
"__group-items",
|
|
31
34
|
"__group-items--capped",
|
|
@@ -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": [
|
|
@@ -160,6 +166,8 @@
|
|
|
160
166
|
{"class":"bb-dropdown__adaptive-body","tag":"BbSmoothHeight"},
|
|
161
167
|
{"class":"bb-dropdown__adaptive-menu","tag":"div"},
|
|
162
168
|
{"class":"bb-dropdown__divider","tag":"hr","reads":["--menu-inset"]},
|
|
169
|
+
{"class":"bb-dropdown__failed","tag":"div","reads":["--menu-inset"]},
|
|
170
|
+
{"class":"bb-dropdown__failed-text","tag":"span"},
|
|
163
171
|
{"class":"bb-dropdown__group-items","tag":"div"},
|
|
164
172
|
{"class":"bb-dropdown__group-items--capped","tag":"div"},
|
|
165
173
|
{"class":"bb-dropdown__group-items--loading","tag":"div"},
|
|
@@ -182,13 +190,15 @@
|
|
|
182
190
|
{"class":"bb-dropdown__search-icon","tag":"BbIcon"},
|
|
183
191
|
{"class":"bb-dropdown__search-input","tag":"input"},
|
|
184
192
|
{"class":"bb-dropdown__section"},
|
|
185
|
-
{"class":"bb-dropdown__section-title","tag":"div"},
|
|
193
|
+
{"class":"bb-dropdown__section-title","tag":"div","reads":["--bg","--menu-inset"]},
|
|
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"
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
{"name":"onProgress","common":true},
|
|
50
50
|
{"name":"onStart","common":true},
|
|
51
51
|
{"name":"onSuccess","common":true},
|
|
52
|
+
{"name":"open","common":true},
|
|
52
53
|
{"name":"padding","common":true},
|
|
53
54
|
{"name":"pageProps","common":true},
|
|
54
55
|
{"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)."},
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
{"name":"preserveScroll","common":true},
|
|
58
59
|
{"name":"preserveState","common":true},
|
|
59
60
|
{"name":"preserveUrl","common":true},
|
|
60
|
-
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\", \"panel\", \"sheet\", \"header\", \"footer\", \"input\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"disabled\", \"open\", \"loading\"]; readonly node: { readonly item: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly variant: readonly [{ readonly names: readonly [\"primary\", \"outline\", \"secondary\", \"ghost\", \"destructive\", \"link\"]; readonly option: \"buttonVariants\"; readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\"]; }, { 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; main?: PtValue | undefined; text?: PtValue | undefined; toggle?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"text:outline\"?: PtValue | undefined; \"text:primary\"?: PtValue | undefined; \"text:destructive\"?: PtValue | undefined; \"root:outline\"?: PtValue | undefined; \"root:primary\"?: PtValue | undefined; \"root:destructive\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"icon:primary\"?: PtValue | undefined; \"icon:destructive\"?: PtValue | undefined; spinner?: PtValue | undefined; \"text:activeLink\"?: PtValue | undefined; \"text:exactActiveLink\"?: PtValue | undefined; \"text:loading\"?: PtValue | undefined; \"root:activeLink\"?: PtValue | undefined; \"root:exactActiveLink\"?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:activeLink\"?: PtValue | undefined; \"icon:exactActiveLink\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:activeLink\"?: PtValue | undefined; \"spinner:exactActiveLink\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"text:secondary\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:primary\"?: PtValue | undefined; \"spinner:destructive\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"text:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; \"text:link\"?: PtValue | undefined; \"text:ghost\"?: PtValue | undefined; \"root:link\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:link\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:link\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"text:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"header:loading\"?: 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; \"footer:disabled\"?: PtValue | undefined; \"footer:activeLink\"?: PtValue | undefined; \"footer:exactActiveLink\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"header:activeLink\"?: PtValue | undefined; \"header:exactActiveLink\"?: PtValue | undefined; \"input:activeLink\"?: PtValue | undefined; \"input:exactActiveLink\"?: PtValue | undefined; \"main:disabled\"?: PtValue | undefined; \"main:open\"?: PtValue | undefined; \"main:activeLink\"?: PtValue | undefined; \"main:exactActiveLink\"?: PtValue | undefined; \"main:loading\"?: PtValue | undefined; \"toggle:disabled\"?: PtValue | undefined; \"toggle:open\"?: PtValue | undefined; \"toggle:activeLink\"?: PtValue | undefined; \"toggle:exactActiveLink\"?: PtValue | undefined; \"toggle:loading\"?: PtValue | undefined; \"panel:activeLink\"?: PtValue | undefined; \"panel:exactActiveLink\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"sheet:activeLink\"?: PtValue | undefined; \"sheet:exactActiveLink\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"submenu:disabled\"?: PtValue | undefined; \"submenu:activeLink\"?: PtValue | undefined; \"submenu:exactActiveLink\"?: PtValue | undefined; \"submenu:loading\"?: PtValue | undefined; \"main:link\"?: PtValue | undefined; \"main:outline\"?: PtValue | undefined; \"main:primary\"?: PtValue | undefined; \"main:destructive\"?: PtValue | undefined; \"main:secondary\"?: PtValue | undefined; \"main:ghost\"?: PtValue | undefined; \"toggle:link\"?: PtValue | undefined; \"toggle:outline\"?: PtValue | undefined; \"toggle:primary\"?: PtValue | undefined; \"toggle:destructive\"?: PtValue | undefined; \"toggle:secondary\"?: PtValue | undefined; \"toggle:ghost\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
61
|
+
{"name":"pt","type":"(PtCompoundOf<\"\", { readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\", \"panel\", \"sheet\", \"header\", \"footer\", \"box\", \"input\", \"list\", \"item\", \"itemText\", \"itemIcon\", \"itemDescription\", \"check\", \"submenu\"]; readonly states: readonly [\"activeLink\", \"exactActiveLink\", \"selected\", \"disabled\", \"open\", \"loading\"]; readonly wide: readonly [\"activeLink\", \"exactActiveLink\", \"disabled\", \"open\", \"loading\"]; readonly node: { readonly item: readonly [\"selected\"]; readonly itemText: readonly [\"selected\"]; readonly itemIcon: readonly [\"selected\"]; readonly itemDescription: readonly [\"selected\"]; readonly check: readonly [\"selected\"]; }; readonly variant: readonly [{ readonly names: readonly [\"primary\", \"outline\", \"secondary\", \"ghost\", \"destructive\", \"link\"]; readonly option: \"buttonVariants\"; readonly parts: readonly [\"root\", \"main\", \"toggle\", \"icon\", \"spinner\", \"text\"]; }, { 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; main?: PtValue | undefined; text?: PtValue | undefined; toggle?: PtValue | undefined; list?: PtValue | undefined; root?: PtValue | undefined; icon?: PtValue | undefined; panel?: PtValue | undefined; \"header:disabled\"?: PtValue | undefined; \"header:open\"?: PtValue | undefined; \"root:disabled\"?: PtValue | undefined; \"root:open\"?: PtValue | undefined; \"icon:disabled\"?: PtValue | undefined; \"icon:open\"?: PtValue | undefined; \"panel:disabled\"?: PtValue | undefined; \"panel:open\"?: PtValue | undefined; \"text:outline\"?: PtValue | undefined; \"text:primary\"?: PtValue | undefined; \"text:destructive\"?: PtValue | undefined; \"root:outline\"?: PtValue | undefined; \"root:primary\"?: PtValue | undefined; \"root:destructive\"?: PtValue | undefined; \"icon:outline\"?: PtValue | undefined; \"icon:primary\"?: PtValue | undefined; \"icon:destructive\"?: PtValue | undefined; spinner?: PtValue | undefined; \"text:activeLink\"?: PtValue | undefined; \"text:exactActiveLink\"?: PtValue | undefined; \"text:loading\"?: PtValue | undefined; \"root:activeLink\"?: PtValue | undefined; \"root:exactActiveLink\"?: PtValue | undefined; \"root:loading\"?: PtValue | undefined; \"icon:activeLink\"?: PtValue | undefined; \"icon:exactActiveLink\"?: PtValue | undefined; \"icon:loading\"?: PtValue | undefined; \"spinner:activeLink\"?: PtValue | undefined; \"spinner:exactActiveLink\"?: PtValue | undefined; \"spinner:loading\"?: PtValue | undefined; \"text:secondary\"?: PtValue | undefined; \"root:secondary\"?: PtValue | undefined; \"icon:secondary\"?: PtValue | undefined; \"spinner:outline\"?: PtValue | undefined; \"spinner:primary\"?: PtValue | undefined; \"spinner:destructive\"?: PtValue | undefined; \"spinner:secondary\"?: PtValue | undefined; \"text:disabled\"?: PtValue | undefined; \"item:disabled\"?: PtValue | undefined; \"spinner:disabled\"?: PtValue | undefined; \"text:link\"?: PtValue | undefined; \"text:ghost\"?: PtValue | undefined; \"root:link\"?: PtValue | undefined; \"root:ghost\"?: PtValue | undefined; \"icon:link\"?: PtValue | undefined; \"icon:ghost\"?: PtValue | undefined; \"spinner:link\"?: PtValue | undefined; \"spinner:ghost\"?: PtValue | undefined; \"item:selected\"?: PtValue | undefined; \"list:disabled\"?: PtValue | undefined; \"list:loading\"?: PtValue | undefined; \"item:loading\"?: PtValue | undefined; \"itemDescription:disabled\"?: PtValue | undefined; \"itemDescription:loading\"?: PtValue | undefined; box?: PtValue | undefined; sheet?: PtValue | undefined; \"input:disabled\"?: PtValue | undefined; \"input:open\"?: PtValue | undefined; \"input:loading\"?: PtValue | undefined; \"panel:loading\"?: PtValue | undefined; \"spinner:open\"?: PtValue | undefined; \"box:disabled\"?: PtValue | undefined; \"box:open\"?: PtValue | undefined; \"box:loading\"?: PtValue | undefined; \"sheet:disabled\"?: PtValue | undefined; \"sheet:open\"?: PtValue | undefined; \"sheet:loading\"?: PtValue | undefined; \"footer:open\"?: PtValue | undefined; \"text:open\"?: PtValue | undefined; \"item:open\"?: PtValue | undefined; \"header:loading\"?: 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; \"footer:disabled\"?: PtValue | undefined; \"footer:activeLink\"?: PtValue | undefined; \"footer:exactActiveLink\"?: PtValue | undefined; \"footer:loading\"?: PtValue | undefined; \"header:activeLink\"?: PtValue | undefined; \"header:exactActiveLink\"?: PtValue | undefined; \"input:activeLink\"?: PtValue | undefined; \"input:exactActiveLink\"?: PtValue | undefined; \"main:disabled\"?: PtValue | undefined; \"main:open\"?: PtValue | undefined; \"main:activeLink\"?: PtValue | undefined; \"main:exactActiveLink\"?: PtValue | undefined; \"main:loading\"?: PtValue | undefined; \"toggle:disabled\"?: PtValue | undefined; \"toggle:open\"?: PtValue | undefined; \"toggle:activeLink\"?: PtValue | undefined; \"toggle:exactActiveLink\"?: PtValue | undefined; \"toggle:loading\"?: PtValue | undefined; \"list:activeLink\"?: PtValue | undefined; \"list:exactActiveLink\"?: PtValue | undefined; \"panel:activeLink\"?: PtValue | undefined; \"panel:exactActiveLink\"?: PtValue | undefined; \"itemText:loading\"?: PtValue | undefined; \"box:activeLink\"?: PtValue | undefined; \"box:exactActiveLink\"?: PtValue | undefined; \"sheet:activeLink\"?: PtValue | undefined; \"sheet:exactActiveLink\"?: PtValue | undefined; \"itemIcon:loading\"?: PtValue | undefined; \"check:loading\"?: PtValue | undefined; \"submenu:disabled\"?: PtValue | undefined; \"submenu:activeLink\"?: PtValue | undefined; \"submenu:exactActiveLink\"?: PtValue | undefined; \"submenu:loading\"?: PtValue | undefined; \"main:link\"?: PtValue | undefined; \"main:outline\"?: PtValue | undefined; \"main:primary\"?: PtValue | undefined; \"main:destructive\"?: PtValue | undefined; \"main:secondary\"?: PtValue | undefined; \"main:ghost\"?: PtValue | undefined; \"toggle:link\"?: PtValue | undefined; \"toggle:outline\"?: PtValue | undefined; \"toggle:primary\"?: PtValue | undefined; \"toggle:destructive\"?: PtValue | undefined; \"toggle:secondary\"?: PtValue | undefined; \"toggle:ghost\"?: PtValue | undefined; } & { item?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemDescription?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemText?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; itemIcon?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; check?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; submenu?: PtValue | PtItemFn<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\"> | undefined; })","description":"Passthrough, object form: the same keys as the `pt:*` attributes without the prefix. See the `pt:<part>` row."},
|
|
61
62
|
{"name":"queryStringArrayFormat","common":true},
|
|
62
63
|
{"name":"replace","type":"boolean","default":"false","description":"Calls `router.replace` instead of `router.push`."},
|
|
63
64
|
{"name":"size","type":"Responsive<Sizes>","default":"`components.BbButton.size`, else `'md'`","description":"Sets the size of the button. When the value is a string, it will be applied to all screen sizes. Otherwise, it will be applied to the screen size specified by the object. Unset: `BbButton`'s `components` entry (the app's or a config scope's)."},
|
|
@@ -78,7 +79,8 @@
|
|
|
78
79
|
{"name":"item:selected","signature":"(value: any): void","description":"A row of a selectable group was selected — the menu's own event, re-emitted with the same payload (the item's resolved value)."},
|
|
79
80
|
{"name":"item:unselected","signature":"(value: any): void","description":"A row of a selectable group was unselected (same payload as above)."},
|
|
80
81
|
{"name":"show","signature":"(): void","description":"Emitted as soon as the menu (the popover, or the sheet on a phone) starts to open."},
|
|
81
|
-
{"name":"shown","signature":"(): void","description":"Emitted once the menu is open and its open transition has finished."}
|
|
82
|
+
{"name":"shown","signature":"(): void","description":"Emitted once the menu is open and its open transition has finished."},
|
|
83
|
+
{"name":"update:open","signature":"(value: boolean): void","description":"The panel opened or closed (`v-model:open`)."}
|
|
82
84
|
],
|
|
83
85
|
"slots": [
|
|
84
86
|
{"name":"append:icon","type":"BbButtonIconSlotProps","fields":["activeLink: boolean","exactActiveLink: boolean","pressed: boolean","loading: boolean","disabled: boolean"],"description":"The main button's trailing icon, replacing `append:icon`."},
|
|
@@ -97,12 +99,15 @@
|
|
|
97
99
|
{"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},
|
|
98
100
|
{"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},
|
|
99
101
|
{"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},
|
|
100
|
-
{"name":"<groupId
|
|
102
|
+
{"name":"<groupId>:label","type":"BbDropdownItemSlotProps","description":"That group's title content (`item` is the group, `groupTitle` is `true`).","dynamic":true},
|
|
101
103
|
{"name":"<groupId>:prepend","type":"BbDropdownItemSlotProps","description":"The leading region of that group's title line.","dynamic":true},
|
|
102
|
-
{"name":"<groupId>:append","type":"BbDropdownItemSlotProps","description":"The trailing region of that group's title line.","dynamic":true}
|
|
104
|
+
{"name":"<groupId>:append","type":"BbDropdownItemSlotProps","description":"The trailing region of that group's title line.","dynamic":true},
|
|
105
|
+
{"name":"<groupId>:group","type":"BbDropdownGroupSlotProps","description":"That group's `groupBy` headings; beats `group`.","dynamic":true}
|
|
103
106
|
],
|
|
104
107
|
"exposed": [],
|
|
105
|
-
"models": [
|
|
108
|
+
"models": [
|
|
109
|
+
{"name":"open","type":"boolean | undefined"}
|
|
110
|
+
],
|
|
106
111
|
"pt": {
|
|
107
112
|
"parts": [
|
|
108
113
|
{"name":"root","description":"The group wrapper around the main button and the toggle.","states":["activeLink","destructive","disabled","exactActiveLink","ghost","link","loading","open","outline","primary","secondary"]},
|
|
@@ -115,7 +120,9 @@
|
|
|
115
120
|
{"name":"sheet","description":"The bottom sheet the menu becomes on a phone only.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
116
121
|
{"name":"header","description":"The band around your `#header` slot: at the top of the menu on desktop, the sheet's header on a phone — handed to the `BbDropdown`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
117
122
|
{"name":"footer","description":"The band around your `#footer` slot: at the bottom of the menu on desktop, the sheet's footer on a phone — handed to the `BbDropdown`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
123
|
+
{"name":"box","description":"A searchable group's search box in the menu (field and magnifier) — handed to the `BbDropdown` as its own `pt:box`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
118
124
|
{"name":"input","description":"A searchable group's search field in the menu — a broadcast, every searchable group's field — handed to the `BbDropdown` as its own `pt:input`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
125
|
+
{"name":"list","description":"The menu's top-level items container — handed to the `BbDropdown` as its own `pt:list`.","states":["activeLink","disabled","exactActiveLink","loading","open"]},
|
|
119
126
|
{"name":"item","description":"One menu entry, submenus included — a broadcast resolved per entry. Also takes a per-item function, called with the entry.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
120
127
|
{"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.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
121
128
|
{"name":"itemIcon","description":"An entry's prepend / append icons — resolved with that entry's states. Also takes a per-item function.","states":["activeLink","default","destructive","disabled","exactActiveLink","loading","open","selected"],"rowType":"PtValue | ((ctx: PtItemCtx<InternalItem, BbDropdownButtonPtState, \"default\" | \"destructive\">) => PtItemResult) | undefined"},
|
|
@@ -146,8 +153,7 @@
|
|
|
146
153
|
],
|
|
147
154
|
"config": "block*",
|
|
148
155
|
"types": [
|
|
149
|
-
{"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"]}},
|
|
150
|
-
{"name":"BbDropdownItemSlotProps","usedAs":["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"]},
|
|
156
|
+
{"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"]}},
|
|
151
157
|
{"name":"BbOffCanvasProps","usedAs":["prop offCanvasProps"]},
|
|
152
158
|
{"name":"ButtonVariantType","usedAs":["prop variant"],"definition":"type ButtonVariantType = ButtonVariantFromRegistry | 'none';","values":["primary","outline","secondary","ghost","destructive","link","none"],"extensibleVia":"ButtonVariantRegistry"},
|
|
153
159
|
{"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"]},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
{"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-button.md","silent":true,"fix":{"kind":"rename"}},
|
|
11
11
|
{"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-button.md","silent":true,"fix":{"kind":"rename"}},
|
|
12
12
|
{"name":"icon","new":"prepend:icon","hint":"an icon-only button: `prepend:icon=\"…\" icon-only`, and write the label (the slot or `text`): it stays the accessible name","since":"3.0.0-beta.72","migration":"ai/guides/migration/components/bb-dropdown-button.md","silent":true,"fix":{"kind":"manual"}},
|
|
13
|
-
{"name":"icon","new":"prepend:icon","surface":"slot","hint":"an icon-only button: `#prepend:icon` with `icon-only`","since":"3.0.0-beta.72","migration":"ai/guides/migration/components/bb-dropdown-button.md","silent":true,"fix":{"kind":"manual"}}
|
|
13
|
+
{"name":"icon","new":"prepend:icon","surface":"slot","hint":"an icon-only button: `#prepend:icon` with `icon-only`","since":"3.0.0-beta.72","migration":"ai/guides/migration/components/bb-dropdown-button.md","silent":true,"fix":{"kind":"manual"}},
|
|
14
|
+
{"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-button.md","silent":true,"fix":{"kind":"rename"}}
|
|
14
15
|
]
|
|
15
16
|
}
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"__content",
|
|
47
47
|
"__description",
|
|
48
48
|
"__empty",
|
|
49
|
+
"__empty--failed",
|
|
49
50
|
"__footer",
|
|
50
51
|
"__handle",
|
|
51
52
|
"__handle--slider",
|
|
@@ -150,6 +151,7 @@
|
|
|
150
151
|
{"class":"bb-offcanvas__content","tag":"div","reads":["--dialog-gap","--inset-bottom","--inset-left","--inset-right","--inset-top","--px","--py"]},
|
|
151
152
|
{"class":"bb-offcanvas__description","tag":"p"},
|
|
152
153
|
{"class":"bb-offcanvas__empty"},
|
|
154
|
+
{"class":"bb-offcanvas__empty--failed"},
|
|
153
155
|
{"class":"bb-offcanvas__footer","tag":"div","reads":["--dialog-gap","--gap","--inset-bottom","--inset-left","--inset-right","--px","--py","--snap-floor","--snap-y"]},
|
|
154
156
|
{"class":"bb-offcanvas__handle","tag":"div","reads":["--handle-bg","--handle-h","--handle-w"]},
|
|
155
157
|
{"class":"bb-offcanvas__handle--slider","tag":"div","reads":["--ring-t"]},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
{"name":"itemLayout","common":true},
|
|
34
34
|
{"name":"itemProps","common":true},
|
|
35
35
|
{"name":"itemReverse","common":true},
|
|
36
|
-
{"name":"items","type":"T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and
|
|
36
|
+
{"name":"items","type":"T[] | ((context: BbRadioGroupItemsContext) => T[] | Promise<T[]>)","required":true,"description":"The options: an array, or a provider called with a `BbRadioGroupItemsContext` (`reason`, `modelValue`, `signal`), sync or async. A provider fails by THROWING, never by returning `[]`: the rows clear and the failure row shows `failed-text` with \"Try again\"."},
|
|
37
37
|
{"name":"itemText","common":true},
|
|
38
38
|
{"name":"itemValue","common":true},
|
|
39
39
|
{"name":"labelAlign","common":true},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"slots": [
|
|
75
75
|
{"name":"append","type":"object","description":"Content rendered after the last option, inside the options container."},
|
|
76
76
|
{"name":"description","type":"BbRadioGroupDescriptionSlotProps","fields":["text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`."},
|
|
77
|
-
{"name":"empty","type":"
|
|
77
|
+
{"name":"empty","type":"object","description":"Content shown when no options are available (replaces the default \"no data\" text). Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with \"Try again\")."},
|
|
78
78
|
{"name":"icon","type":"BbRadioGroupIconSlotProps<T>","fields":["disabled: boolean","readonly: boolean","checked: boolean","focused: boolean","focusVisible: boolean","id: string","name: string","hasErrors: boolean","hasWarnings: boolean","parsedValue: string","value: any","item: T","text: string"],"description":"Replaces the default radio dot icon for each option. Receives the radio state plus the source item and its display text."},
|
|
79
79
|
{"name":"label","type":"BbRadioGroupLabelSlotProps<T>","fields":["item: T","text: string","checked: boolean","description: string"],"description":"Replaces the default label text for each option."},
|
|
80
80
|
{"name":"legend","type":"BbRadioGroupLegendSlotProps","fields":["showAsterisk?: boolean","text: string","hasErrors: boolean","hasWarnings: boolean"],"description":"Replaces the default fieldset legend text for the group."},
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"bb-radio-group": [
|
|
17
17
|
"",
|
|
18
18
|
"__empty",
|
|
19
|
+
"__empty--failed",
|
|
19
20
|
"__indicator",
|
|
20
21
|
"__item",
|
|
21
22
|
"__item--*",
|
|
@@ -113,6 +114,7 @@
|
|
|
113
114
|
],
|
|
114
115
|
"internal": [
|
|
115
116
|
{"class":"bb-radio-group__empty"},
|
|
117
|
+
{"class":"bb-radio-group__empty--failed"},
|
|
116
118
|
{"class":"bb-radio-group__item--aligned"},
|
|
117
119
|
{"class":"bb-radio-group__item--description","reads":["--hit","--row-gap","--row-h"]},
|
|
118
120
|
{"class":"bb-radio-group__item--input-align-bottom"},
|