bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
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 +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
<ListBox
|
|
133
133
|
:id="`${id}_listbox`"
|
|
134
134
|
ref="optionsContainer"
|
|
135
|
-
:compact="compact"
|
|
135
|
+
:compact="configDefaults.compact"
|
|
136
136
|
:described="described"
|
|
137
137
|
:empty-text="computedNoDataText"
|
|
138
138
|
:failed-text="itemsError !== null ? computedNoDataText : undefined"
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
'bb-select-popover--loading': computedLoading,
|
|
265
265
|
'bb-select-popover--reloading': isReloading,
|
|
266
266
|
'bb-select-popover--clearable-active': hasClearableValue,
|
|
267
|
-
'bb-select-popover--compact': compact,
|
|
267
|
+
'bb-select-popover--compact': configDefaults.compact,
|
|
268
268
|
}"
|
|
269
269
|
:disable-flip="disableFlip"
|
|
270
270
|
hide-arrow
|
|
271
|
-
:offset="offset"
|
|
271
|
+
:offset="offset ?? popoverOffset() ?? 4"
|
|
272
272
|
:padding="padding"
|
|
273
273
|
:placement="placement"
|
|
274
274
|
:style="panelStyles"
|
|
@@ -338,7 +338,7 @@ import {
|
|
|
338
338
|
} from '@/utilities/functions/itemProps';
|
|
339
339
|
import { useLogger } from '@/composables/useLogger';
|
|
340
340
|
import { isNil } from '@/utilities/functions/isNil';
|
|
341
|
-
import {
|
|
341
|
+
import { keyHaystacks, rankByQuery } from '@/utilities/functions/searchRank';
|
|
342
342
|
import { parseWidthString } from '@/utilities/functions/parseWidthString';
|
|
343
343
|
import { mergeProps, toRef } from 'vue';
|
|
344
344
|
import { useArray } from '@/composables/useArray';
|
|
@@ -363,6 +363,7 @@ import { useItemsGetter } from '@/composables/useItemsGetter';
|
|
|
363
363
|
import type { ItemsRequestArgs } from '@/composables/useItemsGetter';
|
|
364
364
|
import { SsrMarker } from '@/composables/ssrMarker';
|
|
365
365
|
import { provideSheetChipAttrs, useSheetChipAttrs } from './sheetChipAttrs';
|
|
366
|
+
import { provideReclickClears, useReclickClears } from './reclickClears';
|
|
366
367
|
import {
|
|
367
368
|
indexKnownRows,
|
|
368
369
|
knownRowsCover,
|
|
@@ -375,6 +376,10 @@ import { useMobile } from '@/composables/useMobile';
|
|
|
375
376
|
import { provideSheetSurface } from '@/composables/useSheetSurface';
|
|
376
377
|
import { usePrefill } from '@/composables/usePrefill';
|
|
377
378
|
import { useConfig } from '@/composables/useConfig';
|
|
379
|
+
import {
|
|
380
|
+
useConfigDefaults,
|
|
381
|
+
useConfigSetting,
|
|
382
|
+
} from '@/composables/useConfigDefaults';
|
|
378
383
|
import {
|
|
379
384
|
isPrintableTypeaheadKey,
|
|
380
385
|
normalizeSearchToken,
|
|
@@ -424,7 +429,7 @@ const props = withDefaults(
|
|
|
424
429
|
>(),
|
|
425
430
|
{
|
|
426
431
|
// `undefined` (declared, not omitted) keeps `adaptive` three-state: it disables
|
|
427
|
-
// Vue's absent→`false` Boolean cast so `props.adaptive ??
|
|
432
|
+
// Vue's absent→`false` Boolean cast so `props.adaptive ?? all.adaptive` can
|
|
428
433
|
// reach the config default, while keeping the Boolean type so the valueless
|
|
429
434
|
// `adaptive` shorthand still resolves to `true`.
|
|
430
435
|
adaptive: undefined,
|
|
@@ -445,7 +450,8 @@ const props = withDefaults(
|
|
|
445
450
|
filterBy: () => [],
|
|
446
451
|
max: Infinity,
|
|
447
452
|
modelValueDebounceTime: 0,
|
|
448
|
-
|
|
453
|
+
// Unset: `all.popoverOffset`, else 4 px.
|
|
454
|
+
offset: undefined,
|
|
449
455
|
padding: 10,
|
|
450
456
|
placement: 'bottom',
|
|
451
457
|
prefill: 'interaction',
|
|
@@ -453,13 +459,17 @@ const props = withDefaults(
|
|
|
453
459
|
selectable: true,
|
|
454
460
|
transitionDuration: transitions.medium,
|
|
455
461
|
width: '200',
|
|
462
|
+
// Tri-state: unset lets the components map show through.
|
|
463
|
+
compact: undefined,
|
|
456
464
|
}
|
|
457
465
|
);
|
|
458
|
-
|
|
459
466
|
const emit = defineEmits<BbSelectPopoverEvents>();
|
|
460
467
|
|
|
461
468
|
defineSlots<BbSelectPopoverSlots<Item, Known>>();
|
|
462
469
|
|
|
470
|
+
/** `all.popoverOffset`: the app's or the scope's gap, read per render. */
|
|
471
|
+
const popoverOffset = useConfigSetting<number>(null, 'popoverOffset');
|
|
472
|
+
|
|
463
473
|
/**
|
|
464
474
|
* Passthrough (plans/passthrough/BbSelectPopover.md). `root` merges into the `$attrs` spread on the desktop floating element (no node on the phone sheet, where `panel` then `sheet` land on the sheet root); `option` is resolved per option inside the listbox with `part()`.
|
|
465
475
|
*/
|
|
@@ -563,9 +573,15 @@ const { isMobile } = useMobile();
|
|
|
563
573
|
* shorthand, which is `true` — always wins.
|
|
564
574
|
*/
|
|
565
575
|
const resolvedDisableWriting = computed(() => props.disableWriting ?? 'auto');
|
|
576
|
+
/** `all.autoDisableWritingThreshold`: read when the panel opens. */
|
|
577
|
+
const thresholdSetting = useConfigSetting<number>(
|
|
578
|
+
null,
|
|
579
|
+
'autoDisableWritingThreshold'
|
|
580
|
+
);
|
|
581
|
+
|
|
566
582
|
/**
|
|
567
583
|
* `'auto'`: hide the search field when an ARRAY `items` renders fewer options
|
|
568
|
-
* than `
|
|
584
|
+
* than `all.autoDisableWritingThreshold` (default 6) — a list that short is quicker to
|
|
569
585
|
* scan than to filter. Counted as the array is declared (disabled options
|
|
570
586
|
* included, group headers excluded: grouping only sorts the same options
|
|
571
587
|
* under headings), which is also what the panel renders at open, when the
|
|
@@ -584,7 +600,7 @@ const instance = getCurrentInstance();
|
|
|
584
600
|
const resolveAutoHidesSearch = (): boolean => {
|
|
585
601
|
if (resolvedDisableWriting.value !== 'auto') return false;
|
|
586
602
|
if (!Array.isArray(props.items)) return false;
|
|
587
|
-
const threshold =
|
|
603
|
+
const threshold = thresholdSetting() ?? 6;
|
|
588
604
|
if (!(threshold > 0)) return false;
|
|
589
605
|
if (hasVnodeListener(instance, 'option:add')) return false;
|
|
590
606
|
return props.items.length < threshold;
|
|
@@ -2307,8 +2323,10 @@ const onOptionUnselected = async (option: BaseOption) => {
|
|
|
2307
2323
|
// simply closes on the value it has. Emptying is an explicit affordance (the
|
|
2308
2324
|
// clear button, or the `clear` callback on the activator/panel slots), never
|
|
2309
2325
|
// an accidental second click. Multiple mode still toggles: there, unselecting
|
|
2310
|
-
// by clicking is the whole interaction.
|
|
2326
|
+
// by clicking is the whole interaction. A `clearable` BbSelect opts into
|
|
2327
|
+
// clearing on it (Q86.10 (3), BbDropdown's `clearable` parity).
|
|
2311
2328
|
if (!props.multiple) {
|
|
2329
|
+
if (reclickClears?.()) onClear();
|
|
2312
2330
|
focusActivator();
|
|
2313
2331
|
close();
|
|
2314
2332
|
return;
|
|
@@ -2364,21 +2382,25 @@ const filteredOptions = computed<Array<BaseOption<Item>>>(() => {
|
|
|
2364
2382
|
}
|
|
2365
2383
|
// `false`: the provider matched the query; its answer is the list.
|
|
2366
2384
|
if (props.filterBy === false) return options.value;
|
|
2367
|
-
|
|
2385
|
+
// Ranked (searchRank.ts): the best matches first; `groupedOptions` keeps
|
|
2386
|
+
// the groups in the page's order.
|
|
2368
2387
|
const keys = props.filterBy;
|
|
2369
|
-
if (Array.isArray(keys) && keys.length)
|
|
2370
|
-
return
|
|
2371
|
-
|
|
2388
|
+
if (Array.isArray(keys) && keys.length)
|
|
2389
|
+
return rankByQuery(
|
|
2390
|
+
options.value,
|
|
2391
|
+
(option) => keyHaystacks(option.item, keys),
|
|
2392
|
+
query.value
|
|
2372
2393
|
);
|
|
2373
|
-
}
|
|
2374
2394
|
// The description joins the text when the option has one — the same rule as
|
|
2375
2395
|
// BbDropdown's rows and fetched groups (plans/ITEM-DESCRIPTION.md ruling 5).
|
|
2376
|
-
return
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2396
|
+
return rankByQuery(
|
|
2397
|
+
options.value,
|
|
2398
|
+
(option: BaseOption) =>
|
|
2399
|
+
keyHaystacks(
|
|
2400
|
+
option,
|
|
2401
|
+
option.description != null ? ['text', 'description'] : ['text']
|
|
2402
|
+
),
|
|
2403
|
+
query.value
|
|
2382
2404
|
);
|
|
2383
2405
|
});
|
|
2384
2406
|
|
|
@@ -2416,7 +2438,13 @@ const groupedOptions = computed<GroupedOptions[]>(() => {
|
|
|
2416
2438
|
GroupedOptions & { pinnedOptions: BaseOption[]; firstListed: number }
|
|
2417
2439
|
> = [];
|
|
2418
2440
|
const groupIndex: Record<GroupedOptions['id'], (typeof groups)[number]> = {};
|
|
2419
|
-
|
|
2441
|
+
// A group's place is its first row's place on the PAGE: a search ranks the
|
|
2442
|
+
// rows inside each group and never reorders the groups.
|
|
2443
|
+
const pagePosition = new Map(
|
|
2444
|
+
options.value.map((option, index) => [option.valueHash, index])
|
|
2445
|
+
);
|
|
2446
|
+
filteredOptions.value.forEach((option) => {
|
|
2447
|
+
const index = pagePosition.get(option.valueHash) ?? Infinity;
|
|
2420
2448
|
const groupData = getGroupData(option);
|
|
2421
2449
|
const groupId = hash(groupData);
|
|
2422
2450
|
let group = groupIndex[groupId];
|
|
@@ -2487,14 +2515,18 @@ const panelSettledClosed = useClosingInert(
|
|
|
2487
2515
|
* until it closes, so a mid-session resize never swaps a live popover into a sheet
|
|
2488
2516
|
* (or vice-versa) — mirroring BbPopover/BbDropdown/BbDialog.
|
|
2489
2517
|
*/
|
|
2518
|
+
const configDefaults = useConfigDefaults('BbSelectPopover', props, {
|
|
2519
|
+
adaptive: true,
|
|
2520
|
+
compact: false,
|
|
2521
|
+
});
|
|
2490
2522
|
const resolveSurface = (): 'popover' | 'canvas' =>
|
|
2491
|
-
|
|
2523
|
+
configDefaults.adaptive && isMobile.value ? 'canvas' : 'popover';
|
|
2492
2524
|
const surface = ref<'popover' | 'canvas'>(resolveSurface());
|
|
2493
2525
|
const useOffcanvas = computed(() => surface.value === 'canvas');
|
|
2494
2526
|
|
|
2495
2527
|
// While closed, keep tracking the viewport so the next open resolves correctly;
|
|
2496
2528
|
// while open the surface stays frozen.
|
|
2497
|
-
watch([() =>
|
|
2529
|
+
watch([() => configDefaults.adaptive, isMobile, shown], () => {
|
|
2498
2530
|
if (!shown.value) surface.value = resolveSurface();
|
|
2499
2531
|
});
|
|
2500
2532
|
|
|
@@ -2511,6 +2543,9 @@ provideSheetSurface(useOffcanvas);
|
|
|
2511
2543
|
// below this popover inherits it.
|
|
2512
2544
|
const sheetChipAttrs = useSheetChipAttrs();
|
|
2513
2545
|
provideSheetChipAttrs(null);
|
|
2546
|
+
// A `clearable` BbSelect clears on a re-click (Q86.10 (3)); same scoping.
|
|
2547
|
+
const reclickClears = useReclickClears();
|
|
2548
|
+
provideReclickClears(null);
|
|
2514
2549
|
|
|
2515
2550
|
/**
|
|
2516
2551
|
* Android: dismissing the on-screen keyboard (back gesture/button) only HIDES
|
|
@@ -3318,7 +3353,7 @@ export type BbSelectResolvedOption<Item = any> = {
|
|
|
3318
3353
|
* (plans/passthrough/BbSelectPopover.md). The listbox's groups and the chips
|
|
3319
3354
|
* are not parts.
|
|
3320
3355
|
*
|
|
3321
|
-
* Per-item functions: on the instance, an option part (`option`, `itemText`, `itemIcon`, `itemDescription`) also accepts `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the raw item of that option, and every state a boolean beside it, on for it (`selected`, `disabled`, …) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the option as it was. See the passthrough guide, _Per-item functions_.
|
|
3356
|
+
* Per-item functions: on the instance, an option part (`option`, `itemText`, `itemIcon`, `itemDescription`, `check`) also accepts `({ item, selected, … }) => PtValue | false | null | undefined` — `item` is the raw item of that option, and every state a boolean beside it, on for it (`selected`, `disabled`, …) — in the `pt` object or the `:pt:<part>` attribute, never on a `<part>:<state>` key and never in the global map or a scope (they ship as JSON). Its result is merged last, after every state entry, through the same deduper; a falsy result leaves the option as it was. See the passthrough guide, _Per-item functions_.
|
|
3322
3357
|
*
|
|
3323
3358
|
* @part root - The floating element — an invisible positioning wrapper; a
|
|
3324
3359
|
* `class` on the component lands here. No node on the phone sheet: style
|
|
@@ -3342,6 +3377,10 @@ export type BbSelectResolvedOption<Item = any> = {
|
|
|
3342
3377
|
* @part itemDescription - An option's second line (its description) —
|
|
3343
3378
|
* resolved with that option's states. A custom `#option` slot replaces it.
|
|
3344
3379
|
* Also takes a per-item function.
|
|
3380
|
+
* @part check - The tick on the chosen option, at the row's end — mounted on
|
|
3381
|
+
* every option and drawn on the chosen ones; a custom `#option` slot keeps
|
|
3382
|
+
* it. `pt:check="hidden"` removes it and leaves a glyph your slot draws
|
|
3383
|
+
* alone. Also takes a per-item function.
|
|
3345
3384
|
* @part header - The flyout's header band.
|
|
3346
3385
|
* @part footer - The flyout's footer band.
|
|
3347
3386
|
*/
|
|
@@ -3356,6 +3395,7 @@ export type BbSelectPopoverPtPart =
|
|
|
3356
3395
|
| 'itemText'
|
|
3357
3396
|
| 'itemIcon'
|
|
3358
3397
|
| 'itemDescription'
|
|
3398
|
+
| 'check'
|
|
3359
3399
|
| 'header'
|
|
3360
3400
|
| 'footer';
|
|
3361
3401
|
/** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
|
|
@@ -3373,14 +3413,15 @@ export type BbSelectPopoverOptionPtPart =
|
|
|
3373
3413
|
| 'option'
|
|
3374
3414
|
| 'itemText'
|
|
3375
3415
|
| 'itemIcon'
|
|
3376
|
-
| 'itemDescription'
|
|
3416
|
+
| 'itemDescription'
|
|
3417
|
+
| 'check';
|
|
3377
3418
|
/**
|
|
3378
3419
|
* Passthrough states of `BbSelectPopover`, true while the matching `--` modifier is on.
|
|
3379
3420
|
*
|
|
3380
|
-
* @state selected - Per node, on `option
|
|
3381
|
-
* option.
|
|
3382
|
-
* @state disabled - Per node, on `option
|
|
3383
|
-
* that is disabled.
|
|
3421
|
+
* @state selected - Per node, on `option`, its `item-*` parts and `check`: a
|
|
3422
|
+
* chosen option.
|
|
3423
|
+
* @state disabled - Per node, on `option`, its `item-*` parts and `check`: an
|
|
3424
|
+
* option that is disabled.
|
|
3384
3425
|
* @state open - Component-wide: the options surface is showing.
|
|
3385
3426
|
*/
|
|
3386
3427
|
export type BbSelectPopoverPtState = 'open' | 'selected' | 'disabled';
|
|
@@ -3405,6 +3446,7 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3405
3446
|
'itemText',
|
|
3406
3447
|
'itemIcon',
|
|
3407
3448
|
'itemDescription',
|
|
3449
|
+
'check',
|
|
3408
3450
|
'header',
|
|
3409
3451
|
'footer',
|
|
3410
3452
|
],
|
|
@@ -3417,6 +3459,7 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3417
3459
|
itemText: ['selected', 'disabled'],
|
|
3418
3460
|
itemIcon: ['selected', 'disabled'],
|
|
3419
3461
|
itemDescription: ['selected', 'disabled'],
|
|
3462
|
+
check: ['selected', 'disabled'],
|
|
3420
3463
|
},
|
|
3421
3464
|
} as const satisfies {
|
|
3422
3465
|
parts: readonly BbSelectPopoverPtPart[];
|
|
@@ -3477,9 +3520,9 @@ export type BbSelectPopoverProps<
|
|
|
3477
3520
|
/**
|
|
3478
3521
|
* On mobile, the panel opens as a bottom sheet instead of a floating
|
|
3479
3522
|
* popover, with the same search and list. Unset, the global
|
|
3480
|
-
* `
|
|
3523
|
+
* `all.adaptive` applies.
|
|
3481
3524
|
*
|
|
3482
|
-
* @defaultValue `
|
|
3525
|
+
* @defaultValue `all.adaptive` (`true`)
|
|
3483
3526
|
*/
|
|
3484
3527
|
adaptive?: boolean;
|
|
3485
3528
|
/**
|
|
@@ -3524,9 +3567,9 @@ export type BbSelectPopoverProps<
|
|
|
3524
3567
|
// ~10k-member union, and our props overflow TS on it (TS2590).
|
|
3525
3568
|
autocomplete?: string;
|
|
3526
3569
|
/**
|
|
3527
|
-
*
|
|
3528
|
-
*
|
|
3529
|
-
*
|
|
3570
|
+
* An element the popover stays inside alongside its trigger (sideways for
|
|
3571
|
+
* one above or below). Away from the trigger it may pass the edge, and it
|
|
3572
|
+
* flips at the viewport only.
|
|
3530
3573
|
*/
|
|
3531
3574
|
boundary?: HTMLElement | Record<string, any> | string | null;
|
|
3532
3575
|
/**
|
|
@@ -3566,7 +3609,7 @@ export type BbSelectPopoverProps<
|
|
|
3566
3609
|
* What typing filters on: empty = the display text and description; item
|
|
3567
3610
|
* paths = those fields (`['name', 'email']`); `false` = no filtering.
|
|
3568
3611
|
* Use `false` when the provider matched the query on the server, or its
|
|
3569
|
-
* email
|
|
3612
|
+
* email matches show as "No results".
|
|
3570
3613
|
*
|
|
3571
3614
|
* @defaultValue `[]`
|
|
3572
3615
|
*/
|
|
@@ -3758,8 +3801,8 @@ export type BbSelectPopoverProps<
|
|
|
3758
3801
|
*/
|
|
3759
3802
|
transitionDuration?: number;
|
|
3760
3803
|
/**
|
|
3761
|
-
* Width of the popover
|
|
3762
|
-
*
|
|
3804
|
+
* Width of the popover: a bare number or `'200'` is pixels, else a CSS
|
|
3805
|
+
* width, a percentage or `'auto'`. The default is the string `'200'`.
|
|
3763
3806
|
*
|
|
3764
3807
|
* @defaultValue `'200'`
|
|
3765
3808
|
*/
|