bitboss-ui 3.0.0-beta.67 → 3.0.0-beta.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/bitboss-ui-mcp.mjs +87 -19
- package/bin/bitboss-ui.mjs +6 -2
- package/dist/ai/BbAlert.md +15 -11
- package/dist/ai/BbAsterisk.md +1 -1
- package/dist/ai/BbAvatar.md +2 -2
- package/dist/ai/BbBadge.md +4 -4
- package/dist/ai/BbBaseCheckboxIcon.md +4 -0
- package/dist/ai/BbBaseRadioIcon.md +7 -3
- package/dist/ai/BbBaseSwitchIcon.md +11 -2
- package/dist/ai/BbBreadcrumbs.md +2 -2
- package/dist/ai/BbButton.md +62 -9
- package/dist/ai/BbCalendar.md +1 -1
- package/dist/ai/BbCheckbox.md +23 -5
- package/dist/ai/BbCheckboxGroup.md +52 -25
- package/dist/ai/BbColorInput.md +13 -12
- package/dist/ai/BbColorPalette.md +5 -5
- package/dist/ai/BbConfigScope.md +218 -0
- package/dist/ai/BbConfirm.md +24 -21
- package/dist/ai/BbDatePicker.md +4 -4
- package/dist/ai/BbDatePickerInput.md +16 -15
- package/dist/ai/BbDialog.md +10 -9
- package/dist/ai/BbDropdown.md +26 -16
- package/dist/ai/BbDropdownButton.md +18 -18
- package/dist/ai/BbDropzone.md +1 -1
- package/dist/ai/BbForm.md +6 -4
- package/dist/ai/BbHost.md +19 -13
- package/dist/ai/BbIcon.md +3 -3
- package/dist/ai/BbIndicator.md +4 -4
- package/dist/ai/BbNumberInput.md +17 -13
- package/dist/ai/BbOffCanvas.md +4 -3
- package/dist/ai/BbPagination.md +10 -2
- package/dist/ai/BbPopover.md +5 -5
- package/dist/ai/BbRadio.md +23 -4
- package/dist/ai/BbRadioGroup.md +69 -30
- package/dist/ai/BbRating.md +5 -5
- package/dist/ai/BbSelect.md +74 -39
- package/dist/ai/BbSelectPopover.md +28 -26
- package/dist/ai/BbSlider.md +258 -61
- package/dist/ai/BbSpinner.md +2 -2
- package/dist/ai/BbSwitch.md +27 -4
- package/dist/ai/BbSwitchGroup.md +22 -13
- package/dist/ai/BbTable.md +10 -5
- package/dist/ai/BbTabs.md +6 -6
- package/dist/ai/BbTabsRoot.md +1 -1
- package/dist/ai/BbTag.md +12 -11
- package/dist/ai/BbTextInput.md +25 -17
- package/dist/ai/BbTextarea.md +15 -14
- package/dist/ai/BbTimePicker.md +3 -3
- package/dist/ai/BbTimePickerInput.md +12 -11
- package/dist/ai/BbToast.md +65 -26
- package/dist/ai/BbTooltip.md +2 -2
- package/dist/ai/CommonField.md +2 -2
- package/dist/ai/CommonFieldInput.md +2 -1
- package/dist/ai/FlatListBox.md +4 -3
- package/dist/ai/GroupedListBox.md +4 -3
- package/dist/ai/ListBox.md +5 -4
- package/dist/ai/OptionsContainer.md +17 -1
- package/dist/ai/changelog.json +454 -7
- package/dist/ai/components.json +77 -69
- package/dist/ai/composables/useBbConfig.md +3 -3
- package/dist/ai/composables/useBbDialog.md +1 -1
- package/dist/ai/composables/useBbFormField.md +1 -1
- package/dist/ai/composables/useConfirm.md +1 -1
- package/dist/ai/composables/useToast.md +16 -16
- package/dist/ai/design-tokens.json +10 -5
- package/dist/ai/guides/agent-contract.md +8 -8
- package/dist/ai/guides/ai-router.md +1 -1
- package/dist/ai/guides/app-layout.md +1 -1
- package/dist/ai/guides/design-language.md +17 -13
- package/dist/ai/guides/design-tokens.md +81 -42
- package/dist/ai/guides/eslint-rules.md +3 -1
- package/dist/ai/guides/fetch-items-playbook.md +1 -1
- package/dist/ai/guides/icons-policy.md +1 -1
- package/dist/ai/guides/inline-edit-playbook.md +1 -1
- package/dist/ai/guides/installation-and-plugin-setup.md +335 -161
- package/dist/ai/guides/migration/adoption-checklist.md +5 -5
- package/dist/ai/guides/migration/components/bb-alert.md +2 -2
- package/dist/ai/guides/migration/components/bb-badge.md +1 -1
- package/dist/ai/guides/migration/components/bb-checkbox-group.md +15 -15
- package/dist/ai/guides/migration/components/bb-dialog.md +2 -2
- package/dist/ai/guides/migration/components/bb-dropdown.md +1 -1
- package/dist/ai/guides/migration/components/bb-host.md +10 -8
- package/dist/ai/guides/migration/components/bb-offcanvas.md +1 -1
- package/dist/ai/guides/migration/components/bb-select-popover.md +2 -2
- package/dist/ai/guides/migration/components/bb-select.md +3 -3
- package/dist/ai/guides/migration/components/bb-slider.md +17 -2
- package/dist/ai/guides/migration/components/bb-tabs.md +1 -1
- package/dist/ai/guides/migration/components/bb-toast.md +6 -6
- package/dist/ai/guides/migration/components/use-confirm.md +1 -1
- package/dist/ai/guides/migration/v2-to-v3.md +191 -56
- package/dist/ai/guides/migration/v3-beta-tooling.md +2 -2
- package/dist/ai/guides/passthrough.md +140 -131
- package/dist/ai/guides/typescript-generic-components.md +7 -7
- package/dist/ai/guides/validated-forms.md +5 -5
- package/dist/ai/guides/validation-libraries.md +4 -4
- package/dist/ai/helpers/inertia/manifest.json +1 -1
- package/dist/ai/index.md +3 -3
- package/dist/ai/manifest/common.json +9 -11
- package/dist/ai/manifest/components/BbAlert.json +3 -2
- package/dist/ai/manifest/components/BbAvatar.json +2 -1
- package/dist/ai/manifest/components/BbBadge.json +3 -2
- package/dist/ai/manifest/components/BbBaseCheckboxIcon.tree.json +5 -1
- package/dist/ai/manifest/components/BbBaseRadioIcon.tree.json +7 -3
- package/dist/ai/manifest/components/BbBaseSwitchIcon.tree.json +9 -1
- package/dist/ai/manifest/components/BbBreadcrumbs.tree.json +1 -1
- package/dist/ai/manifest/components/BbButton.json +4 -3
- package/dist/ai/manifest/components/BbButton.tree.json +3 -1
- package/dist/ai/manifest/components/BbCalendar.tree.json +1 -0
- package/dist/ai/manifest/components/BbCheckbox.json +4 -3
- package/dist/ai/manifest/components/BbCheckbox.tree.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.json +17 -14
- package/dist/ai/manifest/components/BbCheckboxGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbCheckboxGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbColorInput.json +6 -5
- package/dist/ai/manifest/components/BbColorInput.tree.json +4 -3
- package/dist/ai/manifest/components/BbColorPalette.json +2 -1
- package/dist/ai/manifest/components/BbColorPalette.tree.json +2 -1
- package/dist/ai/manifest/components/BbConfigScope.json +23 -0
- package/dist/ai/manifest/components/BbConfirm.json +2 -1
- package/dist/ai/manifest/components/BbConfirm.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePicker.json +2 -1
- package/dist/ai/manifest/components/BbDatePicker.tree.json +2 -2
- package/dist/ai/manifest/components/BbDatePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbDatePickerInput.tree.json +6 -4
- package/dist/ai/manifest/components/BbDialog.json +3 -2
- package/dist/ai/manifest/components/BbDialog.tree.json +2 -2
- package/dist/ai/manifest/components/BbDropdown.json +7 -4
- package/dist/ai/manifest/components/BbDropdown.tree.json +1 -1
- package/dist/ai/manifest/components/BbDropdownButton.json +11 -8
- package/dist/ai/manifest/components/BbDropdownButton.tree.json +3 -3
- package/dist/ai/manifest/components/BbDropzone.json +1 -0
- package/dist/ai/manifest/components/BbForm.json +1 -1
- package/dist/ai/manifest/components/BbHost.tree.json +1 -1
- package/dist/ai/manifest/components/BbIcon.json +2 -1
- package/dist/ai/manifest/components/BbIndicator.json +2 -1
- package/dist/ai/manifest/components/BbNumberInput.json +5 -4
- package/dist/ai/manifest/components/BbNumberInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbOffCanvas.json +2 -1
- package/dist/ai/manifest/components/BbOffCanvas.tree.json +1 -1
- package/dist/ai/manifest/components/BbPagination.json +1 -1
- package/dist/ai/manifest/components/BbPagination.tree.json +2 -1
- package/dist/ai/manifest/components/BbPopover.json +2 -1
- package/dist/ai/manifest/components/BbPopover.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadio.json +3 -2
- package/dist/ai/manifest/components/BbRadio.tree.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.json +21 -18
- package/dist/ai/manifest/components/BbRadioGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbRadioGroup.tree.json +25 -4
- package/dist/ai/manifest/components/BbRating.json +3 -2
- package/dist/ai/manifest/components/BbSelect.json +11 -9
- package/dist/ai/manifest/components/BbSelect.tree.json +7 -5
- package/dist/ai/manifest/components/BbSelectPopover.json +11 -9
- package/dist/ai/manifest/components/BbSelectPopover.tree.json +5 -2
- package/dist/ai/manifest/components/BbSlider.json +20 -18
- package/dist/ai/manifest/components/BbSlider.removed.json +3 -0
- package/dist/ai/manifest/components/BbSlider.tree.json +4 -2
- package/dist/ai/manifest/components/BbSwitch.json +2 -1
- package/dist/ai/manifest/components/BbSwitch.tree.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.json +7 -5
- package/dist/ai/manifest/components/BbSwitchGroup.removed.json +1 -1
- package/dist/ai/manifest/components/BbSwitchGroup.tree.json +6 -2
- package/dist/ai/manifest/components/BbTable.json +3 -2
- package/dist/ai/manifest/components/BbTable.tree.json +4 -3
- package/dist/ai/manifest/components/BbTabs.json +3 -2
- package/dist/ai/manifest/components/BbTabsRoot.json +2 -2
- package/dist/ai/manifest/components/BbTag.json +6 -5
- package/dist/ai/manifest/components/BbTag.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextInput.json +5 -4
- package/dist/ai/manifest/components/BbTextInput.tree.json +3 -2
- package/dist/ai/manifest/components/BbTextarea.json +6 -5
- package/dist/ai/manifest/components/BbTextarea.tree.json +3 -2
- package/dist/ai/manifest/components/BbTimePicker.json +2 -1
- package/dist/ai/manifest/components/BbTimePicker.tree.json +1 -1
- package/dist/ai/manifest/components/BbTimePickerInput.json +6 -5
- package/dist/ai/manifest/components/BbTimePickerInput.tree.json +5 -3
- package/dist/ai/manifest/components/BbToast.json +2 -1
- package/dist/ai/manifest/components/BbToast.tree.json +6 -1
- package/dist/ai/manifest/components/BbTooltip.json +1 -0
- package/dist/ai/manifest/components/CommonField.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.json +2 -2
- package/dist/ai/manifest/components/CommonFieldInput.tree.json +2 -0
- package/dist/ai/manifest/components/FlatListBox.json +1 -1
- package/dist/ai/manifest/components/FlatListBox.tree.json +2 -1
- package/dist/ai/manifest/components/GroupedListBox.json +1 -1
- package/dist/ai/manifest/components/GroupedListBox.tree.json +2 -1
- package/dist/ai/manifest/components/ListBox.json +1 -1
- package/dist/ai/manifest/components/ListBox.tree.json +2 -2
- package/dist/ai/manifest/components/OptionsContainer.json +3 -2
- package/dist/ai/manifest/components/OptionsContainer.tree.json +16 -1
- package/dist/ai/manifest/index.json +3 -3
- package/dist/ai/manifest/meta.json +16 -7
- package/dist/ai/manifest/types.advanced.json +5 -6
- package/dist/ai/manifest/types.api.json +15 -6
- package/dist/ai/manifest/types.wrapper.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +2 -2
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +2 -2
- package/dist/ai/recipes/inertia/record-form.md +2 -2
- package/dist/ai/recipes/inertia/records-workspace.md +2 -2
- package/dist/ai/recipes/inertia/settings-workspace.md +5 -4
- package/dist/ai/recipes/inertia/upload-center.md +3 -3
- package/dist/ai/recipes/inertia/wizard-form.md +2 -2
- package/dist/ai/recipes/nuxt/approvals-inbox.md +2 -2
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/ownership-atlas.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +2 -2
- package/dist/ai/recipes/nuxt/records-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/settings-workspace.md +5 -4
- package/dist/ai/recipes/nuxt/upload-center.md +4 -4
- package/dist/ai/recipes/nuxt/wizard-form.md +2 -2
- package/dist/ai/recipes/vue/approvals-inbox.md +2 -2
- package/dist/ai/recipes/vue/inline-edit-workspace.md +13 -9
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/ownership-atlas.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +2 -2
- package/dist/ai/recipes/vue/records-workspace.md +2 -2
- package/dist/ai/recipes/vue/settings-workspace.md +5 -4
- package/dist/ai/recipes/vue/upload-center.md +4 -4
- package/dist/ai/recipes/vue/wizard-form.md +2 -2
- package/dist/ai/source/BbAlert.md +10 -4
- package/dist/ai/source/BbAvatar.md +5 -4
- package/dist/ai/source/BbBadge.md +16 -9
- package/dist/ai/source/BbBadgeButton.md +1 -1
- package/dist/ai/source/BbBaseCheckboxIcon.md +7 -5
- package/dist/ai/source/BbBaseRadioIcon.md +17 -11
- package/dist/ai/source/BbBaseSwitchIcon.md +14 -9
- package/dist/ai/source/BbButton.md +38 -22
- package/dist/ai/source/BbCalendar.md +5 -30
- package/dist/ai/source/BbCheckbox.md +20 -7
- package/dist/ai/source/BbCheckboxGroup.md +66 -27
- package/dist/ai/source/BbColorInput.md +29 -22
- package/dist/ai/source/BbColorPalette.md +23 -22
- package/dist/ai/source/BbConfigScope.md +123 -0
- package/dist/ai/source/BbConfirm.md +5 -3
- package/dist/ai/source/BbDatePicker.md +18 -8
- package/dist/ai/source/BbDatePickerInput.md +44 -27
- package/dist/ai/source/BbDialog.md +23 -13
- package/dist/ai/source/BbDropdown.md +61 -25
- package/dist/ai/source/BbDropdownButton.md +67 -25
- package/dist/ai/source/BbDropdownGroup.md +38 -15
- package/dist/ai/source/BbForm.md +1 -1
- package/dist/ai/source/BbHost.md +4 -4
- package/dist/ai/source/BbHoverCard.md +6 -2
- package/dist/ai/source/BbIcon.md +5 -4
- package/dist/ai/source/BbIndicator.md +1 -1
- package/dist/ai/source/BbNumberInput.md +44 -30
- package/dist/ai/source/BbOffCanvas.md +17 -10
- package/dist/ai/source/BbPagination.md +10 -18
- package/dist/ai/source/BbPopover.md +17 -9
- package/dist/ai/source/BbPopoverPortal.md +2 -2
- package/dist/ai/source/BbRadio.md +18 -7
- package/dist/ai/source/BbRadioGroup.md +67 -27
- package/dist/ai/source/BbRating.md +21 -11
- package/dist/ai/source/BbSelect.md +51 -32
- package/dist/ai/source/BbSelectPopover.md +81 -38
- package/dist/ai/source/BbSlider.md +929 -565
- package/dist/ai/source/BbSwitchGroup.md +28 -9
- package/dist/ai/source/BbTable.md +17 -30
- package/dist/ai/source/BbTabs.md +5 -2
- package/dist/ai/source/BbTabsList.md +1 -1
- package/dist/ai/source/BbTabsPanels.md +1 -1
- package/dist/ai/source/BbTabsRoot.md +1 -1
- package/dist/ai/source/BbTag.md +27 -20
- package/dist/ai/source/BbTextInput.md +29 -26
- package/dist/ai/source/BbTextarea.md +53 -45
- package/dist/ai/source/BbTimePicker.md +19 -7
- package/dist/ai/source/BbTimePickerInput.md +34 -21
- package/dist/ai/source/BbToast.md +18 -9
- package/dist/ai/source/BbToastPortal.md +14 -6
- package/dist/ai/source/BbTooltip.md +1 -1
- package/dist/ai/source/CommonFieldInput.md +9 -4
- package/dist/ai/source/FlatListBox.md +11 -1
- package/dist/ai/source/GroupedListBox.md +12 -1
- package/dist/ai/source/ListBox.md +1 -1
- package/dist/ai/source/OptionsContainer.md +48 -1
- package/dist/assets/svgs/arrow_up.svg_raw.js +3 -0
- package/dist/assets/svgs/caret_down.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_left_small.svg_raw.js +3 -0
- package/dist/assets/svgs/chevron_right_small.svg_raw.js +3 -0
- package/dist/assets/svgs/close.svg_raw.js +3 -0
- package/dist/assets/svgs/eyedropper.svg_raw.js +3 -0
- package/dist/assets/svgs/move.svg_raw.js +3 -0
- package/dist/assets/svgs/x.svg_raw.js +3 -0
- package/dist/components/BbAlert/BbAlert.vue.d.ts +1 -0
- package/dist/components/BbAlert/BbAlert.vue_vue_type_script_setup_true_lang.js +48 -44
- package/dist/components/BbAlert/types.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +1 -1
- package/dist/components/BbAvatar/BbAvatar.vue_vue_type_script_setup_true_lang.js +54 -53
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +60 -56
- package/dist/components/BbBadge/types.d.ts +1 -1
- package/dist/components/BbButton/BbButton.vue.d.ts +2 -0
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +110 -98
- package/dist/components/BbButton/types.d.ts +12 -10
- package/dist/components/BbCalendar/BbCalendar.vue.d.ts +17 -17
- package/dist/components/BbCalendar/BbCalendar.vue_vue_type_script_setup_true_lang.js +298 -313
- package/dist/components/BbCalendar/useCalendarGrid.js +3 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +4 -2
- package/dist/components/BbCheckbox/BbCheckbox.vue_vue_type_script_setup_true_lang.js +94 -82
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +78 -55
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue_vue_type_script_setup_true_lang.js +184 -151
- package/dist/components/BbCheckboxGroup/types.d.ts +10 -5
- package/dist/components/BbCollapsible/BbCollapsible.vue.d.ts +1 -1
- package/dist/components/BbColorInput/BbColorInput.vue.d.ts +13 -11
- package/dist/components/BbColorInput/BbColorInput.vue_vue_type_script_setup_true_lang.js +82 -71
- package/dist/components/BbColorInput/types.d.ts +8 -8
- package/dist/components/BbColorInput/types.js +1 -1
- package/dist/components/BbColorPalette/BbColorPalette.vue.d.ts +2 -2
- package/dist/components/BbColorPalette/BbColorPalette.vue_vue_type_script_setup_true_lang.js +180 -182
- package/dist/components/BbColorPalette/types.d.ts +2 -2
- package/dist/components/BbConfigScope/BbConfigScope.vue.d.ts +12 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue.js +4 -0
- package/dist/components/BbConfigScope/BbConfigScope.vue_vue_type_script_setup_true_lang.js +37 -0
- package/dist/components/BbConfigScope/types.d.ts +20 -0
- package/dist/components/BbConfirm/BbConfirm.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbDatePicker/BbDatePicker.vue.d.ts +31 -31
- package/dist/components/BbDatePicker/BbDatePicker.vue_vue_type_script_setup_true_lang.js +171 -170
- package/dist/components/BbDatePicker/types.d.ts +2 -2
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue.d.ts +110 -110
- package/dist/components/BbDatePickerInput/BbDatePickerInput.vue_vue_type_script_setup_true_lang.js +457 -441
- package/dist/components/BbDatePickerInput/types.d.ts +8 -8
- package/dist/components/BbDatePickerInput/types.js +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +4 -3
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +204 -197
- package/dist/components/BbDialog/types.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +5 -4
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +302 -286
- package/dist/components/BbDropdown/BbDropdownList.vue_vue_type_script_setup_true_lang.js +348 -344
- package/dist/components/BbDropdown/DropdownPipelineResolver.vue_vue_type_script_setup_true_lang.js +97 -97
- package/dist/components/BbDropdown/DropdownRow.vue.d.ts +1 -1
- package/dist/components/BbDropdown/DropdownRow.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDropdown/pointerTrail.d.ts +5 -0
- package/dist/components/BbDropdown/pointerTrail.js +26 -0
- package/dist/components/BbDropdown/types.d.ts +25 -13
- package/dist/components/BbDropdown/types.js +11 -2
- package/dist/components/BbDropdown/useDropdownContext.d.ts +1 -1
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +4 -3
- package/dist/components/BbDropdownButton/BbDropdownButton.vue_vue_type_script_setup_true_lang.js +93 -69
- package/dist/components/BbDropdownButton/types.d.ts +30 -13
- package/dist/components/BbDropdownButton/types.js +7 -3
- package/dist/components/BbDropzone/BbDropzone.vue.d.ts +5 -5
- package/dist/components/BbForm/BbForm.vue.d.ts +2 -2
- package/dist/components/BbForm/BbFormCustomField.js +2 -2
- package/dist/components/BbForm/bindFormField.js +66 -66
- package/dist/components/BbHost/BbHost.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbHost/BbHostOpening.d.ts +1 -1
- package/dist/components/BbHost/types.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue.d.ts +2 -2
- package/dist/components/BbHoverCard/BbHoverCard.vue_vue_type_script_setup_true_lang.js +158 -157
- package/dist/components/BbIcon/BbIcon.vue.d.ts +1 -1
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +41 -40
- package/dist/components/BbIndicator/types.d.ts +1 -1
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +12 -9
- package/dist/components/BbNumberInput/BbNumberInput.vue_vue_type_script_setup_true_lang.js +248 -232
- package/dist/components/BbNumberInput/types.d.ts +12 -11
- package/dist/components/BbNumberInput/types.js +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +2 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +275 -274
- package/dist/components/BbPagination/BbPagination.vue.d.ts +1 -1
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +104 -108
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +90 -90
- package/dist/components/BbPopover/types.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +4 -2
- package/dist/components/BbRadio/BbRadio.vue_vue_type_script_setup_true_lang.js +105 -93
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +72 -49
- package/dist/components/BbRadioGroup/BbRadioGroup.vue_vue_type_script_setup_true_lang.js +214 -181
- package/dist/components/BbRadioGroup/types.d.ts +11 -5
- package/dist/components/BbRating/BbRating.vue.d.ts +7 -5
- package/dist/components/BbRating/BbRating.vue_vue_type_script_setup_true_lang.js +139 -128
- package/dist/components/BbSelect/BbSelect.vue.d.ts +174 -155
- package/dist/components/BbSelect/BbSelect.vue_vue_type_script_setup_true_lang.js +179 -158
- package/dist/components/BbSelect/types.d.ts +23 -19
- package/dist/components/BbSelect/types.js +4 -2
- package/dist/components/BbSelectPopover/BbSelectPopover.vue.d.ts +21 -16
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +637 -623
- package/dist/components/BbSelectPopover/reclickClears.d.ts +17 -0
- package/dist/components/BbSelectPopover/reclickClears.js +4 -0
- package/dist/components/BbSelectPopover/types.d.ts +21 -16
- package/dist/components/BbSelectPopover/types.js +3 -1
- package/dist/components/BbSlider/BbSlider.vue.d.ts +22 -15
- package/dist/components/BbSlider/BbSlider.vue_vue_type_script_setup_true_lang.js +382 -315
- package/dist/components/BbSlider/types.d.ts +136 -47
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +2 -2
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +28 -27
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue_vue_type_script_setup_true_lang.js +3 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +4 -4
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +1128 -1135
- package/dist/components/BbTable/BbTableSelectToggle.d.ts +1 -1
- package/dist/components/BbTabs/BbTabs.vue.d.ts +21 -21
- package/dist/components/BbTabs/BbTabs.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/BbTabs/types.d.ts +1 -1
- package/dist/components/BbTag/BbTag.vue.d.ts +15 -13
- package/dist/components/BbTag/BbTag.vue_vue_type_script_setup_true_lang.js +196 -185
- package/dist/components/BbTag/types.d.ts +7 -7
- package/dist/components/BbTag/types.js +1 -1
- package/dist/components/BbTextInput/BbTextInput.vue.d.ts +30 -30
- package/dist/components/BbTextInput/BbTextInput.vue_vue_type_script_setup_true_lang.js +66 -55
- package/dist/components/BbTextInput/types.d.ts +9 -9
- package/dist/components/BbTextInput/types.js +1 -1
- package/dist/components/BbTextarea/BbTextarea.vue.d.ts +30 -30
- package/dist/components/BbTextarea/BbTextarea.vue_vue_type_script_setup_true_lang.js +96 -86
- package/dist/components/BbTextarea/types.d.ts +8 -8
- package/dist/components/BbTextarea/types.js +1 -1
- package/dist/components/BbTimePicker/BbTimePicker.vue.d.ts +12 -12
- package/dist/components/BbTimePicker/BbTimePicker.vue_vue_type_script_setup_true_lang.js +131 -130
- package/dist/components/BbTimePicker/types.d.ts +2 -2
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue.d.ts +73 -73
- package/dist/components/BbTimePickerInput/BbTimePickerInput.vue_vue_type_script_setup_true_lang.js +286 -273
- package/dist/components/BbTimePickerInput/types.d.ts +8 -8
- package/dist/components/BbTimePickerInput/types.js +1 -1
- package/dist/components/BbToast/BbToast.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbToast/BbToastMessage.vue_vue_type_script_setup_true_lang.js +75 -80
- package/dist/components/BbToast/types.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +3 -3
- package/dist/components/BbTooltip/types.d.ts +1 -1
- package/dist/components/BbTree/BbTree.vue.d.ts +1 -1
- package/dist/components/CloseIcon/CloseButton.vue.js +1 -1
- package/dist/components/CloseIcon/CloseButton.vue_vue_type_script_setup_true_lang.js +11 -16
- package/dist/components/CommonFieldInput/types.d.ts +1 -1
- package/dist/components/FlatListBox/FlatListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/FlatListBox/types.d.ts +1 -1
- package/dist/components/GroupedListBox/GroupedListBox.vue_vue_type_script_setup_true_lang.js +5 -2
- package/dist/components/GroupedListBox/types.d.ts +1 -1
- package/dist/components/ListBox/types.d.ts +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +87 -69
- package/dist/components/OptionsContainer/types.d.ts +5 -0
- package/dist/components/Transitions/Slide.vue.d.ts +1 -1
- package/dist/composables/useBbTabs.js +94 -90
- package/dist/composables/useConfig.js +2 -9
- package/dist/composables/useConfigDefaults.d.ts +54 -0
- package/dist/composables/useConfigDefaults.js +56 -0
- package/dist/composables/useConfirm.d.ts +7 -7
- package/dist/composables/useFormBinding.d.ts +1 -1
- package/dist/composables/useFormBinding.js +3 -3
- package/dist/composables/usePassthrough.d.ts +7 -5
- package/dist/composables/usePassthrough.js +137 -133
- package/dist/composables/useToast.d.ts +5 -4
- package/dist/composables/useToast.js +47 -37
- package/dist/deprecation/ai-deprecations.json.d.ts +44 -15
- package/dist/deprecation/ai-deprecations.json.js +1 -1
- package/dist/directives/bbDropdown.js +7 -7
- package/dist/i18n/locales/cs.json +2 -1
- package/dist/i18n/locales/da.json +2 -1
- package/dist/i18n/locales/de-CH.json +2 -1
- package/dist/i18n/locales/de.json +2 -1
- package/dist/i18n/locales/el.json +2 -1
- package/dist/i18n/locales/en-GB.json +2 -1
- package/dist/i18n/locales/en.json +2 -1
- package/dist/i18n/locales/es-MX.json +2 -1
- package/dist/i18n/locales/es.json +2 -1
- package/dist/i18n/locales/fi.json +2 -1
- package/dist/i18n/locales/fr.json +2 -1
- package/dist/i18n/locales/hu.json +2 -1
- package/dist/i18n/locales/it.json +2 -1
- package/dist/i18n/locales/ja.json +2 -1
- package/dist/i18n/locales/ko.json +2 -1
- package/dist/i18n/locales/nb.json +2 -1
- package/dist/i18n/locales/nl.json +2 -1
- package/dist/i18n/locales/pl.json +2 -1
- package/dist/i18n/locales/pt-BR.json +2 -1
- package/dist/i18n/locales/pt-PT.json +2 -1
- package/dist/i18n/locales/ro.json +2 -1
- package/dist/i18n/locales/ru.json +2 -1
- package/dist/i18n/locales/sv.json +2 -1
- package/dist/i18n/locales/tr.json +2 -1
- package/dist/i18n/locales/uk.json +2 -1
- package/dist/i18n/locales/zh-CN.json +2 -1
- package/dist/i18n/locales/zh-HK.json +2 -1
- package/dist/i18n/locales/zh-TW.json +2 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/llms-full.txt +2273 -1243
- package/dist/llms-medium.txt +362 -184
- package/dist/llms.txt +4 -4
- package/dist/locale-blueprint.json +2 -1
- package/dist/nuxt-auto-imports.js +1 -1
- package/dist/nuxt-module.d.ts +1 -1
- package/dist/nuxt.js +17 -17
- package/dist/project-dts.d.ts +72 -10
- package/dist/project-dts.js +69 -21
- package/dist/styles.css +2 -2
- package/dist/types/AlertVariant.d.ts +1 -1
- package/dist/types/BadgeVariant.d.ts +1 -1
- package/dist/types/ButtonVariant.d.ts +1 -1
- package/dist/types/CheckboxVariant.d.ts +7 -4
- package/dist/types/CheckboxVariant.js +5 -1
- package/dist/types/Config.d.ts +17 -103
- package/dist/types/ConfigDefaults.d.ts +352 -0
- package/dist/types/ConfigDefaults.js +115 -0
- package/dist/types/ConfirmVariant.d.ts +1 -1
- package/dist/types/DropdownItemVariant.d.ts +1 -1
- package/dist/types/FieldLayout.d.ts +3 -3
- package/dist/types/IndicatorVariant.d.ts +1 -1
- package/dist/types/InputVariant.d.ts +57 -24
- package/dist/types/RadioVariant.d.ts +7 -4
- package/dist/types/RadioVariant.js +5 -1
- package/dist/types/SizeScale.d.ts +4 -0
- package/dist/types/SizeScale.js +17 -0
- package/dist/types/TabsVariant.d.ts +1 -1
- package/dist/types/ToastVariant.d.ts +1 -1
- package/dist/types/TooltipVariant.d.ts +1 -1
- package/dist/types/passthrough.d.ts +6 -6
- package/dist/types/ptComponentMap.d.ts +14 -14
- package/dist/utilities/functions/searchRank.d.ts +19 -0
- package/dist/utilities/functions/searchRank.js +76 -0
- package/dist/utilities/misc/listboxMetrics.d.ts +1 -1
- package/dist/utils/configDefaults.d.ts +33 -0
- package/dist/utils/configDefaults.js +140 -0
- package/dist/utils/configScope.d.ts +43 -0
- package/dist/utils/configScope.js +13 -0
- package/dist/utils/passthrough.d.ts +4 -7
- package/dist/utils/passthrough.js +31 -29
- package/dist/utils/versionCheck.js +1 -1
- package/dist/vite-plugin.d.ts +54 -191
- package/dist/vite.js +318 -367
- package/llms.txt +4 -4
- package/package.json +3 -3
- package/scripts/lib/adoption-checklist.json +2 -2
- package/scripts/lib/agent-manifest.mjs +2 -0
- package/scripts/lib/eslint-disable.mjs +2 -0
- package/scripts/lib/eslint-plugin.d.ts +4 -2
- package/scripts/lib/eslint-plugin.mjs +67 -0
- package/scripts/lib/idiom-scan.mjs +8 -7
- package/scripts/lib/project-variant-dts.mjs +105 -36
- package/scripts/lib/validate-bb-markup.mjs +73 -13
- package/dist/ai/BbPtScope.md +0 -138
- package/dist/ai/manifest/components/BbPtScope.json +0 -21
- package/dist/ai/source/BbPtScope.md +0 -54
- package/dist/components/BbPtScope/BbPtScope.vue.d.ts +0 -12
- package/dist/components/BbPtScope/BbPtScope.vue.js +0 -4
- package/dist/components/BbPtScope/BbPtScope.vue_vue_type_script_setup_true_lang.js +0 -12
- package/dist/components/BbPtScope/types.d.ts +0 -15
- package/dist/types/PtScope.d.ts +0 -15
- package/dist/utilities/functions/head.js +0 -3
- package/dist/utilities/functions/matchAnyKey.d.ts +0 -8
- package/dist/utilities/functions/matchAnyKey.js +0 -14
- package/dist/utils/ptScope.d.ts +0 -8
- package/dist/utils/ptScope.js +0 -3
|
@@ -5,7 +5,7 @@ import te from "../BbBadge/BbBadge.vue.js";
|
|
|
5
5
|
import ne from "../BbSelectPopover/BbSelectPopover.vue.js";
|
|
6
6
|
import { BB_SELECT_POPOVER_PT as n } from "../BbSelectPopover/types.js";
|
|
7
7
|
import { useMobile as re } from "../../composables/useMobile.js";
|
|
8
|
-
import {
|
|
8
|
+
import { useConfigDefaults as r } from "../../composables/useConfigDefaults.js";
|
|
9
9
|
import { useFormBinding as ie } from "../../composables/useFormBinding.js";
|
|
10
10
|
import { useLocale as i } from "../../composables/useLocale.js";
|
|
11
11
|
import { SELECT_CONTROL_NATIVE_ATTRS as a, formControlPtActive as o, usePassthrough as s, variantPt as c } from "../../composables/usePassthrough.js";
|
|
@@ -13,31 +13,32 @@ import { removedPropsFor as ae } from "../../deprecation/removedProps.js";
|
|
|
13
13
|
import { warnRemovedAttrs as l } from "../../utilities/functions/warnRemovedAttrs.js";
|
|
14
14
|
import { hasVnodeListener as u } from "../../utilities/functions/hasVnodeListener.js";
|
|
15
15
|
import { isNotEmpty as d } from "../../utilities/functions/isNotEmpty.js";
|
|
16
|
-
import { throttle as
|
|
17
|
-
import { when as
|
|
18
|
-
import { hash as
|
|
19
|
-
import { reject as
|
|
20
|
-
import
|
|
21
|
-
import { provideSheetChipAttrs as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
16
|
+
import { throttle as oe } from "../../utilities/functions/throttle.js";
|
|
17
|
+
import { when as se } from "../../utilities/functions/when.js";
|
|
18
|
+
import { hash as ce } from "../../utilities/functions/hash.js";
|
|
19
|
+
import { reject as le } from "../../utilities/functions/reject.js";
|
|
20
|
+
import ue from "../../assets/svgs/chevron_down.svg_raw.js";
|
|
21
|
+
import { provideSheetChipAttrs as de } from "../BbSelectPopover/sheetChipAttrs.js";
|
|
22
|
+
import { provideReclickClears as fe } from "../BbSelectPopover/reclickClears.js";
|
|
23
|
+
import { KnownItemsScope as pe, indexKnownRows as me, knownRowsCover as he } from "../BbSelectPopover/knownItems.js";
|
|
24
|
+
import { BB_SELECT_PT as f } from "./types.js";
|
|
25
|
+
import { Fragment as p, computed as m, createBlock as ge, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as _e, createVNode as y, defineComponent as ve, getCurrentInstance as ye, guardReactiveProps as b, mergeProps as x, nextTick as S, normalizeClass as C, normalizeProps as w, onMounted as be, onUnmounted as xe, openBlock as T, ref as E, renderList as D, renderSlot as O, toDisplayString as k, unref as A, useAttrs as Se, watch as j, withCtx as M, withDirectives as Ce, withModifiers as we } from "vue";
|
|
25
26
|
// src/components/BbSelect/BbSelect.vue?vue&type=script&setup=true&lang.ts
|
|
26
|
-
var
|
|
27
|
+
var Te = ["id"], Ee = [
|
|
27
28
|
"id",
|
|
28
29
|
"aria-labelledby",
|
|
29
30
|
"aria-readonly",
|
|
30
31
|
"aria-required",
|
|
31
32
|
"autofocus",
|
|
32
33
|
"disabled"
|
|
33
|
-
],
|
|
34
|
+
], De = {
|
|
34
35
|
key: 1,
|
|
35
36
|
class: "bb-select__max-reached"
|
|
36
|
-
},
|
|
37
|
+
}, Oe = {
|
|
37
38
|
key: 2,
|
|
38
39
|
class: "bb-select__display-value bb-select__placeholder"
|
|
39
|
-
},
|
|
40
|
-
mixins: [c(
|
|
40
|
+
}, ke = ["id"], N = /*@__PURE__*/ ve({
|
|
41
|
+
mixins: [c(f)],
|
|
41
42
|
inheritAttrs: !1,
|
|
42
43
|
__name: "BbSelect",
|
|
43
44
|
props: {
|
|
@@ -206,6 +207,13 @@ var Ce = ["id"], we = [
|
|
|
206
207
|
"pt:itemDescription:readonly": {},
|
|
207
208
|
"pt:itemDescription:hasValue": {},
|
|
208
209
|
"pt:itemDescription:open": {},
|
|
210
|
+
"pt:check:errors": {},
|
|
211
|
+
"pt:check:warnings": {},
|
|
212
|
+
"pt:check:loading": {},
|
|
213
|
+
"pt:check:disabled": {},
|
|
214
|
+
"pt:check:readonly": {},
|
|
215
|
+
"pt:check:hasValue": {},
|
|
216
|
+
"pt:check:open": {},
|
|
209
217
|
"pt:badge:errors": {},
|
|
210
218
|
"pt:badge:warnings": {},
|
|
211
219
|
"pt:badge:loading": {},
|
|
@@ -229,6 +237,7 @@ var Ce = ["id"], we = [
|
|
|
229
237
|
"pt:itemText:selected": {},
|
|
230
238
|
"pt:itemIcon:selected": {},
|
|
231
239
|
"pt:itemDescription:selected": {},
|
|
240
|
+
"pt:check:selected": {},
|
|
232
241
|
"pt:root:outline": {},
|
|
233
242
|
"pt:root:secondary": {},
|
|
234
243
|
"pt:root:ghost": {},
|
|
@@ -269,6 +278,7 @@ var Ce = ["id"], we = [
|
|
|
269
278
|
"pt:itemText": {},
|
|
270
279
|
"pt:itemIcon": {},
|
|
271
280
|
"pt:itemDescription": {},
|
|
281
|
+
"pt:check": {},
|
|
272
282
|
"pt:badge": {},
|
|
273
283
|
"pt:comma": {},
|
|
274
284
|
pt: {},
|
|
@@ -287,7 +297,10 @@ var Ce = ["id"], we = [
|
|
|
287
297
|
autofocus: { type: [Boolean, String] },
|
|
288
298
|
clearable: { type: Boolean },
|
|
289
299
|
comma: { type: Boolean },
|
|
290
|
-
compact: {
|
|
300
|
+
compact: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
default: void 0
|
|
303
|
+
},
|
|
291
304
|
variant: {},
|
|
292
305
|
dependencies: {},
|
|
293
306
|
depsDebounceTime: {},
|
|
@@ -338,7 +351,10 @@ var Ce = ["id"], we = [
|
|
|
338
351
|
required: { type: Boolean },
|
|
339
352
|
queryDebounceTime: {},
|
|
340
353
|
readonly: { type: Boolean },
|
|
341
|
-
reverse: {
|
|
354
|
+
reverse: {
|
|
355
|
+
type: Boolean,
|
|
356
|
+
default: void 0
|
|
357
|
+
},
|
|
342
358
|
selectable: {
|
|
343
359
|
type: [Boolean, Function],
|
|
344
360
|
default: !0
|
|
@@ -366,31 +382,35 @@ var Ce = ["id"], we = [
|
|
|
366
382
|
"update:modelValue",
|
|
367
383
|
"option:add"
|
|
368
384
|
],
|
|
369
|
-
setup(c, { emit:
|
|
370
|
-
let
|
|
385
|
+
setup(c, { emit: ve }) {
|
|
386
|
+
let N = c, { props: P, emit: F, showAsterisk: Ae, errors: je, ariaRequired: Me, required: Ne, model: Pe, readonly: I } = ie(N, ve, {
|
|
371
387
|
componentName: "BbSelect",
|
|
372
|
-
identifierFallback: () =>
|
|
388
|
+
identifierFallback: () => N.label,
|
|
373
389
|
leaveOn: "inactive"
|
|
374
|
-
}),
|
|
390
|
+
}), Fe = m(() => Me.value ?? (Ne.value ? !0 : void 0)), { t: Ie } = i();
|
|
375
391
|
process.env.NODE_ENV !== "production" && l("BbSelect", ae("BbSelect"));
|
|
376
|
-
let
|
|
392
|
+
let L = E(!1), { isMobile: Le } = re(), Re = m(() => P.persistentHint || L.value), R = m(() => d(P.modelValue)), ze = m(() => !!P.clearable && R.value), z = r("BbSelect", P, {
|
|
393
|
+
labelMode: "outside",
|
|
394
|
+
compact: !1,
|
|
395
|
+
reverse: !1
|
|
396
|
+
}), Be = m(() => z.labelMode), B = E(!1), V = s({
|
|
377
397
|
component: "BbSelect",
|
|
378
|
-
attrs:
|
|
398
|
+
attrs: Se(),
|
|
379
399
|
controlAttrs: a,
|
|
380
|
-
props:
|
|
381
|
-
parts:
|
|
382
|
-
states:
|
|
400
|
+
props: P,
|
|
401
|
+
parts: f.parts,
|
|
402
|
+
states: f.states,
|
|
383
403
|
active: {
|
|
384
|
-
...o(
|
|
404
|
+
...o(P, () => R.value),
|
|
385
405
|
open: () => B.value
|
|
386
406
|
},
|
|
387
407
|
variant: {
|
|
388
|
-
...
|
|
389
|
-
current: () =>
|
|
408
|
+
...f.variant,
|
|
409
|
+
current: () => P.variant ?? "outline"
|
|
390
410
|
}
|
|
391
411
|
});
|
|
392
|
-
|
|
393
|
-
let
|
|
412
|
+
de((e) => V.part("badge", {}, e)), fe(() => !!P.clearable);
|
|
413
|
+
let Ve = () => ({
|
|
394
414
|
...V.forward([
|
|
395
415
|
"panel",
|
|
396
416
|
"sheet",
|
|
@@ -403,133 +423,134 @@ var Ce = ["id"], we = [
|
|
|
403
423
|
"option",
|
|
404
424
|
"itemText",
|
|
405
425
|
"itemIcon",
|
|
406
|
-
"itemDescription"
|
|
426
|
+
"itemDescription",
|
|
427
|
+
"check"
|
|
407
428
|
], n.states)
|
|
408
|
-
}),
|
|
429
|
+
}), He = [
|
|
409
430
|
"box",
|
|
410
431
|
"icon",
|
|
411
432
|
"spinner",
|
|
412
433
|
"clear",
|
|
413
434
|
"prefix",
|
|
414
435
|
"suffix"
|
|
415
|
-
],
|
|
416
|
-
title:
|
|
417
|
-
...
|
|
418
|
-
})),
|
|
419
|
-
rows: () =>
|
|
420
|
-
prefill: () =>
|
|
421
|
-
},
|
|
436
|
+
], Ue = (e) => Object.fromEntries(He.map((t) => [t, V.part(t, { loading: e })])), We = m(() => ({
|
|
437
|
+
title: P.label,
|
|
438
|
+
...P.offCanvasProps
|
|
439
|
+
})), Ge = m(() => P["append:icon"] === void 0 ? ue : P["append:icon"]), H = m(() => P.maxSelectedLabels === void 0 ? Infinity : P.maxSelectedLabels), U = {
|
|
440
|
+
rows: () => P.knownItems,
|
|
441
|
+
prefill: () => P.prefill
|
|
442
|
+
}, Ke = (e) => ({
|
|
422
443
|
known: !!U.isKnown?.(e),
|
|
423
444
|
item: e
|
|
424
|
-
}),
|
|
445
|
+
}), qe = m(() => he(me(P.knownItems), P.modelValue, P.multiple)), Je = m(() => R.value && !qe.value ? !0 : P.prefill ?? "interaction"), W = E(), G = E(), Ye = E(), K = m(() => P.multiple ? Array.isArray(P.modelValue) ? P.modelValue.length : P.modelValue == null ? 0 : 1 : 0), Xe = m(() => H.value !== Infinity), q = m(() => !Xe.value), J = E(!1), Y = m(() => K.value <= 1 ? !1 : Xe.value ? K.value > H.value : J.value), X = m(() => !P.disabled && !P.readonly), Z = (e) => {
|
|
425
446
|
if (X.value) {
|
|
426
|
-
if (U.userUnpick?.([e.value]),
|
|
427
|
-
let t =
|
|
428
|
-
|
|
429
|
-
} else
|
|
447
|
+
if (U.userUnpick?.([e.value]), P.multiple) {
|
|
448
|
+
let t = le(P.modelValue, e.value);
|
|
449
|
+
F("update:modelValue", t);
|
|
450
|
+
} else F("update:modelValue", null);
|
|
430
451
|
}
|
|
431
452
|
}, Ze = () => {
|
|
432
453
|
(W.value?.$el)?.querySelector(".bb-select__activator")?.focus();
|
|
433
|
-
}, Qe =
|
|
434
|
-
let e =
|
|
454
|
+
}, Qe = m(() => P.selectedLabelsFn ? P.selectedLabelsFn(K.value) : Ie("select.multipleMaxReached", K.value).value), $e = (e) => P.multiple && Y.value ? Qe.value : e || P.placeholder || "", Q = oe(() => {
|
|
455
|
+
let e = Ye.value;
|
|
435
456
|
!q.value || !e || K.value <= 1 ? J.value = !1 : J.value = e.scrollWidth > e.clientWidth + 1;
|
|
436
457
|
}, 100, {
|
|
437
458
|
leading: !0,
|
|
438
459
|
trailing: !0
|
|
439
|
-
}),
|
|
440
|
-
|
|
441
|
-
|
|
460
|
+
}), $ = null, et = () => {
|
|
461
|
+
$?.disconnect(), $ = null, q.value && ($ = new ResizeObserver(Q), G.value && $.observe(G.value), S(() => {
|
|
462
|
+
Q();
|
|
442
463
|
}));
|
|
443
464
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}),
|
|
447
|
-
q.value &&
|
|
448
|
-
|
|
465
|
+
be(et), j(q, et, { flush: "post" }), xe(() => {
|
|
466
|
+
$?.disconnect(), Q.cancel();
|
|
467
|
+
}), j(() => [P.modelValue, H.value], () => {
|
|
468
|
+
q.value && S(() => {
|
|
469
|
+
Q();
|
|
449
470
|
});
|
|
450
|
-
}),
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
471
|
+
}), j(() => [
|
|
472
|
+
z.compact,
|
|
473
|
+
P.comma,
|
|
474
|
+
P["prepend:icon"]
|
|
454
475
|
], () => {
|
|
455
|
-
q.value &&
|
|
456
|
-
|
|
476
|
+
q.value && S(() => {
|
|
477
|
+
Q();
|
|
457
478
|
});
|
|
458
479
|
});
|
|
459
|
-
let tt =
|
|
460
|
-
disabled:
|
|
461
|
-
name:
|
|
462
|
-
required:
|
|
480
|
+
let tt = se((e) => typeof e != "string", JSON.stringify), nt = m(() => (P.multiple ? [].concat(P.modelValue ?? []) : [P.modelValue]).filter((e) => e != null).map((e) => ({
|
|
481
|
+
disabled: P.disabled,
|
|
482
|
+
name: P.name,
|
|
483
|
+
required: P.required,
|
|
463
484
|
type: "hidden",
|
|
464
485
|
value: tt(e)
|
|
465
|
-
}))),
|
|
486
|
+
}))), rt = {
|
|
466
487
|
onBlur: (e) => {
|
|
467
|
-
|
|
488
|
+
L.value = !1, F("blur", e);
|
|
468
489
|
},
|
|
469
|
-
onChange: (e) =>
|
|
470
|
-
onClick: (e) =>
|
|
490
|
+
onChange: (e) => F("change", e),
|
|
491
|
+
onClick: (e) => F("click", e),
|
|
471
492
|
onFocus: (e) => {
|
|
472
|
-
|
|
493
|
+
L.value = !0, F("focus", e);
|
|
473
494
|
},
|
|
474
495
|
onActive: () => {
|
|
475
|
-
|
|
496
|
+
L.value = !0, F("active");
|
|
476
497
|
},
|
|
477
498
|
onShow: () => {
|
|
478
|
-
B.value = !0,
|
|
499
|
+
B.value = !0, F("show");
|
|
479
500
|
},
|
|
480
|
-
onShown: () =>
|
|
501
|
+
onShown: () => F("shown"),
|
|
481
502
|
onHide: () => {
|
|
482
|
-
B.value = !1,
|
|
503
|
+
B.value = !1, F("hide");
|
|
483
504
|
},
|
|
484
|
-
onHidden: () =>
|
|
505
|
+
onHidden: () => F("hidden"),
|
|
485
506
|
onInactive: () => {
|
|
486
|
-
|
|
507
|
+
L.value = !1, F("inactive");
|
|
487
508
|
},
|
|
488
|
-
onInput: (e) =>
|
|
489
|
-
"onUpdate:modelValue": (e) =>
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
"onOption:add": (e) =>
|
|
493
|
-
},
|
|
494
|
-
return (n, re) => (
|
|
509
|
+
onInput: (e) => F("input", e),
|
|
510
|
+
"onUpdate:modelValue": (e) => F("update:modelValue", e)
|
|
511
|
+
}, it = {
|
|
512
|
+
...rt,
|
|
513
|
+
"onOption:add": (e) => F("option:add", e)
|
|
514
|
+
}, at = ye(), ot = () => u(at, "option:add") ? it : rt;
|
|
515
|
+
return (n, re) => (T(), ge(t, x({
|
|
495
516
|
id: c.id,
|
|
496
517
|
class: "bb-select",
|
|
497
|
-
clearable:
|
|
498
|
-
compact:
|
|
518
|
+
clearable: ze.value,
|
|
519
|
+
compact: A(z).compact,
|
|
499
520
|
description: c.description,
|
|
500
521
|
disabled: c.disabled,
|
|
501
|
-
errors:
|
|
522
|
+
errors: A(je),
|
|
502
523
|
"has-errors": c.hasErrors,
|
|
503
|
-
"has-value":
|
|
524
|
+
"has-value": R.value,
|
|
504
525
|
"has-warnings": c.hasWarnings,
|
|
505
526
|
"hide-label": c.hideLabel,
|
|
506
527
|
hint: c.hint,
|
|
507
528
|
"input-align": c.inputAlign,
|
|
508
529
|
label: c.label,
|
|
509
530
|
"label-align": c.labelAlign,
|
|
510
|
-
"label-mode":
|
|
531
|
+
"label-mode": Be.value,
|
|
511
532
|
"label-position": c.labelPosition,
|
|
512
|
-
layout:
|
|
533
|
+
layout: A(z).layout,
|
|
513
534
|
loading: c.loading,
|
|
514
|
-
mobile:
|
|
535
|
+
mobile: A(Le),
|
|
515
536
|
name: c.name,
|
|
516
|
-
passthrough:
|
|
517
|
-
readonly:
|
|
518
|
-
reverse:
|
|
519
|
-
"show-asterisk":
|
|
520
|
-
"show-hint":
|
|
537
|
+
passthrough: A(V),
|
|
538
|
+
readonly: A(I),
|
|
539
|
+
reverse: A(z).reverse,
|
|
540
|
+
"show-asterisk": A(Ae),
|
|
541
|
+
"show-hint": Re.value,
|
|
521
542
|
warnings: c.warnings
|
|
522
|
-
},
|
|
523
|
-
label:
|
|
524
|
-
input:
|
|
525
|
-
default:
|
|
543
|
+
}, A(V).forwardAttrs), v({
|
|
544
|
+
label: M((e) => [O(n.$slots, "label", w(b(e)))]),
|
|
545
|
+
input: M(({ id: t, hasErrors: r, hasWarnings: ie, ariaDescribedby: i }) => [y(A(pe), { source: U }, {
|
|
546
|
+
default: M(() => [y(ne, x({
|
|
526
547
|
id: t,
|
|
527
|
-
adaptive:
|
|
548
|
+
adaptive: A(z).adaptive,
|
|
528
549
|
anchor: W.value,
|
|
529
550
|
"aria-describedby": i,
|
|
530
551
|
"aria-invalid": r || void 0,
|
|
531
|
-
autocomplete:
|
|
532
|
-
compact:
|
|
552
|
+
autocomplete: A(z).autocomplete,
|
|
553
|
+
compact: A(z).compact,
|
|
533
554
|
dependencies: c.dependencies,
|
|
534
555
|
"deps-debounce-time": c.depsDebounceTime,
|
|
535
556
|
"disable-writing": c.disableWriting,
|
|
@@ -548,121 +569,121 @@ var Ce = ["id"], we = [
|
|
|
548
569
|
loading: c.loading,
|
|
549
570
|
"loading-text": c.loadingText,
|
|
550
571
|
max: c.max,
|
|
551
|
-
"model-value":
|
|
572
|
+
"model-value": A(Pe),
|
|
552
573
|
"model-value-debounce-time": c.modelValueDebounceTime,
|
|
553
574
|
multiple: c.multiple,
|
|
554
|
-
"off-canvas-props":
|
|
555
|
-
prefill:
|
|
556
|
-
pt:
|
|
575
|
+
"off-canvas-props": We.value,
|
|
576
|
+
prefill: Je.value,
|
|
577
|
+
pt: Ve(),
|
|
557
578
|
"query-debounce-time": c.queryDebounceTime,
|
|
558
|
-
readonly:
|
|
579
|
+
readonly: A(I),
|
|
559
580
|
selectable: c.selectable,
|
|
560
581
|
stash: c.stash,
|
|
561
582
|
"transition-duration": c.transitionDuration,
|
|
562
583
|
width: "100%"
|
|
563
|
-
},
|
|
564
|
-
activator:
|
|
584
|
+
}, ot()), v({
|
|
585
|
+
activator: M(({ props: ne, shown: i, loading: a, text: o, selectedOptions: s, clear: ae, query: l, focus: u, close: d, toggle: oe }) => [y(ee, {
|
|
565
586
|
ref_key: "wrapperRef",
|
|
566
587
|
ref: W,
|
|
567
588
|
active: i,
|
|
568
|
-
"append:icon":
|
|
569
|
-
class:
|
|
589
|
+
"append:icon": Ge.value,
|
|
590
|
+
class: C(["bb-select__field", {
|
|
570
591
|
"bb-select__field--shown": i,
|
|
571
592
|
"bb-select__field--disabled": c.disabled,
|
|
572
|
-
"bb-select__field--readonly":
|
|
593
|
+
"bb-select__field--readonly": A(I)
|
|
573
594
|
}]),
|
|
574
595
|
clearable: c.clearable,
|
|
575
|
-
compact:
|
|
596
|
+
compact: A(z).compact,
|
|
576
597
|
disabled: c.disabled,
|
|
577
598
|
"has-errors": r,
|
|
578
|
-
"has-value":
|
|
599
|
+
"has-value": R.value,
|
|
579
600
|
"has-warnings": ie,
|
|
580
601
|
loading: a,
|
|
581
|
-
passthrough:
|
|
582
|
-
"prepend:icon":
|
|
583
|
-
readonly:
|
|
602
|
+
passthrough: Ue(a),
|
|
603
|
+
"prepend:icon": N["prepend:icon"],
|
|
604
|
+
readonly: A(I),
|
|
584
605
|
variant: c.variant,
|
|
585
606
|
"onClick:clear": () => {
|
|
586
|
-
ae(),
|
|
607
|
+
ae(), S(Ze);
|
|
587
608
|
},
|
|
588
|
-
"onContainer:click":
|
|
589
|
-
},
|
|
590
|
-
"append:outer":
|
|
609
|
+
"onContainer:click": oe
|
|
610
|
+
}, v({
|
|
611
|
+
"append:outer": M(() => [O(n.$slots, "append:outer", w(b({
|
|
591
612
|
query: l,
|
|
592
613
|
close: d
|
|
593
614
|
})))]),
|
|
594
|
-
append:
|
|
615
|
+
append: M(() => [O(n.$slots, "append", w(b({
|
|
595
616
|
query: l,
|
|
596
617
|
focus: u,
|
|
597
618
|
close: d
|
|
598
619
|
})))]),
|
|
599
|
-
prepend:
|
|
620
|
+
prepend: M(() => [O(n.$slots, "prepend", w(b({
|
|
600
621
|
query: l,
|
|
601
622
|
focus: u,
|
|
602
623
|
close: d
|
|
603
624
|
})))]),
|
|
604
|
-
"prepend:outer":
|
|
625
|
+
"prepend:outer": M(() => [O(n.$slots, "prepend:outer", w(b({
|
|
605
626
|
query: l,
|
|
606
627
|
close: d
|
|
607
628
|
})))]),
|
|
608
|
-
default:
|
|
629
|
+
default: M(() => [_("span", {
|
|
609
630
|
id: `${t}__value`,
|
|
610
631
|
ref_key: "valueRef",
|
|
611
632
|
ref: G,
|
|
612
633
|
class: "bb-select__value"
|
|
613
|
-
}, [
|
|
634
|
+
}, [Ce(_("input", x({
|
|
614
635
|
id: t,
|
|
615
636
|
"aria-labelledby": `${t}__label ${t}__selection`,
|
|
616
|
-
"aria-readonly":
|
|
617
|
-
"aria-required":
|
|
637
|
+
"aria-readonly": A(I) || void 0,
|
|
638
|
+
"aria-required": Fe.value,
|
|
618
639
|
autofocus: c.autofocus,
|
|
619
640
|
class: "bb-select__activator",
|
|
620
641
|
disabled: c.disabled,
|
|
621
642
|
type: "button"
|
|
622
|
-
},
|
|
623
|
-
q.value || !Y.value ? (
|
|
643
|
+
}, x(ne, A(V).part("activator", { loading: a }))), null, 16, Ee), [[A(e)]]), c.multiple ? (T(), g(p, { key: 0 }, [
|
|
644
|
+
q.value || !Y.value ? (T(), g("span", {
|
|
624
645
|
key: 0,
|
|
625
646
|
ref_key: "chipsContainerRef",
|
|
626
|
-
ref:
|
|
627
|
-
class:
|
|
647
|
+
ref: Ye,
|
|
648
|
+
class: C(["bb-select__chips-row", {
|
|
628
649
|
"bb-select__chips-row--hidden": Y.value,
|
|
629
650
|
"bb-select__chips-row--chips": !c.comma && !!s.length
|
|
630
651
|
}]),
|
|
631
|
-
onVnodeUpdated: re[0] ||= (e) => q.value &&
|
|
632
|
-
}, [c.comma ? (
|
|
633
|
-
key:
|
|
652
|
+
onVnodeUpdated: re[0] ||= (e) => q.value && A(Q)()
|
|
653
|
+
}, [c.comma ? (T(!0), g(p, { key: 0 }, D(s, (e) => (T(), g("span", x({
|
|
654
|
+
key: A(ce)(e.value),
|
|
634
655
|
class: "bb-select__comma"
|
|
635
|
-
}, { ref_for: !0 },
|
|
636
|
-
deselect: () =>
|
|
656
|
+
}, { ref_for: !0 }, A(V).part("comma", {}, e.item)), k(e.text), 17))), 128)) : (T(!0), g(p, { key: 1 }, D(s, (e) => O(n.$slots, "chip", x({
|
|
657
|
+
deselect: () => Z(e),
|
|
637
658
|
disabled: !X.value,
|
|
638
659
|
text: e.text,
|
|
639
660
|
value: e.value
|
|
640
|
-
}, { ref_for: !0 },
|
|
661
|
+
}, { ref_for: !0 }, Ke(e.item)), () => [y(te, x({
|
|
641
662
|
class: "bb-select__badge",
|
|
642
663
|
clearable: X.value,
|
|
643
664
|
size: "lg",
|
|
644
665
|
variant: "secondary"
|
|
645
|
-
}, { ref_for: !0 },
|
|
646
|
-
default:
|
|
666
|
+
}, { ref_for: !0 }, A(V).part("badge", {}, e.item), { "onClick:clear": we((t) => Z(e), ["stop"]) }), {
|
|
667
|
+
default: M(() => [_e(k(e.text), 1)]),
|
|
647
668
|
_: 2
|
|
648
|
-
}, 1040, ["clearable", "onClick:clear"])], void 0,
|
|
649
|
-
Y.value ? (
|
|
650
|
-
!s.length && c.placeholder ? (
|
|
651
|
-
], 64)) : (
|
|
669
|
+
}, 1040, ["clearable", "onClick:clear"])], void 0, A(ce)(e.value))), 128))], 2)) : h("", !0),
|
|
670
|
+
Y.value ? (T(), g("span", De, k(Qe.value), 1)) : h("", !0),
|
|
671
|
+
!s.length && c.placeholder ? (T(), g("span", Oe, k(c.placeholder), 1)) : h("", !0)
|
|
672
|
+
], 64)) : (T(), g("span", {
|
|
652
673
|
key: 1,
|
|
653
|
-
class:
|
|
654
|
-
},
|
|
674
|
+
class: C(["bb-select__display-value", [{ "bb-select__placeholder": !o }]])
|
|
675
|
+
}, k(o || c.placeholder), 3))], 8, Te), _("span", {
|
|
655
676
|
id: `${t}__selection`,
|
|
656
677
|
hidden: ""
|
|
657
|
-
},
|
|
678
|
+
}, k($e(o)), 9, ke)]),
|
|
658
679
|
_: 2
|
|
659
680
|
}, [n.$slots.prefix ? {
|
|
660
681
|
name: "prefix",
|
|
661
|
-
fn:
|
|
682
|
+
fn: M(() => [O(n.$slots, "prefix")]),
|
|
662
683
|
key: "0"
|
|
663
684
|
} : void 0, n.$slots.suffix ? {
|
|
664
685
|
name: "suffix",
|
|
665
|
-
fn:
|
|
686
|
+
fn: M(() => [O(n.$slots, "suffix")]),
|
|
666
687
|
key: "1"
|
|
667
688
|
} : void 0]), 1032, [
|
|
668
689
|
"active",
|
|
@@ -681,25 +702,25 @@ var Ce = ["id"], we = [
|
|
|
681
702
|
"variant",
|
|
682
703
|
"onClick:clear",
|
|
683
704
|
"onContainer:click"
|
|
684
|
-
]), (
|
|
685
|
-
loading:
|
|
686
|
-
empty:
|
|
687
|
-
group:
|
|
705
|
+
]), (T(!0), g(p, null, D(nt.value, (e) => (T(), g("input", x({ key: e.value }, { ref_for: !0 }, x(e, A(V).controlAttrs)), null, 16))), 128))]),
|
|
706
|
+
loading: M((e) => [O(n.$slots, "loading", w(b(e)))]),
|
|
707
|
+
empty: M((e) => [O(n.$slots, "empty", w(b(e)))]),
|
|
708
|
+
group: M((e) => [O(n.$slots, "group", w(b(e)))]),
|
|
688
709
|
_: 2
|
|
689
710
|
}, [
|
|
690
711
|
n.$slots.header ? {
|
|
691
712
|
name: "header",
|
|
692
|
-
fn:
|
|
713
|
+
fn: M((e) => [O(n.$slots, "header", w(b(e)))]),
|
|
693
714
|
key: "0"
|
|
694
715
|
} : void 0,
|
|
695
716
|
n.$slots.footer ? {
|
|
696
717
|
name: "footer",
|
|
697
|
-
fn:
|
|
718
|
+
fn: M((e) => [O(n.$slots, "footer", w(b(e)))]),
|
|
698
719
|
key: "1"
|
|
699
720
|
} : void 0,
|
|
700
721
|
n.$slots.option ? {
|
|
701
722
|
name: "option",
|
|
702
|
-
fn:
|
|
723
|
+
fn: M((e) => [O(n.$slots, "option", x({ hasErrors: r }, e))]),
|
|
703
724
|
key: "2"
|
|
704
725
|
} : void 0
|
|
705
726
|
]), 1040, /* @__PURE__ */ "id.adaptive.anchor.aria-describedby.aria-invalid.autocomplete.compact.dependencies.deps-debounce-time.disable-writing.disabled.empty-text.enforce-coherence.failed-text.filter-by.group-by.header-height.item-height.item-props.item-text.item-value.items.loading.loading-text.max.model-value.model-value-debounce-time.multiple.off-canvas-props.prefill.pt.query-debounce-time.readonly.selectable.stash.transition-duration".split("."))]),
|
|
@@ -708,9 +729,9 @@ var Ce = ["id"], we = [
|
|
|
708
729
|
_: 2
|
|
709
730
|
}, [n.$slots.description ? {
|
|
710
731
|
name: "description",
|
|
711
|
-
fn:
|
|
732
|
+
fn: M((e) => [O(n.$slots, "description", w(b(e)))]),
|
|
712
733
|
key: "0"
|
|
713
734
|
} : void 0]), 1040, /* @__PURE__ */ "id.clearable.compact.description.disabled.errors.has-errors.has-value.has-warnings.hide-label.hint.input-align.label.label-align.label-mode.label-position.layout.loading.mobile.name.passthrough.readonly.reverse.show-asterisk.show-hint.warnings".split(".")));
|
|
714
735
|
}
|
|
715
736
|
});
|
|
716
|
-
export {
|
|
737
|
+
export { N as default };
|