bitboss-ui 2.1.135 → 3.0.0-alpha.4
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/LICENSE +21 -0
- package/README.md +274 -24
- package/bin/bitboss-ui-mcp.mjs +662 -0
- package/bin/bitboss-ui.mjs +710 -0
- package/bin/bitboss-ui.node.test.mjs +113 -0
- package/dist/ai/BbAccordion.md +528 -113
- package/dist/ai/BbAlert.md +380 -197
- package/dist/ai/BbAsterisk.md +46 -0
- package/dist/ai/BbAvatar.md +458 -178
- package/dist/ai/BbBadge.md +697 -225
- package/dist/ai/BbBadgeButton.md +54 -0
- package/dist/ai/BbBaseButton.md +491 -0
- package/dist/ai/BbBaseCheckbox.md +49 -0
- package/dist/ai/BbBaseCheckboxGroup.md +64 -0
- package/dist/ai/BbBaseCheckboxIcon.md +176 -0
- package/dist/ai/BbBaseColorInput.md +64 -0
- package/dist/ai/BbBaseColorPalette.md +39 -0
- package/dist/ai/BbBaseDatePicker.md +42 -0
- package/dist/ai/BbBaseDatePickerInput.md +73 -0
- package/dist/ai/BbBaseInputContainer.md +48 -0
- package/dist/ai/BbBaseNumberInput.md +71 -0
- package/dist/ai/BbBaseRadio.md +46 -0
- package/dist/ai/BbBaseRadioGroup.md +64 -0
- package/dist/ai/BbBaseRadioIcon.md +191 -0
- package/dist/ai/BbBaseRating.md +51 -0
- package/dist/ai/BbBaseSelect.md +88 -0
- package/dist/ai/BbBaseSlider.md +56 -0
- package/dist/ai/BbBaseSwitch.md +49 -0
- package/dist/ai/BbBaseSwitchGroup.md +64 -0
- package/dist/ai/BbBaseSwitchIcon.md +186 -0
- package/dist/ai/BbBaseTag.md +68 -0
- package/dist/ai/BbBaseTextInput.md +75 -0
- package/dist/ai/BbBaseTextarea.md +62 -0
- package/dist/ai/BbBaseTimePickerInput.md +62 -0
- package/dist/ai/BbBreadcrumbs.md +553 -503
- package/dist/ai/BbButton.md +841 -636
- package/dist/ai/BbCheckbox.md +585 -254
- package/dist/ai/BbCheckboxGroup.md +573 -361
- package/dist/ai/BbCollapsible.md +425 -103
- package/dist/ai/BbColorInput.md +536 -323
- package/dist/ai/BbColorPalette.md +569 -330
- package/dist/ai/BbConfirm.md +659 -136
- package/dist/ai/BbConfirmPortal.md +28 -0
- package/dist/ai/BbDatePicker.md +244 -0
- package/dist/ai/BbDatePickerInput.md +720 -388
- package/dist/ai/BbDialog.md +778 -99
- package/dist/ai/BbDropdown.md +1072 -763
- package/dist/ai/BbDropdownButton.md +525 -614
- package/dist/ai/BbDropdownGroup.md +34 -0
- package/dist/ai/BbDropzone.md +1206 -436
- package/dist/ai/BbForm.md +239 -0
- package/dist/ai/BbIcon.md +382 -212
- package/dist/ai/BbIndicator.md +283 -0
- package/dist/ai/BbNumberInput.md +717 -355
- package/dist/ai/BbOffCanvas.md +897 -498
- package/dist/ai/BbPagination.md +489 -535
- package/dist/ai/BbPopover.md +591 -546
- package/dist/ai/BbProgress.md +462 -69
- package/dist/ai/BbRadio.md +352 -229
- package/dist/ai/BbRadioGroup.md +437 -353
- package/dist/ai/BbRating.md +372 -225
- package/dist/ai/BbSelect.md +1399 -536
- package/dist/ai/BbSelectPopover.md +1255 -1578
- package/dist/ai/BbSlider.md +500 -256
- package/dist/ai/BbSmoothHeight.md +485 -139
- package/dist/ai/BbSpinner.md +718 -131
- package/dist/ai/BbSwitch.md +573 -119
- package/dist/ai/BbSwitchGroup.md +521 -214
- package/dist/ai/BbTable.md +1996 -2365
- package/dist/ai/BbTabs.md +1147 -0
- package/dist/ai/BbTabsList.md +29 -0
- package/dist/ai/BbTabsPanes.md +27 -0
- package/dist/ai/BbTabsRoot.md +57 -0
- package/dist/ai/BbTag.md +416 -292
- package/dist/ai/BbTextInput.md +878 -333
- package/dist/ai/BbTextarea.md +850 -255
- package/dist/ai/BbTimePicker.md +231 -0
- package/dist/ai/BbTimePickerInput.md +200 -0
- package/dist/ai/BbToast.md +669 -196
- package/dist/ai/BbToastPortal.md +28 -0
- package/dist/ai/BbTooltip.md +453 -346
- package/dist/ai/BbTree.md +993 -234
- package/dist/ai/ChipsBox.md +27 -199
- package/dist/ai/ClearableButton.md +21 -55
- package/dist/ai/CommaBox.md +25 -200
- package/dist/ai/CommonInputWrapper.md +42 -0
- package/dist/ai/CommonPopover.md +30 -510
- package/dist/ai/ErrorIcon.md +19 -56
- package/dist/ai/FlatListBox.md +35 -379
- package/dist/ai/GroupedListBox.md +37 -535
- package/dist/ai/GuidesComponent.md +21 -0
- package/dist/ai/ListBox.md +38 -231
- package/dist/ai/OptionsContainer.md +34 -253
- package/dist/ai/WarningIcon.md +21 -0
- package/dist/ai/components.json +15897 -0
- package/dist/ai/composables/useBbConfig.md +80 -0
- package/dist/ai/composables/useBbFormContext.md +110 -0
- package/dist/ai/composables/useBbTableContext.md +167 -0
- package/dist/ai/composables/useBbTabsContext.md +118 -0
- package/dist/ai/composables/useBroadcastChannelInstance.md +97 -0
- package/dist/ai/composables/useConfirm.md +313 -0
- package/dist/ai/composables/useCountdown.md +86 -0
- package/dist/ai/composables/useId.md +60 -0
- package/dist/ai/composables/useMobile.md +85 -0
- package/dist/ai/composables/useToast.md +238 -0
- package/dist/ai/guides/agent-contract.md +165 -0
- package/dist/ai/guides/ai-router.md +113 -0
- package/dist/ai/guides/app-layout.md +318 -0
- package/dist/ai/guides/coherence-playbook.md +136 -0
- package/dist/ai/guides/component-picker.md +236 -0
- package/dist/ai/guides/design-language.md +478 -0
- package/dist/ai/guides/design-tokens.md +450 -0
- package/dist/ai/guides/fetch-items-playbook.md +161 -0
- package/dist/ai/guides/floating-bottom-panel.md +130 -0
- package/dist/ai/guides/icons-policy.md +257 -0
- package/dist/ai/guides/inertia-helpers.md +1443 -0
- package/dist/ai/guides/inline-edit-playbook.md +267 -0
- package/dist/ai/guides/installation-and-plugin-setup.md +440 -0
- package/dist/ai/guides/migration/components/bb-alert.md +37 -0
- package/dist/ai/guides/migration/components/bb-avatar.md +24 -0
- package/dist/ai/guides/migration/components/bb-badge.md +110 -0
- package/dist/ai/guides/migration/components/bb-breadcrumbs.md +26 -0
- package/dist/ai/guides/migration/components/bb-button.md +55 -0
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +54 -0
- package/dist/ai/guides/migration/components/bb-checkbox.md +45 -0
- package/dist/ai/guides/migration/components/bb-chip.md +35 -0
- package/dist/ai/guides/migration/components/bb-collapsible.md +26 -0
- package/dist/ai/guides/migration/components/bb-color-input.md +23 -0
- package/dist/ai/guides/migration/components/bb-color-palette.md +31 -0
- package/dist/ai/guides/migration/components/bb-date-picker-input.md +84 -0
- package/dist/ai/guides/migration/components/bb-dialog.md +46 -0
- package/dist/ai/guides/migration/components/bb-dropdown-button.md +31 -0
- package/dist/ai/guides/migration/components/bb-dropdown.md +36 -0
- package/dist/ai/guides/migration/components/bb-dropzone.md +27 -0
- package/dist/ai/guides/migration/components/bb-icon.md +27 -0
- package/dist/ai/guides/migration/components/bb-offcanvas.md +63 -0
- package/dist/ai/guides/migration/components/bb-pagination.md +24 -0
- package/dist/ai/guides/migration/components/bb-popover.md +52 -0
- package/dist/ai/guides/migration/components/bb-rating.md +24 -0
- package/dist/ai/guides/migration/components/bb-select-popover.md +59 -0
- package/dist/ai/guides/migration/components/bb-select.md +69 -0
- package/dist/ai/guides/migration/components/bb-slider.md +25 -0
- package/dist/ai/guides/migration/components/bb-smooth-height.md +45 -0
- package/dist/ai/guides/migration/components/bb-spinner.md +23 -0
- package/dist/ai/guides/migration/components/bb-table.md +66 -0
- package/dist/ai/guides/migration/components/bb-tabs.md +47 -0
- package/dist/ai/guides/migration/components/bb-tag.md +29 -0
- package/dist/ai/guides/migration/components/bb-text-input.md +37 -0
- package/dist/ai/guides/migration/components/bb-toast.md +47 -0
- package/dist/ai/guides/migration/components/bb-tooltip.md +34 -0
- package/dist/ai/guides/migration/components/bb-tree.md +77 -0
- package/dist/ai/guides/migration/components/use-confirm.md +46 -0
- package/dist/ai/guides/migration/v2-to-v3.md +649 -0
- package/dist/ai/guides/options-items-playbook.md +222 -0
- package/dist/ai/guides/page-shell.md +113 -0
- package/dist/ai/guides/validated-forms.md +177 -0
- package/dist/ai/index.md +158 -32
- package/dist/ai/recipes/inertia/approvals-inbox.md +1635 -0
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1765 -0
- package/dist/ai/recipes/inertia/layout-scaffold.md +385 -0
- package/dist/ai/recipes/inertia/onboarding.md +1791 -0
- package/dist/ai/recipes/inertia/ownership-atlas.md +1327 -0
- package/dist/ai/recipes/inertia/record-form.md +1489 -0
- package/dist/ai/recipes/inertia/records-workspace.md +1416 -0
- package/dist/ai/recipes/inertia/upload-center.md +2003 -0
- package/dist/ai/recipes/inertia/wizard-form.md +1500 -0
- package/dist/ai/recipes/nuxt/approvals-inbox.md +1578 -0
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +1703 -0
- package/dist/ai/recipes/nuxt/layout-scaffold.md +385 -0
- package/dist/ai/recipes/nuxt/onboarding.md +1724 -0
- package/dist/ai/recipes/nuxt/record-form.md +1502 -0
- package/dist/ai/recipes/nuxt/records-workspace.md +1329 -0
- package/dist/ai/recipes/nuxt/upload-center.md +1886 -0
- package/dist/ai/recipes/nuxt/wizard-form.md +1509 -0
- package/dist/ai/recipes/vue/approvals-inbox.md +1496 -0
- package/dist/ai/recipes/vue/inline-edit-workspace.md +1594 -0
- package/dist/ai/recipes/vue/layout-scaffold.md +385 -0
- package/dist/ai/recipes/vue/onboarding.md +1679 -0
- package/dist/ai/recipes/vue/record-form.md +1586 -0
- package/dist/ai/recipes/vue/records-workspace.md +1245 -0
- package/dist/ai/recipes/vue/upload-center.md +1845 -0
- package/dist/ai/recipes/vue/wizard-form.md +1441 -0
- package/dist/ai/source/BbAccordion.md +123 -0
- package/dist/ai/source/BbAlert.md +401 -0
- package/dist/ai/source/BbAsterisk.md +32 -0
- package/dist/ai/source/BbAvatar.md +258 -0
- package/dist/ai/source/BbBadge.md +560 -0
- package/dist/ai/source/BbBadgeButton.md +490 -0
- package/dist/ai/source/BbBaseButton.md +682 -0
- package/dist/ai/source/BbBaseCheckbox.md +461 -0
- package/dist/ai/source/BbBaseCheckboxGroup.md +554 -0
- package/dist/ai/source/BbBaseCheckboxIcon.md +201 -0
- package/dist/ai/source/BbBaseColorInput.md +416 -0
- package/dist/ai/source/BbBaseColorPalette.md +934 -0
- package/dist/ai/source/BbBaseDatePicker.md +1001 -0
- package/dist/ai/source/BbBaseDatePickerInput.md +1785 -0
- package/dist/ai/source/BbBaseInputContainer.md +1210 -0
- package/dist/ai/source/BbBaseNumberInput.md +617 -0
- package/dist/ai/source/BbBaseRadio.md +377 -0
- package/dist/ai/source/BbBaseRadioGroup.md +533 -0
- package/dist/ai/source/BbBaseRadioIcon.md +153 -0
- package/dist/ai/source/BbBaseRating.md +573 -0
- package/dist/ai/source/BbBaseSelect.md +898 -0
- package/dist/ai/source/BbBaseSlider.md +1085 -0
- package/dist/ai/source/BbBaseSwitch.md +246 -0
- package/dist/ai/source/BbBaseSwitchGroup.md +302 -0
- package/dist/ai/source/BbBaseSwitchIcon.md +206 -0
- package/dist/ai/source/BbBaseTag.md +694 -0
- package/dist/ai/source/BbBaseTextInput.md +511 -0
- package/dist/ai/source/BbBaseTextarea.md +480 -0
- package/dist/ai/source/BbBaseTimePickerInput.md +1031 -0
- package/dist/ai/source/BbBreadcrumbs.md +815 -0
- package/dist/ai/source/BbButton.md +1006 -0
- package/dist/ai/source/BbCheckbox.md +326 -0
- package/dist/ai/source/BbCheckboxGroup.md +419 -0
- package/dist/ai/source/BbCollapsible.md +137 -0
- package/dist/ai/source/BbColorInput.md +322 -0
- package/dist/ai/source/BbColorPalette.md +371 -0
- package/dist/ai/source/BbConfirm.md +193 -0
- package/dist/ai/source/BbConfirmPortal.md +74 -0
- package/dist/ai/source/BbDatePicker.md +729 -0
- package/dist/ai/source/BbDatePickerInput.md +525 -0
- package/dist/ai/source/BbDialog.md +818 -0
- package/dist/ai/source/BbDropdown.md +2387 -0
- package/dist/ai/source/BbDropdownButton.md +315 -0
- package/dist/ai/source/BbDropdownGroup.md +1259 -0
- package/dist/ai/source/BbDropzone.md +864 -0
- package/dist/ai/source/BbForm.md +100 -0
- package/dist/ai/source/BbIcon.md +214 -0
- package/dist/ai/source/BbIndicator.md +298 -0
- package/dist/ai/source/BbNumberInput.md +374 -0
- package/dist/ai/source/BbOffCanvas.md +1266 -0
- package/dist/ai/source/BbPagination.md +835 -0
- package/dist/ai/source/BbPopover.md +860 -0
- package/dist/ai/source/BbProgress.md +140 -0
- package/dist/ai/source/BbRadio.md +303 -0
- package/dist/ai/source/BbRadioGroup.md +420 -0
- package/dist/ai/source/BbRating.md +369 -0
- package/dist/ai/source/BbSelect.md +688 -0
- package/dist/ai/source/BbSelectPopover.md +2234 -0
- package/dist/ai/source/BbSlider.md +378 -0
- package/dist/ai/source/BbSmoothHeight.md +265 -0
- package/dist/ai/source/BbSpinner.md +127 -0
- package/dist/ai/source/BbSwitch.md +175 -0
- package/dist/ai/source/BbSwitchGroup.md +240 -0
- package/dist/ai/source/BbTable.md +3433 -0
- package/dist/ai/source/BbTabs.md +403 -0
- package/dist/ai/source/BbTabsList.md +578 -0
- package/dist/ai/source/BbTabsPanes.md +368 -0
- package/dist/ai/source/BbTabsRoot.md +372 -0
- package/dist/ai/source/BbTag.md +390 -0
- package/dist/ai/source/BbTextInput.md +352 -0
- package/dist/ai/source/BbTextarea.md +337 -0
- package/dist/ai/source/BbTimePicker.md +595 -0
- package/dist/ai/source/BbTimePickerInput.md +376 -0
- package/dist/ai/source/BbToast.md +525 -0
- package/dist/ai/source/BbToastPortal.md +482 -0
- package/dist/ai/source/BbTooltip.md +522 -0
- package/dist/ai/source/BbTree.md +323 -0
- package/dist/ai/source/ChipsBox.md +201 -0
- package/dist/ai/source/ClearableButton.md +70 -0
- package/dist/ai/source/CommaBox.md +202 -0
- package/dist/ai/source/CommonInputWrapper.md +554 -0
- package/dist/ai/source/CommonPopover.md +616 -0
- package/dist/ai/source/ErrorIcon.md +43 -0
- package/dist/ai/source/FlatListBox.md +396 -0
- package/dist/ai/source/GroupedListBox.md +540 -0
- package/dist/ai/source/GuidesComponent.md +383 -0
- package/dist/ai/source/ListBox.md +238 -0
- package/dist/ai/source/OptionsContainer.md +191 -0
- package/dist/ai/source/WarningIcon.md +47 -0
- package/dist/alert-variants.d.ts +19 -0
- package/dist/assets/css/reset.css_inline.js +4 -0
- package/dist/assets/svgs/alert.svg_raw.js +4 -0
- package/dist/assets/svgs/calendar.svg_raw.js +4 -0
- package/dist/assets/svgs/check_stroke.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_down.svg_raw.js +4 -0
- package/dist/assets/svgs/chevron_right.svg_raw.js +4 -0
- package/dist/assets/svgs/clear.svg_raw.js +4 -0
- package/dist/assets/svgs/clock.svg_raw.js +4 -0
- package/dist/assets/svgs/error.svg_raw.js +4 -0
- package/dist/assets/svgs/search.svg_raw.js +4 -0
- package/dist/assets/svgs/sort.svg_raw.js +4 -0
- package/dist/assets/svgs/spinner.svg_raw.js +4 -0
- package/dist/assets/svgs/user.svg_raw.js +4 -0
- package/dist/badge-variants.d.ts +19 -0
- package/dist/button-variants.d.ts +21 -0
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +9 -3
- package/dist/components/BbAccordion/BbAccordion.vue.js +6 -0
- package/dist/components/BbAccordion/BbAccordion.vue_vue_type_script_setup_true_lang.js +66 -0
- package/dist/components/BbAccordion/types.d.ts +12 -8
- package/dist/components/BbAlert/BbAlert.vue.d.ts +12 -3
- package/dist/components/BbAlert/BbAlert.vue.js +6 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbAlert/types.d.ts +56 -12
- package/dist/components/BbAsterisk/BbAsterisk.vue.d.ts +3 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue.js +6 -0
- package/dist/components/BbAsterisk/BbAsterisk.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +5 -0
- package/dist/components/BbAvatar/BbAvatar.vue.js +6 -0
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/BbAvatar/types.d.ts +6 -5
- package/dist/components/BbBadge/BadgeAppendIcon.vue.d.ts +3 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue.js +5 -0
- package/dist/components/BbBadge/BadgeAppendIcon.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.d.ts +15 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue.js +5 -0
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +34 -0
- package/dist/components/BbBadge/BbBadge.vue.d.ts +8 -1
- package/dist/components/BbBadge/BbBadge.vue.js +6 -0
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +83 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.d.ts +12 -0
- package/dist/components/BbBadge/BbBadgeButton.vue.js +5 -0
- package/dist/components/BbBadge/BbBadgeButton.vue_vue_type_script_setup_true_lang.js +54 -0
- package/dist/components/BbBadge/badgeButtonContext.d.ts +27 -0
- package/dist/components/BbBadge/badgeButtonContext.js +5 -0
- package/dist/components/BbBadge/types.d.ts +61 -16
- package/dist/components/BbBaseButton/BbBaseButton.vue.d.ts +13 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue.js +6 -0
- package/dist/components/BbBaseButton/BbBaseButton.vue_vue_type_script_setup_true_lang.js +171 -0
- package/dist/components/BbBaseButton/RouterComponent.vue.js +5 -0
- package/dist/components/BbBaseButton/RouterComponent.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/components/BbBaseButton/types.d.ts +191 -0
- package/dist/components/BbBaseButton/types.js +33 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.d.ts +40 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue.js +6 -0
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +145 -0
- package/dist/components/BbBaseCheckbox/types.d.ts +224 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue.js +6 -0
- package/dist/components/BbBaseCheckboxGroup/BbBaseCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseCheckboxGroup/types.d.ts +257 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue.js +6 -0
- package/dist/components/BbBaseCheckboxIcon/BbBaseCheckboxIcon.vue_vue_type_script_setup_true_lang.js +43 -0
- package/dist/components/BbBaseCheckboxIcon/types.d.ts +47 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.d.ts +42 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue.js +6 -0
- package/dist/components/BbBaseColorInput/BbBaseColorInput.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbBaseColorInput/types.d.ts +210 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.d.ts +13 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue.js +6 -0
- package/dist/components/BbBaseColorPalette/BbBaseColorPalette.vue_vue_type_script_setup_true_lang.js +395 -0
- package/dist/components/BbBaseColorPalette/types.d.ts +40 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue.js +6 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +300 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.d.ts +44 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +310 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerMonthSelector.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.d.ts +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue.js +5 -0
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerYearSelector.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/components/BbBaseDatePicker/typeahead.d.ts +112 -0
- package/dist/components/BbBaseDatePicker/typeahead.js +37 -0
- package/dist/components/BbBaseDatePicker/types.d.ts +97 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.d.ts +58 -0
- package/dist/components/BbBaseDatePicker/useDatePickerContext.js +11 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +716 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.d.ts +30 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue.js +6 -0
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerTimeSelector.vue_vue_type_script_setup_true_lang.js +204 -0
- package/dist/components/BbBaseDatePickerInput/types.d.ts +311 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +17 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.js +6 -0
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue_vue_type_script_setup_true_lang.js +191 -0
- package/dist/components/BbBaseInputContainer/types.d.ts +197 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.d.ts +52 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue.js +6 -0
- package/dist/components/BbBaseNumberInput/BbBaseNumberInput.vue_vue_type_script_setup_true_lang.js +215 -0
- package/dist/components/BbBaseNumberInput/types.d.ts +211 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.d.ts +33 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue.js +6 -0
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +114 -0
- package/dist/components/BbBaseRadio/types.d.ts +179 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue.js +6 -0
- package/dist/components/BbBaseRadioGroup/BbBaseRadioGroup.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbBaseRadioGroup/types.d.ts +223 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue.js +6 -0
- package/dist/components/BbBaseRadioIcon/BbBaseRadioIcon.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/BbBaseRadioIcon/types.d.ts +41 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.d.ts +38 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue.js +6 -0
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +184 -0
- package/dist/components/BbBaseRating/types.d.ts +168 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.d.ts +19 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue.js +6 -0
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/BbBaseSelect/types.d.ts +297 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.d.ts +35 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue.js +6 -0
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +324 -0
- package/dist/components/BbBaseSlider/types.d.ts +200 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.d.ts +35 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue.js +6 -0
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbBaseSwitch/types.d.ts +10 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.d.ts +19 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue.js +6 -0
- package/dist/components/BbBaseSwitchGroup/BbBaseSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbBaseSwitchGroup/types.d.ts +8 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.d.ts +4 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue.js +6 -0
- package/dist/components/BbBaseSwitchIcon/BbBaseSwitchIcon.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbBaseSwitchIcon/types.d.ts +48 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.d.ts +50 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue.js +6 -0
- package/dist/components/BbBaseTag/BbBaseTag.vue_vue_type_script_setup_true_lang.js +266 -0
- package/dist/components/BbBaseTag/types.d.ts +160 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.d.ts +45 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue.js +6 -0
- package/dist/components/BbBaseTextInput/BbBaseTextInput.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/BbBaseTextInput/types.d.ts +209 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.d.ts +39 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue.js +6 -0
- package/dist/components/BbBaseTextarea/BbBaseTextarea.vue_vue_type_script_setup_true_lang.js +175 -0
- package/dist/components/BbBaseTextarea/types.d.ts +170 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.d.ts +27 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue.js +6 -0
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +522 -0
- package/dist/components/BbBaseTimePickerInput/types.d.ts +151 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +0 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.js +6 -0
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +224 -0
- package/dist/components/BbBreadcrumbs/estimateBreadcrumbItemWidth.js +47 -0
- package/dist/components/BbBreadcrumbs/types.d.ts +37 -22
- package/dist/components/BbButton/BbButton.vue.d.ts +6 -5
- package/dist/components/BbButton/BbButton.vue.js +6 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +181 -0
- package/dist/components/BbButton/types.d.ts +48 -47
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -3
- package/dist/components/BbCheckbox/BbCheckbox.vue.js +6 -0
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +146 -0
- package/dist/components/BbCheckbox/types.d.ts +31 -10
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +2 -13
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.js +6 -0
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbCheckboxGroup/types.d.ts +51 -23
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +2 -1
- package/dist/components/BbCollapsible/BbCollapsible.vue.js +6 -0
- package/dist/components/BbCollapsible/BbCollapsible.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/components/BbCollapsible/types.d.ts +13 -8
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +10 -1
- package/dist/components/BbColorInput/BbColorInput.vue.js +6 -0
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +177 -0
- package/dist/components/BbColorInput/types.d.ts +44 -11
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +5 -8
- package/dist/components/BbColorPalette/BbColorPalette.vue.js +5 -0
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +126 -0
- package/dist/components/BbColorPalette/types.d.ts +71 -52
- package/dist/components/BbConfirm/BbConfirm.vue.js +6 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +138 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue.d.ts +5 -6
- package/dist/components/BbConfirm/BbConfirmPortal.vue.js +5 -0
- package/dist/components/BbConfirm/BbConfirmPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +37 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue.js +6 -0
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +319 -0
- package/dist/components/BbDatePicker/types.d.ts +159 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +3 -1
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.js +6 -0
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +179 -0
- package/dist/components/BbDatePickerInput/types.d.ts +134 -16
- package/dist/components/BbDialog/BbDialog.vue.d.ts +14 -6
- package/dist/components/BbDialog/BbDialog.vue.js +6 -0
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +214 -0
- package/dist/components/BbDialog/types.d.ts +146 -1
- package/dist/components/BbDialog/useDialogStack.d.ts +5 -0
- package/dist/components/BbDialog/useDialogStack.js +20 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.d.ts +24 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +116 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +14 -7
- package/dist/components/BbDropdown/BbDropdown.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +561 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.d.ts +44 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue.js +5 -0
- package/dist/components/BbDropdown/BbDropdownGroup.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.d.ts +31 -0
- package/dist/components/BbDropdown/BbDropdownList.vue.js +6 -0
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +470 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.d.ts +16 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue.js +5 -0
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/components/BbDropdown/normalizeGroups.d.ts +18 -0
- package/dist/components/BbDropdown/normalizeGroups.js +46 -0
- package/dist/components/BbDropdown/types.d.ts +468 -46
- package/dist/components/BbDropdown/types.js +4 -0
- package/dist/components/BbDropdown/useDropdownContext.d.ts +89 -0
- package/dist/components/BbDropdown/useDropdownContext.js +9 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.d.ts +108 -0
- package/dist/components/BbDropdown/useDropdownGroupRegistry.js +5 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +3 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.js +6 -0
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/BbDropdownButton/types.d.ts +47 -52
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -4
- package/dist/components/BbDropzone/BbDropzone.vue.js +6 -0
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/components/BbDropzone/types.d.ts +77 -8
- package/dist/components/BbIcon/BbIcon.vue.d.ts +3 -2
- package/dist/components/BbIcon/BbIcon.vue.js +6 -0
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BbIcon/types.d.ts +6 -19
- package/dist/components/BbIndicator/BbIndicator.vue.d.ts +14 -0
- package/dist/components/BbIndicator/BbIndicator.vue.js +6 -0
- package/dist/components/BbIndicator/BbIndicator.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/components/BbIndicator/types.d.ts +49 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -6
- package/dist/components/BbNumberInput/BbNumberInput.vue.js +6 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +194 -0
- package/dist/components/BbNumberInput/types.d.ts +40 -4
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +16 -10
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.js +6 -0
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +284 -0
- package/dist/components/BbOffCanvas/types.d.ts +71 -39
- package/dist/components/BbOffCanvas/useOffCanvasStack.d.ts +25 -0
- package/dist/components/BbOffCanvas/useOffCanvasStack.js +68 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +9 -4
- package/dist/components/BbPagination/BbPagination.vue.js +6 -0
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbPagination/paginationFit.d.ts +38 -0
- package/dist/components/BbPagination/paginationFit.js +13 -0
- package/dist/components/BbPagination/types.d.ts +51 -16
- package/dist/components/BbPopover/BbPopover.vue.d.ts +16 -15
- package/dist/components/BbPopover/BbPopover.vue.js +6 -0
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +309 -0
- package/dist/components/BbPopover/escapeStack.d.ts +6 -0
- package/dist/components/BbPopover/escapeStack.js +10 -0
- package/dist/components/BbPopover/types.d.ts +90 -31
- package/dist/components/BbProgress/BbProgress.vue.d.ts +1 -0
- package/dist/components/BbProgress/BbProgress.vue.js +6 -0
- package/dist/components/BbProgress/BbProgress.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/components/BbProgress/types.d.ts +15 -1
- package/dist/components/BbRadio/BbRadio.vue.d.ts +5 -3
- package/dist/components/BbRadio/BbRadio.vue.js +6 -0
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +133 -0
- package/dist/components/BbRadio/types.d.ts +32 -9
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -14
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.js +6 -0
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +186 -0
- package/dist/components/BbRadioGroup/types.d.ts +48 -22
- package/dist/components/BbRating/BbRating.vue.d.ts +4 -1
- package/dist/components/BbRating/BbRating.vue.js +6 -0
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +150 -0
- package/dist/components/BbRating/types.d.ts +44 -10
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -11
- package/dist/components/BbSelect/BbSelect.vue.js +6 -0
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +241 -0
- package/dist/components/BbSelect/types.d.ts +112 -59
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +1 -10
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.js +6 -0
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +639 -0
- package/dist/components/BbSelectPopover/types.d.ts +197 -105
- package/dist/components/BbSlider/BbSlider.vue.d.ts +3 -6
- package/dist/components/BbSlider/BbSlider.vue.js +6 -0
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +166 -0
- package/dist/components/BbSlider/types.d.ts +44 -13
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +3 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.js +6 -0
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/BbSmoothHeight/types.d.ts +17 -2
- package/dist/components/BbSpinner/BbSpinner.vue.d.ts +1 -1
- package/dist/components/BbSpinner/BbSpinner.vue.js +6 -0
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/components/BbSpinner/types.d.ts +10 -3
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +5 -3
- package/dist/components/BbSwitch/BbSwitch.vue.js +6 -0
- package/dist/components/BbSwitch/BbSwitch.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/components/BbSwitch/types.d.ts +3 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +4 -14
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.js +6 -0
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +190 -0
- package/dist/components/BbSwitchGroup/types.d.ts +3 -22
- package/dist/components/BbTable/BbTable.vue.d.ts +58 -31
- package/dist/components/BbTable/BbTable.vue.js +6 -0
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +900 -0
- package/dist/components/BbTable/types.d.ts +213 -37
- package/dist/components/BbTable/utils.d.ts +9 -1
- package/dist/components/BbTable/utils.js +53 -0
- package/dist/components/BbTabs/BbTabs.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabs.vue.js +6 -0
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/components/BbTabs/BbTabsList.vue.d.ts +19 -0
- package/dist/components/BbTabs/BbTabsList.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsList.vue_vue_type_script_setup_true_lang.js +123 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.d.ts +16 -0
- package/dist/components/BbTabs/BbTabsPanes.vue.js +6 -0
- package/dist/components/BbTabs/BbTabsPanes.vue_vue_type_script_setup_true_lang.js +35 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.d.ts +20 -0
- package/dist/components/BbTabs/BbTabsRoot.vue.js +5 -0
- package/dist/components/BbTabs/BbTabsRoot.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTabs/types.d.ts +264 -0
- package/dist/components/BbTag/BbTag.vue.d.ts +19 -6
- package/dist/components/BbTag/BbTag.vue.js +6 -0
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/BbTag/types.d.ts +55 -17
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +10 -1
- package/dist/components/BbTextInput/BbTextInput.vue.js +6 -0
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +195 -0
- package/dist/components/BbTextInput/types.d.ts +31 -4
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +10 -1
- package/dist/components/BbTextarea/BbTextarea.vue.js +6 -0
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +178 -0
- package/dist/components/BbTextarea/types.d.ts +33 -2
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +33 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue.js +6 -0
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BbTimePicker/types.d.ts +133 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +25 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.js +6 -0
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +157 -0
- package/dist/components/BbTimePickerInput/types.d.ts +174 -0
- package/dist/components/BbToast/BbToast.vue.d.ts +2 -3
- package/dist/components/BbToast/BbToast.vue.js +6 -0
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/components/BbToast/BbToastMessage.vue.d.ts +17 -8
- package/dist/components/BbToast/BbToastMessage.vue.js +5 -0
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/BbToast/BbToastPortal.vue.d.ts +30 -0
- package/dist/components/BbToast/BbToastPortal.vue.js +5 -0
- package/dist/components/BbToast/BbToastPortal.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/BbToast/BbToastRegion.vue.d.ts +8 -0
- package/dist/components/BbToast/BbToastRegion.vue.js +5 -0
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +100 -0
- package/dist/components/BbToast/types.d.ts +69 -5
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +10 -3
- package/dist/components/BbTooltip/BbTooltip.vue.js +6 -0
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/BbTooltip/types.d.ts +69 -11
- package/dist/components/BbTree/BbTree.vue.d.ts +28 -13
- package/dist/components/BbTree/BbTree.vue.js +6 -0
- package/dist/components/BbTree/BbTree.vue_vue_type_script_setup_true_lang.js +55 -0
- package/dist/components/BbTree/BbTreeLevel.vue.d.ts +19 -0
- package/dist/components/BbTree/BbTreeLevel.vue.js +5 -0
- package/dist/components/BbTree/BbTreeLevel.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/BbTree/context.d.ts +17 -0
- package/dist/components/BbTree/context.js +4 -0
- package/dist/components/BbTree/types.d.ts +94 -41
- package/dist/components/ChipsBox/ChipsBox.vue.d.ts +2 -1
- package/dist/components/ChipsBox/ChipsBox.vue.js +5 -0
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +98 -0
- package/dist/components/ChipsBox/types.d.ts +12 -5
- package/dist/components/ClearableButton/ClearableButton.vue.d.ts +2 -1
- package/dist/components/ClearableButton/ClearableButton.vue.js +6 -0
- package/dist/components/ClearableButton/ClearableButton.vue_vue_type_script_setup_true_lang.js +19 -0
- package/dist/components/ClearableButton/types.d.ts +7 -1
- package/dist/components/CloseIcon/CloseButton.vue.d.ts +5 -0
- package/dist/components/CloseIcon/CloseButton.vue.js +7 -0
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +23 -0
- package/dist/components/CloseIcon/types.d.ts +2 -0
- package/dist/components/CommaBox/CommaBox.vue.d.ts +2 -1
- package/dist/components/CommaBox/CommaBox.vue.js +6 -0
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/components/CommaBox/types.d.ts +6 -7
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.d.ts +19 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue.js +6 -0
- package/dist/components/CommonInputWrapper/CommonInputWrapper.vue_vue_type_script_setup_true_lang.js +107 -0
- package/dist/components/CommonInputWrapper/types.d.ts +96 -0
- package/dist/components/CommonPopover/CommonPopover.vue.d.ts +9 -3
- package/dist/components/CommonPopover/CommonPopover.vue.js +6 -0
- package/dist/components/CommonPopover/CommonPopover.vue_vue_type_script_setup_true_lang.js +160 -0
- package/dist/components/CommonPopover/types.d.ts +65 -16
- package/dist/components/ErrorIcon/ErrorIcon.vue.d.ts +2 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue.js +6 -0
- package/dist/components/ErrorIcon/ErrorIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/FlatListBox/FlatListBox.vue.d.ts +2 -5
- package/dist/components/FlatListBox/FlatListBox.vue.js +5 -0
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue.d.ts +2 -5
- package/dist/components/GroupedListBox/GroupedListBox.vue.js +5 -0
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +218 -0
- package/dist/components/ListBox/ListBox.vue.d.ts +3 -6
- package/dist/components/ListBox/ListBox.vue.js +5 -0
- package/dist/components/ListBox/ListBox.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue.d.ts +1 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue.js +5 -0
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/OptionsContainer/types.d.ts +14 -24
- package/dist/components/Transitions/ScaleFade.vue.d.ts +2 -2
- package/dist/components/Transitions/ScaleFade.vue.js +5 -0
- package/dist/components/Transitions/ScaleFade.vue_vue_type_script_setup_true_lang.js +47 -0
- package/dist/components/Transitions/Slide.vue.d.ts +15 -0
- package/dist/components/Transitions/Slide.vue.js +7 -0
- package/dist/components/Transitions/Slide.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/WarningIcon/WarningIcon.vue.d.ts +5 -0
- package/dist/components/WarningIcon/WarningIcon.vue.js +6 -0
- package/dist/components/WarningIcon/WarningIcon.vue_vue_type_script_setup_true_lang.js +16 -0
- package/dist/components/WarningIcon/types.d.ts +3 -0
- package/dist/composables/__testResets.d.ts +1 -0
- package/dist/composables/useActiveInactiveState.d.ts +4 -0
- package/dist/composables/useActiveInactiveState.js +21 -0
- package/dist/composables/useBaseOptions.d.ts +3 -3
- package/dist/composables/useBaseOptions.js +31 -0
- package/dist/composables/useBbConfig.d.ts +8 -37
- package/dist/composables/useBbConfig.js +5 -0
- package/dist/composables/useBbDropdownContext.d.ts +89 -0
- package/dist/composables/useBbDropdownContext.js +46 -0
- package/dist/composables/useBbFormContext.d.ts +90 -0
- package/dist/composables/useBbFormContext.js +69 -0
- package/dist/composables/useBbTableContext.d.ts +195 -0
- package/dist/composables/useBbTableContext.js +208 -0
- package/dist/composables/useBbTabsContext.d.ts +111 -0
- package/dist/composables/useBbTabsContext.js +225 -0
- package/dist/composables/useBreakpoint.d.ts +13 -0
- package/dist/composables/useBreakpoint.js +39 -0
- package/dist/composables/useBroadcastChannelInstance.d.ts +1 -3
- package/dist/composables/useBroadcastChannelInstance.js +39 -0
- package/dist/composables/useCancelableFunction.js +37 -0
- package/dist/composables/useClosingInert.d.ts +28 -0
- package/dist/composables/useClosingInert.js +23 -0
- package/dist/composables/useCoherence.js +16 -0
- package/dist/composables/useConfirm.d.ts +278 -68
- package/dist/composables/useConfirm.js +130 -0
- package/dist/composables/useCountdown.js +42 -0
- package/dist/composables/useHashedWatcher.d.ts +17 -0
- package/dist/composables/useHashedWatcher.js +14 -0
- package/dist/composables/useId.d.ts +3 -2
- package/dist/composables/useIndexById.js +16 -0
- package/dist/composables/useInertiaPage.d.ts +10 -0
- package/dist/composables/useInertiaPage.js +8 -0
- package/dist/composables/useItemText.js +17 -0
- package/dist/composables/useItemValue.js +9 -0
- package/dist/composables/useItemsGetter.d.ts +1 -1
- package/dist/composables/useItemsGetter.js +30 -0
- package/dist/composables/useListboxFocus.js +66 -0
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/composables/useLocale.js +11 -0
- package/dist/composables/useLogger.d.ts +1 -1
- package/dist/composables/useLogger.js +10 -0
- package/dist/composables/useMinimalQueue.d.ts +1 -1
- package/dist/composables/useMobile.js +7 -0
- package/dist/composables/useOnFalsy.d.ts +2 -0
- package/dist/composables/useOnFalsy.js +9 -0
- package/dist/composables/useOnTruthy.d.ts +7 -0
- package/dist/composables/useOnTruthy.js +9 -0
- package/dist/composables/usePrefill.d.ts +2 -1
- package/dist/composables/usePrefill.js +24 -0
- package/dist/composables/useQuery.d.ts +15 -3
- package/dist/composables/useQuery.js +42 -0
- package/dist/composables/useRoute.js +11 -0
- package/dist/composables/useRouter.js +8 -0
- package/dist/composables/useSafeArea.d.ts +51 -0
- package/dist/composables/useSafeArea.js +16 -0
- package/dist/composables/useSegmentedFields.d.ts +104 -0
- package/dist/composables/useSegmentedFields.js +159 -0
- package/dist/composables/useTableWidthContext.d.ts +5 -0
- package/dist/composables/useTableWidthContext.js +42 -0
- package/dist/composables/useToast.d.ts +40 -70
- package/dist/composables/useToast.js +58 -0
- package/dist/composables/useTopLayer.d.ts +9 -0
- package/dist/composables/useTopLayer.js +7 -0
- package/dist/composables/useUntil.js +13 -0
- package/dist/composables/useViewportWidth.d.ts +17 -0
- package/dist/composables/useViewportWidth.js +6 -0
- package/dist/confirm-variants.d.ts +17 -0
- package/dist/deprecation/ai-deprecations.json.d.ts +784 -0
- package/dist/deprecation/ai-deprecations.json.js +4 -0
- package/dist/deprecation/removedProps.d.ts +3 -0
- package/dist/deprecation/removedProps.js +13 -0
- package/dist/directives/bbColor.d.ts +65 -0
- package/dist/directives/bbColor.js +24 -0
- package/dist/directives/bbDate.d.ts +66 -0
- package/dist/directives/bbDate.js +24 -0
- package/dist/directives/bbDropdown.d.ts +15 -11
- package/dist/directives/bbDropdown.js +23 -0
- package/dist/directives/bbTime.d.ts +64 -0
- package/dist/directives/bbTime.js +24 -0
- package/dist/directives/bbTooltip.d.ts +16 -11
- package/dist/directives/bbTooltip.js +24 -0
- package/dist/directives/createPopoverDirective.js +54 -0
- package/dist/dropdown-item-variants.d.ts +17 -0
- package/dist/i18n/index.d.ts +51 -3
- package/dist/i18n/index.js +27 -0
- package/dist/i18n/locales/cs.json +115 -0
- package/dist/i18n/locales/da.json +115 -0
- package/dist/i18n/locales/de.json +115 -0
- package/dist/i18n/locales/el.json +115 -0
- package/dist/i18n/locales/en.json +115 -0
- package/dist/i18n/locales/es.json +115 -0
- package/dist/i18n/locales/fi.json +115 -0
- package/dist/i18n/locales/fr.json +115 -0
- package/dist/i18n/locales/hu.json +115 -0
- package/dist/i18n/locales/it.json +115 -0
- package/dist/i18n/locales/ja.json +115 -0
- package/dist/i18n/locales/ko.json +115 -0
- package/dist/i18n/locales/nb.json +115 -0
- package/dist/i18n/locales/nl.json +115 -0
- package/dist/i18n/locales/pl.json +115 -0
- package/dist/i18n/locales/pt.json +115 -0
- package/dist/i18n/locales/ro.json +115 -0
- package/dist/i18n/locales/ru.json +115 -0
- package/dist/i18n/locales/sv.json +115 -0
- package/dist/i18n/locales/tr.json +115 -0
- package/dist/i18n/locales/uk.json +115 -0
- package/dist/i18n/locales/zh-cn.json +115 -0
- package/dist/icons-whitelist.d.ts +8 -0
- package/dist/index.d.ts +96 -79
- package/dist/index.js +76 -82
- package/dist/indicator-variants.d.ts +20 -0
- package/dist/llms-full.txt +79703 -0
- package/dist/llms-medium.txt +1514 -0
- package/dist/llms.txt +105 -0
- package/dist/locale-blueprint.json +141 -0
- package/dist/locale-registry.d.ts +37 -0
- package/dist/nuxt-module.d.ts +3 -0
- package/dist/nuxt.js +19 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugin.js +22 -0
- package/dist/reset.css +1 -0
- package/dist/reset.d.ts +0 -0
- package/dist/runtime/nuxt-plugin.d.ts +2 -0
- package/dist/runtime/nuxt-plugin.js +24 -0
- package/dist/styles.css +2 -0
- package/dist/styles.d.ts +0 -0
- package/dist/toast-variants.d.ts +20 -0
- package/dist/tooltip-variants.d.ts +17 -0
- package/dist/types/ActionButton.d.ts +32 -0
- package/dist/types/AlertVariant.d.ts +16 -0
- package/dist/types/BadgeVariant.d.ts +16 -0
- package/dist/types/ButtonVariant.d.ts +17 -0
- package/dist/types/Classes.d.ts +1 -1
- package/dist/types/ColumnName.d.ts +1 -1
- package/dist/types/CommonProps.d.ts +68 -277
- package/dist/types/Config.d.ts +84 -0
- package/dist/types/ConfirmVariant.d.ts +15 -0
- package/dist/types/DropdownItemVariant.d.ts +18 -0
- package/dist/types/Icon.d.ts +5 -7
- package/dist/types/IndicatorVariant.d.ts +16 -0
- package/dist/types/InputDirection.d.ts +15 -0
- package/dist/types/ItemAccessor.d.ts +21 -0
- package/dist/types/Placement.d.ts +6 -0
- package/dist/types/ResponsiveSize.d.ts +20 -0
- package/dist/types/SizeScale.d.ts +8 -0
- package/dist/types/ToastVariant.d.ts +17 -0
- package/dist/types/TooltipVariant.d.ts +18 -0
- package/dist/utilities/functions/bytesToUnit.d.ts +2 -0
- package/dist/utilities/functions/bytesToUnit.js +18 -0
- package/dist/utilities/functions/clampPrecision.js +10 -0
- package/dist/utilities/functions/convertDateValue.d.ts +23 -10
- package/dist/utilities/functions/convertDateValue.js +12 -0
- package/dist/utilities/functions/deburr.js +5 -0
- package/dist/utilities/functions/empty.js +5 -0
- package/dist/utilities/functions/flattenTree.d.ts +1 -1
- package/dist/utilities/functions/hash.js +5 -0
- package/dist/utilities/functions/isDateDisabled.d.ts +1 -0
- package/dist/utilities/functions/isDateDisabled.js +20 -0
- package/dist/utilities/functions/isEqual.js +5 -0
- package/dist/utilities/functions/isNotEmpty.js +5 -0
- package/dist/utilities/functions/matchAnyKey.d.ts +1 -1
- package/dist/utilities/functions/matchAnyKey.js +15 -0
- package/dist/utilities/functions/parseSize.d.ts +1 -1
- package/dist/utilities/functions/parseSize.js +15 -0
- package/dist/utilities/functions/percentage.js +11 -0
- package/dist/utilities/functions/pipe.d.ts +1 -1
- package/dist/utilities/functions/reject.d.ts +25 -0
- package/dist/utilities/functions/reject.js +28 -0
- package/dist/utilities/functions/resolveEnumProp.d.ts +19 -0
- package/dist/utilities/functions/resolveEnumProp.js +5 -0
- package/dist/utilities/functions/slotKey.d.ts +13 -0
- package/dist/utilities/functions/slotKey.js +4 -0
- package/dist/utilities/functions/sort.d.ts +2 -2
- package/dist/utilities/functions/sort.js +19 -0
- package/dist/utilities/functions/throttle.js +5 -0
- package/dist/utilities/functions/waitFor.d.ts +9 -2
- package/dist/utilities/functions/waitFor.js +14 -0
- package/dist/utilities/functions/warnRemovedAttrs.d.ts +11 -0
- package/dist/utilities/functions/warnRemovedAttrs.js +20 -0
- package/dist/utilities/functions/when.js +5 -0
- package/dist/utilities/misc/iconsInjectionKey.d.ts +15 -0
- package/dist/utilities/misc/iconsInjectionKey.js +4 -0
- package/dist/utilities/misc/transitions.d.ts +5 -0
- package/dist/utilities/misc/transitions.js +8 -0
- package/dist/utils/injectLibraryStyles.d.ts +6 -0
- package/dist/utils/injectLibraryStyles.js +38 -0
- package/dist/validated/BbCheckbox.vue.d.ts +29 -0
- package/dist/validated/BbCheckbox.vue.js +5 -0
- package/dist/validated/BbCheckbox.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbCheckboxGroup.vue.d.ts +34 -0
- package/dist/validated/BbCheckboxGroup.vue.js +5 -0
- package/dist/validated/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbColorInput.vue.d.ts +36 -0
- package/dist/validated/BbColorInput.vue.js +5 -0
- package/dist/validated/BbColorInput.vue_vue_type_script_setup_true_lang.js +71 -0
- package/dist/validated/BbDatePickerInput.vue.d.ts +41 -0
- package/dist/validated/BbDatePickerInput.vue.js +5 -0
- package/dist/validated/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +90 -0
- package/dist/validated/BbDropzone.vue.d.ts +24 -0
- package/dist/validated/BbDropzone.vue.js +5 -0
- package/dist/validated/BbDropzone.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/validated/BbForm.vue.d.ts +28 -0
- package/dist/validated/BbForm.vue.js +5 -0
- package/dist/validated/BbForm.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/validated/BbNumberInput.vue.d.ts +36 -0
- package/dist/validated/BbNumberInput.vue.js +5 -0
- package/dist/validated/BbNumberInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbRadioGroup.vue.d.ts +34 -0
- package/dist/validated/BbRadioGroup.vue.js +5 -0
- package/dist/validated/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/validated/BbRating.vue.d.ts +30 -0
- package/dist/validated/BbRating.vue.js +5 -0
- package/dist/validated/BbRating.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/validated/BbSelect.vue.d.ts +46 -0
- package/dist/validated/BbSelect.vue.js +5 -0
- package/dist/validated/BbSelect.vue_vue_type_script_setup_true_lang.js +109 -0
- package/dist/validated/BbSlider.vue.d.ts +36 -0
- package/dist/validated/BbSlider.vue.js +5 -0
- package/dist/validated/BbSlider.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/validated/BbSwitch.vue.d.ts +29 -0
- package/dist/validated/BbSwitch.vue.js +5 -0
- package/dist/validated/BbSwitch.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/validated/BbSwitchGroup.vue.d.ts +34 -0
- package/dist/validated/BbSwitchGroup.vue.js +5 -0
- package/dist/validated/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +82 -0
- package/dist/validated/BbTag.vue.d.ts +36 -0
- package/dist/validated/BbTag.vue.js +5 -0
- package/dist/validated/BbTag.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextInput.vue.d.ts +36 -0
- package/dist/validated/BbTextInput.vue.js +5 -0
- package/dist/validated/BbTextInput.vue_vue_type_script_setup_true_lang.js +72 -0
- package/dist/validated/BbTextarea.vue.d.ts +36 -0
- package/dist/validated/BbTextarea.vue.js +5 -0
- package/dist/validated/BbTextarea.vue_vue_type_script_setup_true_lang.js +70 -0
- package/dist/validated/BbTimePickerInput.vue.d.ts +37 -0
- package/dist/validated/BbTimePickerInput.vue.js +5 -0
- package/dist/validated/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/validated/index.d.ts +29 -0
- package/dist/validated/useValidatedField.d.ts +93 -0
- package/dist/validated/useValidatedField.js +51 -0
- package/dist/validated.js +21 -0
- package/dist/vite-plugin.d.ts +261 -0
- package/dist/vite.js +603 -0
- package/llms.txt +107 -0
- package/package.json +181 -60
- package/scripts/lib/__fixtures__/validated-manifest.json +65 -0
- package/scripts/lib/ensure-manifest.mjs +39 -0
- package/scripts/lib/eslint-plugin-autofix.node.test.mjs +109 -0
- package/scripts/lib/eslint-plugin-recommended.node.test.mjs +87 -0
- package/scripts/lib/eslint-plugin-slots.node.test.mjs +271 -0
- package/scripts/lib/eslint-plugin.mjs +702 -0
- package/scripts/lib/eslint-plugin.node.test.mjs +193 -0
- package/scripts/lib/html-attributes.mjs +191 -0
- package/scripts/lib/mcp-config.mjs +126 -0
- package/scripts/lib/migrate-fix.mjs +115 -0
- package/scripts/lib/validate-bb-markup.mjs +488 -0
- package/dist/ai/BaseButton.md +0 -449
- package/dist/ai/BaseCheckbox.md +0 -512
- package/dist/ai/BaseCheckboxGroup.md +0 -597
- package/dist/ai/BaseColorInput.md +0 -461
- package/dist/ai/BaseDatePicker.md +0 -739
- package/dist/ai/BaseDatePickerInput.md +0 -1517
- package/dist/ai/BaseDialog.md +0 -610
- package/dist/ai/BaseInputContainer.md +0 -570
- package/dist/ai/BaseNumberInput.md +0 -509
- package/dist/ai/BaseRadio.md +0 -405
- package/dist/ai/BaseRadioGroup.md +0 -535
- package/dist/ai/BaseRating.md +0 -489
- package/dist/ai/BaseSelect.md +0 -1742
- package/dist/ai/BaseSlider.md +0 -871
- package/dist/ai/BaseSwitch.md +0 -322
- package/dist/ai/BaseSwitchGroup.md +0 -298
- package/dist/ai/BaseTag.md +0 -623
- package/dist/ai/BaseTextInput.md +0 -392
- package/dist/ai/BaseTextarea.md +0 -398
- package/dist/ai/BbChip.md +0 -147
- package/dist/ai/BbIntersection.md +0 -120
- package/dist/ai/BbRatio.md +0 -61
- package/dist/ai/BbRows.md +0 -307
- package/dist/ai/BbTab.md +0 -950
- package/dist/ai/CommonInputInnerContainer.md +0 -414
- package/dist/ai/CommonInputOuterContainer.md +0 -55
- package/dist/components/BaseButton/BaseButton.vue.d.ts +0 -14
- package/dist/components/BaseButton/types.d.ts +0 -159
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +0 -39
- package/dist/components/BaseCheckbox/types.d.ts +0 -213
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -30
- package/dist/components/BaseCheckboxGroup/types.d.ts +0 -282
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +0 -35
- package/dist/components/BaseColorInput/ColorPalette.vue.d.ts +0 -13
- package/dist/components/BaseColorInput/types.d.ts +0 -233
- package/dist/components/BaseDatePicker/BaseDatePickerHeader.vue.d.ts +0 -15
- package/dist/components/BaseDatePicker/BaseDatePickerInputDaySelector.vue.d.ts +0 -58
- package/dist/components/BaseDatePicker/BaseDatePickerMonthSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/BaseDatePickerYearSelector.vue.d.ts +0 -12
- package/dist/components/BaseDatePicker/types.d.ts +0 -100
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +0 -26
- package/dist/components/BaseDatePickerInput/types.d.ts +0 -206
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -37
- package/dist/components/BaseDialog/types.d.ts +0 -180
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +0 -18
- package/dist/components/BaseInputContainer/types.d.ts +0 -126
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +0 -46
- package/dist/components/BaseNumberInput/types.d.ts +0 -191
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +0 -31
- package/dist/components/BaseRadio/types.d.ts +0 -173
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -30
- package/dist/components/BaseRadioGroup/types.d.ts +0 -240
- package/dist/components/BaseRating/BaseRating.vue.d.ts +0 -35
- package/dist/components/BaseRating/types.d.ts +0 -144
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +0 -28
- package/dist/components/BaseSelect/types.d.ts +0 -470
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +0 -38
- package/dist/components/BaseSlider/types.d.ts +0 -201
- package/dist/components/BaseSwitch/BaseSwitch.vue.d.ts +0 -34
- package/dist/components/BaseSwitch/types.d.ts +0 -25
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +0 -30
- package/dist/components/BaseSwitchGroup/types.d.ts +0 -8
- package/dist/components/BaseTag/BaseTag.vue.d.ts +0 -37
- package/dist/components/BaseTag/types.d.ts +0 -136
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +0 -33
- package/dist/components/BaseTextInput/types.d.ts +0 -166
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +0 -31
- package/dist/components/BaseTextarea/types.d.ts +0 -151
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -17
- package/dist/components/BbChip/types.d.ts +0 -23
- package/dist/components/BbIntersection/BbIntersection.vue.d.ts +0 -23
- package/dist/components/BbIntersection/types.d.ts +0 -36
- package/dist/components/BbRatio/BbRatio.vue.d.ts +0 -14
- package/dist/components/BbRatio/types.d.ts +0 -15
- package/dist/components/BbRows/BbRows.vue.d.ts +0 -62
- package/dist/components/BbRows/types.d.ts +0 -21
- package/dist/components/BbTab/BbTab.vue.d.ts +0 -27
- package/dist/components/BbTab/types.d.ts +0 -186
- package/dist/components/CommonInputInnerContainer/CommonInputInnerContainer.vue.d.ts +0 -15
- package/dist/components/CommonInputInnerContainer/types.d.ts +0 -47
- package/dist/components/CommonInputOuterContainer/CommonInputOuterContainer.vue.d.ts +0 -11
- package/dist/components/CommonInputOuterContainer/types.d.ts +0 -16
- package/dist/composables/useModalsState.d.ts +0 -5
- package/dist/composables/useQueue.d.ts +0 -58
- package/dist/composables/useWizard.d.ts +0 -85
- package/dist/i18n/en.d.ts +0 -67
- package/dist/i18n/it.d.ts +0 -67
- package/dist/index.css +0 -2
- package/dist/index100.js +0 -6
- package/dist/index101.js +0 -300
- package/dist/index102.js +0 -16
- package/dist/index103.js +0 -16
- package/dist/index104.js +0 -27
- package/dist/index109.js +0 -19
- package/dist/index11.js +0 -42
- package/dist/index110.js +0 -12
- package/dist/index111.js +0 -19
- package/dist/index112.js +0 -25
- package/dist/index114.js +0 -7
- package/dist/index115.js +0 -241
- package/dist/index116.js +0 -5
- package/dist/index117.js +0 -42
- package/dist/index118.js +0 -5
- package/dist/index119.js +0 -53
- package/dist/index120.js +0 -5
- package/dist/index121.js +0 -32
- package/dist/index122.js +0 -5
- package/dist/index124.js +0 -52
- package/dist/index125.js +0 -5
- package/dist/index126.js +0 -223
- package/dist/index128.js +0 -6
- package/dist/index129.js +0 -162
- package/dist/index13.js +0 -92
- package/dist/index130.js +0 -25
- package/dist/index131.js +0 -51
- package/dist/index132.js +0 -5
- package/dist/index133.js +0 -607
- package/dist/index135.js +0 -6
- package/dist/index136.js +0 -14
- package/dist/index137.js +0 -153
- package/dist/index139.js +0 -6
- package/dist/index14.js +0 -306
- package/dist/index140.js +0 -224
- package/dist/index141.js +0 -5
- package/dist/index143.js +0 -128
- package/dist/index145.js +0 -6
- package/dist/index146.js +0 -8
- package/dist/index147.js +0 -182
- package/dist/index149.js +0 -6
- package/dist/index15.js +0 -10
- package/dist/index151.js +0 -4
- package/dist/index152.js +0 -95
- package/dist/index154.js +0 -6
- package/dist/index155.js +0 -168
- package/dist/index157.js +0 -6
- package/dist/index158.js +0 -145
- package/dist/index16.js +0 -59
- package/dist/index160.js +0 -6
- package/dist/index161.js +0 -53
- package/dist/index163.js +0 -6
- package/dist/index164.js +0 -16
- package/dist/index166.js +0 -35
- package/dist/index168.js +0 -6
- package/dist/index169.js +0 -89
- package/dist/index171.js +0 -6
- package/dist/index172.js +0 -82
- package/dist/index174.js +0 -6
- package/dist/index175.js +0 -38
- package/dist/index176.js +0 -461
- package/dist/index177.js +0 -28
- package/dist/index178.js +0 -66
- package/dist/index18.js +0 -35
- package/dist/index180.js +0 -162
- package/dist/index181.js +0 -5
- package/dist/index182.js +0 -217
- package/dist/index183.js +0 -5
- package/dist/index184.js +0 -112
- package/dist/index185.js +0 -5
- package/dist/index186.js +0 -459
- package/dist/index188.js +0 -6
- package/dist/index19.js +0 -4
- package/dist/index192.js +0 -268
- package/dist/index194.js +0 -6
- package/dist/index195.js +0 -124
- package/dist/index197.js +0 -6
- package/dist/index198.js +0 -174
- package/dist/index2.js +0 -20
- package/dist/index20.js +0 -9
- package/dist/index200.js +0 -6
- package/dist/index201.js +0 -224
- package/dist/index203.js +0 -6
- package/dist/index204.js +0 -135
- package/dist/index206.js +0 -6
- package/dist/index207.js +0 -5
- package/dist/index208.js +0 -170
- package/dist/index21.js +0 -35
- package/dist/index210.js +0 -6
- package/dist/index211.js +0 -37
- package/dist/index213.js +0 -6
- package/dist/index214.js +0 -63
- package/dist/index216.js +0 -6
- package/dist/index217.js +0 -74
- package/dist/index219.js +0 -6
- package/dist/index22.js +0 -6
- package/dist/index220.js +0 -65
- package/dist/index222.js +0 -6
- package/dist/index223.js +0 -67
- package/dist/index225.js +0 -6
- package/dist/index226.js +0 -41
- package/dist/index228.js +0 -6
- package/dist/index229.js +0 -10
- package/dist/index23.js +0 -7
- package/dist/index230.js +0 -22
- package/dist/index232.js +0 -8
- package/dist/index233.js +0 -297
- package/dist/index235.js +0 -6
- package/dist/index236.js +0 -47
- package/dist/index237.js +0 -165
- package/dist/index239.js +0 -6
- package/dist/index24.js +0 -9
- package/dist/index241.js +0 -159
- package/dist/index243.js +0 -6
- package/dist/index244.js +0 -134
- package/dist/index246.js +0 -6
- package/dist/index247.js +0 -167
- package/dist/index249.js +0 -6
- package/dist/index25.js +0 -24
- package/dist/index250.js +0 -147
- package/dist/index252.js +0 -6
- package/dist/index253.js +0 -35
- package/dist/index255.js +0 -6
- package/dist/index256.js +0 -65
- package/dist/index258.js +0 -6
- package/dist/index259.js +0 -19
- package/dist/index260.js +0 -5
- package/dist/index261.js +0 -160
- package/dist/index263.js +0 -6
- package/dist/index264.js +0 -60
- package/dist/index266.js +0 -6
- package/dist/index267.js +0 -134
- package/dist/index269.js +0 -6
- package/dist/index27.js +0 -4
- package/dist/index271.js +0 -206
- package/dist/index273.js +0 -6
- package/dist/index274.js +0 -85
- package/dist/index275.js +0 -5
- package/dist/index276.js +0 -55
- package/dist/index277.js +0 -5
- package/dist/index278.js +0 -164
- package/dist/index28.js +0 -8
- package/dist/index280.js +0 -6
- package/dist/index281.js +0 -145
- package/dist/index283.js +0 -6
- package/dist/index284.js +0 -11
- package/dist/index285.js +0 -200
- package/dist/index287.js +0 -6
- package/dist/index288.js +0 -241
- package/dist/index29.js +0 -7
- package/dist/index290.js +0 -6
- package/dist/index291.js +0 -21
- package/dist/index293.js +0 -6
- package/dist/index294.js +0 -125
- package/dist/index296.js +0 -6
- package/dist/index297.js +0 -161
- package/dist/index299.js +0 -6
- package/dist/index30.js +0 -118
- package/dist/index300.js +0 -127
- package/dist/index302.js +0 -6
- package/dist/index303.js +0 -20
- package/dist/index305.js +0 -6
- package/dist/index306.js +0 -116
- package/dist/index307.js +0 -5
- package/dist/index308.js +0 -507
- package/dist/index31.js +0 -10
- package/dist/index310.js +0 -6
- package/dist/index311.js +0 -196
- package/dist/index313.js +0 -6
- package/dist/index314.js +0 -142
- package/dist/index316.js +0 -6
- package/dist/index317.js +0 -134
- package/dist/index319.js +0 -6
- package/dist/index32.js +0 -28
- package/dist/index320.js +0 -162
- package/dist/index322.js +0 -6
- package/dist/index323.js +0 -319
- package/dist/index325.js +0 -6
- package/dist/index326.js +0 -40
- package/dist/index327.js +0 -43
- package/dist/index328.js +0 -665
- package/dist/index33.js +0 -5
- package/dist/index330.js +0 -6
- package/dist/index331.js +0 -155
- package/dist/index333.js +0 -6
- package/dist/index334.js +0 -142
- package/dist/index336.js +0 -6
- package/dist/index337.js +0 -155
- package/dist/index339.js +0 -6
- package/dist/index34.js +0 -112
- package/dist/index340.js +0 -58
- package/dist/index341.js +0 -5
- package/dist/index342.js +0 -20
- package/dist/index344.js +0 -6
- package/dist/index345.js +0 -142
- package/dist/index347.js +0 -6
- package/dist/index349.js +0 -109
- package/dist/index351.js +0 -6
- package/dist/index352.js +0 -55
- package/dist/index353.js +0 -24
- package/dist/index354.js +0 -23
- package/dist/index355.js +0 -839
- package/dist/index356.js +0 -474
- package/dist/index357.js +0 -52
- package/dist/index358.js +0 -7
- package/dist/index36.js +0 -6
- package/dist/index38.js +0 -63
- package/dist/index39.js +0 -63
- package/dist/index40.js +0 -9
- package/dist/index42.js +0 -8
- package/dist/index43.js +0 -179
- package/dist/index44.js +0 -21
- package/dist/index46.js +0 -385
- package/dist/index48.js +0 -6
- package/dist/index49.js +0 -33
- package/dist/index5.js +0 -34
- package/dist/index50.js +0 -12
- package/dist/index51.js +0 -8
- package/dist/index52.js +0 -106
- package/dist/index53.js +0 -330
- package/dist/index54.js +0 -97
- package/dist/index55.js +0 -328
- package/dist/index56.js +0 -28
- package/dist/index57.js +0 -102
- package/dist/index58.js +0 -157
- package/dist/index6.js +0 -38
- package/dist/index60.js +0 -6
- package/dist/index61.js +0 -131
- package/dist/index62.js +0 -5
- package/dist/index65.js +0 -35
- package/dist/index66.js +0 -26
- package/dist/index68.js +0 -6
- package/dist/index69.js +0 -54
- package/dist/index7.js +0 -58
- package/dist/index71.js +0 -6
- package/dist/index72.js +0 -14
- package/dist/index74.js +0 -6
- package/dist/index75.js +0 -159
- package/dist/index77.js +0 -6
- package/dist/index78.js +0 -4
- package/dist/index79.js +0 -4
- package/dist/index80.js +0 -54
- package/dist/index81.js +0 -5
- package/dist/index82.js +0 -5
- package/dist/index83.js +0 -141
- package/dist/index85.js +0 -6
- package/dist/index86.js +0 -65
- package/dist/index88.js +0 -6
- package/dist/index89.js +0 -30
- package/dist/index9.js +0 -11
- package/dist/index90.js +0 -19
- package/dist/index91.js +0 -17
- package/dist/index92.js +0 -9
- package/dist/index93.js +0 -34
- package/dist/index95.js +0 -16
- package/dist/index96.js +0 -10
- package/dist/index97.js +0 -18
- package/dist/index98.js +0 -189
- package/dist/types/VoidHtmlElements.d.ts +0 -1
- package/dist/utilities/functions/add.d.ts +0 -1
- package/dist/utilities/functions/booleanishToBoolean.d.ts +0 -6
- package/dist/utilities/functions/capitalize.d.ts +0 -4
- package/dist/utilities/functions/cloneDeep.d.ts +0 -1
- package/dist/utilities/functions/debounce.d.ts +0 -1
- package/dist/utilities/functions/drop.d.ts +0 -1
- package/dist/utilities/functions/exceedsPrecision.d.ts +0 -1
- package/dist/utilities/functions/findRight.d.ts +0 -4
- package/dist/utilities/functions/findRightIndex.d.ts +0 -4
- package/dist/utilities/functions/flow.d.ts +0 -1
- package/dist/utilities/functions/getHueFromRGB.d.ts +0 -9
- package/dist/utilities/functions/groupBy.d.ts +0 -6
- package/dist/utilities/functions/gt.d.ts +0 -7
- package/dist/utilities/functions/hexToRGB.d.ts +0 -7
- package/dist/utilities/functions/hslToHex.d.ts +0 -1
- package/dist/utilities/functions/includes.d.ts +0 -1
- package/dist/utilities/functions/initial.d.ts +0 -1
- package/dist/utilities/functions/isCssColor.d.ts +0 -5
- package/dist/utilities/functions/lt.d.ts +0 -7
- package/dist/utilities/functions/makeUrl.d.ts +0 -1
- package/dist/utilities/functions/mapKeys.d.ts +0 -5
- package/dist/utilities/functions/mapValues.d.ts +0 -1
- package/dist/utilities/functions/matchesPropertyInsensitive.d.ts +0 -1
- package/dist/utilities/functions/max.d.ts +0 -2
- package/dist/utilities/functions/mean.d.ts +0 -4
- package/dist/utilities/functions/merge.d.ts +0 -11
- package/dist/utilities/functions/millisecondsTo.d.ts +0 -1
- package/dist/utilities/functions/negate.d.ts +0 -4
- package/dist/utilities/functions/normalizeItemGroups.d.ts +0 -13
- package/dist/utilities/functions/omit.d.ts +0 -2
- package/dist/utilities/functions/overEvery.d.ts +0 -4
- package/dist/utilities/functions/pick.d.ts +0 -1
- package/dist/utilities/functions/replace.d.ts +0 -1
- package/dist/utilities/functions/replaceInTree.d.ts +0 -4
- package/dist/utilities/functions/retry.d.ts +0 -5
- package/dist/utilities/functions/roundToTheNearest.d.ts +0 -8
- package/dist/utilities/functions/set.d.ts +0 -15
- package/dist/utilities/functions/stub.d.ts +0 -6
- package/dist/utilities/functions/transposePercent.d.ts +0 -9
- package/dist/utilities/functions/tryTo.d.ts +0 -2
- package/dist/utilities/functions/uniqBy.d.ts +0 -1
- /package/dist/{index64.js → _virtual/_plugin-vue_export-helper.js} +0 -0
- /package/dist/components/{BaseButton → BbBaseButton}/RouterComponent.vue.d.ts +0 -0
- /package/dist/components/{BaseDatePicker/BaseDatePicker.vue.d.ts → BbBaseDatePicker/BbBaseDatePicker.vue.d.ts} +0 -0
- /package/dist/{index165.js → composables/useArray.js} +0 -0
- /package/dist/{index17.js → composables/useFrameworkDetection.js} +0 -0
- /package/dist/{index12.js → composables/useId.js} +0 -0
- /package/dist/{index107.js → utilities/functions/chunk.js} +0 -0
- /package/dist/{index8.js → utilities/functions/clamp.js} +0 -0
- /package/dist/{index150.js → utilities/functions/curry.js} +0 -0
- /package/dist/{index45.js → utilities/functions/extractDomContainer.js} +0 -0
- /package/dist/{index270.js → utilities/functions/findInTree.js} +0 -0
- /package/dist/{index348.js → utilities/functions/flattenTree.js} +0 -0
- /package/dist/{index41.js → utilities/functions/get.js} +0 -0
- /package/dist/{index189.js → utilities/functions/head.js} +0 -0
- /package/dist/{index108.js → utilities/functions/identity.js} +0 -0
- /package/dist/{index179.js → utilities/functions/indexBy.js} +0 -0
- /package/dist/{index37.js → utilities/functions/isHex.js} +0 -0
- /package/dist/{index94.js → utilities/functions/isNil.js} +0 -0
- /package/dist/{index26.js → utilities/functions/isNotNil.js} +0 -0
- /package/dist/{index105.js → utilities/functions/last.js} +0 -0
- /package/dist/{index142.js → utilities/functions/noop.js} +0 -0
- /package/dist/{index231.js → utilities/functions/parseWidthString.js} +0 -0
- /package/dist/{index240.js → utilities/functions/pickBy.js} +0 -0
- /package/dist/{index123.js → utilities/functions/range.js} +0 -0
- /package/dist/{index190.js → utilities/functions/snapToStep.js} +0 -0
- /package/dist/{index191.js → utilities/functions/transpose.js} +0 -0
- /package/dist/{index106.js → utilities/functions/validateDateFormat.js} +0 -0
- /package/dist/{index10.js → utilities/functions/wait.js} +0 -0
package/dist/ai/BaseSelect.md
DELETED
|
@@ -1,1742 +0,0 @@
|
|
|
1
|
-
# BaseSelect
|
|
2
|
-
|
|
3
|
-
## Template & Script
|
|
4
|
-
|
|
5
|
-
```vue
|
|
6
|
-
<template>
|
|
7
|
-
<CommonInputOuterContainer
|
|
8
|
-
ref="outerContainer"
|
|
9
|
-
:class="{
|
|
10
|
-
'bb-base-select': true,
|
|
11
|
-
'bb-base-select--active': active,
|
|
12
|
-
'bb-base-select--shown': shown,
|
|
13
|
-
'bb-base-select--loading': computedLoading,
|
|
14
|
-
'bb-base-select--disabled': disabled,
|
|
15
|
-
'bb-base-select--errors': hasErrors,
|
|
16
|
-
'bb-base-select--readonly': readonly,
|
|
17
|
-
'bb-base-select--compact': compact,
|
|
18
|
-
}"
|
|
19
|
-
@click="onOuterContainerClick"
|
|
20
|
-
>
|
|
21
|
-
<template #prepend-outer
|
|
22
|
-
><slot name="prepend-outer" :query="query"></slot
|
|
23
|
-
></template>
|
|
24
|
-
<span ref="innerContainer" class="bb-base-select__inner-wrapper">
|
|
25
|
-
<CommonInputInnerContainer
|
|
26
|
-
:append:icon="props['append:icon']"
|
|
27
|
-
:clearable="clearable && !isEmpty(modelValue)"
|
|
28
|
-
:prepend:icon="props['prepend:icon']"
|
|
29
|
-
:prevent-focus="true"
|
|
30
|
-
@click:clear="onClear"
|
|
31
|
-
>
|
|
32
|
-
<template #prepend
|
|
33
|
-
><slot name="prepend" :query="query" :focus="focusInput"></slot
|
|
34
|
-
></template>
|
|
35
|
-
<template #prefix><slot name="prefix" /></template>
|
|
36
|
-
<BbSmoothHeight tag="span">
|
|
37
|
-
<span class="bb-base-select__input-container">
|
|
38
|
-
<template
|
|
39
|
-
v-if="multiple && selectedOptions.length <= maxSelectedLabels"
|
|
40
|
-
>
|
|
41
|
-
<template v-if="comma">
|
|
42
|
-
<CommaBox
|
|
43
|
-
ref="commaBox"
|
|
44
|
-
:options="selectedOptions"
|
|
45
|
-
@option:unselected="onOptionUnselected"
|
|
46
|
-
/>
|
|
47
|
-
</template>
|
|
48
|
-
<template v-else>
|
|
49
|
-
<ChipsBox
|
|
50
|
-
ref="chipsBox"
|
|
51
|
-
:options="selectedOptions"
|
|
52
|
-
@option:unselected="onOptionUnselected"
|
|
53
|
-
/>
|
|
54
|
-
</template>
|
|
55
|
-
</template>
|
|
56
|
-
<span v-else-if="multiple" class="bb-base-select__max-reached">
|
|
57
|
-
{{
|
|
58
|
-
selectedLabelsFn
|
|
59
|
-
? selectedLabelsFn(selectedOptions.length)
|
|
60
|
-
: t('select.multipleMaxReached', selectedOptions.length)
|
|
61
|
-
}}
|
|
62
|
-
</span>
|
|
63
|
-
<input
|
|
64
|
-
:id="id"
|
|
65
|
-
:key="`${mounted}`"
|
|
66
|
-
ref="input"
|
|
67
|
-
v-model="query"
|
|
68
|
-
:aria-activedescendant="shown ? activeDescendantId : undefined"
|
|
69
|
-
:aria-autocomplete="'list'"
|
|
70
|
-
:aria-controls="renderListBox ? `${id}_listbox` : undefined"
|
|
71
|
-
:aria-describedby="ariaDescribedby"
|
|
72
|
-
:aria-expanded="shown"
|
|
73
|
-
:autocomplete="autocomplete"
|
|
74
|
-
:autofocus="autofocus"
|
|
75
|
-
:class="'bb-base-select__text-input'"
|
|
76
|
-
:disabled="disabled"
|
|
77
|
-
:inputmode="inputmode"
|
|
78
|
-
:placeholder="computedPlaceholder"
|
|
79
|
-
:readonly="readonly || !allowWriting"
|
|
80
|
-
:required="required && (!multiple || !modelValue.length)"
|
|
81
|
-
role="combobox"
|
|
82
|
-
size="1"
|
|
83
|
-
:style="{ '--characters': query.length }"
|
|
84
|
-
:type="'text'"
|
|
85
|
-
@blur.stop="onInputBlur"
|
|
86
|
-
@change.stop="onInputChange"
|
|
87
|
-
@focus.once.stop="onInputFirstFocus"
|
|
88
|
-
@focus.stop="onInputFocus"
|
|
89
|
-
@input.stop="onInputInput"
|
|
90
|
-
@keydown.stop.delete="onBackspace"
|
|
91
|
-
@keydown.stop.left="onArrowLeft"
|
|
92
|
-
@keydown.stop.prevent.down="onArrowDown"
|
|
93
|
-
@keydown.stop.prevent.enter="onEnter"
|
|
94
|
-
@keydown.stop.prevent.esc="onEscape"
|
|
95
|
-
@keydown.stop.prevent.up="onArrowUp"
|
|
96
|
-
@keydown.stop.right="onArrowRight"
|
|
97
|
-
/>
|
|
98
|
-
</span>
|
|
99
|
-
</BbSmoothHeight>
|
|
100
|
-
<slot
|
|
101
|
-
v-if="showChevron"
|
|
102
|
-
:loading="!!loading"
|
|
103
|
-
name="chevron"
|
|
104
|
-
:shown="shown"
|
|
105
|
-
>
|
|
106
|
-
<svg
|
|
107
|
-
class="bb-base-select__chevron"
|
|
108
|
-
viewBox="0 0 24 24"
|
|
109
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
110
|
-
>
|
|
111
|
-
<path
|
|
112
|
-
d="M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"
|
|
113
|
-
fill="currentColor"
|
|
114
|
-
/>
|
|
115
|
-
</svg>
|
|
116
|
-
</slot>
|
|
117
|
-
<template #append
|
|
118
|
-
><slot name="append" :query="query" :focus="focusInput"></slot
|
|
119
|
-
></template>
|
|
120
|
-
<template #suffix><slot name="suffix" /></template>
|
|
121
|
-
</CommonInputInnerContainer>
|
|
122
|
-
</span>
|
|
123
|
-
<CommonPopover
|
|
124
|
-
v-model="shown"
|
|
125
|
-
:anchor="innerContainer"
|
|
126
|
-
:offset="4"
|
|
127
|
-
:transition-duration="transitionDuration"
|
|
128
|
-
>
|
|
129
|
-
<template v-if="shown">
|
|
130
|
-
<slot name="options:prepend:outer" :focus="focusInput" />
|
|
131
|
-
</template>
|
|
132
|
-
<ListBox
|
|
133
|
-
ref="optionsContainer"
|
|
134
|
-
:compact="compact"
|
|
135
|
-
:loading="computedLoading"
|
|
136
|
-
:loading-text="loadingText"
|
|
137
|
-
:multiple="multiple"
|
|
138
|
-
:no-data-text="noDataText"
|
|
139
|
-
:open="shown"
|
|
140
|
-
:options="groupBy ? undefined : filteredOptions"
|
|
141
|
-
:groups="groupBy ? groupedOptions : undefined"
|
|
142
|
-
:header-height="headerHeight"
|
|
143
|
-
:style="optionsContainerStyles"
|
|
144
|
-
:option-height="itemHeight"
|
|
145
|
-
@focused:change="onListboxFocusedChange"
|
|
146
|
-
@option:selected="onOptionSelected"
|
|
147
|
-
@option:unselected="onOptionUnselected"
|
|
148
|
-
>
|
|
149
|
-
<template #options:prepend
|
|
150
|
-
><slot
|
|
151
|
-
v-if="shown"
|
|
152
|
-
name="options:prepend"
|
|
153
|
-
:focus="focusInput"
|
|
154
|
-
:close="close"
|
|
155
|
-
/></template>
|
|
156
|
-
<template #loading><slot name="loading" :query="query" /></template>
|
|
157
|
-
<template #no-data
|
|
158
|
-
><slot name="no-data" :query="query" :focus="focusInput"
|
|
159
|
-
/></template>
|
|
160
|
-
<template #options:append
|
|
161
|
-
><slot
|
|
162
|
-
v-if="shown"
|
|
163
|
-
name="options:append"
|
|
164
|
-
:focus="focusInput"
|
|
165
|
-
:close="close"
|
|
166
|
-
/></template>
|
|
167
|
-
<template #option="data"
|
|
168
|
-
><slot
|
|
169
|
-
:has-errors="hasErrors"
|
|
170
|
-
:loading="computedLoading"
|
|
171
|
-
name="option"
|
|
172
|
-
v-bind="data"
|
|
173
|
-
/></template>
|
|
174
|
-
<template #group="data"><slot name="group" v-bind="data" /></template>
|
|
175
|
-
</ListBox>
|
|
176
|
-
<template v-if="shown">
|
|
177
|
-
<slot name="options:append:outer" :focus="focusInput" />
|
|
178
|
-
</template>
|
|
179
|
-
</CommonPopover>
|
|
180
|
-
<template #append-outer
|
|
181
|
-
><slot name="append-outer" :query="query"></slot
|
|
182
|
-
></template>
|
|
183
|
-
<input v-for="input in hiddenInputs" :key="input.value" v-bind="input" />
|
|
184
|
-
</CommonInputOuterContainer>
|
|
185
|
-
</template>
|
|
186
|
-
|
|
187
|
-
<script setup lang="ts" generic="Item = any">
|
|
188
|
-
import BbSmoothHeight from '../BbSmoothHeight/BbSmoothHeight.vue';
|
|
189
|
-
import { computed, ref, nextTick } from 'vue';
|
|
190
|
-
import { hash } from '@/utilities/functions/hash';
|
|
191
|
-
import { isEmpty } from '@/utilities/functions/empty';
|
|
192
|
-
import { last } from '@/utilities/functions/last';
|
|
193
|
-
import { matchAnyKey } from '@/utilities/functions/matchAnyKey';
|
|
194
|
-
import { toRef } from 'vue';
|
|
195
|
-
import { useArray } from '@/composables/useArray';
|
|
196
|
-
import { useBaseOptions } from '@/composables/useBaseOptions';
|
|
197
|
-
import { useCoherence } from '@/composables/useCoherence';
|
|
198
|
-
import { useHashedWatcher } from '@/composables/useHashedWatcher';
|
|
199
|
-
import { useId } from '@/composables/useId';
|
|
200
|
-
import { useIndexById } from '@/composables/useIndexById';
|
|
201
|
-
import { useElementSize, useIntersectionObserver } from '@vueuse/core';
|
|
202
|
-
import { useItemsGetter } from '@/composables/useItemsGetter';
|
|
203
|
-
import { useLocale } from '@/composables/useLocale';
|
|
204
|
-
import { useMobile } from '@/composables/useMobile';
|
|
205
|
-
import { useMounted } from '@vueuse/core';
|
|
206
|
-
import { usePrefill } from '@/composables/usePrefill';
|
|
207
|
-
import { wait } from '@/utilities/functions/wait';
|
|
208
|
-
import { when } from '@/utilities/functions/when';
|
|
209
|
-
import ChipsBox from '../ChipsBox/ChipsBox.vue';
|
|
210
|
-
import CommaBox from '../CommaBox/CommaBox.vue';
|
|
211
|
-
import CommonInputInnerContainer from '../CommonInputInnerContainer/CommonInputInnerContainer.vue';
|
|
212
|
-
import CommonInputOuterContainer from '../CommonInputOuterContainer/CommonInputOuterContainer.vue';
|
|
213
|
-
import CommonPopover from '../CommonPopover/CommonPopover.vue';
|
|
214
|
-
import ListBox from '../ListBox/ListBox.vue';
|
|
215
|
-
import type {
|
|
216
|
-
BaseSelectProps,
|
|
217
|
-
BaseSelectEvents,
|
|
218
|
-
BaseSelectSlots,
|
|
219
|
-
} from './types';
|
|
220
|
-
import type { Option as BaseOption, GroupedOptions } from '@/types/Option';
|
|
221
|
-
import { useUntil } from '@/composables/useUntil';
|
|
222
|
-
import type { groupBy } from '@/utilities/functions/groupBy';
|
|
223
|
-
import { isNil } from '@/utilities/functions/isNil';
|
|
224
|
-
import { get } from '@/utilities/functions/get';
|
|
225
|
-
import { useLogger } from '@/composables/useLogger';
|
|
226
|
-
|
|
227
|
-
const props = withDefaults(defineProps<BaseSelectProps<Item>>(), {
|
|
228
|
-
allowWriting: true,
|
|
229
|
-
autocomplete: 'off',
|
|
230
|
-
depsDebounceTime: 0,
|
|
231
|
-
dependencies: () => [],
|
|
232
|
-
filterBy: () => [],
|
|
233
|
-
max: Infinity,
|
|
234
|
-
maxSelectedLabels: Infinity,
|
|
235
|
-
modelValueDebounceTime: 0,
|
|
236
|
-
prefill: 'focus',
|
|
237
|
-
queryDebounceTime: 500,
|
|
238
|
-
showChevron: true,
|
|
239
|
-
transitionDuration: 300,
|
|
240
|
-
updateOnAnimationFrame: false,
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
const emit = defineEmits<BaseSelectEvents>();
|
|
244
|
-
const logger = useLogger();
|
|
245
|
-
|
|
246
|
-
defineSlots<BaseSelectSlots<Item>>();
|
|
247
|
-
|
|
248
|
-
if (props.multiple && !Array.isArray(props.modelValue)) {
|
|
249
|
-
logger.throw(
|
|
250
|
-
'BaseSelect: multiple is set to "true" but modelValue is not an array.'
|
|
251
|
-
);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
const { t } = useLocale();
|
|
255
|
-
const mounted = useMounted();
|
|
256
|
-
/**
|
|
257
|
-
* START ELEMENT REFERENCES
|
|
258
|
-
*/
|
|
259
|
-
const outerContainer = ref<InstanceType<
|
|
260
|
-
typeof CommonInputOuterContainer
|
|
261
|
-
> | null>(null);
|
|
262
|
-
const innerContainer = ref<HTMLElement | null>(null);
|
|
263
|
-
const optionsContainer = ref<any | null>(null);
|
|
264
|
-
const commaBox = ref<InstanceType<typeof CommaBox> | null>(null);
|
|
265
|
-
const chipsBox = ref<InstanceType<typeof ChipsBox> | null>(null);
|
|
266
|
-
const selectedBox = computed(() =>
|
|
267
|
-
props.comma ? commaBox.value : chipsBox.value
|
|
268
|
-
);
|
|
269
|
-
const { width: containerWidth } = useElementSize(innerContainer);
|
|
270
|
-
/**
|
|
271
|
-
* END ELEMENT REFERENCES
|
|
272
|
-
*/
|
|
273
|
-
|
|
274
|
-
const { isMobile } = useMobile();
|
|
275
|
-
const inputmode = computed(() =>
|
|
276
|
-
props.allowWriting === 'not-mobile' && isMobile.value ? 'none' : undefined
|
|
277
|
-
);
|
|
278
|
-
|
|
279
|
-
// Always provide an id so that inputs can be focussed by clicking in the label
|
|
280
|
-
const id = props.id || useId().id.value;
|
|
281
|
-
|
|
282
|
-
const { resume, pause } = useIntersectionObserver(
|
|
283
|
-
innerContainer,
|
|
284
|
-
async ([{ intersectionRatio }]) => {
|
|
285
|
-
if (intersectionRatio !== 1 && shown.value) {
|
|
286
|
-
await close();
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
{ threshold: [0, 1], immediate: false }
|
|
290
|
-
);
|
|
291
|
-
|
|
292
|
-
const optionsContainerStyles = computed(() => ({
|
|
293
|
-
width: `${containerWidth.value ?? 0}px`,
|
|
294
|
-
}));
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* START INPUT HANDLING
|
|
298
|
-
*/
|
|
299
|
-
const input = ref<HTMLElement | null>(null);
|
|
300
|
-
const activeDescendantId = ref<string>();
|
|
301
|
-
const focusInput = () => {
|
|
302
|
-
if (input.value instanceof HTMLInputElement) {
|
|
303
|
-
input.value.focus();
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* When the focus goes to the input we select the current text
|
|
309
|
-
* so the user can replace or delete it.
|
|
310
|
-
* On top of that if the prefill strategy is to prefill on first focus and options
|
|
311
|
-
* weren't already retrieved by the watcher on mount, we do that
|
|
312
|
-
*/
|
|
313
|
-
const onInputFocus = async (event: FocusEvent) => {
|
|
314
|
-
emit('focus', event);
|
|
315
|
-
setActive();
|
|
316
|
-
document.addEventListener('click', onOutsideInteraction);
|
|
317
|
-
document.addEventListener('focusin', onOutsideInteraction);
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
const onInputFirstFocus = () => {
|
|
321
|
-
if (props.prefill === 'focus' && !isPrefilling.value && !hasPrefilled.value) {
|
|
322
|
-
prefillItems();
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
const onInputBlur = async (event: FocusEvent) => {
|
|
327
|
-
emit('blur', event);
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
const onInputChange = (event: Event) => emit('change', event);
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Search at every input by the user.
|
|
334
|
-
* When the user deletes the query unselect the current option
|
|
335
|
-
*/
|
|
336
|
-
const onInputInput = (event: Event) => {
|
|
337
|
-
emit('input', event);
|
|
338
|
-
if (query.value === '') {
|
|
339
|
-
if (!props.multiple) {
|
|
340
|
-
emit('update:modelValue', null);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
selectedBox.value?.blur();
|
|
344
|
-
if (hidden.value) {
|
|
345
|
-
open();
|
|
346
|
-
}
|
|
347
|
-
debouncedGetter(query.value, false, props.modelValue);
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
const onListboxFocusedChange = (id: string | undefined) => {
|
|
351
|
-
activeDescendantId.value = id;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* On click outside of the container close the panel, remove active state.
|
|
356
|
-
* In multiple selection clear query after a timeout
|
|
357
|
-
*/
|
|
358
|
-
const onOutsideInteraction = async (event: Event) => {
|
|
359
|
-
if (event.target instanceof Node) {
|
|
360
|
-
if (outerContainer.value) {
|
|
361
|
-
if (
|
|
362
|
-
!outerContainer.value.$el.contains(event.target) &&
|
|
363
|
-
!optionsContainer.value?.$el?.contains(event.target)
|
|
364
|
-
) {
|
|
365
|
-
close();
|
|
366
|
-
setInactive();
|
|
367
|
-
document.removeEventListener('click', onOutsideInteraction);
|
|
368
|
-
document.removeEventListener('focusin', onOutsideInteraction);
|
|
369
|
-
await wait(props.transitionDuration);
|
|
370
|
-
alignQueryToState();
|
|
371
|
-
return;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
const canProcessKeyboardBindings = computed(() => {
|
|
378
|
-
if (props.readonly) return false;
|
|
379
|
-
if (props.disabled) return false;
|
|
380
|
-
if (computedLoading.value) return false;
|
|
381
|
-
if (
|
|
382
|
-
!selectedBox.value &&
|
|
383
|
-
props.multiple &&
|
|
384
|
-
selectedOptions.value.length <= props.maxSelectedLabels
|
|
385
|
-
)
|
|
386
|
-
return false;
|
|
387
|
-
return true;
|
|
388
|
-
});
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* On arrow prevent the page from scrolling.
|
|
392
|
-
* Reset horizontal focus
|
|
393
|
-
* When the panel is open
|
|
394
|
-
* - Focus on the previous option
|
|
395
|
-
* When the panel is closed
|
|
396
|
-
* - focus on the first selected option
|
|
397
|
-
*/
|
|
398
|
-
const onArrowUp = async () => {
|
|
399
|
-
if (!canProcessKeyboardBindings.value) return;
|
|
400
|
-
// Reset horizontal focus while moving vertically
|
|
401
|
-
selectedBox.value?.blur();
|
|
402
|
-
if (shown.value) {
|
|
403
|
-
optionsContainer.value?.focusPrevious();
|
|
404
|
-
} else {
|
|
405
|
-
await open();
|
|
406
|
-
await wait(props.transitionDuration);
|
|
407
|
-
optionsContainer.value?.focusLastSelected();
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
const onArrowDown = async () => {
|
|
412
|
-
if (!canProcessKeyboardBindings.value) return;
|
|
413
|
-
// Reset horizontal focus while moving vertically
|
|
414
|
-
selectedBox.value?.blur();
|
|
415
|
-
if (shown.value) {
|
|
416
|
-
optionsContainer.value?.focusNext();
|
|
417
|
-
} else {
|
|
418
|
-
await open();
|
|
419
|
-
await wait(props.transitionDuration);
|
|
420
|
-
optionsContainer.value?.focusFirstSelected();
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
const onArrowLeft = (event: KeyboardEvent) => {
|
|
425
|
-
if (!canProcessKeyboardBindings.value) return;
|
|
426
|
-
if (!props.multiple || query.value) return;
|
|
427
|
-
|
|
428
|
-
event.preventDefault();
|
|
429
|
-
// Reset vertical focus while moving horizontally
|
|
430
|
-
optionsContainer.value?.blur();
|
|
431
|
-
if (!selectedOptions.value.length) return;
|
|
432
|
-
selectedBox.value?.focusPrevious();
|
|
433
|
-
const highlightedOption = selectedBox.value?.getHighlighted();
|
|
434
|
-
if (highlightedOption) {
|
|
435
|
-
optionsContainer.value?.focusByHash(highlightedOption.valueHash);
|
|
436
|
-
}
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
const onArrowRight = (event: KeyboardEvent) => {
|
|
440
|
-
if (!canProcessKeyboardBindings.value) return;
|
|
441
|
-
if (!props.multiple || query.value) return;
|
|
442
|
-
event.preventDefault();
|
|
443
|
-
// Reset vertical focus while moving horizontally
|
|
444
|
-
optionsContainer.value?.blur();
|
|
445
|
-
if (!selectedOptions.value.length) return;
|
|
446
|
-
selectedBox.value?.focusNext();
|
|
447
|
-
const highlightedOption = selectedBox.value?.getHighlighted();
|
|
448
|
-
if (highlightedOption) {
|
|
449
|
-
optionsContainer.value?.focusByHash(highlightedOption.valueHash);
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
const onEnter = async () => {
|
|
454
|
-
if (!canProcessKeyboardBindings.value) {
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
if (!shown.value) {
|
|
458
|
-
await open();
|
|
459
|
-
await wait(props.transitionDuration);
|
|
460
|
-
if (selectedOptions.value.length) {
|
|
461
|
-
optionsContainer.value?.focusFirstSelected();
|
|
462
|
-
}
|
|
463
|
-
return;
|
|
464
|
-
} else if (optionsContainer.value?.getHighlighted()) {
|
|
465
|
-
optionsContainer.value.confirmOption();
|
|
466
|
-
return;
|
|
467
|
-
}
|
|
468
|
-
const text = query.value.trim();
|
|
469
|
-
// Do not add manual items that are already present
|
|
470
|
-
if (isItemSelected(text)) return;
|
|
471
|
-
emit('option:add', text);
|
|
472
|
-
query.value = '';
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
const onEscape = async () => {
|
|
476
|
-
if (shown.value) {
|
|
477
|
-
await close();
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Delete behavior is different when query is empty
|
|
483
|
-
* If query is empty
|
|
484
|
-
* If no chip is selected - select rightmost chip
|
|
485
|
-
* If a chip is selected - deselect that option
|
|
486
|
-
* If any option remains move focus to that or reset
|
|
487
|
-
*/
|
|
488
|
-
const onBackspace = async () => {
|
|
489
|
-
if (
|
|
490
|
-
!canProcessKeyboardBindings.value ||
|
|
491
|
-
query.value ||
|
|
492
|
-
!selectedOptions.value.length
|
|
493
|
-
) {
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
if (selectedBox.value?.getHighlighted()) {
|
|
497
|
-
selectedBox.value.confirmOption();
|
|
498
|
-
}
|
|
499
|
-
await nextTick();
|
|
500
|
-
selectedBox.value?.focusPrevious();
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
const query = ref<string>('');
|
|
504
|
-
|
|
505
|
-
const {
|
|
506
|
-
getter,
|
|
507
|
-
debouncedGetter,
|
|
508
|
-
items: internalItems,
|
|
509
|
-
loading,
|
|
510
|
-
} = useItemsGetter({
|
|
511
|
-
items: toRef(props, 'items'),
|
|
512
|
-
debounce: props.queryDebounceTime,
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
const {
|
|
516
|
-
array: innerStash,
|
|
517
|
-
add: addToStash,
|
|
518
|
-
remove: removeFromStash,
|
|
519
|
-
set: setStash,
|
|
520
|
-
} = useArray<BaseOption>();
|
|
521
|
-
|
|
522
|
-
const {
|
|
523
|
-
hasPrefilled,
|
|
524
|
-
isPrefilling,
|
|
525
|
-
prefill: prefillItems,
|
|
526
|
-
} = usePrefill({
|
|
527
|
-
trigger: props.prefill === true,
|
|
528
|
-
currentValue: props.modelValue,
|
|
529
|
-
multiple: props.multiple,
|
|
530
|
-
fn: async (isPrefill) => {
|
|
531
|
-
await getter(query.value, isPrefill, props.modelValue);
|
|
532
|
-
if (props.stash) {
|
|
533
|
-
addToStash(...options.value.map((o) => o.item));
|
|
534
|
-
}
|
|
535
|
-
alignQueryToState();
|
|
536
|
-
},
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
const { data: modelValueIndexedByHash, get: isItemSelected } = useIndexById({
|
|
540
|
-
// Force model value to be an array
|
|
541
|
-
items: computed(() => [].concat(props.modelValue)),
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
const { options } = useBaseOptions({
|
|
545
|
-
disabled: toRef(props, 'disabled'),
|
|
546
|
-
items: computed(() => [...internalItems.value, ...innerStash.value]),
|
|
547
|
-
itemText: props.itemText,
|
|
548
|
-
itemValue: props.itemValue,
|
|
549
|
-
max: props.max,
|
|
550
|
-
selectable: true,
|
|
551
|
-
selectedIndexedByHash: modelValueIndexedByHash,
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
const { data: optionsIndexedByHash } = useIndexById({
|
|
555
|
-
items: options,
|
|
556
|
-
key: 'valueHash',
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
const { coherent, coherentValue } = useCoherence({
|
|
560
|
-
modelValue: toRef(props, 'modelValue'),
|
|
561
|
-
multiple: props.multiple,
|
|
562
|
-
iteratee: (item) => !!optionsIndexedByHash.value[hash(item)],
|
|
563
|
-
});
|
|
564
|
-
|
|
565
|
-
// 6. Selected options — resolved in modelValue order so chips stay stable
|
|
566
|
-
const selectedOptions = computed<BaseOption[]>(() =>
|
|
567
|
-
([] as any[])
|
|
568
|
-
.concat(props.modelValue)
|
|
569
|
-
.map((v) => optionsIndexedByHash.value[hash(v)])
|
|
570
|
-
.filter(Boolean)
|
|
571
|
-
);
|
|
572
|
-
|
|
573
|
-
const computedLoading = computed(() => !!(loading.value || props.loading));
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* If multiple watchers are running we don't want to run the coherence watcher
|
|
577
|
-
* multiple times we only run it the last time
|
|
578
|
-
*/
|
|
579
|
-
useHashedWatcher(
|
|
580
|
-
() => props.modelValue,
|
|
581
|
-
async () => {
|
|
582
|
-
if (!coherent.value) {
|
|
583
|
-
await getter(query.value, true, props.modelValue);
|
|
584
|
-
if (props.enforceCoherence) {
|
|
585
|
-
emit('update:modelValue', coherentValue.value);
|
|
586
|
-
selectedBox.value?.blur();
|
|
587
|
-
optionsContainer.value?.blur();
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
alignQueryToState();
|
|
591
|
-
},
|
|
592
|
-
{ debounce: props.modelValueDebounceTime }
|
|
593
|
-
);
|
|
594
|
-
useHashedWatcher(
|
|
595
|
-
() => [props.dependencies, props.items],
|
|
596
|
-
async () => {
|
|
597
|
-
if (!hasPrefilled.value) return;
|
|
598
|
-
await getter(query.value, true, props.modelValue);
|
|
599
|
-
if (props.enforceCoherence && !coherent.value) {
|
|
600
|
-
emit('update:modelValue', coherentValue.value);
|
|
601
|
-
selectedBox.value?.blur();
|
|
602
|
-
optionsContainer.value?.blur();
|
|
603
|
-
}
|
|
604
|
-
alignQueryToState();
|
|
605
|
-
},
|
|
606
|
-
{ debounce: props.depsDebounceTime }
|
|
607
|
-
);
|
|
608
|
-
|
|
609
|
-
const alignQueryToState = () => {
|
|
610
|
-
if (props.multiple) {
|
|
611
|
-
query.value = '';
|
|
612
|
-
return;
|
|
613
|
-
}
|
|
614
|
-
let option: BaseOption | undefined;
|
|
615
|
-
if (selectedOptions.value) {
|
|
616
|
-
option = last(selectedOptions.value);
|
|
617
|
-
}
|
|
618
|
-
query.value = option?.text || '';
|
|
619
|
-
};
|
|
620
|
-
|
|
621
|
-
const computedPlaceholder = computed(() => {
|
|
622
|
-
if (selectedOptions.value.length) return '';
|
|
623
|
-
else return props.placeholder;
|
|
624
|
-
});
|
|
625
|
-
|
|
626
|
-
const onOptionSelected = async (option: BaseOption) => {
|
|
627
|
-
if (props.multiple) {
|
|
628
|
-
emit('update:modelValue', props.modelValue.concat(option.value));
|
|
629
|
-
if (props.stash) {
|
|
630
|
-
addToStash(option.item);
|
|
631
|
-
}
|
|
632
|
-
alignQueryToState();
|
|
633
|
-
} else {
|
|
634
|
-
if (props.stash) {
|
|
635
|
-
setStash(option.item);
|
|
636
|
-
}
|
|
637
|
-
emit('update:modelValue', option.value);
|
|
638
|
-
await nextTick();
|
|
639
|
-
alignQueryToState();
|
|
640
|
-
}
|
|
641
|
-
focusInput();
|
|
642
|
-
if (!props.multiple) {
|
|
643
|
-
close();
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
const onOptionUnselected = async (option: BaseOption) => {
|
|
648
|
-
removeFromStash((o) => o.valueHash !== option.valueHash);
|
|
649
|
-
if (props.multiple) {
|
|
650
|
-
const copy = { ...modelValueIndexedByHash.value };
|
|
651
|
-
delete copy[option.valueHash];
|
|
652
|
-
emit('update:modelValue', Object.values(copy));
|
|
653
|
-
} else {
|
|
654
|
-
emit('update:modelValue', null);
|
|
655
|
-
await nextTick();
|
|
656
|
-
alignQueryToState();
|
|
657
|
-
}
|
|
658
|
-
focusInput();
|
|
659
|
-
};
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Filter options to be displayed based on the current query.
|
|
663
|
-
* If no query is used or when query is set from the inside (after a selection) display all possible options
|
|
664
|
-
*/
|
|
665
|
-
const filteredOptions = computed<BaseOption<Item>[]>(() => {
|
|
666
|
-
/** Only filter when a value is being searched not when the query is fully set on a selected option text */
|
|
667
|
-
const queryMatchesASelectedOption = selectedOptions.value.some(
|
|
668
|
-
(option: BaseOption) => option.text === query.value
|
|
669
|
-
);
|
|
670
|
-
const shouldFilter =
|
|
671
|
-
(props.multiple && query.value) ||
|
|
672
|
-
(props.filterBy === 'not_stashed' && query.value) ||
|
|
673
|
-
(query.value && !queryMatchesASelectedOption && !props.multiple);
|
|
674
|
-
|
|
675
|
-
if (!shouldFilter || !props.filterBy) return options.value;
|
|
676
|
-
|
|
677
|
-
// Build the stash lookup once, outside the loop — not per item.
|
|
678
|
-
const stashedHashes =
|
|
679
|
-
props.filterBy === 'not_stashed'
|
|
680
|
-
? new Set(innerStash.value.map((o) => o.valueHash))
|
|
681
|
-
: null;
|
|
682
|
-
|
|
683
|
-
return options.value.filter((item: BaseOption) => {
|
|
684
|
-
let matchedAnything = false;
|
|
685
|
-
if (typeof props.filterBy === 'function') {
|
|
686
|
-
// Custom function is an extra matcher, not a replacement for the text
|
|
687
|
-
// match — consistent with the string/array filterBy modes.
|
|
688
|
-
matchedAnything = props.filterBy(item.value, item.item, query.value);
|
|
689
|
-
} else if (props.filterBy === 'not_stashed' && query.value) {
|
|
690
|
-
matchedAnything = !stashedHashes!.has(item.valueHash);
|
|
691
|
-
} else if (Array.isArray(props.filterBy) && props.filterBy.length) {
|
|
692
|
-
matchedAnything = matchAnyKey(
|
|
693
|
-
item.item,
|
|
694
|
-
props.filterBy,
|
|
695
|
-
query.value.trim()
|
|
696
|
-
);
|
|
697
|
-
}
|
|
698
|
-
return matchedAnything || matchAnyKey(item, ['text'], query.value.trim());
|
|
699
|
-
});
|
|
700
|
-
});
|
|
701
|
-
|
|
702
|
-
const defaultGroupSymbol = Symbol('default');
|
|
703
|
-
|
|
704
|
-
const getGroupData = (option: BaseOption) => {
|
|
705
|
-
if (isNil(props.groupBy)) return defaultGroupSymbol;
|
|
706
|
-
if (typeof props.groupBy === 'function') return props.groupBy(option.item);
|
|
707
|
-
return (get as any)(option.item, props.groupBy);
|
|
708
|
-
};
|
|
709
|
-
|
|
710
|
-
const groupedOptions = computed<GroupedOptions[]>(() => {
|
|
711
|
-
const groupIndex: Record<GroupedOptions['id'], GroupedOptions> = {};
|
|
712
|
-
for (const option of filteredOptions.value) {
|
|
713
|
-
const groupData = getGroupData(option);
|
|
714
|
-
const groupId = hash(groupData);
|
|
715
|
-
if (!groupIndex[groupId]) {
|
|
716
|
-
groupIndex[groupId] = {
|
|
717
|
-
id: groupId,
|
|
718
|
-
data: groupData ?? null,
|
|
719
|
-
options: [],
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
groupIndex[groupId].options.push(option);
|
|
723
|
-
}
|
|
724
|
-
return Object.values(groupIndex).filter((g) => g.options.length);
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* We need the transitions because elements must be hidden and shown
|
|
729
|
-
* to accessibility tools when they are fully closed or fully open,
|
|
730
|
-
* while still being animated for sighted users.
|
|
731
|
-
*/
|
|
732
|
-
|
|
733
|
-
const shown = ref(false);
|
|
734
|
-
const hidden = ref(true);
|
|
735
|
-
const renderListBox = useUntil(shown);
|
|
736
|
-
|
|
737
|
-
const open = async () => {
|
|
738
|
-
resume();
|
|
739
|
-
hidden.value = false;
|
|
740
|
-
shown.value = true;
|
|
741
|
-
};
|
|
742
|
-
|
|
743
|
-
const close = async () => {
|
|
744
|
-
shown.value = false;
|
|
745
|
-
hidden.value = true;
|
|
746
|
-
activeDescendantId.value = undefined;
|
|
747
|
-
selectedBox.value?.blur();
|
|
748
|
-
pause();
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
const toggle = () => {
|
|
752
|
-
if (shown.value) return close();
|
|
753
|
-
return open();
|
|
754
|
-
};
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Applies a class when the user is inside this whole component.
|
|
758
|
-
* We cannot use focus within as it doesn't work for elements that are teleported.
|
|
759
|
-
* Also we cannot use the <input/> if we physically move focus to the options so
|
|
760
|
-
* we track it manually.
|
|
761
|
-
*/
|
|
762
|
-
const active = ref(false);
|
|
763
|
-
|
|
764
|
-
const setActive = () => {
|
|
765
|
-
active.value = true;
|
|
766
|
-
};
|
|
767
|
-
const setInactive = () => {
|
|
768
|
-
active.value = false;
|
|
769
|
-
emit('inactive');
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* When clicking on the outside container seamlessly move focus to the input and open the panel
|
|
774
|
-
*/
|
|
775
|
-
const onOuterContainerClick = (event: MouseEvent) => {
|
|
776
|
-
event.preventDefault();
|
|
777
|
-
emit('click', event);
|
|
778
|
-
if (props.disabled || props.readonly) return;
|
|
779
|
-
focusInput();
|
|
780
|
-
toggle();
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* When using this component for submission we add a bunch of hidden
|
|
785
|
-
* inputs so the submitted inputs are on par with v-model
|
|
786
|
-
*/
|
|
787
|
-
/**
|
|
788
|
-
* This is used to keep the value compatible to common html expected values.
|
|
789
|
-
* Convert to string everything that's not but do not double encode strings
|
|
790
|
-
*/
|
|
791
|
-
const makeInputValue = when(
|
|
792
|
-
(item: unknown) => typeof item !== 'string',
|
|
793
|
-
JSON.stringify
|
|
794
|
-
);
|
|
795
|
-
|
|
796
|
-
const hiddenInputs = computed(() => {
|
|
797
|
-
return [].concat(props.modelValue).map((current) => {
|
|
798
|
-
const value = makeInputValue(current);
|
|
799
|
-
return {
|
|
800
|
-
disabled: props.disabled,
|
|
801
|
-
name: props.name,
|
|
802
|
-
type: 'hidden',
|
|
803
|
-
value: value,
|
|
804
|
-
};
|
|
805
|
-
});
|
|
806
|
-
});
|
|
807
|
-
|
|
808
|
-
const onClear = () => {
|
|
809
|
-
let value = null;
|
|
810
|
-
if (props.multiple) {
|
|
811
|
-
value = [];
|
|
812
|
-
}
|
|
813
|
-
emit('update:modelValue', value);
|
|
814
|
-
};
|
|
815
|
-
</script>
|
|
816
|
-
<style lang="postcss">
|
|
817
|
-
@import './index.css';
|
|
818
|
-
</style>
|
|
819
|
-
```
|
|
820
|
-
|
|
821
|
-
## Types
|
|
822
|
-
|
|
823
|
-
```ts
|
|
824
|
-
import type { HTMLAttributes, InputHTMLAttributes } from 'vue';
|
|
825
|
-
import type { IconType } from '@/types/Icon';
|
|
826
|
-
|
|
827
|
-
export type BaseSelectProps<Item = any> = {
|
|
828
|
-
/**
|
|
829
|
-
* Controls whether manual typing is allowed in the input field.
|
|
830
|
-
* Use `'not-mobile'` to disable typing on mobile while keeping it on desktop.
|
|
831
|
-
* @defaultValue `true`
|
|
832
|
-
*/
|
|
833
|
-
allowWriting?: boolean | 'not-mobile';
|
|
834
|
-
|
|
835
|
-
/**
|
|
836
|
-
* Name of the icon to render at the right hand side of the input.
|
|
837
|
-
*/
|
|
838
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
839
|
-
'append:icon'?: IconType;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Id(s) of elements describing this select for assistive technologies.
|
|
843
|
-
*/
|
|
844
|
-
ariaDescribedby?: InputHTMLAttributes['aria-describedby'];
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* Browser autocomplete hint for the input field.
|
|
848
|
-
* @defaultValue `'off'`
|
|
849
|
-
*/
|
|
850
|
-
autocomplete?: InputHTMLAttributes['autocomplete'];
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* Focus the input automatically on mount.
|
|
854
|
-
*/
|
|
855
|
-
autofocus?: InputHTMLAttributes['autofocus'];
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Show a clear button whenever a value is present and the control is interactive.
|
|
859
|
-
*/
|
|
860
|
-
clearable?: boolean;
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* Display selected values as a comma-separated string instead of individual chips.
|
|
864
|
-
* When enabled, options cannot be deselected by clicking individual chips.
|
|
865
|
-
*/
|
|
866
|
-
comma?: boolean;
|
|
867
|
-
|
|
868
|
-
/**
|
|
869
|
-
* Apply the compact density variant.
|
|
870
|
-
*/
|
|
871
|
-
compact?: boolean;
|
|
872
|
-
|
|
873
|
-
/**
|
|
874
|
-
* Additional dependencies that trigger item reloading when changed.
|
|
875
|
-
* @defaultValue `[]`
|
|
876
|
-
*/
|
|
877
|
-
dependencies?: any[];
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Debounce delay (ms) for dependency-triggered reloads.
|
|
881
|
-
* @defaultValue `0`
|
|
882
|
-
*/
|
|
883
|
-
depsDebounceTime?: number;
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* Disables the component.
|
|
887
|
-
*/
|
|
888
|
-
disabled?: boolean;
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* Reset modelValue to `null` or empty array if it no longer matches available items (enforces coherence).
|
|
892
|
-
* For example, prevents setting v-model to a user not present in the items array.
|
|
893
|
-
*/
|
|
894
|
-
enforceCoherence?: boolean;
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* Controls how options are filtered during search.
|
|
898
|
-
* Options are always filtered by display text, but can also match additional properties
|
|
899
|
-
* when set to a string path, array of paths, or custom function.
|
|
900
|
-
* Set to `false` to disable filtering, or `'not_stashed'` to exclude stashed items.
|
|
901
|
-
* @defaultValue `() => []`
|
|
902
|
-
*/
|
|
903
|
-
filterBy?:
|
|
904
|
-
| string
|
|
905
|
-
| string[]
|
|
906
|
-
| false
|
|
907
|
-
| 'not_stashed'
|
|
908
|
-
| ((value: any, item: any, query: string | null) => boolean)
|
|
909
|
-
| null;
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* Path or function used to group options. When set, options are organized into
|
|
913
|
-
* collapsible group headers in the dropdown.
|
|
914
|
-
*/
|
|
915
|
-
groupBy?: string | ((item: Item) => string | number | symbol);
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* Height of group headers in the listbox (px). Defaults to 24px (compact) or 32px.
|
|
919
|
-
* Only applies when `groupBy` is set.
|
|
920
|
-
*/
|
|
921
|
-
headerHeight?: number;
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* Apply error styling to the select.
|
|
925
|
-
*/
|
|
926
|
-
hasErrors?: boolean;
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* Explicit id for the input element. Used to generate ids for listbox and options.
|
|
930
|
-
*/
|
|
931
|
-
id?: HTMLAttributes['id'];
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* Array of items or function to load them asynchronously.
|
|
935
|
-
* Functions receive `(query, prefill, modelValue)` and can return a promise.
|
|
936
|
-
* Please check out {@link https://ui-components-docs.vercel.app/it/guides/fetch-data | the docs} for more information.
|
|
937
|
-
* @defaultValue `[]`
|
|
938
|
-
*/
|
|
939
|
-
items:
|
|
940
|
-
| Item[]
|
|
941
|
-
| ((query: string, prefill: boolean, modelValue: any[]) => Promise<Item[]>)
|
|
942
|
-
| ((query: string, prefill: boolean, modelValue: any[]) => Item[]);
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Height of the options in the listbox (px). Necessary for option virtualization.
|
|
946
|
-
* @defaultValue `40`
|
|
947
|
-
*/
|
|
948
|
-
itemHeight?: number;
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Path to item property for display text or function to extract it.
|
|
952
|
-
*/
|
|
953
|
-
itemText?: string | ((item: Item) => string) | undefined;
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Defines a path that returns a property of the object to use as value or a function that returns any value.
|
|
957
|
-
*/
|
|
958
|
-
itemValue?: string | ((item: Item) => string) | undefined;
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Display the loading state styles.
|
|
962
|
-
*/
|
|
963
|
-
loading?: boolean;
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* Message shown while items are being loaded.
|
|
967
|
-
*/
|
|
968
|
-
loadingText?: string;
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* Maximum number of selectable items (limits selection when `multiple` is true).
|
|
972
|
-
* @defaultValue `Infinity`
|
|
973
|
-
*/
|
|
974
|
-
max?: number;
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* Maximum number of selected items to show as individual labels before collapsing.
|
|
978
|
-
* @defaultValue `Infinity`
|
|
979
|
-
*/
|
|
980
|
-
maxSelectedLabels?: number;
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* v-model value. Single value for single select, array for multiple select.
|
|
984
|
-
*/
|
|
985
|
-
modelValue: any;
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* Debounce delay (ms) for modelValue change handling.
|
|
989
|
-
* @defaultValue `0`
|
|
990
|
-
*/
|
|
991
|
-
modelValueDebounceTime?: number;
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* Enable multiple item selection. When true, modelValue must be an array.
|
|
995
|
-
*/
|
|
996
|
-
multiple?: boolean;
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* Name attribute forwarded to the input element.
|
|
1000
|
-
*/
|
|
1001
|
-
name?: InputHTMLAttributes['name'];
|
|
1002
|
-
|
|
1003
|
-
/**
|
|
1004
|
-
* Message displayed when no items are available.
|
|
1005
|
-
*/
|
|
1006
|
-
noDataText?: string;
|
|
1007
|
-
|
|
1008
|
-
/**
|
|
1009
|
-
* Placeholder text when no value is selected.
|
|
1010
|
-
*/
|
|
1011
|
-
placeholder?: InputHTMLAttributes['placeholder'];
|
|
1012
|
-
|
|
1013
|
-
/**
|
|
1014
|
-
* Controls when items are pre-loaded.
|
|
1015
|
-
* `'focus'` loads on first focus, `true` loads immediately, `false` loads only on search.
|
|
1016
|
-
* @defaultValue `'focus'`
|
|
1017
|
-
*/
|
|
1018
|
-
prefill?: boolean | 'focus';
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* Name of the icon to render at the left hand side of the input.
|
|
1022
|
-
*/
|
|
1023
|
-
// eslint-disable-next-line vue/prop-name-casing
|
|
1024
|
-
'prepend:icon'?: IconType;
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* Debounce delay (ms) before triggering search queries after user input stops.
|
|
1028
|
-
* @defaultValue `500`
|
|
1029
|
-
*/
|
|
1030
|
-
queryDebounceTime?: number;
|
|
1031
|
-
|
|
1032
|
-
/**
|
|
1033
|
-
* Make the input read-only while keeping the dropdown accessible.
|
|
1034
|
-
*/
|
|
1035
|
-
readonly?: boolean;
|
|
1036
|
-
|
|
1037
|
-
/**
|
|
1038
|
-
* Mark the input as required for form validation.
|
|
1039
|
-
*/
|
|
1040
|
-
required?: boolean;
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* Show the dropdown chevron icon.
|
|
1044
|
-
* @defaultValue `true`
|
|
1045
|
-
*/
|
|
1046
|
-
showChevron?: boolean;
|
|
1047
|
-
|
|
1048
|
-
/**
|
|
1049
|
-
* Accumulate selected items across searches instead of replacing them.
|
|
1050
|
-
* Useful when searching large databases where selections should persist.
|
|
1051
|
-
*/
|
|
1052
|
-
stash?: boolean;
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* Function to generate a summary label when selected items exceed `maxSelectedLabels`.
|
|
1056
|
-
* Receives the total count and returns display text.
|
|
1057
|
-
*/
|
|
1058
|
-
selectedLabelsFn?: (count: number) => string;
|
|
1059
|
-
|
|
1060
|
-
/**
|
|
1061
|
-
* Transition duration (ms) for dropdown show/hide animations.
|
|
1062
|
-
* @defaultValue `300`
|
|
1063
|
-
*/
|
|
1064
|
-
transitionDuration?: number;
|
|
1065
|
-
|
|
1066
|
-
/**
|
|
1067
|
-
* Force dropdown repositioning on every animation frame (expensive, use sparingly).
|
|
1068
|
-
* @defaultValue `false`
|
|
1069
|
-
*/
|
|
1070
|
-
updateOnAnimationFrame?: boolean;
|
|
1071
|
-
};
|
|
1072
|
-
|
|
1073
|
-
export type BaseSelectEvents = {
|
|
1074
|
-
/**
|
|
1075
|
-
* Emitted when the search input loses focus.
|
|
1076
|
-
* Forwards the original DOM `FocusEvent`.
|
|
1077
|
-
*/
|
|
1078
|
-
(e: 'blur', event: FocusEvent): void;
|
|
1079
|
-
/**
|
|
1080
|
-
* Emitted when the input fires a change event.
|
|
1081
|
-
* Forwards the original DOM `Event`.
|
|
1082
|
-
*/
|
|
1083
|
-
(e: 'change', event: Event): void;
|
|
1084
|
-
/**
|
|
1085
|
-
* Emitted when the input receives a click interaction.
|
|
1086
|
-
* Forwards the original DOM `MouseEvent`.
|
|
1087
|
-
*/
|
|
1088
|
-
(e: 'click', event: MouseEvent): void;
|
|
1089
|
-
/**
|
|
1090
|
-
* Emitted when the search input gains focus.
|
|
1091
|
-
* Forwards the original DOM `FocusEvent`.
|
|
1092
|
-
*/
|
|
1093
|
-
(e: 'focus', event: FocusEvent): void;
|
|
1094
|
-
/**
|
|
1095
|
-
* Emitted when focus/click moves outside the component after it was active.
|
|
1096
|
-
*/
|
|
1097
|
-
(e: 'inactive'): void;
|
|
1098
|
-
/**
|
|
1099
|
-
* Emitted on native input events from the search field.
|
|
1100
|
-
* Forwards the original DOM `Event`.
|
|
1101
|
-
*/
|
|
1102
|
-
(e: 'input', event: Event): void;
|
|
1103
|
-
/**
|
|
1104
|
-
* Emitted with the new selected value(s) whenever the selection changes.
|
|
1105
|
-
* Single value for single-select, array for multiple-select.
|
|
1106
|
-
*/
|
|
1107
|
-
(e: 'update:modelValue', value: any): void;
|
|
1108
|
-
/**
|
|
1109
|
-
* Emitted when the user confirms a manually typed string that does not match any option.
|
|
1110
|
-
* Useful for "add new" patterns.
|
|
1111
|
-
*/
|
|
1112
|
-
(e: 'option:add', text: string): void;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* Props exposed by slots that receive the current search query and a focus callback
|
|
1117
|
-
* (`append`, `prepend`, `no-data`).
|
|
1118
|
-
*/
|
|
1119
|
-
export type BaseSelectQueryFocusSlotProps = {
|
|
1120
|
-
/**
|
|
1121
|
-
* The current text typed in the search input.
|
|
1122
|
-
*/
|
|
1123
|
-
query: string;
|
|
1124
|
-
/**
|
|
1125
|
-
* Focuses the search input.
|
|
1126
|
-
*/
|
|
1127
|
-
focus: () => void;
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* Props exposed by slots that receive only the current search query
|
|
1132
|
-
* (`append-outer`, `prepend-outer`, `loading`).
|
|
1133
|
-
*/
|
|
1134
|
-
export type BaseSelectQueryOnlySlotProps = {
|
|
1135
|
-
/**
|
|
1136
|
-
* The current text typed in the search input.
|
|
1137
|
-
*/
|
|
1138
|
-
query: string;
|
|
1139
|
-
};
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* Props exposed by the `chevron` slot.
|
|
1143
|
-
*/
|
|
1144
|
-
export type BaseSelectChevronSlotProps = {
|
|
1145
|
-
/**
|
|
1146
|
-
* Whether the component is currently loading options.
|
|
1147
|
-
*/
|
|
1148
|
-
loading: boolean;
|
|
1149
|
-
/**
|
|
1150
|
-
* Whether the dropdown panel is currently open.
|
|
1151
|
-
*/
|
|
1152
|
-
shown: boolean;
|
|
1153
|
-
};
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* Props exposed by the `chip` slot for each selected item when `multiple` is true.
|
|
1157
|
-
*/
|
|
1158
|
-
export type BaseSelectChipSlotProps = {
|
|
1159
|
-
/**
|
|
1160
|
-
* Whether this chip's remove action is disabled.
|
|
1161
|
-
*/
|
|
1162
|
-
disabled: boolean | undefined;
|
|
1163
|
-
/**
|
|
1164
|
-
* Whether the select is in an error state.
|
|
1165
|
-
*/
|
|
1166
|
-
hasErrors?: boolean;
|
|
1167
|
-
/**
|
|
1168
|
-
* The zero-based index of this chip among the selected items.
|
|
1169
|
-
*/
|
|
1170
|
-
index: number;
|
|
1171
|
-
/**
|
|
1172
|
-
* The raw selected item from the `items` prop.
|
|
1173
|
-
*/
|
|
1174
|
-
item: any;
|
|
1175
|
-
/**
|
|
1176
|
-
* Whether the component is currently loading.
|
|
1177
|
-
*/
|
|
1178
|
-
loading: boolean;
|
|
1179
|
-
/**
|
|
1180
|
-
* Whether the item was added manually (typed by the user).
|
|
1181
|
-
*/
|
|
1182
|
-
manual: boolean;
|
|
1183
|
-
/**
|
|
1184
|
-
* Whether this chip is in a selected state.
|
|
1185
|
-
*/
|
|
1186
|
-
selected: boolean | undefined;
|
|
1187
|
-
/**
|
|
1188
|
-
* The resolved display text for this selected item.
|
|
1189
|
-
*/
|
|
1190
|
-
text: string;
|
|
1191
|
-
/**
|
|
1192
|
-
* The resolved value for this selected item.
|
|
1193
|
-
*/
|
|
1194
|
-
value: any;
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* Props exposed by the `option` slot for each item in the dropdown list.
|
|
1199
|
-
*/
|
|
1200
|
-
export type BaseSelectOptionSlotProps<Item = any> = {
|
|
1201
|
-
/**
|
|
1202
|
-
* Whether this option is disabled.
|
|
1203
|
-
*/
|
|
1204
|
-
disabled: boolean;
|
|
1205
|
-
/**
|
|
1206
|
-
* Whether this option is currently keyboard-focused.
|
|
1207
|
-
*/
|
|
1208
|
-
focused: boolean;
|
|
1209
|
-
/**
|
|
1210
|
-
* The zero-based index of this option in the list.
|
|
1211
|
-
*/
|
|
1212
|
-
index: number;
|
|
1213
|
-
/**
|
|
1214
|
-
* Whether the select is in an error state.
|
|
1215
|
-
*/
|
|
1216
|
-
hasErrors?: boolean;
|
|
1217
|
-
/**
|
|
1218
|
-
* The raw item from the `items` prop.
|
|
1219
|
-
*/
|
|
1220
|
-
item: Item;
|
|
1221
|
-
/**
|
|
1222
|
-
* Whether the component is currently loading.
|
|
1223
|
-
*/
|
|
1224
|
-
loading: boolean;
|
|
1225
|
-
/**
|
|
1226
|
-
* Whether this option is currently selected.
|
|
1227
|
-
*/
|
|
1228
|
-
selected: boolean;
|
|
1229
|
-
/**
|
|
1230
|
-
* The resolved display text for this option.
|
|
1231
|
-
*/
|
|
1232
|
-
text: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* The resolved value for this option.
|
|
1235
|
-
*/
|
|
1236
|
-
value: any;
|
|
1237
|
-
};
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Props exposed by the `group` slot for each group header in the dropdown list.
|
|
1241
|
-
*/
|
|
1242
|
-
export type BaseSelectGroupSlotProps<Item = any> = {
|
|
1243
|
-
/**
|
|
1244
|
-
* The display text for this group.
|
|
1245
|
-
*/
|
|
1246
|
-
text: string;
|
|
1247
|
-
/**
|
|
1248
|
-
* The raw group item from the `items` prop.
|
|
1249
|
-
*/
|
|
1250
|
-
item: Item;
|
|
1251
|
-
/**
|
|
1252
|
-
* The zero-based index of this group in the list.
|
|
1253
|
-
*/
|
|
1254
|
-
index: number;
|
|
1255
|
-
/**
|
|
1256
|
-
* The number of options in this group.
|
|
1257
|
-
*/
|
|
1258
|
-
length: number;
|
|
1259
|
-
/**
|
|
1260
|
-
* Whether this group is disabled.
|
|
1261
|
-
*/
|
|
1262
|
-
disabled: boolean;
|
|
1263
|
-
};
|
|
1264
|
-
|
|
1265
|
-
/**
|
|
1266
|
-
* Props exposed by dropdown panel boundary slots
|
|
1267
|
-
* (`options:append`, `options:append:outer`, `options:prepend`, `options:prepend:outer`).
|
|
1268
|
-
*/
|
|
1269
|
-
export type BaseSelectFocusSlotProps = {
|
|
1270
|
-
/**
|
|
1271
|
-
* Focuses the search input.
|
|
1272
|
-
*/
|
|
1273
|
-
focus: () => void;
|
|
1274
|
-
/**
|
|
1275
|
-
* Closes the dropdown popover.
|
|
1276
|
-
*/
|
|
1277
|
-
close?: () => Promise<void>;
|
|
1278
|
-
};
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
* Props exposed by inner options panel slots (`options:append`, `options:prepend`).
|
|
1282
|
-
*/
|
|
1283
|
-
export type BaseSelectOptionsPanelSlotProps = BaseSelectFocusSlotProps & {
|
|
1284
|
-
/**
|
|
1285
|
-
* Closes the dropdown popover.
|
|
1286
|
-
*/
|
|
1287
|
-
close: () => Promise<void>;
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
export type BaseSelectSlots<Item = any> = {
|
|
1291
|
-
/**
|
|
1292
|
-
* Content rendered after the input area, at the end of the inner container.
|
|
1293
|
-
*/
|
|
1294
|
-
append?: (props: BaseSelectQueryFocusSlotProps) => any;
|
|
1295
|
-
/**
|
|
1296
|
-
* Content rendered after the entire select control, outside the input chrome.
|
|
1297
|
-
*/
|
|
1298
|
-
'append-outer'?: (props: BaseSelectQueryOnlySlotProps) => any;
|
|
1299
|
-
/**
|
|
1300
|
-
* Replaces the default dropdown chevron/arrow icon.
|
|
1301
|
-
*/
|
|
1302
|
-
chevron?: (props: BaseSelectChevronSlotProps) => any;
|
|
1303
|
-
/**
|
|
1304
|
-
* Replaces the chip rendered for each selected item when `multiple` is true.
|
|
1305
|
-
*/
|
|
1306
|
-
chip?: (props: BaseSelectChipSlotProps) => any;
|
|
1307
|
-
/**
|
|
1308
|
-
* Replaces the default loading indicator rendered inside the dropdown while options are fetching.
|
|
1309
|
-
*/
|
|
1310
|
-
loading?: (props: BaseSelectQueryOnlySlotProps) => any;
|
|
1311
|
-
/**
|
|
1312
|
-
* Replaces the default "no data" message rendered inside the dropdown when no options match.
|
|
1313
|
-
*/
|
|
1314
|
-
'no-data'?: (props: BaseSelectQueryFocusSlotProps) => any;
|
|
1315
|
-
/**
|
|
1316
|
-
* Replaces the default option row rendered for each item in the dropdown list.
|
|
1317
|
-
*/
|
|
1318
|
-
option?: (props: BaseSelectOptionSlotProps<Item>) => any;
|
|
1319
|
-
/**
|
|
1320
|
-
* Replaces the default group header row rendered above options that belong to a group.
|
|
1321
|
-
*/
|
|
1322
|
-
group?: (props: BaseSelectGroupSlotProps<Item>) => any;
|
|
1323
|
-
/**
|
|
1324
|
-
* Content rendered after the option list, inside the dropdown panel.
|
|
1325
|
-
*/
|
|
1326
|
-
'options:append'?: (props: BaseSelectOptionsPanelSlotProps) => any;
|
|
1327
|
-
/**
|
|
1328
|
-
* Content rendered after the dropdown panel, outside the scrollable options area.
|
|
1329
|
-
*/
|
|
1330
|
-
'options:append:outer'?: (props: BaseSelectFocusSlotProps) => any;
|
|
1331
|
-
/**
|
|
1332
|
-
* Content rendered before the option list, inside the dropdown panel.
|
|
1333
|
-
*/
|
|
1334
|
-
'options:prepend'?: (props: BaseSelectOptionsPanelSlotProps) => any;
|
|
1335
|
-
/**
|
|
1336
|
-
* Content rendered before the dropdown panel, outside the scrollable options area.
|
|
1337
|
-
*/
|
|
1338
|
-
'options:prepend:outer'?: (props: BaseSelectFocusSlotProps) => any;
|
|
1339
|
-
/**
|
|
1340
|
-
* Inline content rendered at the start of the input field area, before the selected value text.
|
|
1341
|
-
*/
|
|
1342
|
-
prefix?: (props: object) => any;
|
|
1343
|
-
/**
|
|
1344
|
-
* Content rendered before the input area, at the start of the inner container.
|
|
1345
|
-
*/
|
|
1346
|
-
prepend?: (props: BaseSelectQueryFocusSlotProps) => any;
|
|
1347
|
-
/**
|
|
1348
|
-
* Content rendered before the entire select control, outside the input chrome.
|
|
1349
|
-
*/
|
|
1350
|
-
'prepend-outer'?: (props: BaseSelectQueryOnlySlotProps) => any;
|
|
1351
|
-
/**
|
|
1352
|
-
* Inline content rendered at the end of the input field area, after the selected value text.
|
|
1353
|
-
*/
|
|
1354
|
-
suffix?: (props: object) => any;
|
|
1355
|
-
};
|
|
1356
|
-
```
|
|
1357
|
-
|
|
1358
|
-
## Styles
|
|
1359
|
-
|
|
1360
|
-
```css
|
|
1361
|
-
.bb-base-select {
|
|
1362
|
-
/* Get the inner height based on the largest contained element this is not to be edited with arbitrary values */
|
|
1363
|
-
--bb-input-inner-h: max(
|
|
1364
|
-
calc(var(--bb-leading) + var(--bb-input-py) * 2),
|
|
1365
|
-
calc(var(--bb-input-h) - 2px),
|
|
1366
|
-
var(--bb-input-icon)
|
|
1367
|
-
);
|
|
1368
|
-
--floating-py: calc((var(--bb-input-inner-h) - var(--bb-input-icon)) / 2);
|
|
1369
|
-
--bb-arrow: 0;
|
|
1370
|
-
box-sizing: border-box;
|
|
1371
|
-
display: inline-flex;
|
|
1372
|
-
scroll-margin: 10px;
|
|
1373
|
-
width: 100%;
|
|
1374
|
-
|
|
1375
|
-
&--active {
|
|
1376
|
-
.bb-base-select__text-input {
|
|
1377
|
-
/* Approximate the length of the text as min width so the character doesn't go into a newline as often*/
|
|
1378
|
-
min-width: min(100%, calc(var(--characters) * 12px));
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
&--loading {
|
|
1382
|
-
}
|
|
1383
|
-
&--disabled {
|
|
1384
|
-
}
|
|
1385
|
-
&--errors {
|
|
1386
|
-
}
|
|
1387
|
-
&--readonly {
|
|
1388
|
-
}
|
|
1389
|
-
&--compact {
|
|
1390
|
-
--floating-py: var(--bb-input-compact-floating-py);
|
|
1391
|
-
|
|
1392
|
-
.bb-chipsbox-item {
|
|
1393
|
-
min-height: 20px;
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
&--shown {
|
|
1398
|
-
.bb-base-select__chevron {
|
|
1399
|
-
transform: rotate(180deg);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
.bb-smooth-height {
|
|
1404
|
-
align-self: center;
|
|
1405
|
-
text-align: left;
|
|
1406
|
-
width: 100%;
|
|
1407
|
-
}
|
|
1408
|
-
.bb-base-select__inner-wrapper {
|
|
1409
|
-
display: block;
|
|
1410
|
-
flex: 1 1 auto;
|
|
1411
|
-
|
|
1412
|
-
.bb-common-input-inner-container {
|
|
1413
|
-
position: relative;
|
|
1414
|
-
align-items: flex-start;
|
|
1415
|
-
width: 100%;
|
|
1416
|
-
|
|
1417
|
-
> .bb-clearable-button {
|
|
1418
|
-
margin-top: var(--floating-py);
|
|
1419
|
-
}
|
|
1420
|
-
> .bb-spinner {
|
|
1421
|
-
margin-top: var(--floating-py);
|
|
1422
|
-
}
|
|
1423
|
-
> .bb-error-icon {
|
|
1424
|
-
margin-top: var(--floating-py);
|
|
1425
|
-
}
|
|
1426
|
-
> .bb-common-input-inner-container__prepend-icon,
|
|
1427
|
-
> .bb-common-input-inner-container__append-icon {
|
|
1428
|
-
margin-top: var(--floating-py);
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
> .bb-common-input-inner-container__prefix,
|
|
1432
|
-
> .bb-common-input-inner-container__suffix {
|
|
1433
|
-
height: var(--bb-input-inner-h);
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
:last-child:not(.bb-error-icon) {
|
|
1437
|
-
order: 1;
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
.bb-listbox {
|
|
1442
|
-
--option-h: var(--option-height);
|
|
1443
|
-
display: block;
|
|
1444
|
-
|
|
1445
|
-
&.bb-listbox--open {
|
|
1446
|
-
transition: min-height 0s 0s;
|
|
1447
|
-
|
|
1448
|
-
.bb-listbox__outer-container {
|
|
1449
|
-
grid-template-rows: 1fr;
|
|
1450
|
-
opacity: 1;
|
|
1451
|
-
transition-delay: 0s, 00ms;
|
|
1452
|
-
|
|
1453
|
-
> * {
|
|
1454
|
-
opacity: 1;
|
|
1455
|
-
transition-delay: calc(var(--transition-duration) * 0.8);
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
&.bb-listbox--no-data {
|
|
1460
|
-
.bb-listbox__outer-container {
|
|
1461
|
-
.bb-listbox__inner-container {
|
|
1462
|
-
.bb-listbox__no-data {
|
|
1463
|
-
display: block;
|
|
1464
|
-
}
|
|
1465
|
-
}
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
&.bb-listbox--loading {
|
|
1469
|
-
.bb-listbox__outer-container {
|
|
1470
|
-
.bb-listbox__inner-container {
|
|
1471
|
-
.bb-listbox__loading {
|
|
1472
|
-
display: block;
|
|
1473
|
-
text-align: left;
|
|
1474
|
-
}
|
|
1475
|
-
.bb-listbox__loading {
|
|
1476
|
-
display: hidden;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
&.bb-listbox--multiple {
|
|
1483
|
-
.autocomplete-option__checkbox {
|
|
1484
|
-
display: inline-block !important;
|
|
1485
|
-
}
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
.bb-listbox__outer-container {
|
|
1489
|
-
background-color: var(--bb-panel);
|
|
1490
|
-
border-color: var(--bb-primary);
|
|
1491
|
-
border-radius: var(--bb-radius);
|
|
1492
|
-
border-width: 0px;
|
|
1493
|
-
display: grid;
|
|
1494
|
-
grid-template-rows: 0fr;
|
|
1495
|
-
opacity: 0;
|
|
1496
|
-
transition-delay: calc(var(--transition-duration) * 0.25), 0s, 0s;
|
|
1497
|
-
transition-duration:
|
|
1498
|
-
var(--transition-duration), calc(var(--transition-duration) * 1.4),
|
|
1499
|
-
var(--transition-duration);
|
|
1500
|
-
transition-property: grid-template-rows, opacity, border;
|
|
1501
|
-
|
|
1502
|
-
> * {
|
|
1503
|
-
opacity: 0;
|
|
1504
|
-
transition-delay: 0s;
|
|
1505
|
-
transition-duration: calc(var(--transition-duration) * 2);
|
|
1506
|
-
transition-property: opacity;
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
.bb-listbox__inner-container {
|
|
1510
|
-
overflow: auto;
|
|
1511
|
-
text-align: left;
|
|
1512
|
-
/* Always show options up to the bottom of the screen, but not more than 6 options */
|
|
1513
|
-
max-height: min(
|
|
1514
|
-
calc(var(--option-h) * 6),
|
|
1515
|
-
calc(round(down, calc(100dvh - 130px), var(--option-h)) - 1px)
|
|
1516
|
-
);
|
|
1517
|
-
|
|
1518
|
-
.bb-listbox__loading,
|
|
1519
|
-
.bb-listbox__no-data {
|
|
1520
|
-
color: var(--bb-text);
|
|
1521
|
-
display: none;
|
|
1522
|
-
padding-bottom: var(--bb-select-option-py);
|
|
1523
|
-
padding-left: var(--bb-select-option-px);
|
|
1524
|
-
padding-right: var(--bb-select-option-px);
|
|
1525
|
-
padding-top: var(--bb-select-option-py);
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
span[role='listbox'] {
|
|
1529
|
-
position: relative;
|
|
1530
|
-
width: 100%;
|
|
1531
|
-
display: block;
|
|
1532
|
-
|
|
1533
|
-
.bb-listbox__group {
|
|
1534
|
-
left: 0;
|
|
1535
|
-
position: absolute;
|
|
1536
|
-
top: 0;
|
|
1537
|
-
width: 100%;
|
|
1538
|
-
display: block;
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
.bb-listbox__group-header {
|
|
1542
|
-
display: flex;
|
|
1543
|
-
align-items: center;
|
|
1544
|
-
height: var(--group-header-height, 32px);
|
|
1545
|
-
padding-left: var(--bb-select-option-px);
|
|
1546
|
-
padding-right: var(--bb-select-option-px);
|
|
1547
|
-
|
|
1548
|
-
user-select: none;
|
|
1549
|
-
|
|
1550
|
-
.bb-listbox__group-header-label {
|
|
1551
|
-
display: flex;
|
|
1552
|
-
align-items: center;
|
|
1553
|
-
gap: 16px;
|
|
1554
|
-
flex: auto;
|
|
1555
|
-
text-align: left;
|
|
1556
|
-
overflow: hidden;
|
|
1557
|
-
text-overflow: ellipsis;
|
|
1558
|
-
white-space: nowrap;
|
|
1559
|
-
color: color-mix(in srgb, var(--bb-text) 50%, transparent);
|
|
1560
|
-
font-size: 0.75rem;
|
|
1561
|
-
font-weight: 600;
|
|
1562
|
-
letter-spacing: 0.025em;
|
|
1563
|
-
text-transform: uppercase;
|
|
1564
|
-
|
|
1565
|
-
&::after {
|
|
1566
|
-
content: '';
|
|
1567
|
-
display: block;
|
|
1568
|
-
width: 100%;
|
|
1569
|
-
height: 1px;
|
|
1570
|
-
background-color: var(--bb-border);
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
.bb-listbox__option {
|
|
1576
|
-
left: 0;
|
|
1577
|
-
position: absolute;
|
|
1578
|
-
display: block;
|
|
1579
|
-
top: 0;
|
|
1580
|
-
width: 100%;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
.bb-listbox__group > .bb-listbox__option {
|
|
1584
|
-
position: static;
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
.autocomplete-option {
|
|
1588
|
-
--bg-opacity: 0;
|
|
1589
|
-
--bg-base-color: var(--bb-text);
|
|
1590
|
-
align-items: center;
|
|
1591
|
-
background-color: color-mix(
|
|
1592
|
-
in srgb,
|
|
1593
|
-
var(--bg-base-color) calc(100% * var(--bg-opacity)),
|
|
1594
|
-
transparent
|
|
1595
|
-
);
|
|
1596
|
-
color: var(--bb-text);
|
|
1597
|
-
cursor: pointer;
|
|
1598
|
-
display: flex;
|
|
1599
|
-
flex-grow: 1;
|
|
1600
|
-
gap: 8px;
|
|
1601
|
-
height: var(--option-h);
|
|
1602
|
-
padding-left: var(--bb-select-option-px);
|
|
1603
|
-
padding-right: var(--bb-select-option-px);
|
|
1604
|
-
transition-duration: 250ms;
|
|
1605
|
-
transition-property: color, background-color;
|
|
1606
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1607
|
-
width: 100%;
|
|
1608
|
-
|
|
1609
|
-
&:hover:not(.autocomplete-option--disabled) {
|
|
1610
|
-
--bg-opacity: 0.05;
|
|
1611
|
-
--bg-base-color: var(--bb-text);
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
&--focused {
|
|
1615
|
-
--bg-opacity: 0.15;
|
|
1616
|
-
--bg-base-color: var(--bb-text);
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
&--focused:hover:not(.autocomplete-option--disabled) {
|
|
1620
|
-
--bg-opacity: 0.2;
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
&--selected {
|
|
1624
|
-
--bg-opacity: 0.1;
|
|
1625
|
-
--bg-base-color: var(--bb-primary) !important;
|
|
1626
|
-
color: var(--bb-primary);
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
&--selected:hover:not(.autocomplete-option--disabled) {
|
|
1630
|
-
--bg-opacity: 0.15;
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
&--selected.autocomplete-option--focused {
|
|
1634
|
-
--bg-opacity: 0.2;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
&--selected.autocomplete-option--focused:hover:not(
|
|
1638
|
-
.autocomplete-option--disabled
|
|
1639
|
-
) {
|
|
1640
|
-
--bg-opacity: 0.2;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
&--disabled {
|
|
1644
|
-
cursor: not-allowed;
|
|
1645
|
-
opacity: 0.5;
|
|
1646
|
-
|
|
1647
|
-
.autocomplete-option__checkbox.autocomplete-option__checkbox {
|
|
1648
|
-
background-color: var(--bb-panel-disabled);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
.autocomplete-option__checkbox {
|
|
1653
|
-
pointer-events: none;
|
|
1654
|
-
display: none;
|
|
1655
|
-
width: 16px;
|
|
1656
|
-
height: 16px;
|
|
1657
|
-
background-color: var(--bb-panel);
|
|
1658
|
-
border-color: var(--bb-border);
|
|
1659
|
-
border-radius: min(6px, var(--bb-radius));
|
|
1660
|
-
border-style: solid;
|
|
1661
|
-
border-width: 1px;
|
|
1662
|
-
margin-left: -6px;
|
|
1663
|
-
transition-duration: 300ms;
|
|
1664
|
-
transition-property:
|
|
1665
|
-
color, background-color, border-color, text-decoration-color,
|
|
1666
|
-
box-shadow;
|
|
1667
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1668
|
-
|
|
1669
|
-
path {
|
|
1670
|
-
stroke: var(--bb-contrasting);
|
|
1671
|
-
stroke-dasharray: 105;
|
|
1672
|
-
stroke-dashoffset: 105;
|
|
1673
|
-
transition: stroke-dashoffset 0.3s;
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
|
|
1677
|
-
.autocomplete-option__label {
|
|
1678
|
-
display: block;
|
|
1679
|
-
flex: auto;
|
|
1680
|
-
text-align: left;
|
|
1681
|
-
overflow: hidden;
|
|
1682
|
-
text-overflow: ellipsis;
|
|
1683
|
-
white-space: nowrap;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
&.autocomplete-option--selected {
|
|
1687
|
-
.autocomplete-option__checkbox {
|
|
1688
|
-
background-color: var(--bb-primary);
|
|
1689
|
-
border-color: var(--bb-primary);
|
|
1690
|
-
|
|
1691
|
-
path {
|
|
1692
|
-
stroke-dashoffset: 0;
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
&__input-container {
|
|
1703
|
-
display: flex;
|
|
1704
|
-
flex-wrap: wrap;
|
|
1705
|
-
gap: 0.25rem;
|
|
1706
|
-
padding-bottom: var(--bb-input-py);
|
|
1707
|
-
padding-top: var(--bb-input-py);
|
|
1708
|
-
}
|
|
1709
|
-
&__max-reached {
|
|
1710
|
-
border-right: 1px solid var(--bb-border);
|
|
1711
|
-
color: var(--bb-input-color);
|
|
1712
|
-
font-size: var(--bb-input-font-size);
|
|
1713
|
-
padding-right: 4px;
|
|
1714
|
-
}
|
|
1715
|
-
.bb-chipsbox-item {
|
|
1716
|
-
position: relative;
|
|
1717
|
-
z-index: 1;
|
|
1718
|
-
}
|
|
1719
|
-
.bb-commabox-item {
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
.bb-base-select__text-input {
|
|
1723
|
-
flex-basis: 0px !important;
|
|
1724
|
-
flex-grow: 1 !important;
|
|
1725
|
-
flex-shrink: 10000 !important;
|
|
1726
|
-
margin-bottom: 0px;
|
|
1727
|
-
margin-top: 0px;
|
|
1728
|
-
min-width: 0;
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
&__chevron {
|
|
1732
|
-
background-color: inherit;
|
|
1733
|
-
color: var(--bb-icon-color);
|
|
1734
|
-
flex-shrink: 0;
|
|
1735
|
-
margin-top: var(--floating-py);
|
|
1736
|
-
order: 1;
|
|
1737
|
-
transform: rotate(0deg);
|
|
1738
|
-
transition: transform 0.2s ease-in-out;
|
|
1739
|
-
width: var(--bb-input-icon);
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
```
|