bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.69
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 +230 -91
- package/bin/bitboss-ui-mcp.mjs +368 -142
- package/bin/bitboss-ui.mjs +24 -2073
- package/bin/cli.mjs +1922 -0
- package/dist/ai/BbAccordion.md +1 -1
- package/dist/ai/BbAlert.md +16 -12
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +3 -3
- package/dist/ai/BbBadge.md +5 -5
- package/dist/ai/BbBadgeButton.md +1 -1
- package/dist/ai/BbBaseButton.md +1 -1
- 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 +3 -3
- package/dist/ai/BbButton.md +63 -10
- package/dist/ai/BbCalendar.md +15 -2
- package/dist/ai/BbCarousel.md +1093 -0
- package/dist/ai/BbCheckbox.md +28 -8
- package/dist/ai/BbCheckboxGroup.md +65 -32
- package/dist/ai/BbColorInput.md +18 -15
- package/dist/ai/BbColorPalette.md +9 -6
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +25 -22
- package/dist/ai/BbDatePicker.md +12 -6
- package/dist/ai/BbDatePickerInput.md +29 -18
- package/dist/ai/BbDialog.md +11 -10
- package/dist/ai/BbDropdown.md +36 -29
- package/dist/ai/BbDropdownButton.md +21 -21
- package/dist/ai/BbDropzone.md +5 -16
- package/dist/ai/BbForm.md +14 -8
- package/dist/ai/BbHost.md +20 -14
- package/dist/ai/BbHoverCard.md +2 -2
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +20 -16
- package/dist/ai/BbOffCanvas.md +15 -10
- package/dist/ai/BbPagination.md +15 -6
- package/dist/ai/BbPopover.md +16 -9
- package/dist/ai/BbRadio.md +30 -9
- package/dist/ai/BbRadioGroup.md +78 -35
- package/dist/ai/BbRating.md +13 -11
- package/dist/ai/BbSelect.md +84 -49
- package/dist/ai/BbSelectPopover.md +33 -31
- package/dist/ai/BbSlider.md +266 -66
- package/dist/ai/BbSpinner.md +3 -3
- package/dist/ai/BbSwitch.md +33 -9
- package/dist/ai/BbSwitchGroup.md +27 -18
- package/dist/ai/BbTable.md +28 -25
- package/dist/ai/BbTabs.md +29 -32
- package/dist/ai/BbTabsList.md +4 -4
- package/dist/ai/BbTabsRoot.md +2 -2
- package/dist/ai/BbTag.md +15 -14
- package/dist/ai/BbTextInput.md +32 -22
- package/dist/ai/BbTextarea.md +20 -18
- package/dist/ai/BbTimePicker.md +5 -5
- package/dist/ai/BbTimePickerInput.md +15 -14
- package/dist/ai/BbToast.md +72 -28
- package/dist/ai/BbTooltip.md +7 -6
- package/dist/ai/BbTree.md +1 -1
- package/dist/ai/ChipsBox.md +1 -1
- package/dist/ai/ClearableButton.md +1 -1
- package/dist/ai/CommonField.md +5 -5
- package/dist/ai/CommonFieldInput.md +3 -2
- package/dist/ai/CommonPopover.md +4 -4
- package/dist/ai/CommonTimeSelector.md +1 -1
- package/dist/ai/ErrorIcon.md +1 -1
- package/dist/ai/FlatListBox.md +5 -4
- package/dist/ai/GroupedListBox.md +5 -4
- package/dist/ai/ListBox.md +6 -5
- package/dist/ai/OptionsContainer.md +20 -4
- package/dist/ai/WarningIcon.md +1 -1
- package/dist/ai/changelog.json +1002 -39
- package/dist/ai/components.json +117 -246
- 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 +15 -10
- package/dist/ai/guides/ai-router.md +15 -10
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/calendars-and-digits.md +123 -0
- package/dist/ai/guides/component-picker.md +1 -1
- package/dist/ai/guides/design-language.md +18 -14
- package/dist/ai/guides/design-tokens.md +85 -43
- package/dist/ai/guides/eslint-rules.md +21 -2
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inertia-helpers.md +322 -41
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +498 -189
- 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-rating.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-table.md +1 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +33 -15
- package/dist/ai/guides/migration/components/bb-toast.md +10 -9
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +345 -76
- package/dist/ai/guides/migration/v3-beta-css-classes.md +1 -0
- package/dist/ai/guides/migration/v3-beta-tooling.md +30 -13
- package/dist/ai/guides/options-items-playbook.md +5 -1
- package/dist/ai/guides/passthrough.md +150 -135
- package/dist/ai/guides/ssr-prefill.md +7 -1
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +14 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +23 -14
- package/dist/ai/helpers/inertia/useQuery.ts +74 -0
- package/dist/ai/helpers/inertia/useQueryObject.ts +33 -1
- package/dist/ai/helpers/inertia/useRouteQuery.ts +158 -30
- package/dist/ai/index.md +5 -3
- package/dist/ai/manifest/common.json +13 -15
- package/dist/ai/manifest/components/BbAccordion.tree.json +22 -4
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAlert.tree.json +26 -3
- package/dist/ai/manifest/components/BbAsterisk.tree.json +7 -1
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbAvatar.tree.json +16 -2
- package/dist/ai/manifest/components/BbBadge.json +4 -3
- package/dist/ai/manifest/components/BbBadge.tree.json +39 -4
- package/dist/ai/manifest/components/BbBadgeButton.tree.json +2 -2
- package/dist/ai/manifest/components/BbBaseButton.tree.json +16 -1
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +23 -2
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +21 -4
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +26 -2
- package/dist/ai/manifest/components/BbBreadcrumbs.json +1 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +34 -4
- package/dist/ai/manifest/components/BbButton.json +5 -4
- package/dist/ai/manifest/components/BbButton.tree.json +78 -5
- package/dist/ai/manifest/components/BbCalendar.json +2 -2
- package/dist/ai/manifest/components/BbCalendar.tree.json +81 -5
- package/dist/ai/manifest/components/BbCarousel.json +59 -0
- package/dist/ai/manifest/components/BbCarousel.tree.json +135 -0
- package/dist/ai/manifest/components/BbCheckbox.json +5 -4
- package/dist/ai/manifest/components/BbCheckbox.tree.json +31 -2
- package/dist/ai/manifest/components/BbCheckboxGroup.json +18 -15
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +89 -5
- package/dist/ai/manifest/components/BbCollapsible.tree.json +11 -1
- package/dist/ai/manifest/components/BbColorInput.json +7 -6
- package/dist/ai/manifest/components/BbColorInput.tree.json +49 -4
- package/dist/ai/manifest/components/BbColorPalette.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.tree.json +36 -2
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +3 -2
- package/dist/ai/manifest/components/BbConfirm.tree.json +27 -3
- package/dist/ai/manifest/components/BbDatePicker.json +7 -6
- package/dist/ai/manifest/components/BbDatePicker.tree.json +42 -3
- package/dist/ai/manifest/components/BbDatePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +86 -5
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +28 -3
- package/dist/ai/manifest/components/BbDropdown.json +14 -10
- package/dist/ai/manifest/components/BbDropdown.tree.json +80 -3
- package/dist/ai/manifest/components/BbDropdownButton.json +14 -11
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +47 -4
- package/dist/ai/manifest/components/BbDropzone.json +2 -1
- package/dist/ai/manifest/components/BbDropzone.tree.json +27 -1
- package/dist/ai/manifest/components/BbForm.json +2 -2
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbHoverCard.json +3 -3
- package/dist/ai/manifest/components/BbHoverCard.tree.json +18 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIcon.tree.json +7 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.tree.json +27 -1
- package/dist/ai/manifest/components/BbNumberInput.json +6 -5
- package/dist/ai/manifest/components/BbNumberInput.tree.json +40 -3
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +55 -2
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +23 -3
- package/dist/ai/manifest/components/BbPopover.json +5 -4
- package/dist/ai/manifest/components/BbPopover.tree.json +20 -2
- package/dist/ai/manifest/components/BbProgress.tree.json +9 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +30 -2
- package/dist/ai/manifest/components/BbRadioGroup.json +22 -19
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +88 -5
- package/dist/ai/manifest/components/BbRating.json +6 -5
- package/dist/ai/manifest/components/BbRating.removed.json +1 -0
- package/dist/ai/manifest/components/BbRating.tree.json +37 -2
- package/dist/ai/manifest/components/BbSelect.json +13 -11
- package/dist/ai/manifest/components/BbSelect.tree.json +70 -7
- package/dist/ai/manifest/components/BbSelectPopover.json +17 -13
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +94 -8
- package/dist/ai/manifest/components/BbSlider.json +30 -27
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +48 -3
- package/dist/ai/manifest/components/BbSmoothHeight.tree.json +10 -1
- package/dist/ai/manifest/components/BbSpinner.tree.json +21 -2
- package/dist/ai/manifest/components/BbSwitch.json +3 -2
- package/dist/ai/manifest/components/BbSwitch.tree.json +31 -2
- package/dist/ai/manifest/components/BbSwitchGroup.json +9 -7
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +65 -3
- package/dist/ai/manifest/components/BbTable.json +10 -9
- package/dist/ai/manifest/components/BbTable.tree.json +144 -5
- package/dist/ai/manifest/components/BbTabs.json +7 -6
- package/dist/ai/manifest/components/BbTabs.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabs.tree.json +34 -3
- package/dist/ai/manifest/components/BbTabsList.json +4 -4
- package/dist/ai/manifest/components/BbTabsList.removed.json +5 -1
- package/dist/ai/manifest/components/BbTabsList.tree.json +24 -2
- package/dist/ai/manifest/components/BbTabsPanels.tree.json +16 -1
- package/dist/ai/manifest/components/BbTabsRoot.json +3 -3
- package/dist/ai/manifest/components/BbTag.json +7 -6
- package/dist/ai/manifest/components/BbTag.tree.json +49 -4
- package/dist/ai/manifest/components/BbTextInput.json +6 -5
- package/dist/ai/manifest/components/BbTextInput.tree.json +43 -3
- package/dist/ai/manifest/components/BbTextarea.json +7 -6
- package/dist/ai/manifest/components/BbTextarea.tree.json +46 -3
- package/dist/ai/manifest/components/BbTimePicker.json +7 -6
- package/dist/ai/manifest/components/BbTimePicker.tree.json +30 -3
- package/dist/ai/manifest/components/BbTimePickerInput.json +7 -6
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +58 -6
- package/dist/ai/manifest/components/BbToast.json +3 -2
- package/dist/ai/manifest/components/BbToast.tree.json +46 -2
- package/dist/ai/manifest/components/BbTooltip.json +4 -3
- package/dist/ai/manifest/components/BbTooltip.tree.json +17 -1
- package/dist/ai/manifest/components/BbTree.tree.json +14 -1
- package/dist/ai/manifest/components/ChipsBox.tree.json +1 -1
- package/dist/ai/manifest/components/ClearableButton.tree.json +8 -2
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonField.tree.json +68 -1
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +38 -6
- package/dist/ai/manifest/components/CommonPopover.json +7 -5
- package/dist/ai/manifest/components/CommonPopover.tree.json +11 -1
- package/dist/ai/manifest/components/CommonTimeSelector.tree.json +18 -2
- package/dist/ai/manifest/components/ErrorIcon.tree.json +8 -2
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +4 -3
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +4 -3
- 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 +4 -3
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/components/WarningIcon.tree.json +8 -2
- package/dist/ai/manifest/index.json +6 -5
- package/dist/ai/manifest/meta.json +23 -153
- package/dist/ai/manifest/types.advanced.json +78 -77
- package/dist/ai/manifest/types.api.json +29 -19
- package/dist/ai/manifest/types.wrapper.json +115 -112
- package/dist/ai/recipes/inertia/approvals-inbox.md +10 -10
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +24 -20
- package/dist/ai/recipes/inertia/onboarding.md +10 -10
- package/dist/ai/recipes/inertia/ownership-atlas.md +8 -8
- package/dist/ai/recipes/inertia/record-form.md +16 -16
- package/dist/ai/recipes/inertia/records-workspace.md +13 -12
- package/dist/ai/recipes/inertia/settings-workspace.md +16 -15
- package/dist/ai/recipes/inertia/upload-center.md +13 -13
- package/dist/ai/recipes/inertia/wizard-form.md +16 -16
- package/dist/ai/recipes/nuxt/approvals-inbox.md +13 -13
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/nuxt/onboarding.md +10 -10
- package/dist/ai/recipes/nuxt/ownership-atlas.md +12 -12
- package/dist/ai/recipes/nuxt/record-form.md +16 -16
- package/dist/ai/recipes/nuxt/records-workspace.md +16 -15
- package/dist/ai/recipes/nuxt/settings-workspace.md +15 -14
- package/dist/ai/recipes/nuxt/upload-center.md +15 -15
- package/dist/ai/recipes/nuxt/wizard-form.md +17 -17
- package/dist/ai/recipes/vue/approvals-inbox.md +15 -13
- package/dist/ai/recipes/vue/inline-edit-workspace.md +26 -22
- package/dist/ai/recipes/vue/onboarding.md +16 -11
- package/dist/ai/recipes/vue/ownership-atlas.md +12 -12
- package/dist/ai/recipes/vue/record-form.md +18 -16
- package/dist/ai/recipes/vue/records-workspace.md +18 -15
- package/dist/ai/recipes/vue/settings-workspace.md +18 -15
- package/dist/ai/recipes/vue/upload-center.md +15 -15
- package/dist/ai/recipes/vue/wizard-form.md +18 -16
- package/dist/ai/source/BbAccordion.md +11 -14
- package/dist/ai/source/BbAlert.md +103 -91
- package/dist/ai/source/BbAsterisk.md +6 -7
- package/dist/ai/source/BbAvatar.md +42 -41
- package/dist/ai/source/BbBadge.md +100 -89
- package/dist/ai/source/BbBadgeButton.md +80 -76
- package/dist/ai/source/BbBaseButton.md +284 -276
- package/dist/ai/source/BbBaseCheckboxIcon.md +76 -68
- package/dist/ai/source/BbBaseRadioIcon.md +80 -68
- package/dist/ai/source/BbBaseSwitchIcon.md +98 -74
- package/dist/ai/source/BbBreadcrumbs.md +76 -63
- package/dist/ai/source/BbButton.md +101 -77
- package/dist/ai/source/BbCalendar.md +166 -176
- package/dist/ai/source/BbCarousel.md +2897 -0
- package/dist/ai/source/BbCheckbox.md +230 -192
- package/dist/ai/source/BbCheckboxGroup.md +172 -79
- package/dist/ai/source/BbCollapsible.md +7 -10
- package/dist/ai/source/BbColorInput.md +256 -243
- package/dist/ai/source/BbColorPalette.md +239 -160
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +38 -32
- package/dist/ai/source/BbConfirmPortal.md +30 -26
- package/dist/ai/source/BbDatePicker.md +218 -187
- package/dist/ai/source/BbDatePickerInput.md +789 -428
- package/dist/ai/source/BbDialog.md +207 -191
- package/dist/ai/source/BbDropdown.md +326 -234
- package/dist/ai/source/BbDropdownButton.md +115 -68
- package/dist/ai/source/BbDropdownGroup.md +271 -216
- package/dist/ai/source/BbDropzone.md +101 -100
- package/dist/ai/source/BbForm.md +29 -29
- package/dist/ai/source/BbHost.md +6 -6
- package/dist/ai/source/BbHoverCard.md +34 -20
- package/dist/ai/source/BbHoverCardPortal.md +9 -12
- package/dist/ai/source/BbIcon.md +32 -30
- package/dist/ai/source/BbIndicator.md +76 -70
- package/dist/ai/source/BbNumberInput.md +334 -313
- package/dist/ai/source/BbOffCanvas.md +245 -216
- package/dist/ai/source/BbPagination.md +144 -116
- package/dist/ai/source/BbPopover.md +49 -31
- package/dist/ai/source/BbPopoverPortal.md +11 -14
- package/dist/ai/source/BbProgress.md +20 -12
- package/dist/ai/source/BbRadio.md +205 -181
- package/dist/ai/source/BbRadioGroup.md +461 -364
- package/dist/ai/source/BbRating.md +212 -177
- package/dist/ai/source/BbSelect.md +514 -482
- package/dist/ai/source/BbSelectPopover.md +497 -413
- package/dist/ai/source/BbSlider.md +1208 -777
- package/dist/ai/source/BbSmoothHeight.md +8 -9
- package/dist/ai/source/BbSpinner.md +20 -20
- package/dist/ai/source/BbSwitch.md +25 -13
- package/dist/ai/source/BbSwitchGroup.md +115 -34
- package/dist/ai/source/BbTable.md +577 -531
- package/dist/ai/source/BbTabs.md +134 -116
- package/dist/ai/source/BbTabsList.md +164 -136
- package/dist/ai/source/BbTabsPanels.md +128 -113
- package/dist/ai/source/BbTabsRoot.md +125 -110
- package/dist/ai/source/BbTag.md +286 -281
- package/dist/ai/source/BbTextInput.md +59 -50
- package/dist/ai/source/BbTextarea.md +85 -71
- package/dist/ai/source/BbTimePicker.md +145 -126
- package/dist/ai/source/BbTimePickerInput.md +383 -316
- package/dist/ai/source/BbToast.md +97 -44
- package/dist/ai/source/BbToastPortal.md +56 -36
- package/dist/ai/source/BbTooltip.md +155 -129
- package/dist/ai/source/BbTree.md +16 -12
- package/dist/ai/source/CommonField.md +94 -59
- package/dist/ai/source/CommonFieldInput.md +18 -13
- package/dist/ai/source/CommonPopover.md +28 -9
- package/dist/ai/source/CommonTimeSelector.md +41 -8
- package/dist/ai/source/FlatListBox.md +16 -5
- package/dist/ai/source/GroupedListBox.md +18 -6
- package/dist/ai/source/ListBox.md +2 -1
- package/dist/ai/source/OptionsContainer.md +82 -4
- 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.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/pause.svg_raw.js +3 -0
- package/dist/assets/svgs/play.svg_raw.js +3 -0
- package/dist/assets/svgs/star.svg_raw.js +1 -1
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/calendar-runtime.js +112 -0
- package/dist/calendars.js +83 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +2 -2
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbAccordion/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbAccordion/types.d.ts +5 -6
- package/dist/components/BbAlert/BbAlert.vue.d.ts +5 -4
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +52 -48
- package/dist/components/BbAlert/ptKeys.generated.d.ts +104 -0
- package/dist/components/BbAlert/types.d.ts +16 -9
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +2 -2
- package/dist/components/BbAsterisk/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbAsterisk/types.d.ts +4 -5
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +3 -3
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbAvatar/ptKeys.generated.d.ts +12 -0
- package/dist/components/BbAvatar/types.d.ts +5 -6
- package/dist/components/BbBadge/BbBadge.vue.d.ts +4 -4
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +75 -71
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +2 -2
- package/dist/components/BbBadge/badgeButtonContext.d.ts +5 -5
- package/dist/components/BbBadge/ptKeys.generated.d.ts +160 -0
- package/dist/components/BbBadge/types.d.ts +17 -10
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +2 -2
- package/dist/components/BbBaseButton/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbBaseButton/types.d.ts +13 -6
- package/dist/components/BbBaseButton/useLinkState.d.ts +1 -1
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseCheckboxIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +12 -6
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseRadioIcon/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +12 -6
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +2 -2
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseSwitchIcon/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +12 -6
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +2 -2
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/BbBreadcrumbs/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +15 -8
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -4
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +130 -118
- package/dist/components/BbButton/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbButton/toggleRoving.js +29 -28
- package/dist/components/BbButton/types.d.ts +29 -21
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +9 -71
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +327 -340
- package/dist/components/BbCalendar/CalendarMonthPanel.vue_vue_type_script_setup_true_lang.js +67 -65
- package/dist/components/BbCalendar/CalendarYearPanel.vue_vue_type_script_setup_true_lang.js +76 -67
- package/dist/components/BbCalendar/calendarHost.d.ts +1 -1
- package/dist/components/BbCalendar/calendarMath.d.ts +102 -0
- package/dist/components/BbCalendar/calendarMath.js +124 -0
- package/dist/components/BbCalendar/ptKeys.generated.d.ts +248 -0
- package/dist/components/BbCalendar/types.d.ts +15 -9
- package/dist/components/BbCalendar/useCalendarContext.d.ts +43 -17
- package/dist/components/BbCalendar/useCalendarGrid.d.ts +71 -4
- package/dist/components/BbCalendar/useCalendarGrid.js +264 -209
- package/dist/components/BbCalendar/useDayGrid.d.ts +26 -8
- package/dist/components/BbCalendar/useDayGrid.js +178 -172
- package/dist/components/BbCalendar/useDayjsLocale.d.ts +18 -3
- package/dist/components/BbCalendar/useDayjsLocale.js +28 -28
- package/dist/components/BbCalendar/useToday.d.ts +5 -3
- package/dist/components/BbCalendar/useToday.js +22 -12
- package/dist/components/BbCarousel/BbCarousel.vue.d.ts +51 -0
- package/dist/components/BbCarousel/BbCarousel.vue.js +5 -0
- package/dist/components/BbCarousel/BbCarousel.vue_vue_type_script_setup_true_lang.js +818 -0
- package/dist/components/BbCarousel/ptKeys.generated.d.ts +60 -0
- package/dist/components/BbCarousel/types.d.ts +213 -0
- package/dist/components/BbCarousel/types.js +27 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +8 -6
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +123 -111
- package/dist/components/BbCheckbox/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbCheckbox/types.d.ts +30 -14
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +167 -306
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +222 -189
- package/dist/components/BbCheckboxGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +42 -28
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +4 -4
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbCollapsible/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbCollapsible/types.d.ts +5 -6
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +16 -14
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +206 -195
- package/dist/components/BbColorInput/ptKeys.generated.d.ts +656 -0
- package/dist/components/BbColorInput/types.d.ts +30 -20
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +4 -4
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +331 -296
- package/dist/components/BbColorPalette/ptKeys.generated.d.ts +40 -0
- package/dist/components/BbColorPalette/types.d.ts +17 -10
- 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.d.ts +1 -1
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +1 -1
- package/dist/components/BbConfirm/confirmEntry.d.ts +2 -2
- package/dist/components/BbConfirm/ptKeys.generated.d.ts +184 -0
- package/dist/components/BbConfirm/types.d.ts +14 -7
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +16 -97
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +201 -197
- package/dist/components/BbDatePicker/ptKeys.generated.d.ts +324 -0
- package/dist/components/BbDatePicker/types.d.ts +22 -15
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +20 -309
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +793 -660
- package/dist/components/BbDatePickerInput/calendarFields.d.ts +91 -0
- package/dist/components/BbDatePickerInput/calendarFields.js +188 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.d.ts +6 -0
- package/dist/components/BbDatePickerInput/dateFieldLayout.js +11 -1
- package/dist/components/BbDatePickerInput/ptKeys.generated.d.ts +1156 -0
- package/dist/components/BbDatePickerInput/types.d.ts +36 -26
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +9 -8
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +211 -204
- package/dist/components/BbDialog/ptKeys.generated.d.ts +100 -0
- package/dist/components/BbDialog/types.d.ts +26 -20
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +7 -6
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +399 -377
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +1 -1
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +297 -292
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +3 -3
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/normalizeGroups.d.ts +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/ptKeys.generated.d.ts +228 -0
- package/dist/components/BbDropdown/types.d.ts +65 -48
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +3 -3
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +5 -5
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +7 -6
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +168 -144
- package/dist/components/BbDropdownButton/ptKeys.generated.d.ts +616 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -23
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +7 -26
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/BbDropzone/ptKeys.generated.d.ts +76 -0
- package/dist/components/BbDropzone/types.d.ts +15 -8
- package/dist/components/BbForm/BbForm.vue.d.ts +5 -5
- package/dist/components/BbForm/BbFormCustomField.d.ts +1 -1
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.d.ts +4 -4
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbForm/formFields.d.ts +5 -5
- package/dist/components/BbForm/formSchema.d.ts +4 -4
- package/dist/components/BbHost/BbHost.vue.d.ts +1 -1
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +4 -4
- package/dist/components/BbHost/types.d.ts +3 -3
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +4 -4
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +169 -162
- package/dist/components/BbHoverCard/BbHoverCardPortal.vue.d.ts +1 -1
- package/dist/components/BbHoverCard/ptKeys.generated.d.ts +44 -0
- package/dist/components/BbHoverCard/types.d.ts +8 -9
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -3
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIcon/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbIcon/types.d.ts +7 -8
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +4 -4
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbIndicator/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbIndicator/types.d.ts +15 -8
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +15 -12
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +327 -311
- package/dist/components/BbNumberInput/numberDisplay.d.ts +10 -11
- package/dist/components/BbNumberInput/ptKeys.generated.d.ts +476 -0
- package/dist/components/BbNumberInput/types.d.ts +33 -22
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +9 -9
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +408 -406
- package/dist/components/BbOffCanvas/ptKeys.generated.d.ts +88 -0
- package/dist/components/BbOffCanvas/sheetAttrs.d.ts +1 -1
- package/dist/components/BbOffCanvas/sheetSnap.d.ts +2 -2
- package/dist/components/BbOffCanvas/types.d.ts +30 -23
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue.d.ts +3 -3
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +110 -114
- package/dist/components/BbPagination/paginationFit.d.ts +1 -1
- package/dist/components/BbPagination/ptKeys.generated.d.ts +48 -0
- package/dist/components/BbPagination/types.d.ts +16 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +121 -115
- package/dist/components/BbPopover/BbPopoverPortal.vue.d.ts +1 -1
- package/dist/components/BbPopover/ptKeys.generated.d.ts +52 -0
- package/dist/components/BbPopover/types.d.ts +10 -11
- package/dist/components/BbProgress/BbProgress.vue.d.ts +2 -2
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbProgress/ptKeys.generated.d.ts +20 -0
- package/dist/components/BbProgress/types.d.ts +4 -5
- package/dist/components/BbRadio/BbRadio.vue.d.ts +8 -6
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +134 -122
- package/dist/components/BbRadio/ptKeys.generated.d.ts +196 -0
- package/dist/components/BbRadio/types.d.ts +24 -13
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +152 -248
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +248 -215
- package/dist/components/BbRadioGroup/ptKeys.generated.d.ts +492 -0
- package/dist/components/BbRadioGroup/types.d.ts +41 -24
- package/dist/components/BbRating/BbRating.vue.d.ts +9 -7
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +153 -142
- package/dist/components/BbRating/ptKeys.generated.d.ts +152 -0
- package/dist/components/BbRating/types.d.ts +31 -20
- package/dist/components/BbRating/types.js +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +269 -483
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +362 -341
- package/dist/components/BbSelect/ptKeys.generated.d.ts +960 -0
- package/dist/components/BbSelect/types.d.ts +50 -37
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +23 -50
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +750 -730
- package/dist/components/BbSelectPopover/knownItems.d.ts +4 -4
- package/dist/components/BbSelectPopover/ptKeys.generated.d.ts +148 -0
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/sheetChipAttrs.d.ts +1 -1
- package/dist/components/BbSelectPopover/types.d.ts +44 -31
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +27 -86
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +414 -331
- package/dist/components/BbSlider/ptKeys.generated.d.ts +316 -0
- package/dist/components/BbSlider/types.d.ts +162 -61
- package/dist/components/BbSlider/types.js +2 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -3
- package/dist/components/BbSmoothHeight/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSmoothHeight/types.d.ts +5 -6
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +3 -3
- package/dist/components/BbSpinner/ptKeys.generated.d.ts +8 -0
- package/dist/components/BbSpinner/types.d.ts +5 -6
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +6 -6
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +30 -30
- package/dist/components/BbSwitch/ptKeys.generated.d.ts +220 -0
- package/dist/components/BbSwitch/types.d.ts +15 -5
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +38 -116
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +13 -10
- package/dist/components/BbSwitchGroup/ptKeys.generated.d.ts +332 -0
- package/dist/components/BbSwitchGroup/types.d.ts +14 -5
- package/dist/components/BbTable/BbTable.vue.d.ts +13 -13
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1360 -1366
- package/dist/components/BbTable/BbTableDataRow.d.ts +4 -4
- package/dist/components/BbTable/BbTableEdgeRow.d.ts +5 -5
- package/dist/components/BbTable/BbTableExpandRow.d.ts +2 -2
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +3 -3
- package/dist/components/BbTable/estimatedFloors.golden.d.ts +1 -1
- package/dist/components/BbTable/gridWidgets.d.ts +1 -1
- package/dist/components/BbTable/measuredFloors.d.ts +1 -1
- package/dist/components/BbTable/measuredFloorsTestKit.d.ts +1 -1
- package/dist/components/BbTable/ptKeys.generated.d.ts +280 -0
- package/dist/components/BbTable/types.d.ts +30 -22
- package/dist/components/BbTable/utils.d.ts +5 -5
- package/dist/components/BbTable/utils.js +89 -88
- package/dist/components/BbTabs/BbTabs.vue.d.ts +41 -69
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +21 -15
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +121 -122
- package/dist/components/BbTabs/BbTabsPanels.vue.d.ts +3 -3
- package/dist/components/BbTabs/BbTabsPanels.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +2 -2
- package/dist/components/BbTabs/ptKeys.generated.d.ts +226 -0
- package/dist/components/BbTabs/types.d.ts +41 -23
- package/dist/components/BbTag/BbTag.vue.d.ts +18 -16
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +248 -238
- package/dist/components/BbTag/ptKeys.generated.d.ts +540 -0
- package/dist/components/BbTag/types.d.ts +28 -18
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +19 -171
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +176 -165
- package/dist/components/BbTextInput/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextInput/types.d.ts +30 -21
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +19 -171
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +206 -196
- package/dist/components/BbTextarea/ptKeys.generated.d.ts +608 -0
- package/dist/components/BbTextarea/types.d.ts +29 -20
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +13 -33
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +137 -136
- package/dist/components/BbTimePicker/ptKeys.generated.d.ts +80 -0
- package/dist/components/BbTimePicker/types.d.ts +19 -13
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +18 -201
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +421 -397
- package/dist/components/BbTimePickerInput/ptKeys.generated.d.ts +732 -0
- package/dist/components/BbTimePickerInput/types.d.ts +35 -23
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +60 -53
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +2 -2
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +5 -3
- package/dist/components/BbToast/ptKeys.generated.d.ts +232 -0
- package/dist/components/BbToast/types.d.ts +22 -13
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -6
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +99 -88
- package/dist/components/BbTooltip/ptKeys.generated.d.ts +36 -0
- package/dist/components/BbTooltip/tooltipWarmup.d.ts +2 -2
- package/dist/components/BbTooltip/types.d.ts +16 -9
- package/dist/components/BbTree/BbTree.vue.d.ts +7 -11
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +1 -1
- package/dist/components/BbTree/context.d.ts +2 -2
- package/dist/components/BbTree/ptKeys.generated.d.ts +16 -0
- package/dist/components/BbTree/types.d.ts +5 -6
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -2
- package/dist/components/ChipsBox/types.d.ts +2 -2
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -2
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +2 -2
- 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/CommaBox/CommaBox.vue.d.ts +2 -2
- package/dist/components/CommaBox/types.d.ts +2 -2
- package/dist/components/CommonField/CommonField.vue.d.ts +7 -7
- package/dist/components/CommonField/CommonField.vue_vue_type_script_setup_true_lang.js +9 -4
- package/dist/components/CommonField/messageHeightMatrix.d.ts +1 -1
- package/dist/components/CommonField/types.d.ts +18 -14
- package/dist/components/CommonFieldInput/CommonFieldInput.vue.d.ts +3 -3
- package/dist/components/CommonFieldInput/types.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +4 -4
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +56 -55
- package/dist/components/CommonPopover/resolvePlacement.d.ts +9 -0
- package/dist/components/CommonPopover/resolvePlacement.js +9 -0
- package/dist/components/CommonPopover/types.d.ts +5 -5
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue.d.ts +2 -2
- package/dist/components/CommonTimeSelector/CommonTimeSelector.vue_vue_type_script_setup_true_lang.js +110 -99
- package/dist/components/CommonTimeSelector/useMeridiem.d.ts +1 -1
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -2
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +3 -3
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -2
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +3 -3
- package/dist/components/ListBox/ListBox.vue.d.ts +2 -2
- package/dist/components/ListBox/types.d.ts +3 -3
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +101 -69
- package/dist/components/OptionsContainer/types.d.ts +8 -3
- package/dist/components/Transitions/Slide.vue.d.ts +5 -3
- package/dist/components/Transitions/Slide.vue.js +1 -1
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +2 -2
- package/dist/composables/autoHost.d.ts +1 -1
- package/dist/composables/formSubmitLock.d.ts +5 -5
- package/dist/composables/hostOpenings.d.ts +6 -6
- package/dist/composables/hostRegistry.d.ts +2 -2
- package/dist/composables/overlayRegistry.d.ts +25 -25
- package/dist/composables/overlayRegistry.js +13 -7
- package/dist/composables/useBaseOptions.d.ts +2 -2
- package/dist/composables/useBbConfig.d.ts +5 -5
- package/dist/composables/useBbDialog.d.ts +17 -17
- package/dist/composables/useBbDialog.js +2 -1
- package/dist/composables/useBbDropdown.d.ts +1 -1
- package/dist/composables/useBbForm.d.ts +2 -2
- package/dist/composables/useBbFormField.d.ts +4 -4
- package/dist/composables/useBbOffCanvas.d.ts +6 -6
- package/dist/composables/useBbTable.d.ts +4 -4
- package/dist/composables/useBbTabs.d.ts +4 -4
- package/dist/composables/useBbTabs.js +99 -94
- package/dist/composables/useBreakpoint.d.ts +1 -1
- package/dist/composables/useCharacterCounter.d.ts +2 -2
- package/dist/composables/useChoiceIndicator.d.ts +2 -2
- package/dist/composables/useClosingInert.d.ts +1 -1
- package/dist/composables/useConfig.d.ts +3 -3
- 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 +18 -18
- package/dist/composables/useDirection.d.ts +43 -0
- package/dist/composables/useDirection.js +12 -0
- package/dist/composables/useFormBinding.d.ts +5 -5
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/useId.d.ts +1 -1
- package/dist/composables/useItemsGetter.d.ts +3 -3
- package/dist/composables/useKeyboardInset.d.ts +1 -1
- package/dist/composables/useListboxFocus.d.ts +1 -1
- package/dist/composables/useLocale.d.ts +2 -2
- package/dist/composables/useOnDemandOpener.d.ts +3 -3
- package/dist/composables/useOverlayNavigation.d.ts +1 -1
- package/dist/composables/useOverlayYield.d.ts +1 -1
- package/dist/composables/usePassthrough.d.ts +13 -11
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useQuery.d.ts +1 -1
- package/dist/composables/useRefusedCloseAnnouncement.d.ts +1 -1
- package/dist/composables/useSafeArea.d.ts +1 -1
- package/dist/composables/useSafeAreaInternal.d.ts +1 -1
- package/dist/composables/useSegmentedFields.d.ts +25 -0
- package/dist/composables/useSegmentedFields.js +165 -115
- package/dist/composables/useServerPrefetch.d.ts +2 -2
- package/dist/composables/useSheetSurface.d.ts +1 -1
- package/dist/composables/useSsrState.d.ts +2 -2
- package/dist/composables/useToast.d.ts +13 -5
- package/dist/composables/useToast.js +52 -38
- package/dist/composables/useTypeahead.js +22 -21
- package/dist/deprecation/ai-deprecations.json.d.ts +160 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/deprecation/removedProps.d.ts +1 -1
- package/dist/directives/bbColor.d.ts +1 -1
- package/dist/directives/bbDate.d.ts +1 -1
- package/dist/directives/bbDialog.d.ts +3 -3
- package/dist/directives/bbDropdown.d.ts +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/directives/bbHoverCard.d.ts +3 -3
- package/dist/directives/bbOffCanvas.d.ts +2 -2
- package/dist/directives/bbPopover.d.ts +3 -3
- package/dist/directives/bbTime.d.ts +1 -1
- package/dist/directives/bbTooltip.d.ts +4 -4
- package/dist/directives/directivePortal.d.ts +4 -4
- package/dist/directives/overlayTrigger.d.ts +4 -4
- package/dist/directives/overlayTrigger.js +2 -1
- package/dist/i18n/eraNames.d.ts +2 -0
- package/dist/i18n/eraNames.js +2013 -0
- package/dist/i18n/index.d.ts +9 -7
- package/dist/i18n/localeTags.d.ts +36 -0
- package/dist/i18n/locales/ar.json +176 -0
- package/dist/i18n/locales/cs.json +23 -3
- package/dist/i18n/locales/da.json +23 -3
- package/dist/i18n/locales/de-CH.json +23 -3
- package/dist/i18n/locales/de.json +23 -3
- package/dist/i18n/locales/el.json +23 -3
- package/dist/i18n/locales/en-GB.json +23 -3
- package/dist/i18n/locales/en.json +23 -3
- package/dist/i18n/locales/es-MX.json +23 -3
- package/dist/i18n/locales/es.json +23 -3
- package/dist/i18n/locales/fa.json +176 -0
- package/dist/i18n/locales/fi.json +23 -3
- package/dist/i18n/locales/fr.json +23 -3
- package/dist/i18n/locales/he.json +176 -0
- package/dist/i18n/locales/hu.json +23 -3
- package/dist/i18n/locales/it.json +23 -3
- package/dist/i18n/locales/ja.json +23 -3
- package/dist/i18n/locales/ko.json +23 -3
- package/dist/i18n/locales/nb.json +23 -3
- package/dist/i18n/locales/nl.json +23 -3
- package/dist/i18n/locales/pl.json +23 -3
- package/dist/i18n/locales/pt-BR.json +23 -3
- package/dist/i18n/locales/pt-PT.json +23 -3
- package/dist/i18n/locales/ro.json +23 -3
- package/dist/i18n/locales/ru.json +23 -3
- package/dist/i18n/locales/sv.json +23 -3
- package/dist/i18n/locales/tr.json +23 -3
- package/dist/i18n/locales/uk.json +23 -3
- package/dist/i18n/locales/zh-CN.json +23 -3
- package/dist/i18n/locales/zh-HK.json +23 -3
- package/dist/i18n/locales/zh-TW.json +23 -3
- package/dist/i18n/regionHints.js +22 -22
- package/dist/i18n/regions.d.ts +73 -24
- package/dist/i18n/regions.js +57 -12
- package/dist/index.d.ts +192 -190
- package/dist/index.js +55 -54
- package/dist/llms-full.txt +8848 -5872
- package/dist/llms-medium.txt +830 -506
- package/dist/llms.txt +6 -5
- package/dist/locale-blueprint.json +26 -3
- package/dist/locale-tags.js +81 -0
- package/dist/mcp-sdk.LICENSES.txt +210 -0
- package/dist/mcp-sdk.mjs +78 -0
- package/dist/nuxt-auto-imports.d.ts +1 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +5 -5
- package/dist/nuxt.js +26 -23
- package/dist/plugin.d.ts +2 -2
- package/dist/project-dts.d.ts +76 -14
- package/dist/project-dts.js +117 -63
- package/dist/setup-kit.LICENSES.txt +23 -0
- package/dist/setup-kit.mjs +9 -0
- package/dist/styles.css +2 -2
- package/dist/types/ActionButton.d.ts +3 -3
- package/dist/types/AlertVariant.d.ts +2 -2
- package/dist/types/BadgeVariant.d.ts +2 -2
- package/dist/types/ButtonVariant.d.ts +2 -2
- package/dist/types/CheckboxVariant.d.ts +9 -6
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +25 -3
- package/dist/types/Config.d.ts +24 -110
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +2 -2
- package/dist/types/DatePickerType.d.ts +29 -2
- package/dist/types/DatePickerType.js +6 -2
- package/dist/types/DropdownItemVariant.d.ts +2 -2
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +2 -2
- package/dist/types/InputVariant.d.ts +58 -25
- package/dist/types/ItemAccessor.d.ts +7 -1
- package/dist/types/ItemProps.d.ts +3 -3
- package/dist/types/ItemsProvider.d.ts +2 -2
- package/dist/types/Placement.d.ts +7 -2
- package/dist/types/RadioVariant.d.ts +9 -6
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/ShapeErased.d.ts +1 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +2 -2
- package/dist/types/ToastVariant.d.ts +2 -2
- package/dist/types/TooltipVariant.d.ts +2 -2
- package/dist/types/fallthrough.d.ts +1 -1
- package/dist/types/passthrough.d.ts +23 -23
- package/dist/types/ptComponentMap.d.ts +29 -28
- package/dist/utilities/calendar/canonicalParts.d.ts +29 -0
- package/dist/utilities/calendar/canonicalParts.js +12 -0
- package/dist/utilities/calendar/digits.d.ts +18 -0
- package/dist/utilities/calendar/digits.js +26 -0
- package/dist/utilities/calendar/gregorian.d.ts +2 -0
- package/dist/utilities/calendar/gregorian.js +36 -0
- package/dist/utilities/calendar/index.d.ts +3 -0
- package/dist/utilities/calendar/index.js +1 -0
- package/dist/utilities/calendar/international.d.ts +19 -0
- package/dist/utilities/calendar/resolve.d.ts +32 -0
- package/dist/utilities/calendar/resolve.js +12 -0
- package/dist/utilities/calendar/runtime.d.ts +49 -0
- package/dist/utilities/calendar/types.d.ts +140 -0
- package/dist/utilities/calendar/types.js +83 -0
- package/dist/utilities/functions/convertDateValue.d.ts +15 -2
- package/dist/utilities/functions/convertDateValue.js +22 -17
- package/dist/utilities/functions/elementLabel.d.ts +1 -1
- package/dist/utilities/functions/extractDomContainer.d.ts +1 -1
- package/dist/utilities/functions/isDateDisabled.d.ts +9 -1
- package/dist/utilities/functions/isDateDisabled.js +38 -21
- package/dist/utilities/functions/itemProps.d.ts +1 -1
- package/dist/utilities/functions/normalizeDateBound.d.ts +45 -2
- package/dist/utilities/functions/normalizeDateBound.js +52 -11
- package/dist/utilities/functions/parseSize.d.ts +2 -2
- package/dist/utilities/functions/readableValue.d.ts +1 -1
- package/dist/utilities/functions/responsiveDefault.d.ts +1 -1
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/functions/slotKey.d.ts +1 -1
- package/dist/utilities/functions/toggleInput.d.ts +1 -1
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +3 -3
- package/dist/utilities/functions/when.d.ts +1 -1
- package/dist/utilities/misc/autofocus.d.ts +2 -2
- package/dist/utilities/misc/listboxMetrics.d.ts +2 -2
- package/dist/utilities/misc/maskaDataOptions.d.ts +1 -1
- package/dist/utilities/misc/ssrStateInjectionKey.d.ts +1 -1
- package/dist/utilities/misc/ssrValue.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +43 -0
- package/dist/utils/configDefaults.js +170 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/copyData.d.ts +2 -2
- package/dist/utils/cssLayers.d.ts +1 -1
- package/dist/utils/focusVisibility.d.ts +1 -1
- package/dist/utils/injectLibraryStyles.d.ts +1 -1
- package/dist/utils/overlayEscapeStack.d.ts +1 -1
- package/dist/utils/passthrough.d.ts +5 -8
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/passthroughDeduper.d.ts +1 -1
- package/dist/utils/releasedActivator.d.ts +20 -0
- package/dist/utils/releasedActivator.js +11 -0
- package/dist/utils/versionCheck.d.ts +1 -1
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +139 -218
- package/dist/vite.js +451 -425
- package/llms.txt +6 -5
- package/package.json +51 -19
- package/scripts/README.md +2 -1
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +107 -22
- package/scripts/lib/agent-refresh.mjs +151 -0
- package/scripts/lib/agent-setup.mjs +679 -0
- package/scripts/lib/carousel-items-without-slide.mjs +263 -0
- package/scripts/lib/carousel-prop-or-local.mjs +117 -0
- package/scripts/lib/check-fix.mjs +1 -1
- package/scripts/lib/collapsible-trigger-aria.mjs +1 -1
- package/scripts/lib/css-class-check.mjs +3 -3
- package/scripts/lib/css-local-check.mjs +25 -17
- package/scripts/lib/css-surface-answer.mjs +117 -0
- package/scripts/lib/define-preset-copy.mjs +1 -1
- package/scripts/lib/distributed-alias.mjs +81 -0
- package/scripts/lib/doc-sections.mjs +12 -4
- package/scripts/lib/dropdown-default-slot.mjs +1 -1
- package/scripts/lib/eslint-disable.mjs +60 -2
- package/scripts/lib/eslint-plugin.d.ts +13 -2
- package/scripts/lib/eslint-plugin.mjs +609 -64
- package/scripts/lib/form-v-model.mjs +1 -1
- package/scripts/lib/hand-imported-styles.mjs +2 -2
- package/scripts/lib/hand-roll-hints.mjs +25 -3
- package/scripts/lib/helper-canon.mjs +4 -4
- package/scripts/lib/helpers-add.mjs +39 -24
- package/scripts/lib/hidden-label-placeholder.mjs +1 -1
- package/scripts/lib/idiom-scan.mjs +12 -11
- package/scripts/lib/is-direct-run.mjs +20 -0
- package/scripts/lib/items-provider-context.mjs +1 -1
- package/scripts/lib/linked-target.mjs +26 -2
- package/scripts/lib/local-components.mjs +2 -2
- package/scripts/lib/locale-check.mjs +109 -13
- package/scripts/lib/mcp-config.mjs +140 -75
- package/scripts/lib/mcp-sdk.mjs +199 -0
- package/scripts/lib/migrate-fix.mjs +3 -3
- package/scripts/lib/plugin-options-check.mjs +170 -0
- package/scripts/lib/pnp.mjs +165 -0
- package/scripts/lib/portal-names.mjs +4 -4
- package/scripts/lib/prefer-v-bb-dialog.mjs +1 -1
- package/scripts/lib/project-variant-dts.mjs +182 -48
- package/scripts/lib/reactive-v-model.mjs +2 -2
- package/scripts/lib/redundant-item-accessor.mjs +1 -1
- package/scripts/lib/renamed-item-field.mjs +1 -1
- package/scripts/lib/renamed-slot-prop.mjs +524 -0
- package/scripts/lib/rule-registry.mjs +1 -1
- package/scripts/lib/setup-edits.mjs +1845 -0
- package/scripts/lib/setup.mjs +440 -0
- package/scripts/lib/slot-key.mjs +1 -1
- package/scripts/lib/slot-renames.mjs +3 -3
- package/scripts/lib/squashed-slot-words.mjs +1 -1
- package/scripts/lib/tab-links.mjs +2 -2
- package/scripts/lib/text-null-value.mjs +1 -1
- package/scripts/lib/toolchain-check.mjs +3 -3
- package/scripts/lib/tooling-options.mjs +87 -0
- package/scripts/lib/unimported-components.mjs +1 -1
- package/scripts/lib/unstyled-variants.mjs +1 -1
- package/scripts/lib/valid-locale.mjs +119 -0
- package/scripts/lib/validate-bb-markup.mjs +219 -115
- package/scripts/lib/wrapper-props.mjs +2 -2
- 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/BbNumberInput/warroom/corpus.d.ts +0 -58
- package/dist/components/BbNumberInput/warroom/currency-verify.rows.d.ts +0 -28
- package/dist/components/BbNumberInput/warroom/currency.rows.d.ts +0 -2
- package/dist/components/BbNumberInput/warroom/harness.d.ts +0 -217
- package/dist/components/BbNumberInput/warroom/oracle.d.ts +0 -150
- 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/components/BbTable/warroom/harness.d.ts +0 -260
- 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/utilities/functions/pipe.d.ts +0 -3
- package/dist/utilities/functions/range.js +0 -7
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
- package/scripts/lib/check-queue.mjs +0 -102
- package/scripts/lib/component-attr-targets.ts +0 -123
- package/scripts/lib/component-tree.ts +0 -648
- package/scripts/lib/consumer-install.mjs +0 -64
- package/scripts/lib/css-class-surface.mjs +0 -328
- package/scripts/lib/css-color-resolve.mjs +0 -296
- package/scripts/lib/css-comment-text.mjs +0 -16
- package/scripts/lib/design-token-manifest.mjs +0 -506
- package/scripts/lib/ensure-manifest.mjs +0 -135
- package/scripts/lib/example-checks.mjs +0 -337
- package/scripts/lib/guide-claims.mjs +0 -452
- package/scripts/lib/manifest-pointers.mjs +0 -71
- package/scripts/lib/pack.mjs +0 -55
- package/scripts/lib/public-type-exports.mjs +0 -273
- package/scripts/lib/quiet-gate.mjs +0 -385
- package/scripts/lib/recipe-excerpts.mjs +0 -98
- package/scripts/lib/swap-noun.mjs +0 -33
- package/scripts/lib/token-color-mix.mjs +0 -114
|
@@ -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"
|
|
@@ -302,6 +302,7 @@
|
|
|
302
302
|
lang="ts"
|
|
303
303
|
generic="Item = any, Known extends BbSelectKnownItems | undefined = undefined"
|
|
304
304
|
>
|
|
305
|
+
import { closeOnRelease } from '@/utils/releasedActivator';
|
|
305
306
|
import { asSheetAttrs } from '../BbOffCanvas/sheetAttrs';
|
|
306
307
|
import type { FallthroughAttrs } from '@/types/fallthrough';
|
|
307
308
|
import type { Option as BaseOption, GroupedOptions } from '@/types/Option';
|
|
@@ -338,7 +339,7 @@ import {
|
|
|
338
339
|
} from '@/utilities/functions/itemProps';
|
|
339
340
|
import { useLogger } from '@/composables/useLogger';
|
|
340
341
|
import { isNil } from '@/utilities/functions/isNil';
|
|
341
|
-
import {
|
|
342
|
+
import { keyHaystacks, rankByQuery } from '@/utilities/functions/searchRank';
|
|
342
343
|
import { parseWidthString } from '@/utilities/functions/parseWidthString';
|
|
343
344
|
import { mergeProps, toRef } from 'vue';
|
|
344
345
|
import { useArray } from '@/composables/useArray';
|
|
@@ -363,6 +364,7 @@ import { useItemsGetter } from '@/composables/useItemsGetter';
|
|
|
363
364
|
import type { ItemsRequestArgs } from '@/composables/useItemsGetter';
|
|
364
365
|
import { SsrMarker } from '@/composables/ssrMarker';
|
|
365
366
|
import { provideSheetChipAttrs, useSheetChipAttrs } from './sheetChipAttrs';
|
|
367
|
+
import { provideReclickClears, useReclickClears } from './reclickClears';
|
|
366
368
|
import {
|
|
367
369
|
indexKnownRows,
|
|
368
370
|
knownRowsCover,
|
|
@@ -375,6 +377,10 @@ import { useMobile } from '@/composables/useMobile';
|
|
|
375
377
|
import { provideSheetSurface } from '@/composables/useSheetSurface';
|
|
376
378
|
import { usePrefill } from '@/composables/usePrefill';
|
|
377
379
|
import { useConfig } from '@/composables/useConfig';
|
|
380
|
+
import {
|
|
381
|
+
useConfigDefaults,
|
|
382
|
+
useConfigSetting,
|
|
383
|
+
} from '@/composables/useConfigDefaults';
|
|
378
384
|
import {
|
|
379
385
|
isPrintableTypeaheadKey,
|
|
380
386
|
normalizeSearchToken,
|
|
@@ -424,7 +430,7 @@ const props = withDefaults(
|
|
|
424
430
|
>(),
|
|
425
431
|
{
|
|
426
432
|
// `undefined` (declared, not omitted) keeps `adaptive` three-state: it disables
|
|
427
|
-
// Vue's absent→`false` Boolean cast so `props.adaptive ??
|
|
433
|
+
// Vue's absent→`false` Boolean cast so `props.adaptive ?? all.adaptive` can
|
|
428
434
|
// reach the config default, while keeping the Boolean type so the valueless
|
|
429
435
|
// `adaptive` shorthand still resolves to `true`.
|
|
430
436
|
adaptive: undefined,
|
|
@@ -445,7 +451,8 @@ const props = withDefaults(
|
|
|
445
451
|
filterBy: () => [],
|
|
446
452
|
max: Infinity,
|
|
447
453
|
modelValueDebounceTime: 0,
|
|
448
|
-
|
|
454
|
+
// Unset: `all.popoverOffset`, else 4 px.
|
|
455
|
+
offset: undefined,
|
|
449
456
|
padding: 10,
|
|
450
457
|
placement: 'bottom',
|
|
451
458
|
prefill: 'interaction',
|
|
@@ -453,15 +460,19 @@ const props = withDefaults(
|
|
|
453
460
|
selectable: true,
|
|
454
461
|
transitionDuration: transitions.medium,
|
|
455
462
|
width: '200',
|
|
463
|
+
// Tri-state: unset lets the components map show through.
|
|
464
|
+
compact: undefined,
|
|
456
465
|
}
|
|
457
466
|
);
|
|
458
|
-
|
|
459
467
|
const emit = defineEmits<BbSelectPopoverEvents>();
|
|
460
468
|
|
|
461
469
|
defineSlots<BbSelectPopoverSlots<Item, Known>>();
|
|
462
470
|
|
|
471
|
+
/** `all.popoverOffset`: the app's or the scope's gap, read per render. */
|
|
472
|
+
const popoverOffset = useConfigSetting<number>(null, 'popoverOffset');
|
|
473
|
+
|
|
463
474
|
/**
|
|
464
|
-
* Passthrough
|
|
475
|
+
* Passthrough. `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
476
|
*/
|
|
466
477
|
const passthrough = usePassthrough({
|
|
467
478
|
component: 'BbSelectPopover',
|
|
@@ -506,6 +517,7 @@ onBeforeMount(() => {
|
|
|
506
517
|
* START ELEMENT REFERENCES
|
|
507
518
|
*/
|
|
508
519
|
const activatorEl = ref<DomHost>();
|
|
520
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: a template ref of the generic OptionsContainer, which has no `InstanceType`; only its exposed `focusByHash` / `focusFirstSelected` are called
|
|
509
521
|
const optionsContainer = ref<any | null>(null);
|
|
510
522
|
const searchInput = ref<HTMLInputElement | null>(null);
|
|
511
523
|
const popoverFocusProxy = ref<HTMLButtonElement | null>(null);
|
|
@@ -545,8 +557,28 @@ const setActivatorRef = (reference: unknown) => {
|
|
|
545
557
|
|
|
546
558
|
watch(
|
|
547
559
|
() => props.activator,
|
|
548
|
-
(val) => {
|
|
549
|
-
|
|
560
|
+
(val, old) => {
|
|
561
|
+
const held = activatorEl.value;
|
|
562
|
+
// Assigned, not through `setActivatorRef` (which keeps the previous
|
|
563
|
+
// element for the slot's unmount call): a value that resolves to no
|
|
564
|
+
// element releases the old one too.
|
|
565
|
+
if (val) activatorEl.value = extractDomContainer(val) ?? undefined;
|
|
566
|
+
// Let go of an external activator the app cleared: its listeners and
|
|
567
|
+
// ARIA come off and the panel stops anchoring to it. The slot's
|
|
568
|
+
// activator, rendered again now, sets its own element.
|
|
569
|
+
else if (old) activatorEl.value = undefined;
|
|
570
|
+
// Released while open: nothing anchors the panel any more, so it closes.
|
|
571
|
+
if (held && !activatorEl.value && shown.value)
|
|
572
|
+
void closeOnRelease({
|
|
573
|
+
inPanel: (node) =>
|
|
574
|
+
!!popoverSurface.value?.$el.contains(node) ||
|
|
575
|
+
!!document
|
|
576
|
+
.getElementById(`${id}_listbox`)
|
|
577
|
+
?.closest('dialog')
|
|
578
|
+
?.contains(node),
|
|
579
|
+
close,
|
|
580
|
+
activator: () => activatorEl.value,
|
|
581
|
+
});
|
|
550
582
|
},
|
|
551
583
|
{ immediate: true }
|
|
552
584
|
);
|
|
@@ -558,14 +590,20 @@ const { isMobile } = useMobile();
|
|
|
558
590
|
/**
|
|
559
591
|
* The instance's `disable-writing`, or `'auto'` when it is absent: the
|
|
560
592
|
* component default, not a config value — there is deliberately no global
|
|
561
|
-
* "hide every search field" switch
|
|
593
|
+
* "hide every search field" switch; the only knob
|
|
562
594
|
* is the threshold below. An explicit value — including the valueless
|
|
563
595
|
* shorthand, which is `true` — always wins.
|
|
564
596
|
*/
|
|
565
597
|
const resolvedDisableWriting = computed(() => props.disableWriting ?? 'auto');
|
|
598
|
+
/** `all.autoDisableWritingThreshold`: read when the panel opens. */
|
|
599
|
+
const thresholdSetting = useConfigSetting<number>(
|
|
600
|
+
null,
|
|
601
|
+
'autoDisableWritingThreshold'
|
|
602
|
+
);
|
|
603
|
+
|
|
566
604
|
/**
|
|
567
605
|
* `'auto'`: hide the search field when an ARRAY `items` renders fewer options
|
|
568
|
-
* than `
|
|
606
|
+
* than `all.autoDisableWritingThreshold` (default 6) — a list that short is quicker to
|
|
569
607
|
* scan than to filter. Counted as the array is declared (disabled options
|
|
570
608
|
* included, group headers excluded: grouping only sorts the same options
|
|
571
609
|
* under headings), which is also what the panel renders at open, when the
|
|
@@ -584,7 +622,7 @@ const instance = getCurrentInstance();
|
|
|
584
622
|
const resolveAutoHidesSearch = (): boolean => {
|
|
585
623
|
if (resolvedDisableWriting.value !== 'auto') return false;
|
|
586
624
|
if (!Array.isArray(props.items)) return false;
|
|
587
|
-
const threshold =
|
|
625
|
+
const threshold = thresholdSetting() ?? 6;
|
|
588
626
|
if (!(threshold > 0)) return false;
|
|
589
627
|
if (hasVnodeListener(instance, 'option:add')) return false;
|
|
590
628
|
return props.items.length < threshold;
|
|
@@ -637,7 +675,7 @@ const computedAriaDescribedby = computed(() => {
|
|
|
637
675
|
? [describedBy.trim()]
|
|
638
676
|
: [];
|
|
639
677
|
// While the latest load FAILED and the panel is open, the combobox is also
|
|
640
|
-
// described by the listbox's failure footer
|
|
678
|
+
// described by the listbox's failure footer, so a reader landing
|
|
641
679
|
// on the field hears why the list is what it is.
|
|
642
680
|
if (shown.value && itemsError.value !== null)
|
|
643
681
|
own.push(`${id}_listbox_failed`);
|
|
@@ -691,7 +729,7 @@ const normalizedWidth = computed(() => {
|
|
|
691
729
|
* `panel`: the surface you see — CommonPopover's painted bubble on desktop,
|
|
692
730
|
* the sheet itself on a phone (forwarded as the off-canvas `root`), so the box
|
|
693
731
|
* inside the sheet takes only our class there. `root` is the floating element
|
|
694
|
-
* and has no node on the sheet
|
|
732
|
+
* and has no node on the sheet.
|
|
695
733
|
*/
|
|
696
734
|
const panelBindings = computed(() =>
|
|
697
735
|
mergeProps(
|
|
@@ -874,8 +912,7 @@ const canProcessKeyboardBindings = computed(() => {
|
|
|
874
912
|
// Only a load with NOTHING on screen blocks the keyboard. A refetch over
|
|
875
913
|
// existing options merely dims them — they stay clickable — so freezing
|
|
876
914
|
// Arrow/Enter there left the mouse working while the keyboard did not, which
|
|
877
|
-
// is a keyboard-only trap for the duration of every background reload
|
|
878
|
-
// (SWP-034).
|
|
915
|
+
// is a keyboard-only trap for the duration of every background reload.
|
|
879
916
|
if (computedLoading.value && !internalItems.value.length) return false;
|
|
880
917
|
return true;
|
|
881
918
|
});
|
|
@@ -922,7 +959,7 @@ const focusLastSelectedOption = () => {
|
|
|
922
959
|
* the list and its transition before it places the first highlight. A key
|
|
923
960
|
* pressed in that window (a quick second ArrowDown, an Enter) used to act on
|
|
924
961
|
* the half-open list and then be overwritten by that first highlight, so the
|
|
925
|
-
* key was lost
|
|
962
|
+
* key was lost. Keys now wait for the open in flight
|
|
926
963
|
* and act after it, in the order they were pressed.
|
|
927
964
|
*/
|
|
928
965
|
let keyboardOpen: Promise<void> | null = null;
|
|
@@ -990,7 +1027,7 @@ const onHome = () => focusEdge('first');
|
|
|
990
1027
|
const onEnd = () => focusEdge('last');
|
|
991
1028
|
|
|
992
1029
|
/**
|
|
993
|
-
* Typeahead
|
|
1030
|
+
* Typeahead, only when there is NO search field (`disableWriting`,
|
|
994
1031
|
* or `auto` hiding it): a printable key moves the highlight to the first
|
|
995
1032
|
* enabled option starting with what was typed, like a native `<select>` —
|
|
996
1033
|
* opening the list first when it is closed. With a search field, typing
|
|
@@ -1015,7 +1052,7 @@ const typeahead = useTypeahead<BaseOption<Item>>({
|
|
|
1015
1052
|
/**
|
|
1016
1053
|
* A key typed while a keyboard open is still placing focus belongs to the
|
|
1017
1054
|
* search field it is about to reach: it waits for the open, then is written
|
|
1018
|
-
* there as an input, so typing straight after Enter is not lost
|
|
1055
|
+
* there as an input, so typing straight after Enter is not lost.
|
|
1019
1056
|
*/
|
|
1020
1057
|
const typeIntoSearchAfterOpen = async (event: KeyboardEvent) => {
|
|
1021
1058
|
event.preventDefault();
|
|
@@ -1115,7 +1152,7 @@ const escapeKey = Symbol('bb-select-popover-escape');
|
|
|
1115
1152
|
* cover the search input, the focus proxy and the activator — with focus parked
|
|
1116
1153
|
* anywhere else (a `#header`/`#footer` control, the clear button) Escape used to
|
|
1117
1154
|
* bubble past an open panel to whatever overlay sat underneath, closing the
|
|
1118
|
-
* parent instead of the panel
|
|
1155
|
+
* parent instead of the panel. BbDropdown has had this listener all
|
|
1119
1156
|
* along; this is the same one, gated on the shared stack so a surface opened on
|
|
1120
1157
|
* top of the panel still wins.
|
|
1121
1158
|
*/
|
|
@@ -1166,7 +1203,7 @@ const hasModelValue = computed(() =>
|
|
|
1166
1203
|
);
|
|
1167
1204
|
|
|
1168
1205
|
/**
|
|
1169
|
-
* KNOWN ROWS
|
|
1206
|
+
* KNOWN ROWS. `known-items`, this
|
|
1170
1207
|
* popover's own or else the owning `BbSelect`'s: rows the app already holds,
|
|
1171
1208
|
* which name the model's values with no request (R1). They are never options
|
|
1172
1209
|
* of their own (R3): only a selected value's row is listed. Nothing below
|
|
@@ -1180,7 +1217,7 @@ provideKnownItems(null);
|
|
|
1180
1217
|
const knownItemsGiven = () =>
|
|
1181
1218
|
props.knownItems !== undefined ? props.knownItems : knownSource?.rows();
|
|
1182
1219
|
/**
|
|
1183
|
-
* Every `{ value, label }` row this select was given
|
|
1220
|
+
* Every `{ value, label }` row this select was given: they
|
|
1184
1221
|
* travel as items, but `item-value`, `item-text`, `item-props`, `selectable`
|
|
1185
1222
|
* and `group-by` are the options' and never run on them. Never pruned: a pin
|
|
1186
1223
|
* may still hold a row the app has since replaced.
|
|
@@ -1289,14 +1326,14 @@ const {
|
|
|
1289
1326
|
// validate it, which is impossible without options — so load. An empty
|
|
1290
1327
|
// model needs no check and stays lazy.
|
|
1291
1328
|
// The known rows stand in for that load while they vouch for all of
|
|
1292
|
-
// the model
|
|
1329
|
+
// the model.
|
|
1293
1330
|
(props.enforceCoherence && hasModelValue.value && !fullyVouched.value) ||
|
|
1294
1331
|
(props.prefill === 'interaction' && hasInteracted.value)
|
|
1295
1332
|
),
|
|
1296
1333
|
currentValue: undefined,
|
|
1297
1334
|
multiple: false,
|
|
1298
1335
|
fn: async () => {
|
|
1299
|
-
// Post-load work runs on an APPLIED result only
|
|
1336
|
+
// Post-load work runs on an APPLIED result only: a load a
|
|
1300
1337
|
// newer call superseded returned at once, and stashing or pruning against
|
|
1301
1338
|
// the list it did not write would act on the old or still-empty rows; a
|
|
1302
1339
|
// failed load cleared the rows, and a failure never prunes.
|
|
@@ -1320,6 +1357,7 @@ const {
|
|
|
1320
1357
|
|
|
1321
1358
|
// Single-select wraps rather than concats: an option value may itself be an
|
|
1322
1359
|
// array, and `concat` would spread it into several picks.
|
|
1360
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the model's values, read through `item-value` (a key, a dot path or a function) and not resolved at the type level, like the public `modelValue`
|
|
1323
1361
|
const modelValueList = computed<any[]>(() =>
|
|
1324
1362
|
props.multiple ? [].concat(props.modelValue) : [props.modelValue]
|
|
1325
1363
|
);
|
|
@@ -1463,7 +1501,7 @@ const outsideRows = computed<Item[]>((previous) => {
|
|
|
1463
1501
|
});
|
|
1464
1502
|
|
|
1465
1503
|
/**
|
|
1466
|
-
* ORDER (R7, reading b
|
|
1504
|
+
* ORDER (R7, reading b). The rows from outside the list
|
|
1467
1505
|
* come first, and the ones listed when the panel opened stay first, in place,
|
|
1468
1506
|
* until it closes: picking only toggles a check. A search replaces the list;
|
|
1469
1507
|
* clearing it pins again, like a fresh open. The one place the order is
|
|
@@ -1471,7 +1509,7 @@ const outsideRows = computed<Item[]>((previous) => {
|
|
|
1471
1509
|
*/
|
|
1472
1510
|
const pinned = shallowRef<Array<{ valueHash: string; row: Item }>>([]);
|
|
1473
1511
|
/**
|
|
1474
|
-
*
|
|
1512
|
+
* on a provider select, a pick once pinned stays
|
|
1475
1513
|
* first on every later open while it stays selected, even after an answer
|
|
1476
1514
|
* appended it by id. Unpicking it, or clearing a search, drops it to the
|
|
1477
1515
|
* page's order. Array `items` are not sticky (R7 b).
|
|
@@ -1568,9 +1606,11 @@ const extraProjection = useBaseOptions({
|
|
|
1568
1606
|
itemValue: (row: unknown) =>
|
|
1569
1607
|
isKnown(row) ? row.value : getOptionValue(row as Item, props.itemValue),
|
|
1570
1608
|
itemText: (row: unknown) =>
|
|
1609
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the typed accessor handed to the shared `getOptionText`, which takes the row erased
|
|
1571
1610
|
isKnown(row) ? row.label : getOptionText(row, props.itemText as any),
|
|
1572
1611
|
itemProps: computed(() => {
|
|
1573
1612
|
if (!props.itemProps) return props.itemProps;
|
|
1613
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the typed `itemProps` handed to the shared resolver, which takes the row erased
|
|
1574
1614
|
const { all } = createItemPropsResolver(props.itemProps as any);
|
|
1575
1615
|
return (row: unknown) => (isKnown(row) ? {} : all(row));
|
|
1576
1616
|
}),
|
|
@@ -1609,7 +1649,7 @@ const options = computed(() => {
|
|
|
1609
1649
|
);
|
|
1610
1650
|
const top: typeof fetched = [];
|
|
1611
1651
|
const topSet = new Set<string>();
|
|
1612
|
-
//
|
|
1652
|
+
// a pin the list holds keeps its list place (an
|
|
1613
1653
|
// ordered select stays ordered); only the rows the list lacks go first. A
|
|
1614
1654
|
// masked reopen's rows are the old search's, so its pins all stay on top.
|
|
1615
1655
|
const listedInPlace = !listMasked.value;
|
|
@@ -1649,7 +1689,7 @@ const pruneSticky = () => {
|
|
|
1649
1689
|
* (a masked one opens on an empty query too, so it qualifies). Under a search
|
|
1650
1690
|
* the row leaves the selected tail as on v3, and clearing the search orders
|
|
1651
1691
|
* like a fresh open, which lists no unselected row (R7, newcode-r7-1) — also
|
|
1652
|
-
* when the query was typed over the mask
|
|
1692
|
+
* when the query was typed over the mask.
|
|
1653
1693
|
*/
|
|
1654
1694
|
const unpickKeepsPlace = () => !query.value;
|
|
1655
1695
|
/** B3: removals from outside the list that the user made (a field chip, the clear button). */
|
|
@@ -1694,7 +1734,7 @@ if (knownSource) {
|
|
|
1694
1734
|
|
|
1695
1735
|
/**
|
|
1696
1736
|
* The option slot's props, with the `known` that tells a known row from the
|
|
1697
|
-
* list's own
|
|
1737
|
+
* list's own. The scope is typed by whether this popover binds
|
|
1698
1738
|
* `known-items` (`Known`), which runtime cannot see: the one cast lives here.
|
|
1699
1739
|
*/
|
|
1700
1740
|
const optionSlotProps = <D extends { item: Item }>(data: D) =>
|
|
@@ -1805,7 +1845,7 @@ watch(
|
|
|
1805
1845
|
* picks against the search page).
|
|
1806
1846
|
*
|
|
1807
1847
|
* `fetchedCoherent` reads the FETCHED rows only and is what the prune after an
|
|
1808
|
-
* applied non-search load checks
|
|
1848
|
+
* applied non-search load checks: `stash`
|
|
1809
1849
|
* keeps a pick's row resolvable, it is not evidence the pick is still valid,
|
|
1810
1850
|
* so a dependency reload whose result lacks a stashed pick prunes it. The
|
|
1811
1851
|
* stash then follows the model (the watcher above), and the pruned row leaves
|
|
@@ -1877,8 +1917,8 @@ const selectedOptions = computed<BaseOption[]>(() =>
|
|
|
1877
1917
|
|
|
1878
1918
|
/**
|
|
1879
1919
|
* The picks as the user sees them: the phone sheet's chips and the trigger's
|
|
1880
|
-
* text. After a FAILED load a pick no row names still shows
|
|
1881
|
-
*
|
|
1920
|
+
* text. After a FAILED load a pick no row names still shows:
|
|
1921
|
+
* its value as given when it reads as text, else no text, and it
|
|
1882
1922
|
* stays removable. While a load is pending or applied, only resolved picks
|
|
1883
1923
|
* show (a pending load would flash the raw value before its row's text).
|
|
1884
1924
|
* Internal: the slots' `selectedOptions` stay the resolved options.
|
|
@@ -2307,8 +2347,10 @@ const onOptionUnselected = async (option: BaseOption) => {
|
|
|
2307
2347
|
// simply closes on the value it has. Emptying is an explicit affordance (the
|
|
2308
2348
|
// clear button, or the `clear` callback on the activator/panel slots), never
|
|
2309
2349
|
// an accidental second click. Multiple mode still toggles: there, unselecting
|
|
2310
|
-
// by clicking is the whole interaction.
|
|
2350
|
+
// by clicking is the whole interaction. A `clearable` BbSelect opts into
|
|
2351
|
+
// clearing on it (BbDropdown's `clearable` parity).
|
|
2311
2352
|
if (!props.multiple) {
|
|
2353
|
+
if (reclickClears?.()) onClear();
|
|
2312
2354
|
focusActivator();
|
|
2313
2355
|
close();
|
|
2314
2356
|
return;
|
|
@@ -2330,13 +2372,14 @@ const onOptionUnselected = async (option: BaseOption) => {
|
|
|
2330
2372
|
};
|
|
2331
2373
|
|
|
2332
2374
|
/**
|
|
2333
|
-
* Whether every row is a two-line row
|
|
2375
|
+
* Whether every row is a two-line row. The
|
|
2334
2376
|
* object form of `itemProps` says so up front; the function form can only be
|
|
2335
2377
|
* asked, so the options are scanned — a list whose rows would otherwise change
|
|
2336
2378
|
* height as descriptions appear. Rows are fixed-height because they are
|
|
2337
2379
|
* virtualized, which is why this is decided for the whole list at once.
|
|
2338
2380
|
*/
|
|
2339
2381
|
const described = computed(() => {
|
|
2382
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- internal: the typed `itemProps` handed to the shared resolver, which takes the row erased
|
|
2340
2383
|
const declared = itemPropsDeclares(props.itemProps as any, 'description');
|
|
2341
2384
|
if (declared !== undefined) return declared;
|
|
2342
2385
|
return options.value.some((option) => option.description !== undefined);
|
|
@@ -2364,21 +2407,25 @@ const filteredOptions = computed<Array<BaseOption<Item>>>(() => {
|
|
|
2364
2407
|
}
|
|
2365
2408
|
// `false`: the provider matched the query; its answer is the list.
|
|
2366
2409
|
if (props.filterBy === false) return options.value;
|
|
2367
|
-
|
|
2410
|
+
// Ranked (searchRank.ts): the best matches first; `groupedOptions` keeps
|
|
2411
|
+
// the groups in the page's order.
|
|
2368
2412
|
const keys = props.filterBy;
|
|
2369
|
-
if (Array.isArray(keys) && keys.length)
|
|
2370
|
-
return
|
|
2371
|
-
|
|
2413
|
+
if (Array.isArray(keys) && keys.length)
|
|
2414
|
+
return rankByQuery(
|
|
2415
|
+
options.value,
|
|
2416
|
+
(option) => keyHaystacks(option.item, keys),
|
|
2417
|
+
query.value
|
|
2372
2418
|
);
|
|
2373
|
-
}
|
|
2374
2419
|
// The description joins the text when the option has one — the same rule as
|
|
2375
|
-
// BbDropdown's rows and fetched groups
|
|
2376
|
-
return
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2420
|
+
// BbDropdown's rows and fetched groups.
|
|
2421
|
+
return rankByQuery(
|
|
2422
|
+
options.value,
|
|
2423
|
+
(option: BaseOption) =>
|
|
2424
|
+
keyHaystacks(
|
|
2425
|
+
option,
|
|
2426
|
+
option.description != null ? ['text', 'description'] : ['text']
|
|
2427
|
+
),
|
|
2428
|
+
query.value
|
|
2382
2429
|
);
|
|
2383
2430
|
});
|
|
2384
2431
|
|
|
@@ -2389,14 +2436,15 @@ const getGroupData = (option: BaseOption) => {
|
|
|
2389
2436
|
// A known row has no group of its own until the list brings its row.
|
|
2390
2437
|
if (isKnown(option.item)) return undefined;
|
|
2391
2438
|
if (typeof props.groupBy === 'function') return props.groupBy(option.item);
|
|
2439
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- `get` types its path per row type; `groupBy` is a dot path the app wrote, not resolved at the type level
|
|
2392
2440
|
return (get as any)(option.item, props.groupBy);
|
|
2393
2441
|
};
|
|
2394
2442
|
|
|
2395
2443
|
/**
|
|
2396
|
-
*
|
|
2444
|
+
* the page decides the order of the groups; a pinned
|
|
2397
2445
|
* row goes first inside its own group, and a group only pinned rows hold
|
|
2398
2446
|
* goes first. Rows with no group (a nullish `groupBy`, a known row) are
|
|
2399
|
-
* listed before every header
|
|
2447
|
+
* listed before every header, as in BbDropdown.
|
|
2400
2448
|
*/
|
|
2401
2449
|
const groupedOptions = computed<GroupedOptions[]>(() => {
|
|
2402
2450
|
// Every row the open list puts on top (pins and other outside rows) is
|
|
@@ -2416,7 +2464,13 @@ const groupedOptions = computed<GroupedOptions[]>(() => {
|
|
|
2416
2464
|
GroupedOptions & { pinnedOptions: BaseOption[]; firstListed: number }
|
|
2417
2465
|
> = [];
|
|
2418
2466
|
const groupIndex: Record<GroupedOptions['id'], (typeof groups)[number]> = {};
|
|
2419
|
-
|
|
2467
|
+
// A group's place is its first row's place on the PAGE: a search ranks the
|
|
2468
|
+
// rows inside each group and never reorders the groups.
|
|
2469
|
+
const pagePosition = new Map(
|
|
2470
|
+
options.value.map((option, index) => [option.valueHash, index])
|
|
2471
|
+
);
|
|
2472
|
+
filteredOptions.value.forEach((option) => {
|
|
2473
|
+
const index = pagePosition.get(option.valueHash) ?? Infinity;
|
|
2420
2474
|
const groupData = getGroupData(option);
|
|
2421
2475
|
const groupId = hash(groupData);
|
|
2422
2476
|
let group = groupIndex[groupId];
|
|
@@ -2470,10 +2524,10 @@ const renderListBox = useUntil(shown);
|
|
|
2470
2524
|
* (same `transitionDuration`) and only then goes inert.
|
|
2471
2525
|
*
|
|
2472
2526
|
* The same settled-closed signal hides the whole desktop panel from assistive
|
|
2473
|
-
* tech (`aria-hidden
|
|
2527
|
+
* tech (`aria-hidden`): the closed popover stays mounted at opacity 0,
|
|
2474
2528
|
* so without it a screen reader still finds the listbox and the no-search focus
|
|
2475
|
-
* proxy. `aria-hidden`, not `inert`: the select listboxes are never inert
|
|
2476
|
-
*
|
|
2529
|
+
* proxy. `aria-hidden`, not `inert`: the select listboxes are never inert
|
|
2530
|
+
* — focus is not the issue, only what gets announced.
|
|
2477
2531
|
*/
|
|
2478
2532
|
const panelSettledClosed = useClosingInert(
|
|
2479
2533
|
shown,
|
|
@@ -2487,14 +2541,18 @@ const panelSettledClosed = useClosingInert(
|
|
|
2487
2541
|
* until it closes, so a mid-session resize never swaps a live popover into a sheet
|
|
2488
2542
|
* (or vice-versa) — mirroring BbPopover/BbDropdown/BbDialog.
|
|
2489
2543
|
*/
|
|
2544
|
+
const configDefaults = useConfigDefaults('BbSelectPopover', props, {
|
|
2545
|
+
adaptive: true,
|
|
2546
|
+
compact: false,
|
|
2547
|
+
});
|
|
2490
2548
|
const resolveSurface = (): 'popover' | 'canvas' =>
|
|
2491
|
-
|
|
2549
|
+
configDefaults.adaptive && isMobile.value ? 'canvas' : 'popover';
|
|
2492
2550
|
const surface = ref<'popover' | 'canvas'>(resolveSurface());
|
|
2493
2551
|
const useOffcanvas = computed(() => surface.value === 'canvas');
|
|
2494
2552
|
|
|
2495
2553
|
// While closed, keep tracking the viewport so the next open resolves correctly;
|
|
2496
2554
|
// while open the surface stays frozen.
|
|
2497
|
-
watch([() =>
|
|
2555
|
+
watch([() => configDefaults.adaptive, isMobile, shown], () => {
|
|
2498
2556
|
if (!shown.value) surface.value = resolveSurface();
|
|
2499
2557
|
});
|
|
2500
2558
|
|
|
@@ -2507,10 +2565,13 @@ watch([() => props.adaptive, isMobile, shown], () => {
|
|
|
2507
2565
|
* `useTouchRowLadder`). Reactive, because the surface re-latches on every open.
|
|
2508
2566
|
*/
|
|
2509
2567
|
provideSheetSurface(useOffcanvas);
|
|
2510
|
-
// The owning BbSelect's `pt:badge` for the sheet's chips
|
|
2568
|
+
// The owning BbSelect's `pt:badge` for the sheet's chips; nothing
|
|
2511
2569
|
// below this popover inherits it.
|
|
2512
2570
|
const sheetChipAttrs = useSheetChipAttrs();
|
|
2513
2571
|
provideSheetChipAttrs(null);
|
|
2572
|
+
// A `clearable` BbSelect clears on a re-click (3); same scoping.
|
|
2573
|
+
const reclickClears = useReclickClears();
|
|
2574
|
+
provideReclickClears(null);
|
|
2514
2575
|
|
|
2515
2576
|
/**
|
|
2516
2577
|
* Android: dismissing the on-screen keyboard (back gesture/button) only HIDES
|
|
@@ -2595,7 +2656,7 @@ const offcanvasBindings = computed(() => ({
|
|
|
2595
2656
|
// Name the modal sheet after its activator: with no `title` the dialog root
|
|
2596
2657
|
// is otherwise nameless. A string copied from the activator, never an
|
|
2597
2658
|
// `aria-labelledby` pointing at it: the modal makes the activator inert, and
|
|
2598
|
-
// a name read through an inert element computes empty
|
|
2659
|
+
// a name read through an inert element computes empty. Skipped when
|
|
2599
2660
|
// the consumer passes a title (so BbOffCanvas's own titleId labelling stays
|
|
2600
2661
|
// in charge — fallthrough attrs beat the template binding); a consumer
|
|
2601
2662
|
// aria-labelledby/aria-label in `offCanvasProps` wins via the spread below.
|
|
@@ -2608,7 +2669,7 @@ const offcanvasBindings = computed(() => ({
|
|
|
2608
2669
|
*/
|
|
2609
2670
|
|
|
2610
2671
|
/**
|
|
2611
|
-
* DIRTY REOPEN
|
|
2672
|
+
* DIRTY REOPEN.
|
|
2612
2673
|
*
|
|
2613
2674
|
* `close()` clears the query, but the list it leaves came from whatever the
|
|
2614
2675
|
* user searched: reopening showed the old search's rows under an empty box.
|
|
@@ -2658,7 +2719,7 @@ watch(query, (next, prev) => {
|
|
|
2658
2719
|
if (shown.value && prev && !next) repinOnSettle = true;
|
|
2659
2720
|
});
|
|
2660
2721
|
// A new query is a new list: it starts at its first match, not at the offset
|
|
2661
|
-
// the previous list was scrolled to
|
|
2722
|
+
// the previous list was scrolled to. An opening list places itself.
|
|
2662
2723
|
watch(
|
|
2663
2724
|
query,
|
|
2664
2725
|
() => {
|
|
@@ -2671,7 +2732,7 @@ watch(
|
|
|
2671
2732
|
* An opening list places itself on its selected row, but a provider list's
|
|
2672
2733
|
* rows may not be there yet: a first open that loads (known rows cover the
|
|
2673
2734
|
* model, nothing fetched) or a masked reopen placed against the known row
|
|
2674
|
-
* alone, or nothing
|
|
2735
|
+
* alone, or nothing. Set at such an open: when its unfiltered load
|
|
2675
2736
|
* lands, the list is placed again, once — unless the user has scrolled, moved
|
|
2676
2737
|
* the highlight or typed since, which clears it. The selected row is wherever
|
|
2677
2738
|
* the list has it: pinned on top when the page lacks it, else at its place.
|
|
@@ -2718,7 +2779,7 @@ const refreshDirtyList = () => {
|
|
|
2718
2779
|
markPrefilled();
|
|
2719
2780
|
listMasked.value = true;
|
|
2720
2781
|
if (isSearchFirst.value) return;
|
|
2721
|
-
// A reopen is "initial after closing"
|
|
2782
|
+
// A reopen is "initial after closing": its
|
|
2722
2783
|
// applied result prunes like every other non-search load.
|
|
2723
2784
|
void load('', reason, props.modelValue).then((outcome) => {
|
|
2724
2785
|
if (outcome === 'applied') pruneAgainstFetchedRows();
|
|
@@ -2750,7 +2811,7 @@ const open = async ({
|
|
|
2750
2811
|
!hasPrefilled.value && !isPrefilling.value && !isSearchFirst.value
|
|
2751
2812
|
? prefillItems()
|
|
2752
2813
|
: undefined;
|
|
2753
|
-
// The panel does not wait for that load
|
|
2814
|
+
// The panel does not wait for that load: it opens on its loading
|
|
2754
2815
|
// state and takes focus now. Waiting left focus on the activator for the
|
|
2755
2816
|
// whole fetch, so keys typed right after the click were lost and a space
|
|
2756
2817
|
// toggled the panel shut; in the search field they search, and that search
|
|
@@ -2773,7 +2834,7 @@ const settleOpen = async (focusPopoverContent: boolean) => {
|
|
|
2773
2834
|
resume();
|
|
2774
2835
|
// Join the shared Escape stack only in flyout mode — the sheet returned
|
|
2775
2836
|
// above and BbOffCanvas registers itself instead. The element is the
|
|
2776
|
-
// panel, for the surfaces that give way to it
|
|
2837
|
+
// panel, for the surfaces that give way to it.
|
|
2777
2838
|
pushEscapeEntry(escapeKey, {
|
|
2778
2839
|
element: () => {
|
|
2779
2840
|
const containerEl = optionsContainer.value?.$el;
|
|
@@ -2829,9 +2890,9 @@ const close = async () => {
|
|
|
2829
2890
|
// transition finishes; the flyout's document listeners were never attached.
|
|
2830
2891
|
if (useOffcanvas.value) return;
|
|
2831
2892
|
|
|
2832
|
-
// The closed panel turns `aria-hidden
|
|
2893
|
+
// The closed panel turns `aria-hidden`: a close that did not come
|
|
2833
2894
|
// from the activator (the slot's `toggle` from app code, the activator
|
|
2834
|
-
// scrolling away) must not leave focus inside it
|
|
2895
|
+
// scrolling away) must not leave focus inside it.
|
|
2835
2896
|
if (popoverSurface.value?.$el.contains(document.activeElement)) {
|
|
2836
2897
|
activatorEl.value?.focus({ preventScroll: true });
|
|
2837
2898
|
}
|
|
@@ -2948,7 +3009,7 @@ const onSearchClear = () => {
|
|
|
2948
3009
|
* across surfaces.
|
|
2949
3010
|
*/
|
|
2950
3011
|
/**
|
|
2951
|
-
*
|
|
3012
|
+
* the list shows its empty state (no row, the load settled): no
|
|
2952
3013
|
* items, none matching the query, or a failed load with nothing listed.
|
|
2953
3014
|
*/
|
|
2954
3015
|
const listEmpty = computed(
|
|
@@ -2966,7 +3027,7 @@ const panelSlotProps = computed(() => ({
|
|
|
2966
3027
|
focus: focusPopoverContent,
|
|
2967
3028
|
query: query.value,
|
|
2968
3029
|
selectedOptions: publicSelectedOptions.value,
|
|
2969
|
-
// The sheet hands its dialog's own id instead
|
|
3030
|
+
// The sheet hands its dialog's own id instead.
|
|
2970
3031
|
titleId: `${id}_title`,
|
|
2971
3032
|
}));
|
|
2972
3033
|
|
|
@@ -2977,7 +3038,7 @@ const panelSlotProps = computed(() => ({
|
|
|
2977
3038
|
*/
|
|
2978
3039
|
let cleanupActivator: (() => void) | null = null;
|
|
2979
3040
|
|
|
2980
|
-
//
|
|
3041
|
+
// `combobox` is not in ARIA's name-from-content set, so a slot-authored
|
|
2981
3042
|
// trigger's visible text is exposed as the current *value* (a select-only
|
|
2982
3043
|
// combobox's value is its element content / input value — `aria-valuetext` is
|
|
2983
3044
|
// not supported on the combobox role and AT ignores it there), never the
|
|
@@ -3164,14 +3225,14 @@ watch(
|
|
|
3164
3225
|
]) => {
|
|
3165
3226
|
if (!el) return;
|
|
3166
3227
|
el.setAttribute('aria-expanded', String(isShown));
|
|
3167
|
-
// See
|
|
3228
|
+
// See the note above `activatorHasOwnName`: never override a name the
|
|
3168
3229
|
// consumer set themselves.
|
|
3169
3230
|
if (!hasOwnName) el.setAttribute('aria-label', fallbackLabel);
|
|
3170
3231
|
// The listbox popup is named after the combobox (RR P5-4). A name is not
|
|
3171
3232
|
// followed through a second `aria-labelledby` hop, so the listbox copies
|
|
3172
3233
|
// the activator's own name source instead of pointing at the activator.
|
|
3173
3234
|
// On the phone sheet it takes `activatorName` instead: an id outside the
|
|
3174
|
-
// modal computes empty there
|
|
3235
|
+
// modal computes empty there.
|
|
3175
3236
|
listLabelledby.value = el.getAttribute('aria-labelledby') ?? undefined;
|
|
3176
3237
|
listLabel.value = el.getAttribute('aria-label') ?? undefined;
|
|
3177
3238
|
if (ariaInvalid != null) {
|
|
@@ -3248,9 +3309,14 @@ import type {
|
|
|
3248
3309
|
PtValue,
|
|
3249
3310
|
} from '@/types/passthrough';
|
|
3250
3311
|
import type { Placement } from '@/types/Placement';
|
|
3312
|
+
import type {
|
|
3313
|
+
ElementOrComponentRef,
|
|
3314
|
+
ElementOrComponentRefOrSelector,
|
|
3315
|
+
} from '@/types/CommonProps';
|
|
3251
3316
|
import type { ItemAccessor } from '@/types/ItemAccessor';
|
|
3252
3317
|
import type { BbSelectPopoverItemsContext } from '@/types/ItemsProvider';
|
|
3253
3318
|
import type { BbOffCanvasProps } from '../BbOffCanvas/types';
|
|
3319
|
+
import type { BbSelectPopoverPtKeys } from './ptKeys.generated';
|
|
3254
3320
|
|
|
3255
3321
|
/** A row naming a value the app already holds (`known-items`): the model value and its text. */
|
|
3256
3322
|
export type BbSelectKnownItem = { value: unknown; label: string };
|
|
@@ -3259,7 +3325,7 @@ export type BbSelectKnownItem = { value: unknown; label: string };
|
|
|
3259
3325
|
export type BbSelectKnownItems = Array<BbSelectKnownItem | null | undefined>;
|
|
3260
3326
|
|
|
3261
3327
|
/**
|
|
3262
|
-
* The row an option or chip slot gets, told apart by `known
|
|
3328
|
+
* The row an option or chip slot gets, told apart by `known`. On a
|
|
3263
3329
|
* select that binds `known-items`, a known row stands in as `item` until the
|
|
3264
3330
|
* list brings the real one: `{ value, label }`, whatever the options' shape.
|
|
3265
3331
|
* Without `known-items` the row is always the option. `BbSelectSlotRow<Row>`
|
|
@@ -3306,6 +3372,7 @@ export type BbSelectResolvedOption<Item = any> = {
|
|
|
3306
3372
|
/** The resolved display text for this option. */
|
|
3307
3373
|
text: string;
|
|
3308
3374
|
/** The resolved value for this option. */
|
|
3375
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- an option's value is read through `item-value` (a key, a dot path or a function), which the select does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
3309
3376
|
value: any;
|
|
3310
3377
|
/** Whether this option is currently selected. */
|
|
3311
3378
|
selected: boolean;
|
|
@@ -3314,11 +3381,11 @@ export type BbSelectResolvedOption<Item = any> = {
|
|
|
3314
3381
|
};
|
|
3315
3382
|
|
|
3316
3383
|
/**
|
|
3317
|
-
* Passthrough parts of `BbSelectPopover
|
|
3318
|
-
*
|
|
3384
|
+
* Passthrough parts of `BbSelectPopover`.
|
|
3385
|
+
* The listbox's groups and the chips
|
|
3319
3386
|
* are not parts.
|
|
3320
3387
|
*
|
|
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_.
|
|
3388
|
+
* 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
3389
|
*
|
|
3323
3390
|
* @part root - The floating element — an invisible positioning wrapper; a
|
|
3324
3391
|
* `class` on the component lands here. No node on the phone sheet: style
|
|
@@ -3342,6 +3409,10 @@ export type BbSelectResolvedOption<Item = any> = {
|
|
|
3342
3409
|
* @part itemDescription - An option's second line (its description) —
|
|
3343
3410
|
* resolved with that option's states. A custom `#option` slot replaces it.
|
|
3344
3411
|
* Also takes a per-item function.
|
|
3412
|
+
* @part check - The tick on the chosen option, at the row's end — mounted on
|
|
3413
|
+
* every option and drawn on the chosen ones; a custom `#option` slot keeps
|
|
3414
|
+
* it. `pt:check="hidden"` removes it and leaves a glyph your slot draws
|
|
3415
|
+
* alone. Also takes a per-item function.
|
|
3345
3416
|
* @part header - The flyout's header band.
|
|
3346
3417
|
* @part footer - The flyout's footer band.
|
|
3347
3418
|
*/
|
|
@@ -3356,6 +3427,7 @@ export type BbSelectPopoverPtPart =
|
|
|
3356
3427
|
| 'itemText'
|
|
3357
3428
|
| 'itemIcon'
|
|
3358
3429
|
| 'itemDescription'
|
|
3430
|
+
| 'check'
|
|
3359
3431
|
| 'header'
|
|
3360
3432
|
| 'footer';
|
|
3361
3433
|
/** The surface parts — they take a `PtValue` only. Spelled flat (T20). */
|
|
@@ -3373,14 +3445,15 @@ export type BbSelectPopoverOptionPtPart =
|
|
|
3373
3445
|
| 'option'
|
|
3374
3446
|
| 'itemText'
|
|
3375
3447
|
| 'itemIcon'
|
|
3376
|
-
| 'itemDescription'
|
|
3448
|
+
| 'itemDescription'
|
|
3449
|
+
| 'check';
|
|
3377
3450
|
/**
|
|
3378
3451
|
* Passthrough states of `BbSelectPopover`, true while the matching `--` modifier is on.
|
|
3379
3452
|
*
|
|
3380
|
-
* @state selected - Per node, on `option
|
|
3381
|
-
* option.
|
|
3382
|
-
* @state disabled - Per node, on `option
|
|
3383
|
-
* that is disabled.
|
|
3453
|
+
* @state selected - Per node, on `option`, its `item-*` parts and `check`: a
|
|
3454
|
+
* chosen option.
|
|
3455
|
+
* @state disabled - Per node, on `option`, its `item-*` parts and `check`: an
|
|
3456
|
+
* option that is disabled.
|
|
3384
3457
|
* @state open - Component-wide: the options surface is showing.
|
|
3385
3458
|
*/
|
|
3386
3459
|
export type BbSelectPopoverPtState = 'open' | 'selected' | 'disabled';
|
|
@@ -3405,6 +3478,7 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3405
3478
|
'itemText',
|
|
3406
3479
|
'itemIcon',
|
|
3407
3480
|
'itemDescription',
|
|
3481
|
+
'check',
|
|
3408
3482
|
'header',
|
|
3409
3483
|
'footer',
|
|
3410
3484
|
],
|
|
@@ -3417,6 +3491,7 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3417
3491
|
itemText: ['selected', 'disabled'],
|
|
3418
3492
|
itemIcon: ['selected', 'disabled'],
|
|
3419
3493
|
itemDescription: ['selected', 'disabled'],
|
|
3494
|
+
check: ['selected', 'disabled'],
|
|
3420
3495
|
},
|
|
3421
3496
|
} as const satisfies {
|
|
3422
3497
|
parts: readonly BbSelectPopoverPtPart[];
|
|
@@ -3427,6 +3502,17 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3427
3502
|
>;
|
|
3428
3503
|
};
|
|
3429
3504
|
|
|
3505
|
+
/**
|
|
3506
|
+
* BbSelectPopover's `pt:*` attributes: the documented keys, and the patterns
|
|
3507
|
+
* Vue's SFC resolver skips (compound keys, an app's own variant states; the
|
|
3508
|
+
* vue-ignore marker). This alias keeps the marker on a member right after its
|
|
3509
|
+
* `=`: the declaration emit drops it at the start of a line or ahead of a whole type.
|
|
3510
|
+
*/
|
|
3511
|
+
type BbSelectPopoverPtProps = /* @vue-ignore */ PtCompoundProps<
|
|
3512
|
+
typeof BB_SELECT_POPOVER_PT
|
|
3513
|
+
> &
|
|
3514
|
+
BbSelectPopoverPtKeys;
|
|
3515
|
+
|
|
3430
3516
|
// Spelled INLINE with this component's own unions (Vue's SFC type resolver
|
|
3431
3517
|
// does not substitute a generic alias's type parameters — PASSTHROUGH.md T20).
|
|
3432
3518
|
// Two mapped types, never `Partial<Record<…>>`: the lint autofix rewrites one
|
|
@@ -3434,337 +3520,333 @@ export const BB_SELECT_POPOVER_PT = {
|
|
|
3434
3520
|
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
|
|
3435
3521
|
export type BbSelectPopoverProps<
|
|
3436
3522
|
Item,
|
|
3437
|
-
// The type alone is the bound case, as on `BbSelectProps
|
|
3523
|
+
// The type alone is the bound case, as on `BbSelectProps`.
|
|
3438
3524
|
Known extends BbSelectKnownItems | undefined = BbSelectKnownItems,
|
|
3439
|
-
> = {
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
* @defaultValue `'200'`
|
|
3765
|
-
*/
|
|
3766
|
-
width?: number | string;
|
|
3767
|
-
};
|
|
3525
|
+
> = BbSelectPopoverPtProps & {
|
|
3526
|
+
// The option parts also take a per-item function, typed on the popover's
|
|
3527
|
+
// item — a literal function type, not `PtItemFn` (T23).
|
|
3528
|
+
[K in `pt:${BbSelectPopoverOptionPtPart}`]?:
|
|
3529
|
+
| PtValue
|
|
3530
|
+
| ((
|
|
3531
|
+
ctx: PtItemCtx<
|
|
3532
|
+
PtNoInfer<Item>,
|
|
3533
|
+
BbSelectPopoverPtState,
|
|
3534
|
+
never,
|
|
3535
|
+
BbSelectSlotRow<PtNoInfer<Item>, PtNoInfer<Known>>
|
|
3536
|
+
>
|
|
3537
|
+
) => PtItemResult);
|
|
3538
|
+
} & {
|
|
3539
|
+
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
|
|
3540
|
+
/**
|
|
3541
|
+
* Passthrough, object form: the same keys as the `pt:*` attributes
|
|
3542
|
+
* without the prefix. See the `pt:<part>` row.
|
|
3543
|
+
*/
|
|
3544
|
+
pt?: PtScopedItemMap<
|
|
3545
|
+
BbSelectPopoverPtKey,
|
|
3546
|
+
BbSelectPopoverOptionPtPart,
|
|
3547
|
+
BbSelectPopoverPtState,
|
|
3548
|
+
PtNoInfer<Item>,
|
|
3549
|
+
never,
|
|
3550
|
+
BbSelectSlotRow<PtNoInfer<Item>, PtNoInfer<Known>>
|
|
3551
|
+
>;
|
|
3552
|
+
/**
|
|
3553
|
+
* External activator element or component ref.
|
|
3554
|
+
* When provided, the activator slot is not rendered and event listeners
|
|
3555
|
+
* are attached programmatically to the referenced element.
|
|
3556
|
+
*/
|
|
3557
|
+
activator?: ElementOrComponentRef;
|
|
3558
|
+
/**
|
|
3559
|
+
* On mobile, the panel opens as a bottom sheet instead of a floating
|
|
3560
|
+
* popover, with the same search and list. Unset, the global
|
|
3561
|
+
* `all.adaptive` applies.
|
|
3562
|
+
*
|
|
3563
|
+
* @defaultValue `all.adaptive` (`true`)
|
|
3564
|
+
*/
|
|
3565
|
+
adaptive?: boolean;
|
|
3566
|
+
/**
|
|
3567
|
+
* Props for the phone sheet (the `BbOffCanvas` that `adaptive` renders on
|
|
3568
|
+
* mobile), spread over its defaults. A `pt` inside it styles only the sheet
|
|
3569
|
+
* (passthrough guide § Inside the sheet).
|
|
3570
|
+
*/
|
|
3571
|
+
offCanvasProps?: Partial<BbOffCanvasProps>;
|
|
3572
|
+
/**
|
|
3573
|
+
* Override the element used for popover positioning and width measurement.
|
|
3574
|
+
* Useful when the focusable activator is narrower than its visual container
|
|
3575
|
+
* (e.g. a button inside a wrapper). Falls back to `activatorEl` when omitted.
|
|
3576
|
+
*
|
|
3577
|
+
* @defaultValue `null`
|
|
3578
|
+
*/
|
|
3579
|
+
anchor?: ElementOrComponentRef;
|
|
3580
|
+
/**
|
|
3581
|
+
* Hides the panel's search field: `true` everywhere, `'mobile'` /
|
|
3582
|
+
* `'desktop'` on that platform only. `'auto'` hides it, per open, for an
|
|
3583
|
+
* array `items` shorter than the plugin's `autoDisableWritingThreshold`
|
|
3584
|
+
* (6); never for a provider or with an `option:add` listener.
|
|
3585
|
+
*
|
|
3586
|
+
* @defaultValue `'auto'`
|
|
3587
|
+
*/
|
|
3588
|
+
disableWriting?: boolean | 'mobile' | 'desktop' | 'auto';
|
|
3589
|
+
/**
|
|
3590
|
+
* Space-separated IDREF(s) that describe this field for assistive technologies.
|
|
3591
|
+
* Accepts either a string or array of ids.
|
|
3592
|
+
*/
|
|
3593
|
+
ariaDescribedby?: string | string[];
|
|
3594
|
+
/**
|
|
3595
|
+
* Explicit invalid state for accessibility semantics.
|
|
3596
|
+
* Falls back to `hasErrors` when not provided.
|
|
3597
|
+
*/
|
|
3598
|
+
ariaInvalid?: boolean;
|
|
3599
|
+
/**
|
|
3600
|
+
* Browser autocomplete hint for the popover search input.
|
|
3601
|
+
*
|
|
3602
|
+
* @defaultValue `'off'`
|
|
3603
|
+
*/
|
|
3604
|
+
// Not Vue's InputHTMLAttributes['autocomplete']: since Vue 3.5.27 that is a
|
|
3605
|
+
// ~10k-member union, and our props overflow TS on it (TS2590).
|
|
3606
|
+
autocomplete?: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* An element the popover stays inside alongside its trigger (sideways for
|
|
3609
|
+
* one above or below). Away from the trigger it may pass the edge, and it
|
|
3610
|
+
* flips at the viewport only.
|
|
3611
|
+
*/
|
|
3612
|
+
boundary?: ElementOrComponentRefOrSelector;
|
|
3613
|
+
/**
|
|
3614
|
+
* Apply the compact density variant.
|
|
3615
|
+
*/
|
|
3616
|
+
compact?: boolean;
|
|
3617
|
+
/**
|
|
3618
|
+
* Additional dependencies that trigger item reloading when changed.
|
|
3619
|
+
*
|
|
3620
|
+
* @defaultValue `[]`
|
|
3621
|
+
*/
|
|
3622
|
+
dependencies?: unknown[];
|
|
3623
|
+
/**
|
|
3624
|
+
* Debounce delay (ms) for dependency-triggered reloads.
|
|
3625
|
+
*
|
|
3626
|
+
* @defaultValue `0`
|
|
3627
|
+
*/
|
|
3628
|
+
depsDebounceTime?: number;
|
|
3629
|
+
/**
|
|
3630
|
+
* Shows a clear button in the search field, in the lens' place while there
|
|
3631
|
+
* is a query or a selection; it resets both. None without a search field.
|
|
3632
|
+
* Leave it off when the activator already clears (as BbSelect's does).
|
|
3633
|
+
*/
|
|
3634
|
+
clearable?: boolean;
|
|
3635
|
+
/**
|
|
3636
|
+
* Disables the component.
|
|
3637
|
+
*/
|
|
3638
|
+
disabled?: boolean;
|
|
3639
|
+
/**
|
|
3640
|
+
* Drops the picks the items no longer contain (single: `null`). Checked
|
|
3641
|
+
* after every applied, successful load whose `reason` is not `'search'`
|
|
3642
|
+
* (an empty one included), against the FETCHED rows only (a `stash` does
|
|
3643
|
+
* not count); a search or failed load never prunes.
|
|
3644
|
+
*/
|
|
3645
|
+
enforceCoherence?: boolean;
|
|
3646
|
+
/**
|
|
3647
|
+
* What typing filters on: empty = the display text and description; item
|
|
3648
|
+
* paths = those fields (`['name', 'email']`); `false` = no filtering.
|
|
3649
|
+
* Use `false` when the provider matched the query on the server, or its
|
|
3650
|
+
* email matches show as "No results".
|
|
3651
|
+
*
|
|
3652
|
+
* @defaultValue `[]`
|
|
3653
|
+
*/
|
|
3654
|
+
filterBy?: string[] | false;
|
|
3655
|
+
/**
|
|
3656
|
+
* Disables the automatic flip to the opposite side when the popover
|
|
3657
|
+
* would overflow (flipping is on by default).
|
|
3658
|
+
*
|
|
3659
|
+
* @defaultValue `false`
|
|
3660
|
+
*/
|
|
3661
|
+
disableFlip?: boolean;
|
|
3662
|
+
/** Path to item property for grouping options. */
|
|
3663
|
+
groupBy?: string | ((item: Item) => string | number | symbol);
|
|
3664
|
+
/**
|
|
3665
|
+
* Marks the component as being in error state.
|
|
3666
|
+
*/
|
|
3667
|
+
hasErrors?: boolean;
|
|
3668
|
+
/**
|
|
3669
|
+
* Marks the component as being in a warning state. Visually mirrors
|
|
3670
|
+
* `hasErrors` but uses `--bb-warn` chrome; errors take priority when both
|
|
3671
|
+
* are set.
|
|
3672
|
+
*/
|
|
3673
|
+
hasWarnings?: boolean;
|
|
3674
|
+
/**
|
|
3675
|
+
* Height of group headers in the listbox (px). Defaults to 32px (24px
|
|
3676
|
+
* compact; 36px / 32px on mobile viewports). Only applies when `groupBy`
|
|
3677
|
+
* is set. An explicit value wins on every viewport.
|
|
3678
|
+
*/
|
|
3679
|
+
headerHeight?: number;
|
|
3680
|
+
/**
|
|
3681
|
+
* Seeds the ids the popover sets: its listbox is `<id>_listbox` (the
|
|
3682
|
+
* activator's `aria-controls`) and each option's id derives from it.
|
|
3683
|
+
* Generated when omitted.
|
|
3684
|
+
*/
|
|
3685
|
+
id?: HTMLAttributes['id'];
|
|
3686
|
+
/**
|
|
3687
|
+
* Height of the options in the listbox (px). Defaults to 28px (24px
|
|
3688
|
+
* compact; 44px / 36px on mobile viewports). An explicit value wins on
|
|
3689
|
+
* every viewport.
|
|
3690
|
+
*
|
|
3691
|
+
* @defaultValue `28`
|
|
3692
|
+
*/
|
|
3693
|
+
itemHeight?: number;
|
|
3694
|
+
/**
|
|
3695
|
+
* The options: an array, or a sync or async provider given a
|
|
3696
|
+
* `BbSelectPopoverItemsContext` (`query`, `reason`, `modelValue`,
|
|
3697
|
+
* `signal`). Branch on `reason !== 'search'` to resolve the
|
|
3698
|
+
* selection by id. A provider fails by THROWING, never by returning `[]`.
|
|
3699
|
+
*
|
|
3700
|
+
* @defaultValue `[]`
|
|
3701
|
+
*/
|
|
3702
|
+
items:
|
|
3703
|
+
| Item[]
|
|
3704
|
+
| ((context: BbSelectPopoverItemsContext) => Item[] | Promise<Item[]>);
|
|
3705
|
+
/**
|
|
3706
|
+
* Path to item property for display text or function to extract it.
|
|
3707
|
+
*
|
|
3708
|
+
* Unset: own `label`, else `text` (`{ label, value }` needs no accessor).
|
|
3709
|
+
*
|
|
3710
|
+
* @defaultValue own `label`, else `text`, else `JSON.stringify(item)`
|
|
3711
|
+
*/
|
|
3712
|
+
itemText?: ItemAccessor<Item, string>;
|
|
3713
|
+
/**
|
|
3714
|
+
* ADDITIONAL row fields, never the text or value: `description` (a muted
|
|
3715
|
+
* line under the label), `prepend:icon`, `append:icon`. An object of paths
|
|
3716
|
+
* or getters per field, or a function of the item. Nothing is read
|
|
3717
|
+
* implicitly; none shows in the trigger or the chips.
|
|
3718
|
+
*/
|
|
3719
|
+
itemProps?: BbSelectItemProps<Item>;
|
|
3720
|
+
/**
|
|
3721
|
+
* Path to item property for value or function to extract it.
|
|
3722
|
+
*
|
|
3723
|
+
* Unset: own `value`, even `null`.
|
|
3724
|
+
*
|
|
3725
|
+
* @defaultValue own `value`, else the whole item
|
|
3726
|
+
*/
|
|
3727
|
+
itemValue?: ItemAccessor<Item>;
|
|
3728
|
+
/**
|
|
3729
|
+
* `{ value, label }` rows naming the value the app already holds, whatever
|
|
3730
|
+
* the options' shape: the activator's `text` with no request until the
|
|
3731
|
+
* first open (`prefill: true` still loads). Not options: accessors never
|
|
3732
|
+
* run on them; slots get one as `item`, `known: true`, until the list
|
|
3733
|
+
* brings its own.
|
|
3734
|
+
*/
|
|
3735
|
+
knownItems?: [Known] extends [undefined] ? BbSelectKnownItems : Known;
|
|
3736
|
+
/**
|
|
3737
|
+
* Display the loading state styles.
|
|
3738
|
+
*/
|
|
3739
|
+
loading?: boolean;
|
|
3740
|
+
/**
|
|
3741
|
+
* Message shown while items are being loaded.
|
|
3742
|
+
*/
|
|
3743
|
+
loadingText?: string;
|
|
3744
|
+
/**
|
|
3745
|
+
* Maximum number of selectable items (limits selection when `multiple` is true).
|
|
3746
|
+
*
|
|
3747
|
+
* @defaultValue `Infinity`
|
|
3748
|
+
*/
|
|
3749
|
+
max?: number;
|
|
3750
|
+
/**
|
|
3751
|
+
* v-model value. Single value for single select, array for multiple select.
|
|
3752
|
+
*/
|
|
3753
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- an option's value is read through `item-value` (a key, a dot path or a function), which the select does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `any` lets a typed ref (`ref<number | null>`, `ref<number[]>`) bind both ways through `v-model`
|
|
3754
|
+
modelValue: any;
|
|
3755
|
+
/**
|
|
3756
|
+
* Debounce delay (ms) for modelValue change handling.
|
|
3757
|
+
*
|
|
3758
|
+
* @defaultValue `0`
|
|
3759
|
+
*/
|
|
3760
|
+
modelValueDebounceTime?: number;
|
|
3761
|
+
/**
|
|
3762
|
+
* Enable multiple item selection. When true, modelValue must be an array.
|
|
3763
|
+
*/
|
|
3764
|
+
multiple?: boolean;
|
|
3765
|
+
/**
|
|
3766
|
+
* Message displayed when no items are available.
|
|
3767
|
+
*/
|
|
3768
|
+
emptyText?: string;
|
|
3769
|
+
/**
|
|
3770
|
+
* Message displayed in the empty state while the latest load FAILED (the
|
|
3771
|
+
* provider threw): the twin of `emptyText` for that case.
|
|
3772
|
+
*
|
|
3773
|
+
* @defaultValue the localized `common.failedText` ("Couldn't load items")
|
|
3774
|
+
*/
|
|
3775
|
+
failedText?: string;
|
|
3776
|
+
/**
|
|
3777
|
+
* Distance (px) between the activator and the popover.
|
|
3778
|
+
*
|
|
3779
|
+
* @defaultValue `4`
|
|
3780
|
+
*/
|
|
3781
|
+
offset?: number;
|
|
3782
|
+
/**
|
|
3783
|
+
* Minimum page padding used by floating shift middleware.
|
|
3784
|
+
*
|
|
3785
|
+
* @defaultValue `10`
|
|
3786
|
+
*/
|
|
3787
|
+
padding?: number;
|
|
3788
|
+
/**
|
|
3789
|
+
* Floating placement of the popover.
|
|
3790
|
+
*
|
|
3791
|
+
* @defaultValue `'bottom'`
|
|
3792
|
+
*/
|
|
3793
|
+
placement?: Placement;
|
|
3794
|
+
/**
|
|
3795
|
+
* When the options first load: `'interaction'` on first open, `true` on
|
|
3796
|
+
* mount (and in SSR), `false` once the user types (on open with
|
|
3797
|
+
* `disable-writing` or a non-empty model). An array `items` always
|
|
3798
|
+
* resolves on mount; else a seeded model's text waits for the first open.
|
|
3799
|
+
*
|
|
3800
|
+
* @defaultValue `'interaction'`
|
|
3801
|
+
*/
|
|
3802
|
+
prefill?: boolean | 'interaction';
|
|
3803
|
+
/**
|
|
3804
|
+
* Debounce delay (ms) before triggering search queries after user input stops.
|
|
3805
|
+
*
|
|
3806
|
+
* @defaultValue `500`
|
|
3807
|
+
*/
|
|
3808
|
+
queryDebounceTime?: number;
|
|
3809
|
+
/**
|
|
3810
|
+
* Prevents opening the popover while keeping the activator accessible.
|
|
3811
|
+
*/
|
|
3812
|
+
readonly?: boolean;
|
|
3813
|
+
/**
|
|
3814
|
+
* Accessible label used by the search input rendered inside the popover.
|
|
3815
|
+
* Falls back to the localized `select.searchLabel` key when omitted.
|
|
3816
|
+
*
|
|
3817
|
+
* @defaultValue `t('select.searchLabel')` (`'Search options'`)
|
|
3818
|
+
*/
|
|
3819
|
+
searchInputAriaLabel?: string;
|
|
3820
|
+
/**
|
|
3821
|
+
* Defines whether options are selectable.
|
|
3822
|
+
* Can be a global boolean that affects all options or a function
|
|
3823
|
+
* that accepts an item and returns a boolean that only affects that item.
|
|
3824
|
+
* Non-selectable options are rendered disabled.
|
|
3825
|
+
*
|
|
3826
|
+
* @defaultValue `true`
|
|
3827
|
+
*/
|
|
3828
|
+
selectable?: boolean | ((item: Item) => boolean);
|
|
3829
|
+
/**
|
|
3830
|
+
* Keeps picked options named across searches: a pick stays resolvable when
|
|
3831
|
+
* a later search or a failed load no longer returns it. It follows the
|
|
3832
|
+
* model, and does not keep a pick valid: `enforce-coherence` still prunes
|
|
3833
|
+
* it.
|
|
3834
|
+
*/
|
|
3835
|
+
stash?: boolean;
|
|
3836
|
+
/**
|
|
3837
|
+
* Transition duration (ms) for popover show/hide animations.
|
|
3838
|
+
*
|
|
3839
|
+
* @defaultValue `250`
|
|
3840
|
+
*/
|
|
3841
|
+
transitionDuration?: number;
|
|
3842
|
+
/**
|
|
3843
|
+
* Width of the popover: a bare number or `'200'` is pixels, else a CSS
|
|
3844
|
+
* width, a percentage or `'auto'`. The default is the string `'200'`.
|
|
3845
|
+
*
|
|
3846
|
+
* @defaultValue `'200'`
|
|
3847
|
+
*/
|
|
3848
|
+
width?: number | string;
|
|
3849
|
+
};
|
|
3768
3850
|
|
|
3769
3851
|
export type BbSelectPopoverEvents = {
|
|
3770
3852
|
/** Emitted as soon as the options surface starts to open (the popover, or the sheet on a phone). */
|
|
@@ -3804,6 +3886,7 @@ export type BbSelectPopoverEvents = {
|
|
|
3804
3886
|
/**
|
|
3805
3887
|
* Emitted with the next selection value whenever selection changes.
|
|
3806
3888
|
*/
|
|
3889
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- an option's value is read through `item-value` (a key, a dot path or a function), which the select does not resolve at the type level: typing it per path is the nested-key cost the types avoid; `unknown` would reject a handler annotated `(id: number)`
|
|
3807
3890
|
(e: 'update:modelValue', value: any): void;
|
|
3808
3891
|
/**
|
|
3809
3892
|
* Emitted when the user types a new value and confirms it (Enter key) while
|
|
@@ -3863,6 +3946,7 @@ export type BbSelectPopoverOptionSlotProps<
|
|
|
3863
3946
|
/** The resolved display text for this option. */
|
|
3864
3947
|
text: string;
|
|
3865
3948
|
/** The resolved value for this option. */
|
|
3949
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- an option's value is read through `item-value` (a key, a dot path or a function), which the select does not resolve at the type level: typing it per path is the nested-key cost the types avoid
|
|
3866
3950
|
value: any;
|
|
3867
3951
|
/** The resolved `itemProps.description` for this option, when it has one. */
|
|
3868
3952
|
description: string | undefined;
|
|
@@ -3965,7 +4049,7 @@ export type BbSelectPopoverSlots<
|
|
|
3965
4049
|
## Styles
|
|
3966
4050
|
|
|
3967
4051
|
```css
|
|
3968
|
-
/* Sealed fill
|
|
4052
|
+
/* Sealed fill: the plate paints `--bg`, defaulted to the panel at
|
|
3969
4053
|
specificity 0 — a `pt` class or a theme island retints this one surface
|
|
3970
4054
|
without moving `--bb-panel` for every panel on the page. */
|
|
3971
4055
|
:where(.bb-listbox__outer-container) {
|
|
@@ -4176,7 +4260,7 @@ export type BbSelectPopoverSlots<
|
|
|
4176
4260
|
}
|
|
4177
4261
|
}
|
|
4178
4262
|
|
|
4179
|
-
/* The failed-load footer
|
|
4263
|
+
/* The failed-load footer: the
|
|
4180
4264
|
destructive alert's voice — danger text and glyph on the plain panel,
|
|
4181
4265
|
no tint — under whatever the list still shows, outside the scroll
|
|
4182
4266
|
area. Its own divider only when rows sit above it. It fades with the
|
|
@@ -4265,7 +4349,7 @@ export type BbSelectPopoverSlots<
|
|
|
4265
4349
|
|
|
4266
4350
|
.bb-listbox__loading,
|
|
4267
4351
|
.bb-listbox__empty {
|
|
4268
|
-
/* Read, not disabled: muted meets AA, faint does not
|
|
4352
|
+
/* Read, not disabled: muted meets AA, faint does not. */
|
|
4269
4353
|
color: var(--bb-text-muted);
|
|
4270
4354
|
display: none;
|
|
4271
4355
|
font-size: calc(var(--bb-fs) - 1px);
|
|
@@ -4294,7 +4378,7 @@ export type BbSelectPopoverSlots<
|
|
|
4294
4378
|
|
|
4295
4379
|
.bb-listbox__group-header-label {
|
|
4296
4380
|
/* Muted, like BbDropdown's group titles (parity): faint fails
|
|
4297
|
-
AA on live text
|
|
4381
|
+
AA on live text. */
|
|
4298
4382
|
color: var(--bb-text-muted);
|
|
4299
4383
|
flex: auto;
|
|
4300
4384
|
/* One step under the option label, on both ladders. */
|