bitboss-ui 3.0.0-beta.73 → 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/README.md +4 -2
- package/bin/bitboss-ui-mcp.mjs +101 -3
- package/bin/bitboss-ui.mjs +6 -1
- package/bin/cli.mjs +31 -5
- package/dist/ai/BbAvatar.md +86 -58
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +2 -2
- package/dist/ai/BbCalendar.md +9 -5
- package/dist/ai/BbCheckboxGroup.md +5 -4
- package/dist/ai/BbColorInput.md +12 -0
- package/dist/ai/BbColorPalette.md +19 -15
- package/dist/ai/BbConfirmPortal.md +1 -1
- package/dist/ai/BbDatePicker.md +16 -3
- package/dist/ai/BbDatePickerInput.md +17 -1
- package/dist/ai/BbDialog.md +16 -4
- package/dist/ai/BbDropdown.md +175 -67
- package/dist/ai/BbDropdownButton.md +27 -8
- package/dist/ai/BbForm.md +4 -1
- package/dist/ai/BbHoverCardPortal.md +1 -1
- package/dist/ai/BbNumberInput.md +8 -4
- package/dist/ai/BbPopoverPortal.md +1 -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 +59 -34
- package/dist/ai/BbTimePicker.md +16 -3
- package/dist/ai/BbTimePickerInput.md +15 -1
- package/dist/ai/BbToast.md +3 -2
- package/dist/ai/BbToastPortal.md +1 -1
- 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 +215 -6
- package/dist/ai/components.json +77 -43
- 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 +33 -0
- package/dist/ai/guides/eslint-rules.md +1 -1
- package/dist/ai/guides/fetch-items-playbook.md +7 -11
- package/dist/ai/guides/inertia-helpers.md +613 -53
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- 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 +46 -5
- package/dist/ai/guides/migration/v3-beta-tooling.md +4 -0
- package/dist/ai/guides/passthrough.md +3 -3
- package/dist/ai/guides/preset-components.md +15 -2
- package/dist/ai/guides/reporting.md +49 -0
- package/dist/ai/helpers/inertia/manifest.json +33 -38
- package/dist/ai/helpers/inertia/useHasChanged.ts +25 -37
- package/dist/ai/helpers/inertia/useQuery.ts +24 -6
- package/dist/ai/helpers/inertia/utils.ts +552 -3
- package/dist/ai/index.md +2 -1
- package/dist/ai/manifest/common.json +1 -0
- package/dist/ai/manifest/components/BbAlert.tree.json +1 -1
- package/dist/ai/manifest/components/BbAvatar.json +5 -2
- package/dist/ai/manifest/components/BbAvatar.tree.json +32 -2
- package/dist/ai/manifest/components/BbCalendar.json +2 -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 +7 -4
- package/dist/ai/manifest/components/BbColorPalette.removed.json +1 -2
- package/dist/ai/manifest/components/BbConfirmPortal.json +1 -1
- package/dist/ai/manifest/components/BbDatePicker.json +6 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +3 -0
- package/dist/ai/manifest/components/BbDialog.tree.json +7 -1
- package/dist/ai/manifest/components/BbDropdown.json +23 -17
- package/dist/ai/manifest/components/BbDropdown.removed.json +2 -1
- package/dist/ai/manifest/components/BbDropdown.tree.json +16 -5
- package/dist/ai/manifest/components/BbDropdownButton.json +15 -9
- 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/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +1 -1
- package/dist/ai/manifest/components/BbHoverCardPortal.json +1 -1
- package/dist/ai/manifest/components/BbNumberInput.json +1 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +2 -0
- package/dist/ai/manifest/components/BbPopover.json +1 -1
- package/dist/ai/manifest/components/BbPopoverPortal.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +2 -2
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +2 -0
- package/dist/ai/manifest/components/BbSelect.json +10 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +7 -4
- 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 +16 -6
- package/dist/ai/manifest/components/BbTimePicker.json +7 -4
- package/dist/ai/manifest/components/BbTimePickerInput.json +5 -2
- package/dist/ai/manifest/components/BbToastPortal.json +1 -1
- package/dist/ai/manifest/components/BbTree.json +1 -1
- package/dist/ai/manifest/components/CommonPopover.json +2 -1
- 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 +36 -3
- package/dist/ai/manifest/types.advanced.json +81 -80
- package/dist/ai/manifest/types.api.json +64 -65
- package/dist/ai/manifest/types.wrapper.json +155 -118
- package/dist/ai/recipes/inertia/layout-scaffold.md +3 -1
- package/dist/ai/recipes/nuxt/layout-scaffold.md +3 -1
- package/dist/ai/recipes/vue/layout-scaffold.md +3 -1
- package/dist/ai/source/BbAlert.md +16 -4
- package/dist/ai/source/BbAvatar.md +121 -9
- package/dist/ai/source/BbBadge.md +12 -5
- package/dist/ai/source/BbBreadcrumbs.md +56 -55
- package/dist/ai/source/BbButton.md +41 -25
- package/dist/ai/source/BbCalendar.md +22 -12
- 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 +59 -12
- package/dist/ai/source/BbConfirm.md +7 -0
- package/dist/ai/source/BbConfirmPortal.md +9 -4
- package/dist/ai/source/BbDatePicker.md +71 -22
- package/dist/ai/source/BbDatePickerInput.md +72 -9
- package/dist/ai/source/BbDialog.md +45 -2
- package/dist/ai/source/BbDropdown.md +263 -63
- package/dist/ai/source/BbDropdownButton.md +27 -2
- package/dist/ai/source/BbDropdownGroup.md +121 -59
- package/dist/ai/source/BbForm.md +73 -6
- package/dist/ai/source/BbGallery.md +76 -55
- package/dist/ai/source/BbHost.md +12 -0
- package/dist/ai/source/BbHoverCard.md +7 -0
- package/dist/ai/source/BbHoverCardPortal.md +9 -5
- package/dist/ai/source/BbNumberInput.md +22 -16
- package/dist/ai/source/BbOffCanvas.md +48 -2
- package/dist/ai/source/BbPopover.md +7 -0
- package/dist/ai/source/BbPopoverPortal.md +9 -5
- package/dist/ai/source/BbRadio.md +4 -3
- package/dist/ai/source/BbRadioGroup.md +19 -10
- 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 +126 -32
- package/dist/ai/source/BbTag.md +10 -3
- package/dist/ai/source/BbTimePicker.md +69 -15
- package/dist/ai/source/BbTimePickerInput.md +45 -7
- package/dist/ai/source/BbToast.md +16 -2
- package/dist/ai/source/BbToastPortal.md +18 -6
- package/dist/ai/source/BbTree.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +11 -5
- package/dist/ai/source/CommonPopover.md +28 -2
- 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/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +31 -26
- 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/BbCalendar.vue.d.ts +1 -1
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +235 -234
- package/dist/components/BbCalendar/types.d.ts +2 -2
- package/dist/components/BbCalendar/useDayGrid.js +120 -123
- package/dist/components/BbCalendar/useDayjsLocale.js +11 -8
- 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 +239 -223
- package/dist/components/BbColorPalette/types.d.ts +8 -1
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +2 -4
- package/dist/components/BbConfirm/types.d.ts +5 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +4 -2
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +160 -143
- package/dist/components/BbDatePicker/types.d.ts +9 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +483 -496
- package/dist/components/BbDatePickerInput/types.d.ts +7 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +252 -236
- package/dist/components/BbDialog/leaveGhost.js +38 -0
- package/dist/components/BbDialog/overlayActions.js +34 -20
- 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 +419 -368
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +384 -340
- 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 +133 -119
- 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 +73 -58
- 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/BbForm/BbForm.vue.d.ts +2 -21
- package/dist/components/BbForm/BbForm.vue_vue_type_script_setup_true_lang.js +229 -227
- package/dist/components/BbForm/types.d.ts +31 -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/BbHoverCard/BbHoverCardPortal.vue.d.ts +2 -5
- package/dist/components/BbHoverCard/types.d.ts +5 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +10 -6
- package/dist/components/BbNumberInput/numberDisplay.js +102 -106
- package/dist/components/BbNumberInput/types.d.ts +4 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +425 -409
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +2 -5
- package/dist/components/BbPopover/types.d.ts +5 -0
- package/dist/components/BbRadio/types.d.ts +4 -3
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +108 -106
- 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 +1182 -1165
- package/dist/components/BbTable/BbTableDataRow.js +96 -96
- package/dist/components/BbTable/types.d.ts +11 -10
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +9 -3
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +4 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +157 -140
- package/dist/components/BbTimePicker/types.d.ts +9 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +3 -1
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +278 -268
- 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/BbToastPortal.vue.d.ts +2 -4
- package/dist/components/BbToast/types.d.ts +7 -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/CommonFieldInput/CommonFieldInput.vue_vue_type_script_setup_true_lang.js +36 -36
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +14 -2
- package/dist/components/CommonTimeSelector/useMeridiem.js +6 -6
- 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/formSubmitLock.js +2 -1
- package/dist/composables/overlayRegistry.js +52 -42
- package/dist/composables/useActiveInactiveState.js +8 -4
- package/dist/composables/useBbDialog.js +5 -5
- package/dist/composables/useItemsGetter.js +34 -32
- package/dist/composables/useOpenModel.js +20 -0
- package/dist/composables/useOwnModel.js +16 -0
- package/dist/composables/useSegmentedFields.js +31 -20
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/i18n/currencyDigits.js +58 -0
- 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/i18n/regionDates.js +250 -0
- package/dist/i18n/regionHints.js +30 -41
- package/dist/icon-scan.js +68 -61
- package/dist/index.d.ts +35 -31
- package/dist/llms-full.txt +1428 -400
- package/dist/llms-medium.txt +8 -4
- package/dist/llms.txt +4 -2
- package/dist/locale-blueprint.json +2 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +2 -1
- package/dist/types/CommonProps.d.ts +8 -0
- package/dist/types/Option.d.ts +10 -0
- package/dist/types/ptComponentMap.d.ts +3 -3
- package/dist/utilities/functions/hash.js +97 -64
- package/dist/utilities/functions/isEqual.js +33 -25
- 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-plugin.d.ts +2 -1
- package/dist/vite.js +11 -4
- package/llms.txt +4 -2
- package/package.json +3 -2
- package/scripts/README.md +3 -1
- package/scripts/lib/adoption-checklist.json +6 -5
- package/scripts/lib/agent-manifest.mjs +33 -6
- package/scripts/lib/agent-setup.mjs +90 -24
- package/scripts/lib/cldr-pins.ts +182 -0
- package/scripts/lib/engines-include.d.mts +5 -0
- package/scripts/lib/engines-include.mjs +40 -0
- package/scripts/lib/eslint-plugin.mjs +8 -2
- package/scripts/lib/hidden-label-placeholder.mjs +25 -5
- package/scripts/lib/idiom-scan.mjs +30 -3
- package/scripts/lib/legacy-agent-files.json +152 -0
- package/scripts/lib/mcp-config.mjs +74 -7
- package/scripts/lib/portal-names.mjs +78 -8
- package/scripts/lib/release-results.mjs +5 -2
- package/scripts/lib/report.mjs +340 -0
- package/scripts/lib/run-beat.mjs +14 -0
- package/scripts/lib/run-records.mjs +313 -0
- package/scripts/lib/selector-log.mjs +98 -0
- package/scripts/lib/ticket-beat.mjs +30 -0
- package/scripts/lib/validate-bb-markup.mjs +37 -2
- package/dist/ai/manifest/components/BbAvatar.removed.json +0 -6
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbHoverCardPortalSlotProps
|
|
23
|
+
- `default` — scope: `BbHoverCardPortalSlotProps<any>` `{ data: P; close: () => void }` — The card's body. `data` is the directive's `data`; `close` closes the card.
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/BbNumberInput.md
CHANGED
|
@@ -220,12 +220,15 @@ settles back to `max` at once; `min` waits for blur or Enter, because the
|
|
|
220
220
|
digits of a valid number pass through smaller ones (typing `20` into a 16–28
|
|
221
221
|
field goes through `2`). Leave the field below `min`, or press Enter in it, and
|
|
222
222
|
it rises to `min` — Enter corrects it before a surrounding form submits, so
|
|
223
|
-
`@submit` never receives a value below `min
|
|
223
|
+
`@submit` never receives a value below `min`. A value your app sets past
|
|
224
|
+
either bound stays as it is while nobody touches the field; a focus and a
|
|
225
|
+
blur bring it inside the bounds, as Enter does (defaults are
|
|
224
226
|
the safe-integer bounds, i.e. effectively unbounded). `maxPrecision` caps the number of decimal places (default `8`),
|
|
225
227
|
which is how you pin a field to whole numbers (`0`); for money set `currency`,
|
|
226
228
|
which brings its own decimals. Extra decimals are refused as typed, never
|
|
227
229
|
rounded: with `0`, a typed `,` or `.` stays until blur and the digits after it
|
|
228
|
-
are refused (`12,5` is 12).
|
|
230
|
+
are refused (`12,5` is 12). The cap is on typing only: a model set from code
|
|
231
|
+
with more decimals shows and posts all of them. `minPrecision` (default `0`) is
|
|
229
232
|
its twin: with `2` the field always shows two decimals (`1` shows `1,00`),
|
|
230
233
|
padding with zeros the user types over, while the model stays the number
|
|
231
234
|
(`1.5`).
|
|
@@ -379,7 +382,8 @@ const formattedSubtotal = computed(() =>
|
|
|
379
382
|
`currency="EUR"` (an ISO 4217 code) shows the amount the locale's way, symbol
|
|
380
383
|
included, inside the text: `1.234,56 €` in Italian, `$1,234.56` in English,
|
|
381
384
|
`CHF-1’234.56` in Swiss German. The decimals follow the currency (2 for EUR,
|
|
382
|
-
0 for JPY, 3 for KWD
|
|
385
|
+
0 for JPY and HUF, 3 for KWD, from a table the library ships, so every browser
|
|
386
|
+
agrees); `minPrecision` / `maxPrecision` win when you set them.
|
|
383
387
|
`unit="kilogram"` does the same for a measure (`20 kg`, any unit
|
|
384
388
|
`Intl.NumberFormat` knows); `unit="percent"` holds the number you see, so `15%`
|
|
385
389
|
is `15`, not `0.15`. Set one or the other; with both, `currency` wins. The
|
|
@@ -891,7 +895,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
891
895
|
| `layout` | `Responsive<FieldLayout> \| undefined` | | | How label and input sit together: `'vertical'`, `'horizontal'` (50/50), `'auto'`, `'label-fill'`, `'input-fill'`, a ratio like `'xx xxxxx'`, or a per-breakpoint map (`{ default: 'vertical', md: 'xx xxxxx' }`). |
|
|
892
896
|
| `loading` | `boolean \| undefined` | `false` | | Sets the component in a loading state, usually triggering some visual styles. |
|
|
893
897
|
| `max` | `number \| undefined` | `Number.MAX_SAFE_INTEGER` | | Maximum value cap. |
|
|
894
|
-
| `maxPrecision` | `number \| undefined` | `8` | | Maximum
|
|
898
|
+
| `maxPrecision` | `number \| undefined` | `8` | | Maximum fraction digits the user can TYPE (more are refused, never rounded); a model with more still shows them all. With `currency`, the currency's own digits (`2` EUR, `0` JPY and HUF, `3` KWD), or `minPrecision` when that is larger. |
|
|
895
899
|
| `min` | `number \| undefined` | `Number.MIN_SAFE_INTEGER` | | Minimum value cap. Applied on blur and on Enter (before a surrounding form submits), not while typing, so a value above a `min` greater than 1 can be typed digit by digit. |
|
|
896
900
|
| `minPrecision` | `number \| undefined` | `0` | | Fraction digits always shown (`2`: `1` shows `1,00`), also while typing, where the padding zeros are placeholders; the model stays the number. Above `maxPrecision` it gives way. Applies with `disableFormatting` too. With `currency`: the currency's own digits. |
|
|
897
901
|
| `modelValue` | `string \| number \| null \| undefined` | `null` | | Used by v-model. |
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
## Slots
|
|
22
22
|
|
|
23
|
-
- `default` — scope: `BbPopoverPortalSlotProps
|
|
23
|
+
- `default` — scope: `BbPopoverPortalSlotProps<any>` `{ data: P; close: () => void }` — The popover body. `data` is the directive's `data`; `close` closes the popover.
|
|
24
24
|
|
|
25
25
|
## See Also
|
|
26
26
|
|
package/dist/ai/BbRadioGroup.md
CHANGED
|
@@ -566,8 +566,8 @@ Keep the set short enough that arrow-cycling stays quick; past ~6 options prefer
|
|
|
566
566
|
|
|
567
567
|
`items` accepts a provider function for options fetched from an API;
|
|
568
568
|
`loading-text` / `#loading` and `empty-text` / `#empty` cover the loading
|
|
569
|
-
and empty states, `failed-text`
|
|
570
|
-
|
|
569
|
+
and empty states, `failed-text` words the failure row of a load that threw
|
|
570
|
+
(with a built-in "Try again"; `#empty` is for empty results only), `dependencies` (+ `deps-debounce-time`) trigger re-fetches,
|
|
571
571
|
and `enforce-coherence` resets the model to `null` when the current value no
|
|
572
572
|
longer matches an available option. See the
|
|
573
573
|
[fetch-items](../../ai/guides/fetch-items-playbook.md) and
|
|
@@ -1049,7 +1049,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
1049
1049
|
| `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
|
|
1050
1050
|
| `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
|
|
1051
1051
|
| `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
|
|
1052
|
-
| `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | 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
|
|
1052
|
+
| `items` | `T[] \| ((context: BbRadioGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | 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". |
|
|
1053
1053
|
| `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
|
|
1054
1054
|
| `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
|
|
1055
1055
|
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
@@ -1126,7 +1126,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1126
1126
|
|
|
1127
1127
|
- `append` — scope: `object` — Content rendered after the last option, inside the options container.
|
|
1128
1128
|
- `description` — scope: `BbRadioGroupDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
|
|
1129
|
-
- `empty` — scope: `
|
|
1129
|
+
- `empty` — scope: `object` — 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").
|
|
1130
1130
|
- `icon` — scope: `BbRadioGroupIconSlotProps<T>` `{ 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 }` — Replaces the default radio dot icon for each option. Receives the radio state plus the source item and its display text.
|
|
1131
1131
|
- `label` — scope: `BbRadioGroupLabelSlotProps<T>` `{ item: T; text: string; checked: boolean; description: string }` — Replaces the default label text for each option.
|
|
1132
1132
|
- `legend` — scope: `BbRadioGroupLegendSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default fieldset legend text for the group.
|
package/dist/ai/BbSelect.md
CHANGED
|
@@ -810,8 +810,8 @@ picked someone:
|
|
|
810
810
|
v-model="reviewers"
|
|
811
811
|
clearable
|
|
812
812
|
compact
|
|
813
|
-
:dependencies="[retry]"
|
|
814
813
|
empty-text="No members match your search"
|
|
814
|
+
failed-text="Couldn't load members."
|
|
815
815
|
:filter-by="false"
|
|
816
816
|
hint="Type a name to search"
|
|
817
817
|
item-text="name"
|
|
@@ -824,21 +824,13 @@ picked someone:
|
|
|
824
824
|
:query-debounce-time="300"
|
|
825
825
|
stash
|
|
826
826
|
>
|
|
827
|
-
<template #empty="{
|
|
828
|
-
<template v-if="error">
|
|
829
|
-
Couldn't load members.
|
|
830
|
-
<BbButton size="sm" variant="ghost" @click="retry++">
|
|
831
|
-
Try again
|
|
832
|
-
</BbButton>
|
|
833
|
-
</template>
|
|
834
|
-
<template v-else>No members match “{{ query }}”</template>
|
|
835
|
-
</template>
|
|
827
|
+
<template #empty="{ query }">No members match “{{ query }}”</template>
|
|
836
828
|
</BbSelect>
|
|
837
829
|
</div>
|
|
838
830
|
</template>
|
|
839
831
|
<script setup lang="ts">
|
|
840
832
|
import { ref } from 'vue';
|
|
841
|
-
import {
|
|
833
|
+
import { BbSelect } from 'bitboss-ui';
|
|
842
834
|
import type { BbSelectItemsContext } from 'bitboss-ui';
|
|
843
835
|
|
|
844
836
|
type Member = {
|
|
@@ -906,8 +898,6 @@ const searchMembers = async ({
|
|
|
906
898
|
};
|
|
907
899
|
|
|
908
900
|
const reviewers = ref<string[]>([]);
|
|
909
|
-
// The retry: bumping a dependency reloads with `reason: 'dependencies'`.
|
|
910
|
-
const retry = ref(0);
|
|
911
901
|
</script>
|
|
912
902
|
```
|
|
913
903
|
|
|
@@ -1113,24 +1103,17 @@ nothing to catch.
|
|
|
1113
1103
|
|
|
1114
1104
|
A provider signals a failure by **throwing** — never by returning `[]`, which is
|
|
1115
1105
|
a real, applied result. On a failed call the select clears the rows (stale rows
|
|
1116
|
-
never sit under a new filter), prunes nothing, and shows
|
|
1117
|
-
default "Couldn't load items")
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
own flow (debounced, aborting the call in flight):
|
|
1106
|
+
never sit under a new filter), prunes nothing, and shows its own failure row
|
|
1107
|
+
under the list: `failed-text` (locale default "Couldn't load items"),
|
|
1108
|
+
announced, then a "Try again" button. With `stash` the row sits below the picks
|
|
1109
|
+
the stash still names. "Try again" runs the failed call again with the same
|
|
1110
|
+
query, on click only, and hands focus back to the search field. `#empty` means
|
|
1111
|
+
empty: it never renders for a failure, so write empty copy there and word the
|
|
1112
|
+
failure with `failed-text`:
|
|
1124
1113
|
|
|
1125
1114
|
```vue
|
|
1126
|
-
<BbSelect :items="searchMembers"
|
|
1127
|
-
<template #empty="{
|
|
1128
|
-
<template v-if="error">
|
|
1129
|
-
Couldn't load members.
|
|
1130
|
-
<BbButton size="sm" variant="ghost" @click="retry++">Try again</BbButton>
|
|
1131
|
-
</template>
|
|
1132
|
-
<template v-else>No members match “{{ query }}”</template>
|
|
1133
|
-
</template>
|
|
1115
|
+
<BbSelect :items="searchMembers" failed-text="Couldn't load members." …>
|
|
1116
|
+
<template #empty="{ query }">No members match “{{ query }}”</template>
|
|
1134
1117
|
</BbSelect>
|
|
1135
1118
|
```
|
|
1136
1119
|
|
|
@@ -1146,8 +1129,9 @@ own flow (debounced, aborting the call in flight):
|
|
|
1146
1129
|
- **Panel states**: `loading-text` / `empty-text` / `failed-text` (locale
|
|
1147
1130
|
defaults "Loading..." / "No data to display" / "Couldn't load items") or the
|
|
1148
1131
|
`#loading` / `#empty` slots — both receive `{ query }`, `#empty` also
|
|
1149
|
-
`focus()
|
|
1150
|
-
`
|
|
1132
|
+
`focus()` and `close()` (for an action that keeps focus in the panel). A
|
|
1133
|
+
failed load has its own row (`failed-text` and "Try again"), never
|
|
1134
|
+
`#empty`.
|
|
1151
1135
|
|
|
1152
1136
|
`stash` accumulates picked options across searches: a pick stays named (chips
|
|
1153
1137
|
keep their text) when a later search or a failed load no longer returns it. It
|
|
@@ -1620,6 +1604,13 @@ Pressing Enter in the search field with **no option highlighted** emits
|
|
|
1620
1604
|
does not create anything itself: append the new item to `items` and select it.
|
|
1621
1605
|
This is the idiomatic pattern for closed-but-growable vocabularies.
|
|
1622
1606
|
|
|
1607
|
+
While you listen to `option:add`, a typed query that no option matches
|
|
1608
|
+
exactly (case aside) also gets a **"Create «query»" row**: the last row after
|
|
1609
|
+
the matches, or the only one when nothing matches (in place of the
|
|
1610
|
+
no-results text and `#empty`). It is a real option, clickable and reached
|
|
1611
|
+
with the arrow keys, and activating it does what Enter does. It is not shown
|
|
1612
|
+
while the list loads or after a failed load.
|
|
1613
|
+
|
|
1623
1614
|
**Create a label by pressing Enter**
|
|
1624
1615
|
|
|
1625
1616
|
```vue
|
|
@@ -1677,14 +1668,12 @@ const createLabel = (text: string) => {
|
|
|
1677
1668
|
</script>
|
|
1678
1669
|
```
|
|
1679
1670
|
|
|
1680
|
-
#### A record that needs its own form: open its dialog from
|
|
1671
|
+
#### A record that needs its own form: open its dialog from `option:add`
|
|
1681
1672
|
|
|
1682
1673
|
When creating the missing row takes a real form (a person, a company), the
|
|
1683
|
-
select doesn't create it: its dialog does.
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
`option:add`. Open the dialog from code, seed it with the query, and on
|
|
1687
|
-
`completed` add the row and select it:
|
|
1674
|
+
select doesn't create it: its dialog does. Handle `option:add` (the create
|
|
1675
|
+
row's click and Enter both land there): open the dialog from code, seed it
|
|
1676
|
+
with the query, and on `completed` add the row and select it:
|
|
1688
1677
|
|
|
1689
1678
|
**No results? Create the person in a dialog**
|
|
1690
1679
|
|
|
@@ -1705,17 +1694,7 @@ came up empty, as one line in `#empty` with an inline `BbBaseButton` (not a
|
|
|
1705
1694
|
:items="people"
|
|
1706
1695
|
label="Contact"
|
|
1707
1696
|
@option:add="(query) => query && create(query)"
|
|
1708
|
-
|
|
1709
|
-
<template #empty="{ query }">
|
|
1710
|
-
No results for “{{ query }}”.
|
|
1711
|
-
<BbBaseButton
|
|
1712
|
-
class="font-medium text-(--bb-primary) hover:underline"
|
|
1713
|
-
@click="create(query)"
|
|
1714
|
-
>
|
|
1715
|
-
Create {{ query }}
|
|
1716
|
-
</BbBaseButton>
|
|
1717
|
-
</template>
|
|
1718
|
-
</BbSelect>
|
|
1697
|
+
/>
|
|
1719
1698
|
|
|
1720
1699
|
<!-- In an app this is its own CreatePersonDialog.vue: pass the component
|
|
1721
1700
|
to useBbDialog instead of the id. -->
|
|
@@ -1734,7 +1713,6 @@ came up empty, as one line in `#empty` with an inline `BbBaseButton` (not a
|
|
|
1734
1713
|
<script setup lang="ts">
|
|
1735
1714
|
import { ref } from 'vue';
|
|
1736
1715
|
import {
|
|
1737
|
-
BbBaseButton,
|
|
1738
1716
|
BbButton,
|
|
1739
1717
|
BbDialog,
|
|
1740
1718
|
BbForm,
|
|
@@ -1757,8 +1735,8 @@ const save = async (values: Record<string, unknown>): Promise<Person> => ({
|
|
|
1757
1735
|
name: String(values.name),
|
|
1758
1736
|
});
|
|
1759
1737
|
|
|
1760
|
-
// The handle lives in setup
|
|
1761
|
-
//
|
|
1738
|
+
// The handle lives in setup: the panel closes as the dialog takes focus, and
|
|
1739
|
+
// the create row goes with it.
|
|
1762
1740
|
const personDialog = useBbDialog<{ name: string }, Person>('person-create');
|
|
1763
1741
|
const create = async (name: string) => {
|
|
1764
1742
|
const result = await personDialog.show({ name });
|
|
@@ -1770,13 +1748,11 @@ const create = async (name: string) => {
|
|
|
1770
1748
|
```
|
|
1771
1749
|
|
|
1772
1750
|
- **Open it with a handle from setup**, `useBbDialog(CreatePersonDialog)`
|
|
1773
|
-
(or an id), never `v-bb-dialog` on
|
|
1774
|
-
closes as the dialog takes focus and
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
(
|
|
1778
|
-
works either way. The ESLint rule `bitboss-ui/no-dialog-in-panel` reports
|
|
1779
|
-
the on-demand form ([ESLint rules](./guides/eslint-rules.md)).
|
|
1751
|
+
(or an id), never `v-bb-dialog` on a button inside the panel: the panel
|
|
1752
|
+
closes as the dialog takes focus, and an on-demand opening
|
|
1753
|
+
(`v-bb-dialog="{ component }"`) is dismissed with its trigger. The ESLint
|
|
1754
|
+
rule `bitboss-ui/no-dialog-in-panel` reports the on-demand form
|
|
1755
|
+
([ESLint rules](./guides/eslint-rules.md)).
|
|
1780
1756
|
- **Inside another dialog it just stacks.** The create dialog opens above the
|
|
1781
1757
|
one holding the select, and on close focus comes back to the select, closed,
|
|
1782
1758
|
showing the new pick. Nothing to wire.
|
|
@@ -1784,7 +1760,7 @@ const create = async (name: string) => {
|
|
|
1784
1760
|
`known-items` (`{ value: person.id, label: person.name }`): the provider
|
|
1785
1761
|
returns it on the next load.
|
|
1786
1762
|
- **Keyboard**: Enter in the search field fires `option:add` (no option is
|
|
1787
|
-
highlighted when nothing matched), and
|
|
1763
|
+
highlighted when nothing matched), and the arrow keys reach the create row.
|
|
1788
1764
|
|
|
1789
1765
|
### Group related options
|
|
1790
1766
|
|
|
@@ -1797,6 +1773,11 @@ no group: those rows are listed **first**, before every header, and `#group` is
|
|
|
1797
1773
|
not called for them (a known row is listed the same way). `BbDropdown`'s
|
|
1798
1774
|
`groupBy` follows the same rule.
|
|
1799
1775
|
|
|
1776
|
+
Headers are sticky: the header of the group you are scrolling through stays
|
|
1777
|
+
pinned at the top of the list, and leaves with its group's last option. A list
|
|
1778
|
+
that opens on a selection shows its group's header right above it, and a row
|
|
1779
|
+
reached with the arrow keys always stops below the pinned header.
|
|
1780
|
+
|
|
1800
1781
|
A grouped list virtualizes **whole groups, not rows**: a group mounts only
|
|
1801
1782
|
when it scrolls into range, but all of its rows mount together. Many
|
|
1802
1783
|
small-to-medium groups window just as well as a flat list; one very large
|
|
@@ -2040,11 +2021,39 @@ is all you need.
|
|
|
2040
2021
|
- `clearable` — clear affix when a value exists; emits `null` / `[]`. Single: re-clicking the pick clears too.
|
|
2041
2022
|
- Empty panel — `empty-text` or `#empty`.
|
|
2042
2023
|
|
|
2024
|
+
### Opening from code: `v-model:open`
|
|
2025
|
+
|
|
2026
|
+
`v-model` is the value; `v-model:open` is whether the options panel is open. Bound,
|
|
2027
|
+
your ref opens and closes it, and every open and close the user makes is
|
|
2028
|
+
written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
|
|
2029
|
+
listener is only the initial state. An open from code is the same open a
|
|
2030
|
+
click makes (focus moves into the panel), and `disabled` / `readonly` refuse it (the ref is set back
|
|
2031
|
+
to `false`).
|
|
2032
|
+
|
|
2033
|
+
```vue
|
|
2034
|
+
<script setup lang="ts">
|
|
2035
|
+
import { ref } from 'vue';
|
|
2036
|
+
|
|
2037
|
+
const city = ref<string | null>(null);
|
|
2038
|
+
const open = ref(false);
|
|
2039
|
+
</script>
|
|
2040
|
+
|
|
2041
|
+
<template>
|
|
2042
|
+
<BbButton text="Choose a city" @click="open = true" />
|
|
2043
|
+
<BbSelect
|
|
2044
|
+
v-model="city"
|
|
2045
|
+
v-model:open="open"
|
|
2046
|
+
label="City"
|
|
2047
|
+
:items="['Milan', 'Rome', 'Turin']"
|
|
2048
|
+
/>
|
|
2049
|
+
</template>
|
|
2050
|
+
```
|
|
2051
|
+
|
|
2043
2052
|
### Events and v-model
|
|
2044
2053
|
|
|
2045
2054
|
- `update:modelValue` — the resolved value (single) or array (multiple), on
|
|
2046
2055
|
pick, chip removal, clear and coherence enforcement.
|
|
2047
|
-
- `option:add` — Enter on a query with no highlighted option (see above).
|
|
2056
|
+
- `option:add` — Enter on a query with no highlighted option, or the create row (see above).
|
|
2048
2057
|
- `focus` / `blur` — the control gaining/losing focus; `input` / `change` —
|
|
2049
2058
|
native events from the panel search field.
|
|
2050
2059
|
- `inactive` — focus has fully left the component (control **and** panel).
|
|
@@ -2381,8 +2390,8 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2381
2390
|
- **A failed load is not an empty one.** A provider throws to fail; returning
|
|
2382
2391
|
`[]` is applied as a real empty result and, with `enforce-coherence`, prunes
|
|
2383
2392
|
every pick. On a failure the rows are cleared, nothing is pruned, and the
|
|
2384
|
-
panel shows `failed-text` (with `stash`,
|
|
2385
|
-
names); `#empty`
|
|
2393
|
+
panel shows its failure row, `failed-text` and "Try again" (with `stash`,
|
|
2394
|
+
below the picks the stash still names); `#empty` stays for empty results.
|
|
2386
2395
|
- `option:add` can fire with an empty string — trim and guard in the handler.
|
|
2387
2396
|
|
|
2388
2397
|
### Anti-patterns
|
|
@@ -2422,6 +2431,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2422
2431
|
## v-model
|
|
2423
2432
|
|
|
2424
2433
|
- `v-model` — type: `any`
|
|
2434
|
+
- `v-model:open` — type: `boolean \| undefined`
|
|
2425
2435
|
|
|
2426
2436
|
## Props
|
|
2427
2437
|
|
|
@@ -2441,7 +2451,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2441
2451
|
| `disabled` | `boolean \| undefined` | `false` | | Disables the component. |
|
|
2442
2452
|
| `disableWriting` | `boolean \| "auto" \| "mobile" \| "desktop" \| undefined` | `'auto'` | | Hides the panel's search field: `true` everywhere, `'mobile'` / `'desktop'` on that platform only. `'auto'` hides it, per open, for an array `items` shorter than the plugin's `autoDisableWritingThreshold` (6); never for a provider or with an `option:add` listener. |
|
|
2443
2453
|
| `emptyText` | `string \| undefined` | | | String displayed when there are no items to display. |
|
|
2444
|
-
| `enforceCoherence` | `boolean \| undefined` | `false` | | After
|
|
2454
|
+
| `enforceCoherence` | `boolean \| undefined` | `false` | | After each successful non-search load, removes the picks the fetched rows lack (a single model resets to `null`). A `stash` does not count; a `known-items` value stays until a parent change; a search or a failed load never prunes. |
|
|
2445
2455
|
| `errors` | `string \| string[] \| undefined` | | | Error messages under the field, a string or array, in an `aria-live="polite"` region and first in the control's `aria-describedby`, so they are re-read when it regains focus. |
|
|
2446
2456
|
| `failedText` | `string \| undefined` | `the localized `common.failedText` ("Couldn't load items")` | | String displayed in the empty state while the latest load FAILED (the provider threw): the twin of `emptyText` for that case. |
|
|
2447
2457
|
| `filterBy` | `false \| string[] \| undefined` | `[]` | | What typing filters on: empty = the display text and description; item paths = those fields (`['name', 'email']`); `false` = no filtering. Ranked, case and accents ignored (guide § Search). Use `false` when the provider matched the query on the server, or its email matches show as "No results". |
|
|
@@ -2475,6 +2485,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2475
2485
|
| `multiple` | `boolean \| undefined` | `false` | | Allows the selection of multiple items. |
|
|
2476
2486
|
| `name` | `string \| undefined` | | | Defines the name of the input. |
|
|
2477
2487
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
|
|
2488
|
+
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
2478
2489
|
| `persistentHint` | `boolean \| undefined` | `false` | | Keeps the hint displayed. |
|
|
2479
2490
|
| `placeholder` | `string \| undefined` | | | Text shown in the field while nothing is picked (an empty list has `emptyText`). |
|
|
2480
2491
|
| `prefill` | `boolean \| "interaction" \| undefined` | `'interaction'` | | When the options first load: `'interaction'` on first open, `true` on mount, `false` only once the user types (on open with `disable-writing`). An array `items` or a seeded model always loads at once. |
|
|
@@ -2486,7 +2497,7 @@ it: [passthrough guide § Typing `pt` in `<script>`](./guides/passthrough.md#typ
|
|
|
2486
2497
|
| `rules` | `RuleExpression<any>` | | | vee-validate rules for this field. Only inside a `BbForm`. |
|
|
2487
2498
|
| `selectable` | `boolean \| ((item: T) => boolean) \| undefined` | `true` | | Defines whether options are selectable. Can be a global boolean that affects all options or a function that accepts an item and returns a boolean that only affects that item. Non-selectable options are rendered disabled. |
|
|
2488
2499
|
| `selectedLabelsFn` | `((count: number) => string) \| undefined` | | | Function that returns a string to be displayed when the number of selected labels is greater than `maxSelectedLabels`. |
|
|
2489
|
-
| `stash` | `boolean \| undefined` | `false` | | Keeps
|
|
2500
|
+
| `stash` | `boolean \| undefined` | `false` | | Keeps picks named (their chips keep their text) when a later search or a failed load no longer returns them. It follows the model; it does not keep a pick valid (`enforce-coherence` still prunes it). |
|
|
2490
2501
|
| `transitionDuration` | `number \| undefined` | `250` | | How long the transition has to last in milliseconds. |
|
|
2491
2502
|
| `validationLabel` | `string \| undefined` | | | The field's name in validation messages (`{field}`): "Email is not valid". Defaults to the `label` (or `legend`), then "This field"; never the `name`. Set it when the label is hidden or reads badly in a sentence (icon-only, a question). `BbForm` only. |
|
|
2492
2503
|
| `validationMode` | `'aggressive'` \| `'balanced'` \| `'lazy'` \| `'submit-only'` \| `'submit-live'` | | | When the field validates: `aggressive` (each change), `balanced` (on leave, then live while in error), `lazy` (on leave), `submit-only`, `submit-live`. Unset: the `BbForm`'s `validation-mode`, then `all.validationMode` (`'balanced'`). `BbForm` only. |
|
|
@@ -2556,20 +2567,21 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
2556
2567
|
- `show` — `(): void` — Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone).
|
|
2557
2568
|
- `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
|
|
2558
2569
|
- `update:modelValue` — `(value: any): void` — Emitted with the new value whenever `v-model` changes.
|
|
2570
|
+
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
2559
2571
|
|
|
2560
2572
|
## Slots
|
|
2561
2573
|
|
|
2562
2574
|
- `append` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content appended inside the input field, after the value area.
|
|
2563
2575
|
- `append:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content appended outside the input field wrapper.
|
|
2564
|
-
- `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` —
|
|
2576
|
+
- `chip` — scope: `BbSelectChipSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; text: string; value: any; disabled: boolean; deselect: () => void }` — Each selection's badge with `multiple` (not in `comma` mode, nor the "+N" summary). With `known-items` bound, `item` is the known `{ value, label }` row (`known: true`) until the list brings the real one.
|
|
2565
2577
|
- `description` — scope: `BbSelectDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
|
|
2566
|
-
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>;
|
|
2578
|
+
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content shown when no options match the query or the list is empty. Empty only: a failed load shows the failure row (`failed-text`, then "Try again"). `close()` closes the panel, for an action that does not move focus out of it.
|
|
2567
2579
|
- `footer` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the bottom of the options panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
|
|
2568
2580
|
- `group` — scope: `BbSelectGroupSlotProps<T>` `{ text: string; item: T; index: number; length: number; disabled: boolean }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
|
|
2569
2581
|
- `header` — scope: `BbSelectPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption[] }` — Content pinned to the top of the options panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
|
|
2570
2582
|
- `label` — scope: `BbSelectLabelSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default label text rendered above the input.
|
|
2571
2583
|
- `loading` — scope: `{ query: string; }` — Content shown inside the options dropdown while items are loading.
|
|
2572
|
-
- `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` —
|
|
2584
|
+
- `option` — scope: `BbSelectOptionSlotProps<T, Known>` `{ known: boolean; item: BbSelectKnownItem \| T; disabled: boolean; focused: boolean; index: number; hasErrors?: boolean; loading: boolean; selected: boolean; text: string; value: any; description: string }` — Each option row's content. With `known-items` bound, a row the list has not brought yet is the known `{ value, label }` row (`known: true`): check `known` before reading an option field off `item`.
|
|
2573
2585
|
- `prefix` — scope: `object` — Content rendered as an inline prefix inside the input field.
|
|
2574
2586
|
- `prepend` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content prepended inside the input field, before the value area.
|
|
2575
2587
|
- `prepend:outer` — scope: `{ query: string; close: () => Promise<void>; }` — Content prepended outside the input field wrapper.
|
|
@@ -436,8 +436,9 @@ Items playbook. The essentials:
|
|
|
436
436
|
chips stay accurate; `modelValue` is your v-model as-is (typed `any`);
|
|
437
437
|
`signal` is an `AbortSignal` to pass to every request.
|
|
438
438
|
- A provider **throws** to fail (never `return []`, an applied empty result):
|
|
439
|
-
the rows are cleared, nothing is pruned,
|
|
440
|
-
|
|
439
|
+
the rows are cleared, nothing is pruned, and the failure row shows
|
|
440
|
+
`failed-text` with a built-in "Try again" (`#empty` is for empty results
|
|
441
|
+
only). A pick no row has
|
|
441
442
|
named yet still shows (trigger text, phone-sheet chip): its value as given
|
|
442
443
|
when it is a string or a number, else no text.
|
|
443
444
|
|
|
@@ -1074,6 +1075,12 @@ closed-but-growable vocabularies — the same as `BbSelect`. The behaviour is ga
|
|
|
1074
1075
|
by the search field existing; `disable-writing` (which removes the field) also
|
|
1075
1076
|
disables it.
|
|
1076
1077
|
|
|
1078
|
+
While you listen to `option:add`, a typed query that no option matches
|
|
1079
|
+
exactly (case aside) also gets a **"Create «query»" row**: last after the
|
|
1080
|
+
matches, or the only row when nothing matches (in place of the no-results
|
|
1081
|
+
text and `#empty`). It is a real option (click, arrow keys, announced) and
|
|
1082
|
+
does what Enter does; not while the list loads or after a failed load.
|
|
1083
|
+
|
|
1077
1084
|
```ts
|
|
1078
1085
|
const roles = ref<string[]>(['Reviewer', 'Approver']);
|
|
1079
1086
|
const role = ref<string | null>(null);
|
|
@@ -1639,12 +1646,21 @@ popover ↔ sheet. `off-canvas-props` forwards extra `BbOffCanvas` props to the
|
|
|
1639
1646
|
sheet (`size`, `draggable`, `fullscreen`, `stack`); `:adaptive="false"` keeps a
|
|
1640
1647
|
floating popover everywhere.
|
|
1641
1648
|
|
|
1649
|
+
### Opening from code: `v-model:open`
|
|
1650
|
+
|
|
1651
|
+
`v-model` is the value; `v-model:open` is whether the options panel is open. Bound,
|
|
1652
|
+
your ref opens and closes it, and every open and close the user makes is
|
|
1653
|
+
written back: a pick, Escape, a click outside, the phone sheet's own dismiss. A static `:open` with no
|
|
1654
|
+
listener is only the initial state. An open from code is the same open a
|
|
1655
|
+
click makes (focus moves into the panel), and `disabled` / `readonly` refuse it (the ref is set back
|
|
1656
|
+
to `false`).
|
|
1657
|
+
|
|
1642
1658
|
### Events and v-model
|
|
1643
1659
|
|
|
1644
1660
|
- `update:modelValue` — the resolved value (single) or array (multiple), on pick,
|
|
1645
1661
|
`clear`, coherence enforcement, and — in `multiple` mode only — deselect.
|
|
1646
1662
|
A second click on the current option in single mode emits nothing.
|
|
1647
|
-
- `option:add` — Enter on a non-matching query with nothing highlighted (above).
|
|
1663
|
+
- `option:add` — Enter on a non-matching query with nothing highlighted, or the create row (above).
|
|
1648
1664
|
- `focus` / `blur` — the activator gaining/losing focus.
|
|
1649
1665
|
- `input` / `change` — native events from the panel search field.
|
|
1650
1666
|
- `click` — the activator was clicked.
|
|
@@ -1806,7 +1822,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1806
1822
|
it does not keep them valid.
|
|
1807
1823
|
- A provider **throws** to fail; `return []` is an applied empty result that
|
|
1808
1824
|
prunes every pick. On a failure the rows are cleared, nothing is pruned,
|
|
1809
|
-
`failed-text`
|
|
1825
|
+
and the failure row shows `failed-text` with "Try again", never `#empty`.
|
|
1810
1826
|
- `enforce-coherence` opts **each instance** into its own load. One field, one
|
|
1811
1827
|
request; N provider-backed rows, N requests.
|
|
1812
1828
|
- `option:add` can fire with an empty string — trim and guard.
|
|
@@ -1890,6 +1906,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1890
1906
|
## v-model
|
|
1891
1907
|
|
|
1892
1908
|
- `v-model` — type: `any`
|
|
1909
|
+
- `v-model:open` — type: `boolean \| undefined`
|
|
1893
1910
|
|
|
1894
1911
|
## Props
|
|
1895
1912
|
|
|
@@ -1934,6 +1951,7 @@ A `pt` value written in `<script>` (a constant, a preset, a wrapper's
|
|
|
1934
1951
|
| `multiple` | `boolean \| undefined` | `false` | | Enable multiple item selection. When true, modelValue must be an array. |
|
|
1935
1952
|
| `offCanvasProps` | `Partial<BbOffCanvasProps> \| undefined` | | | Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on mobile), spread over its defaults. A `pt` inside it styles only the sheet (passthrough guide § Inside the sheet). |
|
|
1936
1953
|
| `offset` | `number \| undefined` | `4` | | Distance (px) between the activator and the popover. |
|
|
1954
|
+
| `open` | `boolean \| undefined` | `false` | | Whether the panel is open (`v-model:open`; `v-model` stays the value). Bound, the app opens and closes it; unbound, the initial state. |
|
|
1937
1955
|
| `padding` | `number \| undefined` | `10` | | Minimum page padding used by floating shift middleware. |
|
|
1938
1956
|
| `placement` | `'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'` | `"bottom"` | | Floating placement of the popover. |
|
|
1939
1957
|
| `prefill` | `boolean \| "interaction" \| undefined` | `"interaction"` | | When the options first load: `'interaction'` on first open, `true` on mount (and in SSR), `false` once the user types (on open with `disable-writing` or a non-empty model). An array `items` always resolves on mount; else a seeded model's text waits for the first open. |
|
|
@@ -1988,11 +2006,12 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
1988
2006
|
- `show` — `(): void` — Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone).
|
|
1989
2007
|
- `shown` — `(): void` — Emitted once the options surface is open and its open transition has finished.
|
|
1990
2008
|
- `update:modelValue` — `(value: any): void` — Emitted with the next selection value whenever selection changes.
|
|
2009
|
+
- `update:open` — `(value: boolean): void` — The panel opened or closed (`v-model:open`).
|
|
1991
2010
|
|
|
1992
2011
|
## Slots
|
|
1993
2012
|
|
|
1994
2013
|
- `activator` — scope: `BbSelectPopoverActivatorSlotProps` `{ clear: () => void; close: () => Promise<void>; focus: () => void; disabled: boolean; loading: boolean; open: () => Promise<void>; props: { ref: (reference: unknown) => void; }; query: string; readonly: boolean; selectedOptions: BbSelectResolvedOption<any>[]; shown: boolean; text: string; toggle: () => Promise<void> }` — Replaces the default trigger element that opens the select popover.
|
|
1995
|
-
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>;
|
|
2014
|
+
- `empty` — scope: `{ query: string; focus: () => void; close: () => Promise<void>; }` — Content shown when no options match the query or the list is empty. Empty only: a failed load shows the library's failure row instead (its message is `failed-text`, and it ends with "Try again"). `close()` closes the panel, for an action that does not move focus out of it.
|
|
1996
2015
|
- `footer` — scope: `BbSelectPopoverPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption<any>[]; titleId: string }` — Content pinned to the bottom of the panel, below the options list. Rendered in both the desktop popover and the adaptive sheet.
|
|
1997
2016
|
- `group` — scope: `BbSelectPopoverGroupSlotProps<Item>` `{ disabled: boolean; index: number; item: Item; length: number; text: string }` — Replaces the default group header rendered above grouped options. Not called for rows with no group (`group-by` gives `null`/`undefined`, known rows): they are listed without a header.
|
|
1998
2017
|
- `header` — scope: `BbSelectPopoverPanelSlotProps` `{ close: () => Promise<void>; clear: () => void; empty: boolean; focus: () => void; query: string; selectedOptions: BbSelectResolvedOption<any>[]; titleId: string }` — Content pinned to the top of the panel, above the search field. Rendered in both the desktop popover and the adaptive sheet.
|
package/dist/ai/BbSwitchGroup.md
CHANGED
|
@@ -504,8 +504,9 @@ called with one context object — `BbSwitchGroupItemsContext`: `reason`
|
|
|
504
504
|
`'model'` when the model changed from outside and the options cannot resolve
|
|
505
505
|
it), `modelValue` and `signal`; a group has no search field, so no `query`.
|
|
506
506
|
While it resolves, `loading-text` (or the `#loading` slot) shows; `empty-text`
|
|
507
|
-
(or `#empty`) covers the empty result, and `failed-text`
|
|
508
|
-
|
|
507
|
+
(or `#empty`) covers the empty result, and `failed-text` words the failure
|
|
508
|
+
row of a load that threw (it ends with a built-in "Try again"; `#empty` never
|
|
509
|
+
renders for a failure). Loading, cancellation and race protection are
|
|
509
510
|
built in — don't wrap the provider in your own `loading` ref or debounce.
|
|
510
511
|
|
|
511
512
|
Tie the option set to external state with `dependencies` (debounced by
|
|
@@ -798,7 +799,7 @@ for a preset that fits any row type (never `<any>`), not an imported
|
|
|
798
799
|
| `itemLayout` | `FieldLayout \| undefined` | `'auto'` | | How each row's input and label sit together, in the `layout` keywords: `'auto'`, `'vertical'`, `'horizontal'`, `'label-fill'`, `'input-fill'`, or a two-word ratio pattern like `'xx xxxxx'`. |
|
|
799
800
|
| `itemProps` | `BbOptionGroupItemProps<T> \| undefined` | | | ADDITIONAL row fields, never the text or value: `description`, a muted line under the label (it may wrap; announced as the option's description). An object of paths or getters, or a function of the item; nothing is read implicitly. |
|
|
800
801
|
| `itemReverse` | `boolean \| undefined` | `undefined` | | Swaps each row's input and label from their natural order (input first), in every `item-layout`. `reverse` swaps the legend and the options instead. |
|
|
801
|
-
| `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with
|
|
802
|
+
| `items` | `T[] \| ((context: BbCheckboxGroupItemsContext) => T[] \| Promise<T[]>)` | | yes | The options: an array, or a provider called with `{ 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". |
|
|
802
803
|
| `itemText` | `ItemAccessor<T, string> \| undefined` | `own `label`, else `text`, else `JSON.stringify(item)`` | | Defines a path that returns a property of the object to use as text or a function that returns a string. Unset: own `label`, else `text` (`{ label, value }` needs no accessor). |
|
|
803
804
|
| `itemValue` | `ItemAccessor<T> \| undefined` | `own `value`, else the whole item` | | Defines a path that returns a property of the object to use as value or a function that returns any value. Unset: own `value`, even `null`. |
|
|
804
805
|
| `labelAlign` | `'center'` \| `'top'` \| `'bottom'` | | | Vertical position of the label block in a side-by-side row; not `labelPosition`, the horizontal one. Omitted, `'top'`. |
|
|
@@ -871,7 +872,7 @@ States are listed in precedence order: when two are on at once and their entries
|
|
|
871
872
|
|
|
872
873
|
- `append` — scope: `object` — Content rendered after the last option, inside the options container.
|
|
873
874
|
- `description` — scope: `BbSwitchGroupDescriptionSlotProps` `{ text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the description text. Provided alone (no `description` prop) it still renders the description region and wires it into `aria-describedby`.
|
|
874
|
-
- `empty` — scope: `
|
|
875
|
+
- `empty` — scope: `object` — 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").
|
|
875
876
|
- `icon` — scope: `BbSwitchGroupIconSlotProps<T>` `{ disabled: boolean; readonly: boolean; checked: boolean; indeterminate?: boolean; focused: boolean; focusVisible: boolean; id: string; name: string; falseValue: any; hasErrors: boolean; hasWarnings: boolean; parsedValue: string; trueValue: any; value: any; item: T; text: string }` — Replaces the default switch track visual for each option. Receives the switch state plus the source item and its display text.
|
|
876
877
|
- `label` — scope: `BbSwitchGroupLabelSlotProps<T>` `{ item: T; text: string; checked: boolean; description: string }` — Replaces the default label text for each option.
|
|
877
878
|
- `legend` — scope: `BbSwitchGroupLegendSlotProps` `{ showAsterisk?: boolean; text: string; hasErrors: boolean; hasWarnings: boolean }` — Replaces the default fieldset legend text for the group.
|